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

Drop Action<br />

Bounce Action<br />

Encrypt Action<br />

OL-25137-01<br />

notify('customercare@example.com');<br />

skip-filters();<br />

}<br />

The drop action discards a message without any delivery. The message is not returned to the sender, not<br />

sent to the intended recipient, nor processed further in any way.<br />

the following filter first notifies george@whitehouse.gov and then discards any message where the<br />

subject begins with SPAM.<br />

spamFilter:<br />

if(subject == '^SPAM.*')<br />

{<br />

}<br />

notify('george@whitehouse.gov');<br />

drop();<br />

The bounce action sends the message back to the sender (Envelope Sender) without further processing.<br />

the following filter returns (bounces) any message from an email address that ends in @yahoo\\.com.<br />

yahooFilter:<br />

if(mail-from == '@yahoo\\.com$')<br />

{<br />

}<br />

bounce();<br />

The encrypt action uses the configured encryption profile to deliver encrypted messages to email<br />

recipients.<br />

The following filter encrypts messages if they contain the term [encrypt] in the subject:<br />

Encrypt_Filter:<br />

if ( subject == '\\[encrypt\\]' )<br />

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

6-51

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

Saved successfully!

Ooh no, something went wrong!