Cisco Cisco Email Security Appliance C160 Mode D'Emploi

Page de 1212
 
9-72
User Guide for AsyncOS 10.0 for Cisco Email Security Appliances
 
Chapter 9      Using Message Filters to Enforce Email Policies
  Message Filter Actions
The mbox format is a standard UNIX mailbox format, and there are many utilities available to make 
viewing the messages easier. Most UNIX systems allow you to type 
mail -f 
mbox.filename” to view the files. The mbox format is in plain text, so you can use a simple 
text editor to view the contents of the messages.
In the following example, a copy of the message is saved to a log named 
joesmith
 if the Envelope Sender 
matches 
joesmith@yourdomain.com
:
Strip Header Action
The 
strip-header
 action examines the message for a particular header and removes those lines from the 
message before delivering it. When there are multiple headers, all instances of the header are removed 
(for example, the “Received:” header.) 
In the following example, all messages have the header 
X-DeleteMe
 removed before transmission:
When working with headers, remember that the current value of the header includes changes made 
during processing (such as with filter actions that add, remove, or modify message headings). See 
 for more information.
Insert Header Action 
The 
insert-header
 action inserts a new header into a message. AsyncOS does not verify the compliance 
to standards of the header you insert; you are responsible for ensuring that the resulting message 
complies with Internet standards for email.
The following example inserts a header named 
X-Company
 with the value set to 
My Company Name
 if the 
header is not already found in the message:
logJoeSmithFilter:
   if(mail-from == '^joesmith@yourdomain\\.com$')
   {
        archive('joesmith');
   }
stripXDeleteMeFilter:
   if (true)
   {
        strip-header('X-DeleteMe');
   }
addXCompanyFilter:
   if (not header('X-Company'))
   {