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

The Envelope Recipient parameter may be any valid email address (for example, admin@example.com in<br />

the example above), or alternatively, may be the action variable $EnvelopeRecipients (see Action<br />

Variables, page 6-48), which specifies all Envelope Recipients of the message:<br />

bigFilter:<br />

if(body-size >= 4M)<br />

{<br />

}<br />

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

subject header, the Envelope Sender, and a pre-defined text resource to use for the notification message.<br />

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

or a notification template specified.<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, the subject is set to Message Notification.<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 />

The notification template parameter is the name of an existing notification template. For more<br />

information, see Notifications, page 6-72.<br />

This example extends the previous one, but changes the subject to look like [bigFilter] Message too<br />

large, sets the return path to be the original sender, and uses the “message.too.large” template:<br />

bigFilter:<br />

notify('$EnvelopeRecipients');<br />

drop();<br />

if (body-size >= 4M)<br />

{<br />

}<br />

notify('admin@example.com', '[$FilterName] Message too large',<br />

drop();<br />

'$EnvelopeFrom', 'message.too.large');<br />

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

6-53

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

Saved successfully!

Ooh no, something went wrong!