Content Filtering
Content filtering allows you to create custom filters for inbound and outbound email and take a specified action on any email that matches a filter. Content filtering is recommended if:
You want to take an action on an email that can not be done using pattern filtering, such as a redirect, delete, bounce or ignore. See Pattern Filtering.
You want to bypass virus filtering or attachment filtering using allow lists.
Go to Content Filtering > Content Filtering to add, edit and delete content filters.
Pre-defined Content Filters
Three pre-defined content filters are already in place in SpamTitan Gateway:
Note
The pre-defined filters are designed to match most formats for credit card numbers and social security numbers. However, as numbers can be formatted in multiple ways, the filter patterns may not catch all messages containing credit card numbers or social security numbers. Also, as the filter looks for a specific pattern of numbers, it is possible that numeric patterns that are not credit card numbers or social security numbers may be matched.
Credit Card Numbers: When enabled, this filter scans for content matching credit card numbers. Messages containing Visa, Mastercard, Discovery, American Express or Diners Club card numbers will be subject to the specified action.
Social Security Numbers: When enabled, this filter scans messages for U.S. social security numbers. Messages containing social security numbers matching the pattern nnn-nn-nnnn are subject to the specified action. The pattern checks for valid social security numbers by ensuring the pattern does not contain a group of digits that are all zeros, such as in 000-11-1111, 111-00-1111, or 111-11-0000.
X-Originating-IP: This filter is only enabled in SpamTitan cloud builds. When enabled, the filter strips any headers that may be added by a MTA (Message Transfer Agent), as they can cause email to be blocked after RBL testing.
Adding, Editing or Deleting a Content Filter
To add a new content filter, click Add... and the Add Filter window displays. Using the table below, complete the fields. Click Save to save this content filter.
To edit an existing content filter, click the edit button in the Options column and the Edit Filter window displays. Using the table below as a reference, edit the fields. Click Save to save this content filter.
To delete a single content filter, click the delete button in the options column. To delete multiple content filters, check the box beside the names of the filters you want to delete and click Delete.
Field | Description |
---|---|
Filter Name: | A descriptive name for this content filter. |
Status: | Select ON to enable this filter or OFF to disable this filter. |
Filter Expression: | Add or edit a filter rule where the message content for the specified location:
|
Value: | The specified value, or content, that this filter looks to match. If starts with, ends with, contains, equals, or matches any word in is selected above:
If matches regular expression is selected above:
|
Dot matches new lines: | Displays when matches regular expression is selected from Filter Expression: drop-down. This option makes the dot (.) in regular expression match new line characters (\n). Enabling this option allows matching a word at the beginning of an email's body and a word at the end of an email's body with one regular expression. |
Test Filter: | Enter sample text to test if your filter expression is correct and matches. If the filter rule matches the text entered, the field is highlighted in green. |
Apply to Body: | Check to apply the rule to the body of the message. |
Apply to Headers: | Check to apply the rule to message headers. Enter the headers in the text box provided; one header per line. For example, to apply the filter to the subject header, enter Subject or Subject:. The rule will match if it is found in any of the specified headers. To apply the rule to all headers, leave this field blank. |
Inbound/Outbound Action: | Select from one of these actions if an inbound or outbound message matches this filter rule:
|
Comment: | An optional comment on this filter. |