Cisco Cisco Email Security Appliance C170 Riferimenti tecnici
173
Cisco AsyncOS 9.1 for Email CLI Reference Guide
Chapter 3 The Commands: Reference Examples
Networking Configuration / Network Tools
•
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
Enter the destination hosts, separated by commas, which you want mail
for example.com to be delivered.
Enter USEDNS by itself to use normal DNS resolution for this route.
Enter /dev/null by itself if you wish to discard the mail.
Enclose in square brackets to force resolution via address (A)
records, ignoring any MX records.
[]> relay1.example.com/pri=10, relay2.example.com, backup-relay.example.com
Mapping for example.com to relay1.example.com, relay2.example.com,
backup-relay.example.com/pri=10 created.
There are currently 1 routes configured.
Choose the operation you want to perform:
- NEW - Create a new route.
- EDIT - Edit destinations of an existing route.
- DELETE - Remove a route.
- PRINT - Display all routes.
- IMPORT - Import new routes from a file.
- EXPORT - Export all routes to a file.
- CLEAR - Remove all routes.
[]>
smtproutes print
smtproutes import <filenames>
smtproutes export <filenames>