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.

Notification Template<br />

6-54<br />

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

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

You can also use the $MatchedContent action variable to notify senders or administrators that a content<br />

filter was triggered. The $MatchedContent action variable displays the content that triggered the filter.<br />

For example, the following filter sends a notification to an administrator if the email contains ABA<br />

account information.<br />

ABA_filter:<br />

Blind Carbon Copy Actions<br />

if (body-contains ('*aba')){<br />

notify('admin@example.com','[$MatchedContent]Account Information Displayed');<br />

}<br />

You can use the Text Resources page or the textconfig CLI command to configure custom notification<br />

templates as text resources for use with the notify() and notify-copy() actions. If you do not create a<br />

custom notification template, a default template is used. The default template includes message headers,<br />

but the custom notification template does not include message headers by default. To include message<br />

headers in the custom notification, include the $AllHeaders action variable.<br />

For more information, see the “Text Resources” chapter in the Cisco <strong>IronPort</strong> AsyncOS for Email<br />

Configuration Guide.<br />

in the following example, when a large message triggers the filter shown below, an email is sent to the<br />

intended recipients explaining that the message was too large:<br />

bigFilter:<br />

if (body-size >= 4M)<br />

{<br />

}<br />

notify('$EnvelopeRecipients', '[$FilterName] Message too large',<br />

drop();<br />

'$EnvelopeFrom', 'message.too.large');<br />

The bcc action sends an anonymous copy of the message to a specified recipient. This is sometimes<br />

referred to as message replication. Because no mention of the copy is made in the original message and<br />

the anonymous copy will never successfully bounce back to the recipient, the original sender and<br />

recipients of the message will not necessarily know that the copy was sent.<br />

the following filter sends a blind carbon copy to mom@home.org for each message addressed to sue from<br />

johnny:<br />

momFilter:<br />

if ((mail-from == '^johnny$') and (rcpt-to == '^sue$'))<br />

OL-25137-01

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

Saved successfully!

Ooh no, something went wrong!