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

OL-25137-01<br />

If a header was modified by a previous processing action, any subsequent header rule will evaluate<br />

the modified header and not the original message header.<br />

This behavior is common to both message filters and content filters.<br />

Message Bodies vs. Message Attachments<br />

An email message is composed of multiple parts. Although RFCs define everything that comes after a<br />

message’s headers as a multipart “message body,” many users still conceptualize a message’s “body” and<br />

its “attachment” differently. When you use any of the Cisco <strong>IronPort</strong> message filters named<br />

body-variable or attachment-variable, the Cisco <strong>IronPort</strong> appliance attempts to distinguish the parts<br />

that most users consider to be the “body” and the “attachment” in the same way that many MUAs attempt<br />

to render these parts differently.<br />

For the purposes of writing body-variable or attachment-variable message filter rules, everything after<br />

the message headers is considered the message body, whose content is considered the first text part of<br />

the MIME parts that are within the body. Anything after the content, (that is, any additional MIME parts)<br />

is considered an attachment. AsyncOS evaluates the different MIME parts of the message, and identifies<br />

the parts of the file that is treated as an attachment.<br />

For example, Figure 6-1 shows a message in the Microsoft Outlook MUA where the words “Document<br />

attached below.” appear as a plain text message body and the document “This is a Microsoft Word<br />

document.doc” appears as an attachment. Because many users conceptualize email this way (rather than<br />

as a multipart message whose first part is plain text and whose second part is a binary file), the Cisco<br />

<strong>IronPort</strong> uses the term “attachment” in message filters to create rules to differentiate and act on the .doc<br />

file part (in essence, the second MIME part) as opposed to the “body” of the message (the first, plain<br />

text part) — although, according to the language used in RFCSs 1521 and 1522, a message’s body is<br />

comprised of all MIME parts.<br />

Figure 6-1 Message with “Attachment”<br />

Because the Cisco <strong>IronPort</strong> appliance makes this distinction between the body and the attachment in<br />

multipart messages, there are several cases you should be aware of when using the body-variable or<br />

attachment-variable message filter rules in order to achieve the expected behavior:<br />

If you have a message with a single text part—that is, a message containing a header of<br />

“Content-Type: text/plain” or “Content-Type: text/html” — the Cisco <strong>IronPort</strong> appliance will<br />

consider the entire message as the body. If the content type is anything different, the Cisco <strong>IronPort</strong><br />

appliance considers it to be a single attachment.<br />

Some encoded files (uuencoded, for example) are included in the body of the email message. When<br />

this occurs, the encoded file is treated as an attachment, and it is extracted and scanned, while the<br />

remaining text is considered to be the body of the text.<br />

A single, non-text part is always considered an attachment. For example, a message consisting of<br />

only a.zip file is considered an attachment.<br />

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

6-5

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

Saved successfully!

Ooh no, something went wrong!