Cisco Cisco Email Security Appliance C170 Guia Do Utilizador

Página de 1140
 
9-76
Cisco AsyncOS 8.5.5 for Email Security User Guide
 
Chapter 9      Using Message Filters to Enforce Email Policies
  Attachment Scanning
Step 9
Submit and commit your changes.
Notifications
Using the Text Resources page in the GUI or the 
textconfig
 CLI command to configure custom 
notification templates as text resources is another useful tool when used in conjunction with attachment 
filtering rules. The notification template supports non-ASCII characters (you are prompted to choose an 
encoding while creating the template).
In the following example, the 
textconfig
 command was first used to create a notification template 
named 
strip.mp3
 that will be inserted into to the body of the notification message. Then, an attachment 
filtering rule is created so that when an .mp3 file has been stripped from a message, a notification email 
is sent to the intended recipients explaining that the .mp3 file has been deleted.
For more information, see 
.
Examples of Attachment Scanning Message Filters
The following examples shows actions performed on attachments.
Inserting Headers
In these examples, AsyncOS inserts headers when the attachments contain specified content. 
In the following example, all of the attachments on the message are scanned for a keyword. If the 
keyword is present in all of the attachments, a custom X-Header is inserted:
drop-mp3s:
if (attachment-type == '*/mp3')
{ drop-attachments-by-filetype('Media');
  notify ('$EnvelopeRecipients', 'Your mp3 has been removed', '$EnvelopeFrom', 
'strip.mp3');
attach_disclaim:
    if (every-attachment-contains('[dD]isclaimer') ) {
        insert-header("X-Example-Approval", "AttachOK");
    }