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.

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

Alter Recipient Action<br />

Alter Delivery Host Action<br />

OL-25137-01<br />

In the following example, the message is sent to the Policy quarantine if the message contains any words<br />

within the dictionary named “secret_word.”<br />

quarantine_codenames:<br />

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

{<br />

quarantine('Policy');<br />

}<br />

In the following example, suppose a company has an official policy to drop all .mp3 file attachments. If<br />

an inbound message has a .mp3 attachment, the attachment is stripped and the remaining message<br />

(original body and remaining attachments) is sent to the original recipient. Another copy of the original<br />

message with all attachments will be quarantined (sent to the Policy quarantine). If it is necessary to<br />

receive the blocked attachment(s), the original recipient would then request that the message be released<br />

from the quarantine.<br />

strip_all_mp3s:<br />

if (attachment-filename == '(?i)\\.mp3$') {<br />

}<br />

The alt-rcpt-to action changes all recipients of the message to the specified recipient upon delivery.<br />

The following filter sends all messages with an Envelope Recipient address that contain .freelist.com<br />

and changes all recipients for the message to<br />

system-lists@myhost.com:<br />

freelistFilter:<br />

duplicate-quarantine('Policy');<br />

drop-attachments-by-name('(?i)\\.mp3$');<br />

if(rcpt-to == '\\.freelist\\.com$')<br />

{<br />

}<br />

alt-rcpt-to('system-lists@myhost.com');<br />

The alt-mailhost action changes the IP address for all recipients of the selected message to the numeric<br />

IP address or hostname given.<br />

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

6-57

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

Saved successfully!

Ooh no, something went wrong!