User Guide

9-87
AsyncOS 9.1.2 for Cisco Email Security Appliances User Guide
Chapter 9 Using Message Filters to Enforce Email Policies
Using the CLI to Manage Message Filters
Using the CLI to Manage Message Filters
You can use the CLI to add, delete, activate and de-activate, import and export, and set logging options
for message filters. The table below shows a summary of the commands and subcommands. The table
below shows a summary of the commands and subcommands.
Note You must issue the commit command for filters to take effect.
Three types of parameters are:
Table 9-9 Message Filters Subcommands
Syntax Description
filters
The main command. This command is interactive; it asks you for more information
(for example,
new, delete, import).
new
Creates a new filter. If no location is given, it is appended to the current sequence.
Otherwise, the filter will be inserted into the specific place in the sequence. For more
information, see Creating a New Message Filter, page 9-88.
delete
Deletes a filter by name or by sequence number. For more information, see Deleting
a Message Filter, page 9-89.
move
Rearranges the existing filters. For more information, see Moving a Message Filter,
page 9-89.
set
Sets filter to active or inactive state. For more information, see Activating and
Deactivating a Message Filter, page 9-89.
import
Replaces the current set of filters with a new set stored in a file (in the /configuration
directory of the appliance). For more information, see Importing Message Filters,
page 9-93.
export
Exports the current set of filters to a file (in the /configuration directory of the
appliance). For more information, see Exporting Message Filters, page 9-93.
list
Lists information about a filter or filters. For more information, see Displaying a
Message Filter List, page 9-94.
detail
Prints detailed information about a specific filter, including the body of the filter rule
itself. For more information, see Displaying Message Filter Details, page 9-94.
logconfig
Enters the logconfig submenu of filters, allowing you to edit the log subscriptions
from
archive() filter actions. For more information, see Configuring Filter Log
Subscriptions, page 9-94.
Table 9-10 Filter Management Parameters
seqnum
An integer representing a filter based on its position in the list of filters. A seqnum of 2
represents the second filter in the list, for example.