Cisco Cisco Email Security Appliance C160 Mode D'Emploi

Page de 1140
 
9-85
Cisco AsyncOS 8.5.5 for Email Security User Guide
 
Chapter 9      Using Message Filters to Enforce Email Policies
  Using the CLI to Manage Message Filters
Activating or Deactivating a Message Filter
set [seqnum|filtname|range] active|inactive
Sets the filters identified to have the given state. Legal states are:
active: Set the state of the selected filters to be active.
inactive: Set the state of the selected filters to be inactive.
The following conditions can cause errors:
No filter with a given filtname.
No filter with a given sequence number. 
Note
A filter which is inactive may also be noted in its syntax; the colon after the label (name of the filter) is 
changed to an exclamation point (
!
). A filter entered manually from the CLI, or imported, that contains 
this syntax, will automatically be marked inactive. For example, 
mailfrompm!
 instead of 
mailfrompm:
 is 
displayed.
Importing Message Filters
import filename
The name of the file containing filters to be processed. This file must reside in the 
configuration directory of the FTP/SCP root directory on the appliance, if you enabled FTP/SCP access 
for the interface with the 
interfaceconfig
 command. It is ingested and parsed, and any errors are 
reported. The filters imported replace all filters existing in the current filter set. See 
 for more information. Consider exporting the current filter list (see 
) and then editing that file before importing.
When importing message filters, you are prompted to select the encoding used.
The following conditions can cause errors:
File does not exist.
Filter with a non-unique filter name. 
Filter with a filtname that is a reserved word. 
Filter with a syntax error. 
Filter with actions referring to non-existent system resources such as interfaces. 
Exporting Message Filters
export filename [seqnum|filtname|range]
Output a formatted version of the existing filter set to a file in the configuration directory of the FTP/SCP 
root directory on the appliance. See 
 for more 
information.
When exporting message filters, you are prompted to select the encoding used.
The following conditions can cause errors:
No filter with a given filter name.