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

{<br />

}<br />

The bcc action also supports up to three additional, optional arguments that allow you to specify the<br />

subject header and Envelope Sender to use on the copied message, as well as an alt-mailhost. These<br />

parameters must appear in order, so a subject must be provided if the Envelope Sender is to be set.<br />

The subject parameter may contain action variables (see Action Variables, page 6-48) that will be<br />

replaced with data from the original message. By default, this is set to the subject of the original message<br />

(the equivalent of $Subject).<br />

The Envelope Sender parameter may be any valid email address, or alternatively, may be the action<br />

variable $EnvelopeFrom, which will set the return path of the message to the same as the original<br />

message.<br />

This example expands the previous one by setting the subject to be [Bcc] , and the<br />

return path set to badbounce@home.org:<br />

momFilter:<br />

bcc('mom@home.org');<br />

if ((mail-from == '^johnny$') and (rcpt-to == '^sue$'))<br />

{<br />

}<br />

The alt-mailhost is the fourth parameter:<br />

momFilterAltM:<br />

bcc('mom@home.org', '[Bcc] $Subject', 'badbounce@home.org');<br />

if ((mail-from == '^johnny$') and (rcpt-to == '^sue$'))<br />

{<br />

bcc('mom@home.org', '[Bcc] $Subject', '$EnvelopeFrom',<br />

'momaltmailserver.example.com');<br />

}<br />

Warning The Bcc(), notify(), and bounce() filter actions can allow viruses through your network. The blind<br />

carbon copy filter action creates a new message which is a full copy of the original message. The<br />

notify filter action creates a new message that contains the headers of the original message. While<br />

it is rare, headers can contain viruses. The bounce filter action creates a new message which<br />

contains the first 10k of the original message. In all three cases, the new message will not be<br />

processed by anti-virus or anti-spam scanning.<br />

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

6-55

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

Saved successfully!

Ooh no, something went wrong!