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.
cmartinez1
Staff
Staff
Article Id 189592
Description
The bword command can be used to add or edit and configure options for the email filter banned word list.

In some instances when upgrading from FortiOS v4.0 MR3 Patch 12 to v5.2.5 or v5.2.6 it may be noticed that bword no longer works.  If this happens then it is necessary activate it again via CLI.

Solution
The following CLI command can be used to re-enable bword:
config spamfilter profile
edit "Profile_Name"
set options spambwl spamsfsip spamfschksum spamfsurl spamfsphish  bannedword
end
Adding bannedword in the set options command should start bword working again.



Extract from CLI Reference Guide

Where can bword be used?

For SMTP, POP3, and IMAP

Control spam by blocking email messages containing specific words or patterns. If enabled, the FortiGate unit searches for words or patterns in email messages. If matches are found, values assigned to the words are totaled. If a user-defined threshold value is exceeded, the message is marked as spam. If no match is found, the email message is passed along to the next filter.

Use Perl regular expressions or wildcards to add banned word patterns to the list. Add one or more banned words to sort email containing those words in the email subject, body, or both. Words can be marked as spam or clear. Banned words can be one word or a phrase up to 127 characters long.

If a single word is entered, the FortiGate unit blocks all email that contain that word. If a phrase is entered, the FortiGate unit blocks all email containing the exact phrase. To block any word in a phrase, use Perl regular expressions.

Note:  Perl regular expression patterns are case sensitive for email filter banned words. To make a word or phrase case insensitive, use the regular expression /i. For example, /bad language/i blocks all instances of bad language regardless of case. Wildcard patterns are not case sensitive

Contributors