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

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

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

In the following example, the “executable” pre-defined group of attachments is extended to include more<br />

attachment names. (Note that this action will not examine the attachments’ file type.)<br />

strip_all_dangerous: if (true) {<br />

The drop-attachments-by-name action supports non-ASCII characters.<br />

Note The drop-attachments-by-name action matches the regular expression against the filename captured<br />

from the MIME header. The filename captured from the MIME header may contain trailing spaces.<br />

In the following example, a message is dropped if the attachment is not an .exe executable filetype.<br />

However, the filter will not perform any action on the message if there is at least one attachment with<br />

the file type you want to filter out. For example, the following filter drops any message with an<br />

attachment that is not an .exe file type:<br />

If a message has multiple attachments, the Email Security appliance does not drop the message if at least<br />

one of the attachments is an .exe file, even if the other attachments not .exe files.<br />

Dropping Attachments by Dictionary Matches<br />

This drop-attachments-where-dictionary-match action strips attachments based on matches to<br />

dictionary terms. If the terms in the MIME parts considered to be an attachment match a dictionary term<br />

(and the user-defined threshold is met), the attachment is stripped from the email. The following example<br />

shows attachment drops if words in the “secret_words” dictionary are detected in the attachment. Note<br />

that the threshold for the matches is set to one:<br />

Quarantining Protected Attachments<br />

drop-attachments-by-filetype ('Executable');<br />

}<br />

drop-attachments-by-name('(?i)\\.(cmd|pif|bat)$');<br />

exe_check: if (attachment-filetype != "exe") {<br />

}<br />

drop();<br />

Data_Loss_Prevention: if (true) {<br />

drop-attachments-where-dictionary-match("secret_words", 1);<br />

}<br />

The attachment-protected filter tests whether any attachment in the message is password protected.<br />

You might use this filter on incoming mail to ensure that the attachments are scannable. According to<br />

this definition, a zip file containing one encrypted member along with unencrypted members will be<br />

OL-25137-01

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

Saved successfully!

Ooh no, something went wrong!