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

Message Filter Example Syntax<br />

OL-25137-01<br />

The intuitive meaning of a filter specification is:<br />

if the message matches the rule, then apply the actions in sequence. If the else clause is present, the<br />

actions within the else clause are executed in the event the message does not match the rule.<br />

The name of the filter you specify makes it easier to manage filters when you are activating, deactivating,<br />

or deleting them.<br />

Message filters use the following syntax:<br />

Example Syntax Purpose<br />

expedite: filter name<br />

if (recv-listener == 'InboundMail' or recv-int == 'notmain') rule specification<br />

{<br />

alt-src-host('outbound1');<br />

skip_filters();<br />

}<br />

else<br />

{<br />

alt-src-host('outbound2');<br />

}<br />

Note that you can omit any alternative actions:<br />

You can combine several filters in sequence within a single text file, one following the other.<br />

You must enclose the values in filters in either single or double quotation marks. Single or double<br />

quotation marks must be equally paired on each side of the value; for example, the expressions<br />

notify('customercare@example.com') and notify("customercare@example.com") are both legal, but<br />

the expression notify("customercare@example.com') causes a syntax error.<br />

Lines beginning with a ‘#’ character are considered comments and are ignored; however, they are not<br />

preserved by AsyncOS as can be verified by viewing a filter via filters -> detail.<br />

Message Filter Processing<br />

action specification<br />

optional alternative action<br />

specification<br />

Example Syntax Purpose<br />

expedite2: filter name<br />

if ((not (recv-listener == 'InboundMail')) and rule specification<br />

(not (recv-int == 'notmain')))<br />

{<br />

action specification<br />

alt-src-host('outbound2');<br />

skip_filters();<br />

}<br />

When AsyncOS processes message filters, the content that AsyncOS scans, the order of the processing,<br />

and the actions taken are based on several factors:<br />

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

6-3

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

Saved successfully!

Ooh no, something went wrong!