Cisco Cisco Email Security Appliance C160 Mode D'Emploi

Page de 1094
 
9-22
Cisco AsyncOS 8.0.1 for Email User Guide
 
Chapter 9      Using Message Filters to Enforce Email Policies
  Message Filter Rules
Note
The regular expression for the 
rcpt-to
 rule is case insensitive.
Note
The 
rcpt-to
 rule is message-based. If a message has multiple recipients, only one recipient has to match 
the rule for the specified action to affect the message to all recipients. 
Envelope Recipient in Group Rule
The 
rcpt-to-group
 rule selects those messages where any Envelope Recipient is found to be a member 
of the LDAP group given. For example, the following filter drops all messages sent with an email address 
within the LDAP group “ExpiredAccounts.”
Note
The 
rcpt-to-group
 rule is message-based. If a message has multiple recipients, only one recipient has 
to match the rule for the specified action to affect the message to all recipients. 
Envelope Sender Rule
The 
mail-from
 rule selects those messages where the Envelope Sender matches the given regular 
expression. For example, the following filter immediately delivers any message sent by 
admin@yourdomain.com
.
scarfaceFilter:
   if (rcpt-to == 'scarface')
   {
        drop();
   }
expiredFilter:
   if (rcpt-to-group == 'ExpiredAccounts')
   {
        drop();
   }