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.

Notifications<br />

6-72<br />

Step 9 Submit and commit your changes.<br />

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

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

Using the Text Resources page in the GUI or the textconfig CLI command to configure custom<br />

notification templates as text resources is another useful tool when used in conjunction with attachment<br />

filtering rules. The notification template supports non-ASCII characters (you are prompted to choose an<br />

encoding while creating the template).<br />

In the following example, the textconfig command was first used to create a notification template<br />

named strip.mp3 that will be inserted into to the body of the notification message. Then, an attachment<br />

filtering rule is created so that when an .mp3 file has been stripped from a message, a notification email<br />

is sent to the intended recipients explaining that the .mp3 file has been deleted.<br />

For more information, see Notify and Notify-Copy Actions, page 6-52.<br />

Examples of Attachment Scanning Message Filters<br />

Inserting Headers<br />

drop-mp3s:<br />

if (attachment-type == '*/mp3')<br />

{ drop-attachments-by-filetype('Media');<br />

notify ('$EnvelopeRecipients', 'Your mp3 has been removed', '$EnvelopeFrom',<br />

'strip.mp3');<br />

}<br />

The following examples shows actions performed on attachments.<br />

In these examples, AsyncOS inserts headers when the attachments contain specified content.<br />

In the following example, all of the attachments on the message are scanned for a keyword. If the<br />

keyword is present in all of the attachments, a custom X-Header is inserted:<br />

attach_disclaim:<br />

if (every-attachment-contains('[dD]isclaimer') ) {<br />

}<br />

insert-header("X-Example-Approval", "AttachOK");<br />

OL-25137-01

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

Saved successfully!

Ooh no, something went wrong!