Cisco Cisco Email Security Appliance C170 Guia Do Utilizador

Página de 1197
 
26-24
User Guide for AsyncOS 9.7 for Cisco Email Security Appliances
 
Chapter 26      LDAP Queries
  Using Group LDAP Queries to Determine if a Recipient is a Group Member
Procedure 
Step 1
First, a message filter is created to act upon messages that match positively for group membership. In 
this example, a filter is created that uses the 
mail-from-group
 rule. All messages whose Envelope 
Sender is found to be in the LDAP group “marketing-group1” will be delivered with an alternate delivery 
host (the filters 
alt-mailhost
 action). 
The group membership field variable (groupName) will be defined in step 2. The group attribute 
“groupName” is defined with the value 
marketing-group1
mail3.example.com> filters
Choose the operation you want to perform:
- NEW - Create a new filter.
- IMPORT - Import a filter script from a file.
[]> new
Enter filter script.  Enter '.' on its own line to end.
MarketingGroupfilter:
  if (mail-from-group == "marketing-group1") {
      alt-mailhost ('marketingfolks.example.com');}
.
1 filters added.
Choose the operation you want to perform:
- NEW - Create a new filter.
- DELETE - Remove a filter.
- IMPORT - Import a filter script from a file.
- EXPORT - Export filters to a file
- MOVE - Move a filter to a different position.
- SET - Set a filter attribute.
- LIST - List the filters.
- DETAIL - Get detailed information on the filters.