cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
909
Views
0
Helpful
1
Replies

CLI filter rule examples

phil foster
Level 1
Level 1

I am looking for information on creating a filter rule for the C670.

I want to block attachements that contain a set trigger, and then send a custom message to the end user explaning the block and why we

are blocking the attachement.

I have the below:

if attachment-binary-contains ("blah.string")

{

notify('admin@blah.com'); #this is to let me know that a block occured.

drop-attachement-by-filetyepe ('blah');

}

what is the syntax to call the custom message, to add to this rule?

thank you for your time.

-phil foster.

1 Reply 1

Hi Phil,

You probably want to use something like a notification template. You can create the template in the GUI as a text resource. First in the GUI to go the Mail Polices tab then select "Text Resources" from there select Notification Template in the drop down. Give the Template a name. Once you have filled out the notification body click submit and commit changes. Once that is done you can use the template in your message filter by calling it using the action notify.

Here is an example filter using a notification template.

drop-mp3s:

if (attachment-type == '*/mp3')

{ drop-attachments-by-filetype('Media');

notify ('$EnvelopeRecipients', 'Your mp3 has been removed', '$EnvelopeFrom', 'strip.mp3');

}

Christopher C Smith
CSE

Cisco IronPort Customer Support