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.

Attachment Type Rule<br />

Attachment Filename Rule<br />

6-30<br />

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

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

The encrypted rule is similar to the true rule in that it takes no parameters and cannot be compared.<br />

This rule returns true if encrypted data is found and false if no encrypted data is found. Because this<br />

function requires the message to be scanned, it uses the scanning settings you define in the scanconfig<br />

command. For more information about configuring these options, see Modifying Scanning Parameters,<br />

page 6-84.<br />

The following filter checks all email sent through the listener, and if a message contains encrypted data,<br />

the message is blind-carbon-copied to the legal department and then bounced:<br />

prevent_encrypted_data:<br />

if (encrypted) {<br />

}<br />

bcc ('legaldept@example.domain');<br />

bounce();<br />

The attachment-type rule checks the MIME types of each attachment in a message to see if it matches<br />

the given pattern. The pattern must be of the same form used in the scanconfig command as described<br />

in Modifying Scanning Parameters, page 6-84, and so may have either side of the slash (/) replaced by<br />

an asterisk as a wildcard. If the message contains an attachment that matches this specified MIME type,<br />

this rule returns “true.”<br />

Because this function requires the message to be scanned, it obeys all of the options defined by the<br />

scanconfig command as described in Modifying Scanning Parameters, page 6-84.<br />

See Attachment Scanning, page 6-65 for more information on message filter rules you can use to<br />

manipulate attachments to messages.<br />

The following filter checks all email sent through the listener, and if a message contains an attachment<br />

with a MIME type of video/*, the message is bounced:<br />

bounce_video_clips:<br />

if (attachment-type == 'video/*') {<br />

}<br />

bounce();<br />

The attachment-filename rule checks the filenames of each attachment in a message to see if it matches<br />

the given regular expression. This comparison is case-sensitive. The comparison is, however sensitive to<br />

whitespace so if the filename has encoded whitespace at the end, the filter will skip the attachment. If<br />

one of the message’s attachments matches the filename, this rule returns “true.”<br />

Please note the following points:<br />

Each attachment’s filename is captured from the MIME headers. The filename in the MIME header<br />

may contain trailing spaces.<br />

OL-25137-01

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

Saved successfully!

Ooh no, something went wrong!