Content Filter

The Content Filter is used to reject or redirect mail that has objectionable text in the subject line or body of the email message. The attachment filter references a text file for the target words that you specify. When an email with one of the prohibited words reaches the server, the message is rejected.

If the message is rejected SLmail sends a fatal error message back to the originating server. The email is not returned to the sender, however, they may (depends on client) receive a message that states that the message was rejected due to prohibited content.

The SLmail administrator can also specify an email address on the server where the rejected messages can be forwarded. The redirected message is appended with header information for all original (intended) recipients of the message.

The redirect address is specified in the General Filter Settings section of the Filter Manager. See the General Filter Settings section for more information.

The Filter Information dialog box gives a description of the filter. By default the content filter is disabled, select the Filter Enabled check box to enable the content filter.

Note: You will be prompted to restart your computer for this change to take effect.

 

Content Filter Information dialog box

If you would like to edit the text file contents or its location, click the Edit button.

 

Content Filter text file selection dialog box

You can type in a new file name or a path to the text file that you wish to use for the content filter in the text box provided. To browse for the file location, click the ... ( browse ) button to the right of the text box. To edit the contents of the text file, click the Edit button.

 

Content Filter sample text file

The text file that is listed in the text box on the Content Filter dialog box will open in your default text file editor. The content filter searches for either single words or phrases (using the correct syntax). The filter is case insensitive, but you can use regex: syntax to filter phrases and forms of words (such as plurals, different tenses, etc.). You may add as many words to the list as you wish. Each entry in the list must be separated with a carriage return.

Note: Do not use wildcards ( * ) in the Content Filter text file.

Some examples of the regex syntax:

    regex:[Mm][Aa][Kk][Ee] [Mm][Oo][Nn][Ee][Yy] [Ff][Aa][Ss][Tt] will filter all instances of the phrase `make money fast' regardless of the case

    regex:sex will filter all instances of the character string `sex', filtering out sex, sexy, sexual, etc.

    regex:!!(!)+ will filter all messages that contain three or more exclamation points in a row

Save the text file and then return to the Content Filter dialog box. Click Next to continue and then confirm the changes by clicking Apply in the next dialog box.

Note: A server restart is not necessary to update or append the Content Filter text file. When the file is saved the changes are effective immediately.