Rules can be configured to implement policies that reduce liability from inappropriate communications. The following rule checks messages originating from internal sources against a defined list of offensive words, and it quarantines any messages found to contain those words. (Note that this example assumes that you are using the default PureMessage Policy configuration.)
The Offensive Words list is pre-configured with several hundred words and phrases that are generally considered to be unacceptable in corporate communications. Before creating a rule that uses the Offensive Words list, review the contents of the list, adding words and phrases specific to your organization and removing words and phrases that are not applicable.
The following test uses the Message contains word or phrase test, which is part of the PureMessage Policy bundle. If you do not have a license for the Policy bundle, use the Message has offensive content test, which also uses the Offensive Words list, and which is included with the Anti-Spam license.
To create a "check messages for offensive words" rule using the PureMessage Manager:
Policy Script
To create a check messages for offensive words rule by editing the policy script:
if pmx_virus { # attr NAME=Allow unscannable messages to pass through if pmx_virus_cantscan { keep; stop; } reject "One or more viruses were detected in the message."; stop; } # attr NAME=Check for Offensive Words elsif pmx_phrase :memberof ["offensive-words"] { pmx_quarantine "Offensive Word"; stop; }
See the Policy Script Tutorial for more information about modifying the policy script from the command line.