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 />

Dictionary Rules<br />

OL-25137-01<br />

Values for the SenderBase Reputation rule are -10 through 10, but the value NONE may also be returned.<br />

To check specifically for the value NONE, use the no-reputation rule.<br />

none_rep:<br />

if (no-reputation) {<br />

}<br />

strip-header ('Subject');<br />

The dictionary-match() rule evaluates to true if the message body contains any of<br />

the regular expressions or terms in the content dictionary named “dictonary_name.” If the dictionary<br />

does not exist, the rule evaluates to false. For more information on defining dictionaries (including their<br />

case sensitivity and word boundary settings), see the “Text Resources” chapter in the Cisco <strong>IronPort</strong><br />

AsyncOS for Email Configuration Guide.<br />

The following filter blind carbon copies the administrator when the Cisco <strong>IronPort</strong> scans a message that<br />

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

copy_codenames:<br />

insert-header ('Subject', '*** Reputation = NONE *** $Subject');<br />

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

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

}<br />

The following example sends the message to the Policy quarantine if the message body contains any<br />

words within the dictionary named “secret_words.” Unlike the only-body-contains condition, the<br />

body-dictionary-match condition does not require that all the content parts individually match the<br />

dictionary. The scores of each content part (taking into account multipart/alternative parts) are added<br />

together.<br />

quarantine_data_loss_prevention:<br />

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

{<br />

quarantine('Policy');<br />

}<br />

In the following filter, a subject that matches a term in the specified dictionary is quarantined:<br />

quarantine_policy_subject:<br />

if (subject-dictionary-match ('gTest'))<br />

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

6-33

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

Saved successfully!

Ooh no, something went wrong!