Cisco Cisco Email Security Appliance C170 Referências técnicas

Página de 324
 
3-177
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
 
Chapter 3      The Commands: Reference Examples
  Networking Configuration / Network Tools
Batch Format
The batch format of the 
smtproutes
 command can be used to perform all the fuctions of the traditional 
CLI command.
Creating a new SMTP route
Deleting an existing SMTP route
Clear a listing of SMTP routes
Print a listing of SMTP routes
Import a listing of SMTP routes
Export a listing of SMTP routes
Example
In the following example, the 
smptroutes
 command is used to construct a route (mapping) for the 
domain 
example.com
 to 
relay1.example.com
relay2.example.com
, and 
backup-relay.example.com
Use 
/pri=#
 to specify a destination priority.  THE # should be from 0-65535, with larger numbers 
indicating decreasing priority. If unspecified, the priority defaults to 0.
(Note that you may have constructed the same mapping during the 
systemsetup
 command when you 
configured the InboundMail public listener.) 
mail3.example.com> smtproutes
There are no routes configured.
Choose the operation you want to perform:
- NEW - Create a new route.
- IMPORT - Import new routes from a file.
[]> new
Enter the domain for which you want to set up a permanent route.
Partial hostnames such as ".example.com" are allowed.
Use "ALL" for the default route.
[]> example.com
smtproutes new <source> <destination> [destination] [destination] [...]
smtproutes delete <source>
smtproutes clear
smtproutes print
smtproutes import <filenames>
smtproutes export <filenames>