Create "AND" condition rules


This article applies to:

  • Trustwave MailMarshal (SEG)
  • Trustwave ECM/MailMarshal Exchange 

Question:

  • How do I create a rule that checks for an email address that exists in two groups?
  • How do I set up a boolean AND for MailMarshal rule conditions? 

Background:

MailMarshal rules allow you to match multiple user groups in the same condition. The matching uses an OR condition. So if an email address is found in ANY of the groups, the condition matches.

Sometimes you may want to use an AND condition. You may want to match only an address that is found in BOTH of two groups.

Procedure:

You can apply AND conditions by using two rules, with MailMarshal's "pass to rule" action.

For example, suppose you want to use a special archive folder to save a copy of any messages addressed to people who are managers in the sales area. You have a user group for Managers, and a user group for Sales. You want to save the messages that are addressed to people who are in both these groups.

You could use the following rules:

Standard Rule: Check for Managers
Skip over the next rule if the mail isn't addressed to a manager
When a message arrives
Where message is incoming
    Except where addressed to 'Managers'
Pass the message on and skip the next rule

Standard Rule: Copy mail to Sales Managers archive
Copies all email to sales managers into the special archive
When a message arrives
Where message is incoming

Where addressed to 'Sales'
Copy the message to 'Sales Managers Archive'
And pass message to the next rule for processing.

...Any additional rules...

  • The first rule checks whether the message is addressed to a member of the Managers group. If not, MailMarshal will skip the next rule.
  • The second rule will only apply for email addressed to the Managers group. This rule does a second check to find whether the message is addressed to a member of the Sales group, and takes action.

Notes:

  • You can use similar logic with the other MailMarshal rule conditions.
  • In MailMarshal (SEG) 10.X, TextCensor and Category rule conditions provide the option for Boolean AND in a single rule.

Last Modified 4/1/2020.
https://support.trustwave.com/kb/KnowledgebaseArticle11680.aspx