Configuring profiles : Configuring antispam profiles and antispam action profiles : Managing antispam profiles : Configuring banned word options
Configuring banned word options
The Banned word section of antispam profiles lets you configure the FortiMail unit to consider email messages as spam if the subject line and/or message body contain a prohibited word. When a banned word is found, the FortiMail unit treats the email as spam and performs the associated action.
When banned word scanning is enabled and an email is found to contain a banned word, the FortiMail unit adds X-FEAS-BANNEDWORD: to the message header, followed by the banned word found in the email. The header may be useful for troubleshooting purposes, when determining which banned word or phrase caused an email to be blocked.
You can use wildcards in banned words. But unlike dictionary scans, banned word scans do not support regular expressions. For details about wildcards and regular expressions, see “Appendix D: Regular expressions”.
 
You can also apply this scan to PDF attachments. For more information, see “Configuring scan conditions”.
To configure banned word scan options
1. When configuring an antispam profile, enable Banned word in the AntiSpam Profile dialog.
2. From Action, select the action profile that you want the FortiMail unit to use if the banned word scan finds spam email.
For more information, see “Configuring antispam action profiles”.
3. Next to Banned word, click Configuration.
A pop-up window appears, showing the words or phrases that will be prohibited by this profile. You can add or delete words on this window.
4. Click New, then enter the banned word in the field that appears.
5. Select Subject to have the subject line inspected for the banned word. If the check box is clear, the subject line is not inspected.
6. Select Body to have the message body inspected for the banned word. If the check box is clear, the message body is not inspected.
7. Click OK.
The pop-up window closes.
 
Closing the pop-up window does not save the antispam profile and its associated banned word list. To save changes to the banned word list, first click OK before navigating away to another part of the web UI.
8. Continue to the next section, or click Create or OK to save the antispam profile.