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.

6-34<br />

{<br />

quarantine('Policy');<br />

}<br />

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

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

This example matches an email address in the “to” header and blind copies an administrator:<br />

headerTest:<br />

if (header-dictionary-match ('competitorsList', 'to'))<br />

{<br />

bcc('administrator@example.com');<br />

}<br />

The attachment-dictionary-match() rule works like the dictionary-match rule<br />

above, except that it looks for matches in the attachment.<br />

The following filter sends the message to the Policy quarantine if the message attachment contains any<br />

words found within the dictionary named “secret_words.”<br />

quarantine_codenames_attachment:<br />

if (attachment-dictionary-match ('secret_words'))<br />

{<br />

quarantine('Policy');<br />

}<br />

The header-dictionary-match(, ) rule works like the dictionary-match<br />

rule above, except that it looks for matches in the header specified in . The header name is case<br />

insensitive, so, for example, “subject” and “Subject” both work.<br />

The following filter sends the message to the Policy quarantine if the message’s “cc” header contains<br />

any words found within the dictionary named “ex_employees.”<br />

quarantine_codenames_attachment:<br />

if (header-dictionary-match ('ex_employees', 'cc'))<br />

{<br />

quarantine('Policy');<br />

}<br />

You can use wild cards within the dictionary terms. You do not have to escape the period in email<br />

addresses.<br />

OL-25137-01

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

Saved successfully!

Ooh no, something went wrong!