FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
krajaa
Staff
Staff
Article Id 194293
Description
This article describes how to configure banned words check in Anti-spam.

Banned word check is a local spam filter profile option that can be configured only in the CLI.

Solution
When banned word checking is enabled, the FortiGate unit will examine the email message for words appearing in the banned word list specified in the Anti-Spam profile.
If the total score of the banned word discovered in the email message exceeds the threshold value set in the Anti-Spam profile, the FortiGate unit will treat the message as spam.

When determining the banned word score total for an email message, each banned word score is added once no matter how many times the word appears in the message.

Note: Before enabling banned word check, use the following commands for configuring banned word check:

#config spamfilter bword
edit 1
config entries
edit 1               
set pattern ""      <-----Mention the word which you want to ban
next
end
next
end
Once banned word table is created, enable banned word check in CLI using below commands:
#config spamfilter profile
edit <filter_name>
set options bannedword
set spam-bword-table 1
next
end
-Enable Spamfilter profile in concern IPv4 policy.
#config firewall policy
edit <Policy ID>
set utm-status enable
set spamfilter-profile 'filter name'
next
end

Contributors