Cisco Cisco Email Security Appliance C160 Mode D'Emploi

Page de 1138
 
9-98
Cisco AsyncOS 8.5 for Email User Guide
 
Chapter 9      Using Message Filters to Enforce Email Policies
  Message Filter Examples
Archive and Drop Messages Filter
Log and drop only the messages that have matching filetypes:
Large “To:” Header Filter
Find messages with very large “To” headers. 
Use the 
archive()
 line for verification of proper action, with drop() enabled or disabled for extra safety:
Blank “From:” Filter
Identify blank “From” headers, 
This filter can alleviate various forms of blank “from” addresses:
    drop ();
drop_attachments: 
if (mail-from != "user@example.com") AND (attachment-filename ==
'(?i)\\.(asp|bas|bat|cmd|cpl|exe|hta|ins|isp|js)$')
{
  archive("Drop_Attachments");
  insert-header("X-Filter", "Dropped by: $FilterName MID: $MID"); 
drop-attachments-by-name("\\.(asp|bas|bat|cmd|cpl|exe|hta|ins|isp|js)$");
}
toTooBig: 
if(header('To') == "^.{500,}") { 
   archive('tooTooBigdropped'); 
   drop(); 
blank_mail_from_stop: 
if (recv-listener == "InboundMail" AND header("From") == "^$|<\\s*>") { 
  drop ();