Cisco Cisco Email Security Appliance C190 Mode D'Emploi

Page de 1185
 
9-65
Cisco AsyncOS 8.5.6 for Email User Guide
 
Chapter 9      Using Message Filters to Enforce Email Policies
  Message Filter Actions
In the following example, suppose a company has an official policy to drop all .mp3 file attachments. If 
an inbound message has a .mp3 attachment, the attachment is stripped and the remaining message 
(original body and remaining attachments) is sent to the original recipient. Another copy of the original 
message with all attachments will be quarantined (sent to the Policy quarantine). If it is necessary to 
receive the blocked attachment(s), the original recipient would then request that the message be released 
from the quarantine.
Alter Recipient Action
The 
alt-rcpt-to
 action changes all recipients of the message to the specified recipient upon delivery.
The following filter sends all messages with an Envelope Recipient address that contain 
.freelist.com
 
and changes all recipients for the message to 
system-lists@myhost.com
:
Alter Delivery Host Action
The 
alt-mailhost
 action changes the IP address for all recipients of the selected message to the numeric 
IP address or hostname given. 
Note
The 
alt-mailhost
 action prevents a message classified as spam by an anti-spam scanning engine from 
being quarantined. The 
alt-mailhost
 action overrides the quarantine action and sends it to the specified 
mail host.
       quarantine('Policy');
       }
strip_all_mp3s:
  if (attachment-filename == '(?i)\\.mp3$') {
        duplicate-quarantine('Policy');
        drop-attachments-by-name('(?i)\\.mp3$');
   }
freelistFilter:
   if(rcpt-to == '\\.freelist\\.com$')
   {
        alt-rcpt-to('system-lists@myhost.com');
   }