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.

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

Blank “From:” Filter<br />

SRBS Filter<br />

OL-25137-01<br />

Use the archive() line for verification of proper action, with drop() enabled or disabled for extra safety:<br />

toTooBig:<br />

if(header('To') == "^.{500,}") {<br />

}<br />

archive('tooTooBigdropped');<br />

drop();<br />

Identify blank “From” headers,<br />

This filter can alleviate various forms of blank “from” addresses:<br />

blank_mail_from_stop:<br />

if (recv-listener == "InboundMail" AND header("From") == "^$|") {<br />

}<br />

drop ();<br />

If you also want to drop messages with a blank envelope from, use this filter:<br />

blank_mail_from_stop:<br />

if (recv-listener == "InboundMail" AND (mail-from == "^$|" OR header ("From") ==<br />

"^$|"))<br />

{<br />

}<br />

drop ();<br />

SenderBase Reputation filter:<br />

note_bad_reps:<br />

if (reputation < -2) {<br />

}<br />

strip-header ('Subject');<br />

insert-header ('Subject', '***BadRep $Reputation *** $Subject');<br />

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

6-99

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

Saved successfully!

Ooh no, something went wrong!