search cancel

Content filtering dictionary rules fail to match message headers


Article ID: 163087


Updated On:


Messaging Gateway


Content filtering rules in Messaging Gateway that apply dictionaries of words against message headers may not operate as expected and fail to catch keywords in Subject lines and other message headers. This primarily occurs when rules against message headers are only written with dictionary based matches rather than keyword or regular expression matching.


The internal data structures used for message header testing are only created if there is a content filtering rule which uses regular expression or keyword matching against the message headers. This means that if only dictionary based rules are enabled for scanning message headers, those rules are not likely to fire.



A simple workaround is to create a rule to match a string against the Subject line but which takes no action other than the "Deliver message normally" when it fires. This will cause the header matching data structures to be created which will allow the dictionary based rules to operate as expected.

  1. Log into SMG as an administrator
  2. Select the "Content" tab
  3. Under "Email Content Filtering Policies" click the "Add" button
  4. Select the "Blank" policy template
  5. Name your policy
  6. Uncheck "Track violations..."
  7. Add the condition "Text in this specific part of the message: Subject"
  8. "Contains 1 or more occurences of Test"
  9. Click "Add Condition"
  10. Under Actions click "Add"
  11. Select "Delivery Message Normally"
  12. Click "Add Action"
  13. Check the Default policy group
  14. Click "Save"

The presence of this rule will cause the header structures to be created and the dictionary base rules to operate as expected.