27.11.2012 Views

IronPort - advanced configuration guide

IronPort - advanced configuration guide

IronPort - advanced configuration guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 6 Using Message Filters to Enforce Email Policies<br />

OL-25137-01<br />

Note The regular expression for the mail-from rule is case insensitive. Note that the period character is<br />

escaped in the following example.<br />

Envelope Sender in Group Rule<br />

Sender Group Rule<br />

kremFilter:<br />

if (mail-from == '^admin@yourdomain\\.com$')<br />

{<br />

skip_filters();<br />

}<br />

The mail-from-group rule selects those messages where the Envelope Sender is found to be in an LDAP<br />

group given on the right side of the operator (or, in the case of inequality, where the sender’s email<br />

address is not in the given LDAP group). For example, the following filter immediately delivers any<br />

message sent by someone whose email address is in the LDAP group “KnownSenders.”<br />

SenderLDAPGroupFilter:<br />

if (mail-from-group == 'KnownSenders')<br />

{<br />

skip_filters();<br />

}<br />

The sendergroup message filter selects a message based on which sender group was matched in a<br />

listener's Host Access Table (HAT). This rule uses '==' (for matching) or '!=' (for not matching) to test<br />

for matching a given regular expression (the right side of the expression). For example, the following<br />

message filter rule evaluates to true if the sender group of the message matches the regular expression<br />

Internal, and, if so, sends the message to an alternate mail host.<br />

senderGroupFilter:<br />

if (sendergroup == "Internal")<br />

{<br />

}<br />

alt-mailhost("[172.17.0.1]");<br />

Cisco <strong>IronPort</strong> AsyncOS 7.6 for Email Advanced Configuration Guide<br />

6-23

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!