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