27.11.2012 Views

IronPort - advanced configuration guide

IronPort - advanced configuration guide

IronPort - advanced configuration guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

6-22<br />

Note The regular expression for the rcpt-to rule is case insensitive.<br />

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

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

Note The rcpt-to rule is message-based. If a message has multiple recipients, only one recipient has to match<br />

the rule for the specified action to affect the message to all recipients.<br />

Envelope Recipient in Group Rule<br />

Envelope Sender Rule<br />

scarfaceFilter:<br />

if (rcpt-to == 'scarface')<br />

{<br />

}<br />

drop();<br />

The rcpt-to-group rule selects those messages where any Envelope Recipient is found to be a member<br />

of the LDAP group given. For example, the following filter drops all messages sent with an email address<br />

within the LDAP group “ExpiredAccounts.”<br />

expiredFilter:<br />

if (rcpt-to-group == 'ExpiredAccounts')<br />

{<br />

}<br />

drop();<br />

Note The rcpt-to-group rule is message-based. If a message has multiple recipients, only one recipient has<br />

to match the rule for the specified action to affect the message to all recipients.<br />

The mail-from rule selects those messages where the Envelope Sender matches the given regular<br />

expression. For example, the following filter immediately delivers any message sent by<br />

admin@yourdomain.com.<br />

OL-25137-01

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

Saved successfully!

Ooh no, something went wrong!