Transcript
CLI Reference Guide for AsyncOS 9.6 for
Cisco Email Security Appliances
July 6, 2015
Cisco Systems, Inc.
www.cisco.com
Cisco has more than 200 offices worldwide.
Addresses, phone numbers, and fax numbers
are listed on the Cisco website at
www.cisco.com/go/offices.
THE SPECIFICATIONS AND INFORMATION REGARDING THE PRODUCTS IN THIS MANUAL ARE SUBJECT TO CHANGE WITHOUT NOTICE. ALL
STATEMENTS, INFORMATION, AND RECOMMENDATIONS IN THIS MANUAL ARE BELIEVED TO BE ACCURATE BUT ARE PRESENTED WITHOUT
WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. USERS MUST TAKE FULL RESPONSIBILITY FOR THEIR APPLICATION OF ANY PRODUCTS.
THE SOFTWARE LICENSE AND LIMITED WARRANTY FOR THE ACCOMPANYING PRODUCT ARE SET FORTH IN THE INFORMATION PACKET THAT
SHIPPED WITH THE PRODUCT AND ARE INCORPORATED HEREIN BY THIS REFERENCE. IF YOU ARE UNABLE TO LOCATE THE SOFTWARE LICENSE OR
LIMITED WARRANTY, CONTACT YOUR CISCO REPRESENTATIVE FOR A COPY.
The Cisco implementation of TCP header compression is an adaptation of a program developed by the University of California, Berkeley (UCB) as part of UCB’s public
domain version of the UNIX operating system. All rights reserved. Copyright © 1981, Regents of the University of California.
NOTWITHSTANDING ANY OTHER WARRANTY HEREIN, ALL DOCUMENT FILES AND SOFTWARE OF THESE SUPPLIERS ARE PROVIDED “AS IS” WITH
ALL FAULTS. CISCO AND THE ABOVE-NAMED SUPPLIERS DISCLAIM ALL WARRANTIES, EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION,
THOSE OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OR ARISING FROM A COURSE OF DEALING, USAGE,
OR TRADE PRACTICE.
IN NO EVENT SHALL CISCO OR ITS SUPPLIERS BE LIABLE FOR ANY INDIRECT, SPECIAL, CONSEQUENTIAL, OR INCIDENTAL DAMAGES, INCLUDING,
WITHOUT LIMITATION, LOST PROFITS OR LOSS OR DAMAGE TO DATA ARISING OUT OF THE USE OR INABILITY TO USE THIS MANUAL, EVEN IF CISCO
OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries. To view a list of Cisco trademarks, go to this
URL: www.cisco.com/go/trademarks. Third-party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership
relationship between Cisco and any other company. (1110R)
Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display
output, network topology diagrams, and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in
illustrative content is unintentional and coincidental.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
© 2015 Cisco Systems, Inc. All rights reserved.
CONTENTS
Preface
1
Before you Read this Book
Typographic Conventions
1
2
Additional Resources 2
Documentation 2
Knowledge Base 2
Cisco Support Community 3
Customer Support 3
Registering for a Cisco Account 3
Cisco Welcomes Your Comments 3
CHAPTER
1
CLI Quick Reference Guide
1-1
CLI Commands (No Commit Required)
CLI Commands (Commit Required)
CHAPTER
2
Command Line Interface: The Basics
1-2
1-5
2-1
Accessing the Command Line Interface (CLI) 2-1
Command Line Interface Conventions 2-2
General Purpose CLI Commands 2-5
Batch Commands 2-6
Batch Command Example
CHAPTER
3
2-6
The Commands: Reference Examples
How to Read the Listing 3-2
Advanced Malware Protection
ampconfig 3-2
3-1
3-2
Anti-Spam 3-6
antispamconfig 3-6
antispamstatus 3-8
antispamupdate 3-8
incomingrelayconfig 3-9
slblconfig 3-12
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
1
Contents
Graymail Detection and Safe Unsubscribing
graymailconfig 3-13
graymailstatus 3-14
graymailupdate 3-15
Anti-Virus 3-15
antivirusconfig 3-15
antivirusstatus 3-17
antivirusupdate 3-18
Command Line Management 3-18
commit 3-18
commitdetail 3-19
clearchanges or clear 3-19
help or h or ? 3-20
rollbackconfig 3-20
quit or q or exit 3-21
Configuration File Management
loadconfig 3-22
mailconfig 3-23
resetconfig 3-24
saveconfig 3-25
showconfig 3-25
3-21
Cluster Management 3-26
clusterconfig 3-26
Data Loss Prevention 3-28
dlprollback 3-28
dlpstatus 3-29
dlpupdate 3-29
emconfig 3-30
emdiagnostic 3-32
S/MIME Security Services
smimeconfig 3-32
Domain Keys 3-35
domainkeysconfig
3-32
3-35
DMARC Verification 3-47
dmarcconfig 3-47
DNS 3-52
dig 3-52
dnsconfig 3-53
dnsflush 3-58
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
2
3-13
Contents
dnshostprefs 3-58
dnslistconfig 3-59
dnslisttest 3-60
dnsstatus 3-60
General Management/Administration/Troubleshooting
addressconfig 3-62
adminaccessconfig 3-64
certconfig 3-69
date 3-74
diagnostic 3-74
diskquotaconfig 3-78
ecconfig 3-80
ecstatus 3-81
ecupdate 3-81
encryptionconfig 3-81
encryptionstatus 3-85
encryptionupdate 3-85
featurekey 3-86
featurekeyconfig 3-87
generalconfig 3-87
healthcheck 3-88
healthconfig 3-89
ntpconfig 3-90
reboot 3-91
repengstatus 3-92
resume 3-92
resumedel 3-93
resumelistener 3-93
revert 3-94
settime 3-95
settz 3-95
shutdown 3-96
sshconfig 3-97
status 3-99
supportrequest 3-100
supportrequeststatus 3-102
supportrequestupdate 3-103
suspend 3-103
suspenddel 3-104
suspendlistener 3-104
3-61
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3
Contents
tcpservices 3-105
techsupport 3-106
tlsverify 3-107
trace 3-108
trackingconfig 3-110
tzupdate 3-110
updateconfig 3-111
updatenow 3-116
version 3-116
wipedata 3-117
upgrade 3-118
LDAP 3-118
ldapconfig 3-119
ldapflush 3-123
ldaptest 3-124
sievechar 3-125
Mail Delivery Configuration/Monitoring
addresslistconfig 3-126
aliasconfig 3-128
archivemessage 3-130
altsrchost 3-131
bounceconfig 3-133
bouncerecipients 3-136
bvconfig 3-138
deleterecipients 3-139
deliveryconfig 3-140
delivernow 3-141
destconfig 3-142
hostrate 3-149
hoststatus 3-150
imageanalysisconfig 3-151
oldmessage 3-153
rate 3-153
redirectrecipients 3-154
resetcounters 3-155
removemessage 3-155
showmessage 3-156
showrecipients 3-156
status 3-158
tophosts 3-159
3-126
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
4
Contents
topin 3-160
unsubscribe 3-160
workqueue 3-162
Networking Configuration / Network Tools
etherconfig 3-163
interfaceconfig 3-165
nslookup 3-167
netstat 3-168
packetcapture 3-169
ping 3-171
ping6 3-172
routeconfig 3-172
setgateway 3-175
sethostname 3-176
smtproutes 3-176
sslconfig 3-178
sslv3config 3-180
telnet 3-181
traceroute 3-181
traceroute6 3-182
3-162
Outbreak Filters 3-184
outbreakconfig 3-184
outbreakflush 3-185
outbreakstatus 3-186
outbreakupdate 3-186
Policy Enforcement 3-187
dictionaryconfig 3-187
exceptionconfig 3-191
filters 3-192
policyconfig 3-194
quarantineconfig 3-217
scanconfig 3-218
stripheaders 3-220
textconfig 3-221
Logging and Alerts 3-224
alertconfig 3-225
displayalerts 3-226
findevent 3-227
grep 3-229
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
5
Contents
logconfig 3-230
rollovernow 3-238
snmpconfig 3-238
tail 3-240
Reporting 3-241
reportingconfig
3-242
Senderbase 3-245
sbstatus 3-245
senderbaseconfig
3-246
SMTP Services Configuration 3-246
callaheadconfig 3-246
listenerconfig 3-248
Example - Configuring SPF and SIDF
localeconfig 3-276
smtpauthconfig 3-277
3-268
System Setup 3-278
systemsetup 3-278
URL Filtering 3-283
aggregatorconfig 3-283
urllistconfig 3-283
webcacheflush 3-285
websecurityadvancedconfig 3-285
websecurityconfig 3-286
websecuritydiagnostics 3-287
User Management 3-288
userconfig 3-288
password or passwd 3-290
last 3-291
who 3-292
whoami 3-292
Virtual Appliance Management
loadlicense 3-293
showlicense 3-294
3-293
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
6
Preface
The instructions in this book are designed for an experienced system administrator with knowledge of
networking and email administration.
Before you Read this Book
Note
If you have already cabled your appliance to your network, ensure that the default IP address for the
appliance does not conflict with other IP addresses on your network. The IP address assigned to the
Management port by the factory is 192.168.42.42. See the “Setup and Installation” chapter in the user
guide for your release for more information about assigning IP addresses to the appliance.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
I
Preface
Typographic Conventions
Typeface or
Symbol
Meaning
Examples
Please choose an IP interface for this Listener.
AaBbCc123
The names of commands, files, and
directories; on-screen computer
output.
What you type, when contrasted with
on-screen computer output.
mail3.example.com> commit
Please enter some comments describing your changes:
[]> Changed the system hostname
Book titles, new words or terms, words
to be emphasized. Command line
variable; replace with a real name or
value.
Read the QuickStart Guide.
AaBbCc123
AaBbCc123
The sethostname command sets the name of the appliance.
The appliance must be able to uniquely select an interface to
send an outgoing packet.
Before you begin, please reset your password to a
new value.
Old password: ironport
New password: your_new_password
Retype new password: your_new_password
Additional Resources
Documentation
Documentation for your Email Security appliance is available from:
http://www.cisco.com/en/US/products/ps10154/tsd_products_support_series_home.html
Knowledge Base
To access the Knowledge Base for information about Cisco Content Security products, visit:
http://www.cisco.com/web/ironport/knowledgebase.html
Note
You need a Cisco.com User ID to access the site. If you do not have a Cisco.com User ID, see Registering
for a Cisco Account, page 3.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
II
Preface
Cisco Support Community
Cisco Support Community is an online forum for Cisco customers, partners, and employees. It provides
a place to discuss general content security issues, as well as technical information about specific Cisco
products. You can post topics to the forum to ask questions and share information with other users.
Access the Cisco Support Community for Email Security appliances at:
https://supportforums.cisco.com/community/netpro/security/email
Customer Support
Use the following methods to obtain support:
U.S.: Call 1 (408) 526-7209 or Toll-free 1 (800) 553-2447
International: http://www.cisco.com/en/US/support/tsd_cisco_worldwide_contacts.html
Support Site: http://www.cisco.com/en/US/products/ps11169/serv_group_home.html
If you purchased support through a reseller or another supplier, please contact that supplier directly with
your product support issues.
Registering for a Cisco Account
Access to many resources on Cisco.com requires a Cisco account.
If you do not have a Cisco.com User ID, you can register for one here:
https://tools.cisco.com/RPF/register/register.do
Cisco Welcomes Your Comments
The Technical Publications team is interested in improving the product documentation. Your comments
and suggestions are always welcome. You can send comments to the following email address:
[email protected]
Please include the title of this book and the publication date from the title page in the subject line of your
message.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
III
Preface
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
IV
CH A P T E R
1
CLI Quick Reference Guide
Use the tables to locate the appropriate CLI command, a brief description and its availability on the C-,
X, and M-series platforms.
•
CLI Commands (No Commit Required), page 1-2
•
CLI Commands (Commit Required), page 1-5
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
1-1
Chapter 1
CLI Quick Reference Guide
CLI Commands (No Commit Required)
CLI Commands (No Commit Required)
CLI Command
Description
Platform Availability
antispamstatus
Display Anti-Spam status
C- and X- Series
antispamupdate
Manually update spam definitions
C- and X- Series
antivirusstatus
Display anti-virus status
C- and X- Series
antivirusupdate
Manually update virus definitions
C- and X- Series
archivemessage
Archives older messages in your queue.
C- and X- Series
bouncerecipients
Bounce messages from the queue
C-, X-, and M-Series
clearchanges or clear
Clear changes
C-, X-, and M-Series
commit
Commit changes
C-, X-, and M-Series
commitdetail
Display detailed information about the last commit
C- and X- Series
date
Display the current date and time
C-, X-, and M- Series
deleterecipients
Delete messages from the queue
C-, X-, and M-Series
delivernow
Reschedule messages for immediate delivery
C-, X-, and M-Series
diagnostic
Check RAID disks, network caches, and SMTP connections. Clear C-, X-, and M-Series
network caches.
dig
Look up a record on a DNS server
C- and X- Series
displayalerts
Display the last n alerts sent by the appliance
C-, X-, and M-Series
dlprollback
Rollback RSA DLP Engine
C- and X- Series
dlpstatus
Version information for RSA DLP Engine
C- and X- Series
dlpupdate
Update RSA DLP Engine
C- and X- Series
dnsflush
Clear all entries from the DNS cache
C-, X-, and M-Series
dnslisttest
Test a DNS lookup for a DNS-based list service
C- and X- Series
dnsstatus
Display DNS statistics
C-, X-, and M-Series
ecstatus
Check the version of the enrollment client that is used to obtain
certificates
C-Series
ecupdate
Update the enrollment client that is used to obtain certificates
C-Series
emdiagnostic
Diagnostic tool for RSA EM on ESA.
C-, X-, and M- Series
encryptionstatus
Shows the version of the PXE Engine and Domain Mappings file
C- and X-Series
encryptionupdate
Requests an update to the PXE Engine
C- and X-Series
featurekey
Administer system feature keys
C-, X-, and M-Series
findevent
Find events in mail log files
C-, X-, and M-Series
graymailstatus
Display the details of existing graymail rules
C- and X-Series
graymailupdate
Manually update graymail rules
C- and X-Series
grep
Search for text in a log file
C-, X-, and M-Series
healthcheck
Checks the health of your Email Security appliance
C- and X-Series
help or h or ?
Help
C-, X-, and M-Series
hostrate
Monitor activity for a particular host
C-, X-, and M-Series
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
1-2
Chapter 1
CLI Quick Reference Guide
CLI Commands (No Commit Required)
hoststatus
Get the status of the given hostname
C-, X-, and M-Series
last
Display who has recently logged into the system
C-, X-, and M-Series
ldapflush
Flush any cached LDAP results
C- and X- Series
ldaptest
Perform a single LDAP query test
C- and X- Series
loadlicense
Load a virtual appliance license
All virtual appliances
mailconfig
Mail the current configuration to an email address
C-, X-, and M-Series
nslookup
Query a name server
C-, X-, and M-Series
netstat
Display network connections, routing tables, and network
interface statistics.
C-, X-, and M-Series
outbreakflush
Clear the cached Outbreak Rules
C- and X- Series
outbreakstatus
Display current Outbreak Rules
C- and X- Series
outbreakupdate
Update Outbreak Filters rules
C- and X- Series
oldmessage
displays a list of old messages in the queue.
C- and X- Series
packetcapture
Intercept and display packets being transmitted or received over
the network
C-, X-, and M-Series
password or passwd
Change your password
C-, X-, and M-Series
ping
Ping a network host
C-, X-, and M-Series
ping6
Ping a network host using IPV6
C-, X-, and M-Series
quit or q or exit
Quit
C-, X-, and M-Series
rate
Monitor message throughput
C-, X-, and M-Series
reboot
Restart the system
C-, X-, and M-Series
redirectrecipients
Redirect all messages to another relay host
C- and X- Series
removemessage
Removes old, undelivered messages from your queue.
C- and X- Series
repengstatus
Request version information of Reputation Engine
C-, X-, and M-Series
resetconfig
Restore the factory configuration defaults
C-, X-, and M-Series
resetcounters
Reset all of the counters in the system
C-, X-, and M-Series
resume
Resume receiving and deliveries
C-, X-, and M-Series
resumedel
Resume deliveries
C-, X-, and M-Series
resumelistener
Resume receiving
C-, X-, and M-Series
revert
Revert to a previous release
C-, X-, and M-Series
rollovernow
Roll over a log file
C-, X-, and M-Series
saveconfig
Saves the configuration to disk
C-, X-, and M-Series
sbstatus
Display status of SenderBase queries
C- and X- Series
settime
Manually set the system clock
C-, X-, and M-Series
showmessage
Displays old undelivered messages in your queue.
C- and X- Series
showconfig
Display all configuration values
C-, X-, and M-Series
showlicense
Display virtual appliance license information
All virtual appliances
showrecipients
Show messages from the queue by recipient host, Envelope From
address, or all messages
C- and X- Series
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
1-3
Chapter 1
CLI Quick Reference Guide
CLI Commands (No Commit Required)
shutdown
Shut down the system to power off
C-, X-, and M-Series
slblconfig
Configure Safelist/Blocklist settings
C- and X-Series
status
System status
C-, X-, and M-Series
supportrequest
Send a message to Cisco TAC
C-, X-, and M-Series
supportrequeststatus
Display Support Request Keywords version information
C-, X-, and M-Series
supportrequestupdate
Request manual update for Support Request Keywords
C-, X-, and M-Series
suspend
Suspend receiving and deliveries
C-, X-, and M-Series
suspenddel
Suspend deliveries
C-, X-, and M-Series
suspendlistener
Suspend receiving
C-, X-, and M-Series
systemsetup
First time system setup
C- and X- Series
tail
Continuously display the end of a log file
C-, X-, and M-Series
techsupport
Allow Cisco TAC to access your system
C-, X-, and M-Series
telnet
Connect to a remote host
C-, X-, and M-Series
tlsverify
Establish an outbound TLS connection to a remote host and debug C- and X- Series
any TLS connection issues
tophosts
Display the top hosts by queue size
C-, X-, and M-Series
topin
Display the top hosts by number of incoming connections
C-, X-, and M-Series
trace
Trace the flow of a message through the system
C-, X-, and M-Series
traceroute
Display the network route to a remote host
C-, X-, and M-Series
traceroute6
Display the network route to a remote host using IPV6.
C-, X-, and M- Series
tzupdate
Update timezone rules
C-, X-, and M-Series
updatenow
Update all components
C-, X-, and M-Series
upgrade
Install an upgrade
C-, X-, and M-Series
version
View system version information
C-, X-, and M-Series
wipedata
Wipe the core files on the disk and check the status of the last
coredump operation
C-, X-, and M-Series
webcacheflush
Flush the cache used by the URL filtering feature
C-, X-, and M- Series
websecuritydiagnostics
View diagnostic statistics for URL filtering
C-, X-, and M- Series
who
List who is logged in
C-, X-, and M-Series
whoami
Display your current user id
C-, X-, and M-Series
workqueue
Display and/or alter work queue pause status
C- and X- Series
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
1-4
Chapter 1
CLI Quick Reference Guide
CLI Commands (Commit Required)
CLI Commands (Commit Required)
CLI Command
Description
Platform Availability
addressconfig
Configure From: addresses for system generated mail
C-, X-, and M- Series
addresslistconfig
Configure address lists
C- and X- Series
adminaccessconfig
Configure network access list and banner login
C- and X- Series
aggregatorconfig
Configure address of the Cisco Aggregator Server
C- and X- Series
alertconfig
Configure email alerts
C-, X-, and M- Series
aliasconfig
Configure email aliases
C- and X- Series
altsrchost
Configure Virtual Gateway™ mappings
C- and X- Series
ampconfig
Configure Advanced Malware Protection (File reputation and
analysis)
C-, X-, and M- Series
antispamconfig
Configure Anti-Spam policy
C- and X- Series
antivirusconfig
Configure anti-virus policy
C- and X- Series
bounceconfig
Configure the behavior of bounces
C-, X-, and M- Series
bvconfig
Configure key settings for outgoing mail, and configure how to
handle invalid bounces.
C- and X- Series
callaheadconfig
Add, edit, and remove SMTP Call-Ahead profiles
C-, X-, and M- Series
certconfig
Configure security certificates and keys
C-, X-, and M- Series
clusterconfig
Configure cluster related settings
C- and X- Series
deliveryconfig
Configure mail delivery
C- and X- Series
destconfig
Configure options for the Destination Controls Table.
C- and X- Series
dictionaryconfig
Configure content dictionaries
C-, X-, and M- Series
diskquotaconfig
Configure disk space
C-, X-, and M- Series
dmarcconfig
Configure DMARC settings
C- and X- Series
dnsconfig
Configure DNS setup
C- and X- Series
dnshostprefs
Configure IPv4/IPv6 DNS preferences
C-, X-, and M- Series
dnslistconfig
Configure DNS List services support
C- and X- Series
domainkeysconfig
Configure DomainKeys support
C- and X- Series
ecconfig
Configure the enrollment client that is used to obtain certificates
C-, X-, and M- Series
emconfig
Configure the RSA Enterprise Manager interoperability settings
C- and X- Series
encryptionconfig
Configure email encryption
C- and X- Series
etherconfig
Configure Ethernet settings
C-, X-, and M- Series
exceptionconfig
Configure domain exception table
C- and X- Series
featurekeyconfig
Automatically check and update feature keys
C-, X-, and M-Series
filters
Configure message processing options
C- and X- Series
generalconfig
Configure browser settings and other general settings
C-, X-, and M- Series
graymailconfig
Configure graymail detection and safe unsubscribe global settings C- and X- Series
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
1-5
Chapter 1
CLI Quick Reference Guide
CLI Commands (Commit Required)
healthconfig
Configure the threshold of various health parameters of your
appliance
C-, X-, and M- Series
imageanalysisconfig
Configure the IronPort Image Analysis settings
C-, X-, and M- Series
incomingrelayconfig
Configure Incoming Relays
C- and X- Series
interfaceconfig
Configure Ethernet IP addresses
C-, X-, and M- Series
ldapconfig
Configure LDAP servers
C- and X- Series
listenerconfig
Configure mail listeners
C- and X- Series
loadconfig
Load a configuration file
C-, X-, and M- Series
localeconfig
Configure multi-lingual settings
C- and X- Series
logconfig
Configure access to log files
C-, X-, and M- Series
ntpconfig
Configure NTP time server
C-, X-, and M- Series
outbreakconfig
Configure Outbreak Filters
C- and X- Series
policyconfig
Configure per recipient or sender based policies
C- and X- Series
quarantineconfig
Configure system quarantines
C- and X- Series
reportingconfig
Configure reporting settings
C-, X-, and M- Series
rollbackconfig
Rollback to one of the previously committed configurations
C-, X-, and M- Series
routeconfig
Configure IP routing table
C-, X-, and M- Series
scanconfig
Configure attachment scanning policy
C- and X- Series
senderbaseconfig
Configure SenderBase connection settings
C- and X- Series
setgateway
Set the default gateway (router)
C-, X-, and M- Series
sethostname
Set the name of the machine
C-, X-, and M- Series
settz
Set the local time zone
C-, X-, and M- Series
sievechar
Configure characters for Sieve Email Filtering, as described in
RFC 3598
C- and X- Series
smimeconfig
Configure S/MIME functionality
C-, X-, and M- Series
smtpauthconfig
Configure SMTP Auto profiles
C- and X- Series
smtproutes
Set up permanent domain redirections
C-, X-, and M- Series
snmpconfig
Configure SNMP
C-, X-, and M- Series
sshconfig
Configure SSH keys
C-, X-, and M- Series
sslconfig
Configure SSL settings
C-, X-, and M- Series
sslv3config
Enable/Disable SSLv3
C-, X-, and M- Series
stripheaders
Set message headers to remove
C- and X- Series
tcpservices
Display information about files opened by processes
C-, X-, and M- Series
textconfig
Configure text resources
C- and X- Series
trackingconfig
Configure the tracking system
C-, X-, and M- Series
unsubscribe
Update the global unsubscribe list
C-, X-, and M- Series
updateconfig
Configure system update parameters
C- and X- Series
LDAP
Configure system upgrade parameters (deprecated command)
urllistconfig
Configure whitelists of safe URLs.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
1-6
C-, X-, and M- Series
Chapter 1
CLI Quick Reference Guide
CLI Commands (Commit Required)
userconfig
Manage user accounts and connections to external authentication C-, X-, and M- Series
sources.
websecurityadvancedconfig
Configure advanced settings for URL filtering
C-, X-, and M- Series
websecurityconfig
Configure global settings for URL filtering
C-, X-, and M- Series
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
1-7
Chapter 1
CLI Commands (Commit Required)
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
1-8
CLI Quick Reference Guide
CH A P T E R
2
Command Line Interface: The Basics
This chapter contains the following sections:
•
Accessing the Command Line Interface (CLI), page 2-1
•
Batch Commands, page 2-6
Accessing the Command Line Interface (CLI)
The Command Line Interface is accessible via SSH or Telnet on IP interfaces that have been configured
with these services enabled, or via terminal emulation software on the serial port. By factory default,
SSH and Telnet are configured on the Management port. Use the interfaceconfig command to disable
these services.
Access to the CLI varies depending on the management connection method chosen while setting up the
appliance. The factory default username and password are listed next. Initially, only the admin user
account has access to the CLI. You can add other users with differing levels of permission after you have
accessed the command line interface for the first time via the admin account. The system setup wizard
asks you to change the password for the admin account. The password for the admin account can also
be reset directly at any time using the password command.
To connect via Ethernet: Start an SSH or Telnet session with the factory default IP address
192.168.42.42. SSH is configured to use port 22. Telnet is configured to use port 23. Enter the username
and password below.
To connect via a Serial connection: Start a terminal session with the communication port on your
personal computer that the serial cable is connected to. See the “Setup and Installation” chapter for more
information. Enter the username and password below.
Log in to the appliance by entering the username and password below.
Factory Default Username and Password
•
Username: admin
•
Password: ironport
For example:
login: admin
password: ironport
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
2-1
Chapter 2
Command Line Interface: The Basics
Accessing the Command Line Interface (CLI)
Command Line Interface Conventions
This section describes the rules and conventions of the AsyncOS CLI.
Command Prompt
The top-level command prompt consists of the fully qualified hostname, followed by the greater than (>)
symbol, followed by a space. For example:
mail3.example.com>
If the appliance has been configured as part of a cluster with the Centralized Management feature, the
prompt in the CLI changes to indicate the current mode. For example:
(Cluster Americas) >
or
(Machine los_angeles.example.com) >
See “Centralized Management” in the user guide for more information.
When running commands, the CLI requires input from you. When the CLI is expecting input from you,
the command prompt shows the default input enclosed in square brackets ([]) followed by the greater
than (>) symbol. When there is no default input, the command prompt brackets are empty.
For example:
Please create a fully-qualified hostname for this Gateway
(Ex: "mail3.example.com"):
[]> mail3.example.com
When there is a default setting, the setting is displayed within the command prompt brackets. For
example:
Ethernet interface:
1. Data 1
2. Data 2
3. Management
[1]> 1
When a default setting is shown, typing Return is equivalent to typing the default:
Ethernet interface:
1. Data 1
2. Data 2
3. Management
[1]> (type Return)
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
2-2
Chapter 2
Command Line Interface: The Basics
Accessing the Command Line Interface (CLI)
Command Syntax
When operating in the interactive mode, the CLI command syntax consists of single commands with no
white spaces and no arguments or parameters. For example:
mail3.example.com> systemsetup
Select Lists
When you are presented with multiple choices for input, some commands use numbered lists. Enter the
number of the selection at the prompt.
For example:
Log level:
1. Error
2. Warning
3. Information
4. Debug
5. Trace
[3]> 3
Yes/No Queries
When given a yes or no option, the question is posed with a default in brackets. You may answer Y, N,
Yes, or No. Case is not significant.
For example:
Do you want to enable FTP on this interface?
[Y]> n
Subcommands
Some commands give you the opportunity to use subcommands. Subcommands include directives such
as NEW, EDIT, and DELETE. For the EDIT and DELETE functions, these commands provide a list of the
records previously configured in the system.
For example:
mail3.example.com> interfaceconfig
Currently configured interfaces:
1. Management (192.168.42.42/24: mail3.example.com)
Choose the operation you want to perform:
- NEW - Create a new interface.
- EDIT - Modify an interface.
- GROUPS - Define interface groups.
- DELETE - Remove an interface.
[]>
Within subcommands, typing Enter or Return at an empty prompt returns you to the main command.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
2-3
Chapter 2
Command Line Interface: The Basics
Accessing the Command Line Interface (CLI)
Escape
You can use the Control-C keyboard shortcut at any time within a subcommand to immediately exit
return to the top level of the CLI.
History
The CLI keeps a history of all commands you type during a session. Use the Up and Down arrow keys
on your keyboard, or the Control-P and Control-N key combinations, to scroll through a running list of
the recently-used commands.
mail3.example.com> (type the Up arrow key)
mail3.example.com> interfaceconfig (type the Up arrow key)
mail3.example.com> topin (type the Down arrow key)
Command Completion
The command-line interface supports command completion. You can type the first few letters of some
commands followed by the Tab key, and the CLI completes the string for unique commands. If the letters
you entered are not unique among commands, the CLI “narrows” the set. For example:
mail3.example.com> set (type the Tab key)
setgateway, sethostname, settime, settz
mail3.example.com> seth (typing the Tab again completes the entry with
sethostname)
For both the history and file completion features of the CLI, you must type Enter or Return to invoke the
command.
Configuration Changes
You can make configuration changes while email operations proceed normally.
Configuration changes will not take effect until you complete the following steps:
Step 1
Issue the commit command at the command prompt.
Step 2
Give the commit command the input required.
Step 3
Receive confirmation of the commit procedure at the CLI.
Changes to configuration that have not been committed will be recorded but not put into effect until the
commit command is run.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
2-4
Chapter 2
Command Line Interface: The Basics
Accessing the Command Line Interface (CLI)
Note
Not all commands require the commit command to be run. See Chapter 1, “CLI Quick Reference Guide”
for a summary of commands that require commit to be run before their changes take effect.
Exiting the CLI session, system shutdown, reboot, failure, or issuing the clear command clears changes
that have not yet been committed.
General Purpose CLI Commands
This section describes the commands used to commit or clear changes, to get help, and to quit the
command-line interface.
Committing Configuration Changes
The commit command is critical to saving configuration changes to the appliance. Many configuration
changes are not effective until you enter the commit command. (A few commands do not require you to
use the commit command for changes to take effect. The commit command applies configuration changes
made since the last commit command or the last clear command was issued. You may include comments
up to 255 characters. Changes are not verified as committed until you receive confirmation along with a
timestamp.
Entering comments after the commit command is optional.
mail3.example.com> commit
Please enter some comments describing your changes:
[]> Changed "psinet" IP Interface to a different IP address
Do you want to save the current configuration for rollback? [Y]> n
Changes committed: Fri May 23 11:42:12 2014 GMT
Note
To successfully commit changes, you must be at the top-level command prompt. Type Return at an empty
prompt to move up one level in the command line hierarchy.
Clearing Configuration Changes
The clear command clears any configuration changes made since the last commit or clear command
was issued.
mail3.example.com> clear
Are you sure you want to clear all changes since the last commit?
[Y]> y
Changes cleared: Mon Jan 01 12:00:01 2003
mail3.example.com>
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
2-5
Chapter 2
Command Line Interface: The Basics
Batch Commands
Quitting the Command Line Interface Session
The quit command logs you out of the CLI application. Configuration changes that have not been
committed are cleared. The quit command has no effect on email operations. Logout is logged into the
log files. (Typing exit is the same as typing quit.)
mail3.example.com> quit
Configuration changes entered but not committed. Exiting will lose
changes.
Type 'commit' at the command prompt to commit changes.
Are you sure you wish to exit? [N]> Y
Seeking Help on the Command Line Interface
The help command lists all available CLI commands and gives a brief description of each command.
The help command can be invoked by typing either help or a single question mark (?) at the command
prompt.
mail3.example.com> help
Batch Commands
AsyncOS includes support for batch command formats that allow you to execute certain CLI commands
using a new, single-line CLI format. This format reduces the number of inputs required to complete tasks
and provides a mechanism allowing you to easily automate common configuration tasks. Batch
commands also allow you to issue commands remotely using an SSH client. This enables you to easily
script CLI commands and execute them on multiple appliances at one time.
Not all commands have a batch equivalent, but all batch commands can be executed as non-batch
commands.
Batch command syntax is dependent on the specific command being used. Please see the appropriate CLI
example in Chapter 3, “The Commands: Reference Examples” for more information about syntax
specific to that command.
Batch Command Example
In the following example, the sendergroup REDLIST is created. It is then associated with the policy
THROTTLED, and then the sender ‘possible_spammer.com’ is added to the sender group.
To execute this action using the CLI:
example.com> listenerconfig
Currently configured listeners:
1. IncomingMail (on Management, 192.168.42.42/24) SMTP TCP Port 25 Public
2. OutgoingMail (on Data 2, 192.168.40.42/24) SMTP TCP Port 25 Private
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
2-6
Chapter 2
Command Line Interface: The Basics
Batch Commands
Choose the operation you want to perform:
- NEW - Create a new listener.
- EDIT - Modify a listener.
- DELETE - Remove a listener.
- SETUP - Change global settings.
[]> edit
Enter the name or number of the listener you wish to edit.
[]> IncomingMail
Choose the operation you want to perform:
- NAME - Change the name of the listener.
- INTERFACE - Change the interface.
- LIMITS - Change the injection limits.
- SETUP - Configure general options.
- HOSTACCESS - Modify the Host Access Table.
- RCPTACCESS - Modify the Recipient Access Table.
- BOUNCECONFIG - Choose the bounce profile to use for messages injected
on this listener.
- MASQUERADE - Configure the Domain Masquerading Table.
- DOMAINMAP - Configure domain mappings.
[]> HOSTACCESS
There are currently 4 policies defined.
There are currently 5 sender groups.
Choose the operation you want to perform:
- NEW - Create a new entry.
- EDIT - Modify an entry.
- DELETE - Remove an entry.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
2-7
Chapter 2
Command Line Interface: The Basics
Batch Commands
- MOVE - Move an entry.
- DEFAULT - Set the defaults.
- PRINT - Display the table.
- IMPORT - Import a table from a file.
- EXPORT - Export the table to a file.
- CLEAR - Remove all entries.
[]> NEW
1. New Sender Group
2. New Policy
[1]> 1
Enter a name for this sender group. (optional)
[]> REDLIST
Enter the hosts to add. CIDR addresses such as 10.1.1.0/24 are allowed.
IP address ranges such as 10.1.1.10-20 are allowed. IP subnets such as
10.2.3. are allowed.
Hostnames such as crm.example.com are allowed.
Partial hostnames such as .example.com are allowed.
Ranges of SenderBase Reputation scores such as SBRS[7.5:10.0] are
allowed.
SenderBase Network Owner IDs such as SBO:12345 are allowed.
Remote blacklist queries such as dnslist[query.blacklist.example] are
allowed.
Separate multiple hosts with commas
[]> possible_spammer.com
Select a behavior for this entry.
1. Accept
2. Relay
3. Reject
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
2-8
Chapter 2
Command Line Interface: The Basics
Batch Commands
4. TCP Refuse
5. Continue
6. Policy: ACCEPTED
7. Policy: BLOCKED
8. Policy: THROTTLED
9. Policy: TRUSTED
[1]> 8
Enter a comment for this sender group.
[]>
There are currently 4 policies defined.
There are currently 6 sender groups.
To perform the same action using a CLI batch command:
example.com> listenerconfig edit IncomingMail hostaccess new sendergroup
REDLIST possible_spammer.com Policy: “THROTTLED”
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
2-9
Chapter 2
Batch Commands
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
2-10
Command Line Interface: The Basics
CH A P T E R
3
The Commands: Reference Examples
This chapter contains the following sections:
•
Advanced Malware Protection, page 3-2
•
Anti-Spam, page 3-6
•
Graymail Detection and Safe Unsubscribing, page 3-13
•
Anti-Virus, page 3-15
•
Command Line Management, page 3-18
•
Configuration File Management, page 3-21
•
Cluster Management, page 3-26
•
Data Loss Prevention, page 3-28
•
S/MIME Security Services, page 3-32
•
Domain Keys, page 3-35
•
DMARC Verification, page 3-47
•
DNS, page 3-52
•
General Management/Administration/Troubleshooting, page 3-61
•
LDAP, page 3-118
•
Mail Delivery Configuration/Monitoring, page 3-126
•
Networking Configuration / Network Tools, page 3-162
•
Outbreak Filters, page 3-184
•
Policy Enforcement, page 3-187
•
Logging and Alerts, page 3-224
•
Reporting, page 3-241
•
Senderbase, page 3-245
•
SMTP Services Configuration, page 3-246
•
System Setup, page 3-278
•
URL Filtering, page 3-283
•
User Management, page 3-288
•
Virtual Appliance Management, page 3-293
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-1
Chapter 3
The Commands: Reference Examples
Advanced Malware Protection
How to Read the Listing
For each command, there is a description and at least one example of the command being used. The
Usage section specifies the following command attributes:
Step 1
Does the command require a commit command to be implemented on the appliance?
Step 2
Is the command restricted to a particular mode (cluster, group, or machine).?
Step 3
Does the command permit a batch format?
For more information about Centralized Management, see User Guide for AsyncOS for Cisco Email
Security Appliances.
For more information about batch formats, please see “Command Line Interface: The Basics” on page 1.
Advanced Malware Protection
ampconfig
Configure file reputation filtering and file analysis. Do not modify advanced options without guidance
from Cisco TAC.
Usage
Commit: This command requires a ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command supports a batch format. For details, see the inline help by typing the
command: help ampconfig.
Examples
•
Enabling File Reputation and File Analysis, page 3-2
•
Configure Email Security appliance to Use Public Cloud File Analysis Server, page 3-3
•
(Public Cloud File Analysis Services Only) Configuring Appliance Groups, page 3-4
•
Configure Email Security appliance to Use an On-Premises File Analysis Server, page 3-5
•
Clearing Local File Reputation Cache, page 3-6
Enabling File Reputation and File Analysis
mail.example.com> ampconfig
File Reputation: Disabled
Choose the operation you want to perform:
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-2
Chapter 3
The Commands: Reference Examples
Advanced Malware Protection
- SETUP - Configure Advanced-Malware protection service.
[]> setup
File Reputation: Disabled
Would you like to use File Reputation? [Y]>
Would you like to use File Analysis? [Y]>
File types supported for File Analysis:
1. Microsoft Executables
Do you want to modify the file types selected for File Analysis? [N]>
Specify AMP processing timeout (in seconds)
[120]>
Advanced-Malware protection is now enabled on the system.
Please note: you must issue the 'policyconfig' command (CLI) or Mail
Policies (GUI) to configure advanced malware scanning behavior for
default and custom Incoming Mail Policies.
This is recommended for your DEFAULT policy.
File Reputation: Enabled
File Analysis: Enabled
File types selected for File Analysis:
1. Microsoft Executables
Choose the operation you want to perform:
- SETUP - Configure Advanced-Malware protection service.
- ADVANCED - Set values for AMP parameters (Advanced configuration).
- CLEARCACHE - Clears the local File Reputation cache.
[]>
Configure Email Security appliance to Use Public Cloud File Analysis Server
mail.example.com> ampconfig
File Reputation: Enabled
File Analysis: Enabled
File types selected for File Analysis:
Microsoft Windows / DOS Executable
Appliance Group ID/Name: Not part of any group yet
Choose the operation you want to perform:
- SETUP - Configure Advanced-Malware protection service.
- ADVANCED - Set values for AMP parameters (Advanced configuration).
- CLEARCACHE - Clears the local File Reputation cache.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-3
Chapter 3
The Commands: Reference Examples
Advanced Malware Protection
[]> advanced
Enter cloud query timeout?
[15]>
Enter cloud domain?
[cloud-domain.com]>
Enter reputation cloud server pool?
[cloud-server-pool.com]>
Do you want use the recommended reputation threshold from cloud service? [Y]>
Choose a file analysis server:
1. AMERICAS (https://americas-fa.com)
2. Private Cloud
[1]>
...
(Public Cloud File Analysis Services Only) Configuring Appliance Groups
In order to allow all content security appliances in your organization to view file analysis result details
in the cloud for files sent for analysis from any appliance in your organization, you need to join all
appliances to the same appliance group.
For more information, see the “File Reputation Filtering and File Analysis” chapter in the user guide.
mail.example.com> ampconfig
File Reputation: Enabled
File Analysis: Enabled
File types selected for File Analysis:
Microsoft Windows / DOS Executable
Appliance Group ID/Name: Not part of any group yet
Choose the operation you want to perform:
- SETUP - Configure Advanced-Malware protection service.
- ADVANCED - Set values for AMP parameters (Advanced configuration).
- SETGROUP - Add this appliance to the group of appliances that can share File Analysis
reporting details.
- CLEARCACHE - Clears the local File Reputation cache.
[]> setgroup
Does your organization have multiple Cisco Email, Web, and/or Content Security Management
appliances? [N]> Y
Do you want this appliance to display detailed analysis reports for files uploaded to the
cloud from other appliances in your organization, and vice-versa? [Y]>
Enter an Analysis Group name. This name is case-sensitive and must be configured
identically on each appliance in the Analysis Group.
[]> FA_Reporting
Registration is successful with the group name. This does not require commit
File Reputation: Enabled
File Analysis: Enabled
File types selected for File Analysis:
Microsoft Windows / DOS Executable
Appliance Group ID/Name: FA_Reporting
Choose the operation you want to perform:
- SETUP - Configure Advanced-Malware protection service.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-4
Chapter 3
The Commands: Reference Examples
Advanced Malware Protection
- ADVANCED - Set values for AMP parameters (Advanced configuration).
- VIEWGROUP - view the group members details.
- CLEARCACHE - Clears the local File Reputation cache.
[]>
Note
After you configure an appliance group, you cannot use the setgroup subcommand. If you want to need
to modify the group for any reason, you must open a case with Cisco TAC.
You can view the details of the appliance group using the viewgroup subcommand.
Configure Email Security appliance to Use an On-Premises File Analysis Server
mail.example.com> ampconfig
File Reputation: Enabled
File Analysis: Enabled
File types selected for File Analysis:
Microsoft Windows / DOS Executable
Choose the operation you want to perform:
- SETUP - Configure Advanced-Malware protection service.
- ADVANCED - Set values for AMP parameters (Advanced configuration).
- CLEARCACHE - Clears the local File Reputation cache.
[]> advanced
Enter cloud query timeout?
[15]>
Enter cloud domain?
[a.immunet.com]>
Enter reputation cloud server pool?
[cloud-sa.amp.sourcefire.com]>
Do you want use the recommended reputation threshold from cloud service? [Y]>
Choose a file analysis server:
1. AMERICAS (https://panacea.threatgrid.com)
2. Private Cloud
[1]> 2
Enter file analysis server url?
[]> https://mycloud.example.com
Certificate Authority:
1. Use Cisco Trusted Root Certificate List
2. Paste certificate to CLI
[1]>
Enter heartbeat interval?
[15]>
Do you want to enable SSL communication (port 443) for file reputation? [N]>
File Reputation: Enabled
File Analysis: Enabled
File types selected for File Analysis:
Microsoft Windows / DOS Executable
Choose the operation you want to perform:
- SETUP - Configure Advanced-Malware protection service.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-5
Chapter 3
The Commands: Reference Examples
Anti-Spam
- ADVANCED - Set values for AMP parameters (Advanced configuration).
- CLEARCACHE - Clears the local File Reputation cache.
[]>
Clearing Local File Reputation Cache
mail.example.com> ampconfig
File Reputation: Enabled
File Analysis: Enabled
File types selected for File Analysis:
Microsoft Windows / DOS Executable
Choose the operation you want to perform:
- SETUP - Configure Advanced-Malware protection service.
- ADVANCED - Set values for AMP parameters (Advanced configuration).
- CLEARCACHE - Clears the local File Reputation cache.
[]> clearcache
Do you want to clear File Reputation Cache? [N]> y
Cache cleared successfully.
File Reputation: Enabled
File Analysis: Enabled
File types selected for File Analysis:
Microsoft Windows / DOS Executable
Choose the operation you want to perform:
- SETUP - Configure Advanced-Malware protection service.
- ADVANCED - Set values for AMP parameters (Advanced configuration).
- CLEARCACHE - Clears the local File Reputation cache.
[]>
Anti-Spam
This section contains the following commands:
•
antispamconfig
•
antispamstatus
•
antispamupdate
•
incomingrelayconfig
antispamconfig
Description
Configure anti-spam policy.
Usage
Commit: This command requires a ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-6
Chapter 3
The Commands: Reference Examples
Anti-Spam
Batch Command: This command does not support a batch format.
Example
The following examples demonstrates the configuration for Anti-Spam functionality.
mail3.example.com> antispamconfig
Choose the operation you want to perform:
- IRONPORT - Configure IronPort Anti-Spam.
- CLOUDMARK - Configure Cloudmark Service Provider Edition.
- MULTISCAN - Configure IronPort Intelligent Multi-Scan.
[]> ironport
IronPort Anti-Spam scanning: Disabled
Choose the operation you want to perform:
- SETUP - Edit IronPort Anti-Spam settings.
[]> setup
IronPort Anti-Spam scanning: Disabled
Would you like to use IronPort Anti-Spam scanning? [Y]> y
The IronPort Anti-Spam License Agreement is displayed (if you have not already accepted
it).
Do you accept the above IronPort Anti-Spam license agreement? []> Y
Increasing the following size settings may result in decreased performance. Please consult
documentation for size recommendations based on your environment.
Never scan message larger than: (Add a trailing K for kilobytes, M for megabytes, or no
letters for bytes.)
[1M]>
Always scan message smaller than: (Add a trailing K for kilobytes, M for megabytes, or no
letters for bytes.)
[512K]>
Please specify the IronPort Anti-Spam scanning timeout (in seconds)
[60]>
Would you like to enable regional scanning? [N]>
IronPort Anti-Spam scanning is now enabled on the system. Please note: you must issue the
'policyconfig' command (CLI) or Mail Policies (GUI) to configure
Cisco IronPort scanning behavior for default and custom Incoming and Outgoing Mail
Policies. This is recommended for your DEFAULT policy.
IronPort Anti-Spam scanning: Enabled
Choose the operation you want to perform:
- SETUP - Edit IronPort Anti-Spam settings.
[]>
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-7
Chapter 3
The Commands: Reference Examples
Anti-Spam
antispamstatus
Description
Display anti-spam status.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command does not support a batch format.
Example
mail3.example.com> antispamstatus
Choose the operation you want to perform:
- IRONPORT - Display IronPort Anti-Spam version and rule information.
- CLOUDMARK - Display Cloudmark Service Provider Edition version and rule information.
- MULTISCAN - Display Intelligent Multi-Scan version and rule information.
[]> ironport
Component
CASE Core Files
CASE Utilities
Structural Rules
Web Reputation DB
Web Reputation Rules
Content Rules
Content Rules Update
Last
Never
Never
Never
Never
Never
Never
Never
Update
Version
updated
3.4.0-013
updated
3.4.0-013
updated 3.3.1-009-20141210_214201
updated
20141211_111021
updated 20141211_111021-20141211_170330
updated
unavailable
updated
unavailable
Last download attempt made on: Never
antispamupdate
Description
Manually request an immediate update of Anti-Spam rules and related CASE components. This also
includes the Anti-Spam rules and CASE components used by Intelligent Multi-Scan (IMS), but not for
the third-party anti-spam engines used by IMS.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to machine mode. It is further restricted to the login
host (i.e., the specific machine you are logged onto).
Batch Command: This command does not support a batch format.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-8
Chapter 3
The Commands: Reference Examples
Anti-Spam
Example
mail3.example.com> antispamupdate
Choose the operation you want to perform:
- MULTISCAN - Request updates for Intelligent Multi-Scan
- IRONPORT - Request updates for IronPort Anti-Spam
- CLOUDMARK - Request updates for Cloudmark Anti-Spam
[]> ironport
Requesting check for new CASE definitions
incomingrelayconfig
Description
Use the incomingrelayconfig command to enable and configure the Incoming Relays feature. In the
following examples, the Incoming Relays feature is first enabled, and then two relays are added, one is
modified, and one is deleted.
Usage
Commit: This command requires a ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command does not support a batch format.
Example: Enabling Incoming RelaysConfiguring an Incoming Relay
mail3.example.com> incomingrelayconfig
Incoming relays: Disabled
Choose the operation you want to perform:
- SETUP - Edit update configuration.
- RELAYLIST - Configure incoming relays.
[]> setup
This command helps your Cisco IronPort appliance determine the sender's
originating IP address.
You should ONLY enable this command if your Cisco IronPort appliance is NOT
directly connected to the Internet as the "first hop" in your email
infrastructure.
You should configure this feature if other MTAs or servers are configured at
your network's perimeter to relay mail to your Cisco IronPort appliance.
Do you want to enable and define incoming relays? [N]> y
Incoming relays: Enabled
Choose the operation you want to perform:
- SETUP - Edit update configuration.
- RELAYLIST - Configure incoming relays.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-9
Chapter 3
The Commands: Reference Examples
Anti-Spam
[]> relaylist
There are no relays defined.
Choose the operation you want to perform:
- NEW - Create a new entry
[]> new
Enter a name for this incoming relay (Ex: "first-hop")
[]> first-hop
Enter the IP address of the incoming relay.
IPv4 and IPv6 addresses are supported.
For IPv4, CIDR format subnets such as 10.1.1.0/24, IP address ranges such as 10.1.1.10-20,
and subnets such as 10.2.3. are allowed.
For IPv6, CIDR format subnets such as 2001:db8::/32 and IP address ranges such as
2001:db8::1-2001:db8::11 are allowed.
Hostnames such as crm.example.com and partial hostnames such as .example.com are allowed.
[]> 192.168.1.1
Do you want to use the "Received:" header or a custom header to determine the originating
IP address?
1. Use "Received:" header
2. Use a custom header
[1]> 1
Within the "Received:" header, enter the special character or string after which to begin
parsing for the originating IP address:
[from]> [
Within the headers, enter the position of the "Received:" header that contains the
originating IP address:
[1]> 1
There is 1 relay defined.
Choose the operation you want to perform:
- NEW - Create a new entry
- EDIT - Modify an entry
- DELETE - Remove an entry
- PRINT - Display the table
[]> print
Incoming
relay name:
----------first-hop
IP address:
----------192.168.1.1
Header
to parse:
--------Received
Match
after:
-----[
Hops:
----1
There is 1 relay defined.
Choose the operation you want to perform:
- NEW - Create a new entry
- EDIT - Modify an entry
- DELETE - Remove an entry
- PRINT - Display the table
[]> new
Enter a name for this incoming relay (Ex: "first-hop")
[]> second-hop
Enter the IP address of the incoming relay.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-10
IPv4 and IPv6 addresses are supported.
Chapter 3
The Commands: Reference Examples
Anti-Spam
For IPv4, CIDR format subnets such as 10.1.1.0/24, IP address ranges such as 10.1.1.10-20,
and subnets such as 10.2.3. are allowed.
For IPv6, CIDR format subnets such as 2001:db8::/32 and IP address ranges such as
2001:db8::1-2001:db8::11 are allowed.
Hostnames such as crm.example.com and partial hostnames such as .example.com are allowed.
[]> 192.168.1.2
Do you want to use the "Received:" header or a custom header to determine the originating
IP address?
1. Use "Received:" header
2. Use a custom header
[1]> 2
Enter the custom header name that contains the originating IP address:
[]> x-Connecting-IP
There are 2 relays defined.
Choose the operation you want to perform:
- NEW - Create a new entry
- EDIT - Modify an entry
- DELETE - Remove an entry
- PRINT - Display the table
[]> print
Incoming
relay name:
----------first-hop
second-hop
Header
to parse:
--------Received
x-Connecting-IP
IP address:
----------192.168.1.1
192.168.1.2
Match
after:
-----[
n/a
Hops:
----1
n/a
There are 2 relays defined.
Choose the operation you want to perform:
- NEW - Create a new entry
- EDIT - Modify an entry
- DELETE - Remove an entry
- PRINT - Display the table
[]> delete
1. first-hop:
192.168.1.1
2. second-hop:
192.168.1.2
Enter the number of the entry you wish to delete:
[1]> 1
Incoming relay "first-hop" deleted.
There is 1 relay defined.
Choose the operation you want to perform:
- NEW - Create a new entry
- EDIT - Modify an entry
- DELETE - Remove an entry
- PRINT - Display the table
[]>
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-11
Chapter 3
The Commands: Reference Examples
Anti-Spam
slblconfig
Description
Configure End-User Safelist/Blocklist.
Note
Safelists/Blocklists must be enabled on the appliance via the GUI in order to run this command.
Usage
Commit: This command does not require a ‘commit’.
Batch Command: This command supports a batch format.
Batch Format - Import
Batch Format
Replaces all entries in the End-User Safelist/Blocklist with entries present in the specified file.
slblconfig import
•
filename - Name of the file that has to be imported. The file must be in the /configuration
directory on the appliance.
•
ignore invalid entries
- Whether to ignore invalid entries or not. Either 'Yes' or 'No.'
Batch Format - Export
Exports all entries in the End-User Safelist/Blocklist to a file the appliance.
slblconfig export
The appliance saves a .CSV file to the /configuration directory using the following naming
convention:
slbl.csv.
Example - Importing Safelist/Blocklist Entries
mail.example.com> slblconfig
End-User Safelist/Blocklist: Enabled
Choose the operation you want to perform:
- IMPORT - Replace all entries in the End-User Safelist/Blocklist.
- EXPORT - Export all entries from the End-User Safelist/Blocklist.
[]> import
Currently available End-User Safelist/Blocklist files:
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-12
Chapter 3
The Commands: Reference Examples
Graymail Detection and Safe Unsubscribing
1. slbl.csv
Choose the file to import from.
[1]> 1
Do you want to ignore invalid entries? [Y]> Y
End-User Safelist/Blocklist import has been initiated...
Please wait while this operation executes.
End-User Safelist/Blocklist successfully imported.
Choose the operation you want to perform:
- IMPORT - Replace all entries in the End-User Safelist/Blocklist.
- EXPORT - Export all entries from the End-User Safelist/Blocklist.
[]>
Graymail Detection and Safe Unsubscribing
Task
Command
Configure graymail detection and safe
unsubscribing global settings
graymailconfig
Configuring the incoming mail policy for graymail policyconfig
detection and safe unsubscribing
Display the details of the existing graymail rules
graymailstatus
Manually request update of the graymail rules
graymailupdate
graymailconfig
Description
Configure graymail detection and safe unsubscribing global settings.
Note
To enable graymail detection and safe unsubscribing, anti-spam scanning must be enabled
globally.This can be either the IronPort Anti-Spam or the Intelligent Multi-Scan feature.
To configure policy settings for graymail detection and safe unsubscribing, use the policyconfig
command. For more information, see Create an Incoming Policy to Drop the Messages Identified as Bulk
Email or Social Network Email, page 3-215.
Usage
Commit: This command requires a ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command supports a batch format. For details, see the inline help by typing the
command: help graymailconfig.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-13
Chapter 3
The Commands: Reference Examples
Graymail Detection and Safe Unsubscribing
Example
Graymail Detection: Disabled
Choose the operation you want to perform:
- SETUP - Configure Graymail.
[]> setup
Would you like to use Graymail Detection? [Y]>
Increasing the following size settings may result in decreased performance.
Please consult documentation for size recommendations based on your
environment.
Maximum Message Size to Scan (Add a trailing K for kilobytes, M for megabytes,
or no letters for bytes.):
[1M]>
Timeout for Scanning Single Message(in seconds):
[60]>
Graymail Safe Unsubscribe: Disabled
Would you like to use Graymail Safe Unsubscribe? [Y]>
Graymail Detection and Safe Unsubscribe is now enabled. Please note: The global
settings are recommended only for your DEFAULT mail policy. To configure policy
settings, use the incoming or outgoing policy page on web interface or the
'policyconfig' command in CLI.
graymailstatus
Description
Display the details of the existing graymail rules.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command does not support a batch format
Example
mail.example.com> graymailstatus
Component
Graymail Library
Graymail Tools
Version
01.378.53#15
1.0
Last Updated
Never updated
Never updated
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-14
Chapter 3
The Commands: Reference Examples
Anti-Virus
graymailupdate
Description
Manually request update of the graymail rules.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command does not support a batch format
Example
mail.example.com> graymailupdate
Requesting check for new Graymail updates.
Anti-Virus
This section contains the following CLI commands:
•
antivirusconfig
•
antivirusstatus
•
antivirusupdate
antivirusconfig
Description
Configure anti-virus policy.
Usage
Commit: This command requires a ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command does not support a batch format.
Example
In the following example, the antivirusconfig command is used to enable Sophos virus scanning on
the system and set the time-out value to 60 seconds. To configure the update server, update interval, and
optional proxy server, see “updateconfig” on page 111.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-15
Chapter 3
The Commands: Reference Examples
Anti-Virus
Note
The first time you invoke the antivirusconfig command, you may be presented with a license
agreement, if you did not accept the license during the systemsetup command. If you do not accept the
license agreement, the Sophos virus scanning engine will not be enabled on the appliance.
mail3.example.com> antivirusconfig
Choose the operation you want to perform:
- SOPHOS - Configure Sophos Anti-Virus.
- MCAFEE - Configure McAfee Anti-Virus.
[]> sophos
Sophos Anti-Virus: Disabled
Choose the operation you want to perform:
- SETUP - Configure Sophos Anti-Virus.
[]> setup
Sophos Anti-Virus scanning: Disabled
Would you like to use Sophos Anti-Virus scanning? [Y]> y
(First time users see the license agreement displayed here.)
Please specify the Anti-Virus scanning timeout (in seconds)
[60]> 60
Sophos Anti-Virus scanning is now enabled on the system.
Please note: you must issue the 'policyconfig' command (CLI) or Mail
Policies (GUI) to configure Sophos Anti-Virus scanning behavior for default and custom
Incoming and Outgoing Mail Policies.
This is recommended for your DEFAULT policy.
Sophos Anti-Virus: Enabled
Choose the operation you want to perform:
- SETUP - Configure Sophos Anti-Virus.
[]>
Viewing Anti-Virus IDE Details
AsyncOS provides detailed status on the specific anti-virus signature files (IDE files) that have been
downloaded by the appliance. You can access these details using the antivirusconfig -> detail
subcommand. For example:
mail3.example.com> antivirusconfig
Choose the operation you want to perform:
- SOPHOS - Configure Sophos Anti-Virus.
- MCAFEE - Configure McAfee Anti-Virus.
[]> sophos
Sophos Anti-Virus: Enabled
Choose the operation you want to perform:
- SETUP - Configure Sophos Anti-Virus.
- STATUS - View Sophos Anti-Virus status.
- DETAIL - View Sophos Anti-Virus detail.
[]> detail
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-16
Chapter 3
The Commands: Reference Examples
Anti-Virus
Sophos Anti-Virus:
Product - 3.87
Engine - 2.25.0
Product Date - 01 Nov 2004
Sophos IDEs currently on the system:
'Mkar-E.Ide'
'Rbot-Sd.Ide'
'Santy-A.Ide'
'Bacbanan.Ide'
'Rbot-Sb.Ide'
'Rbotry.Ide'
'Sdbot-Si.Ide'
'Oddbob-A.Ide'
'Rbot-Rw.Ide'
'Wortd.Ide'
'Delf-Jb.Ide'
[...command continues...]
Virus
Virus
Virus
Virus
Virus
Virus
Virus
Virus
Virus
Virus
Virus
Sig.
Sig.
Sig.
Sig.
Sig.
Sig.
Sig.
Sig.
Sig.
Sig.
Sig.
-
23
22
22
21
21
21
20
19
19
18
17
Dec
Dec
Dec
Dec
Dec
Dec
Dec
Dec
Dec
Dec
Dec
2004
2004
2004
2004
2004
2004
2004
2004
2004
2004
2004
01:24:02
19:10:06
06:16:32
18:33:58
14:50:46
06:13:40
20:52:04
23:34:06
00:50:34
07:02:44
22:32:08
antivirusstatus
Description
Display Anti-Virus status.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command does not support a batch format.
Example
mail3.example.com> antivirusstatus
Choose the operation you want to perform:
- MCAFEE - Display McAfee Anti-Virus version information
- SOPHOS - Display Sophos Anti-Virus version information
[]> sophos
SAV Engine Version
3.85
IDE Serial
2004101801
Engine Update
Mon Sep 27 14:21:25 2004
Last IDE Update
Mon Oct 18 02:56:48 2004
Last Update Attempt
Mon Oct 18 11:11:44 2004
Last Update Success
Mon Oct 18 02:56:47 2004
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-17
Chapter 3
The Commands: Reference Examples
Command Line Management
antivirusupdate
Description
Manually update virus definitions.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to machine mode. It is further restricted to the login
host (i.e., the specific machine you are logged onto).
Batch Command: This command does not support a batch format.
Example
mail3.example.com> antivirusupdate
Choose the operation you want to perform:
- MCAFEE - Request updates for McAfee Anti-Virus
- SOPHOS - Request updates for Sophos Anti-Virus
[]> sophos
Requesting update of virus definitions
mail3.example.com>
Command Line Management
This section contains the following CLI commands:
•
commit
•
commitdetail
•
clearchanges or clear
•
help or h or ?
•
rollbackconfig
•
quit or q or exit
commit
Description
Commit changes. Entering comments after the commit command is optional.
Usage
Commit: N/A
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-18
Chapter 3
The Commands: Reference Examples
Command Line Management
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command does not support a batch format.
Example
mail3.example.com> commit
Please enter some comments describing your changes:
[]> Changed "psinet" IP Interface to a different IP ad dress
Do you want to save the current configuration for rollback? [Y]> n
Changes committed: Fri May 23 11:42:12 2014 GMT
commitdetail
Description
Display detailed information about the last commit.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command does not support a batch format.
Example
mail3.example.com> commitdetail
Commit at Mon Apr 18 13:46:28 2005 PDT with comments: "Enabled loopback".
mail3.example.com>
clearchanges or clear
Description
The clear command clears any configuration changes made since the last commit or clear command
was issued.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command does not support a batch format
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-19
Chapter 3
The Commands: Reference Examples
Command Line Management
Example
mail3.example.com> clear
Are you sure you want to clear all changes since the last commit?
[Y]> y
Changes cleared: Mon Jan 01 12:00:01 2003
mail3.example.com>
help or h or ?
Description
The help command lists all available CLI commands and gives a brief description of each command.
The help command can be invoked by typing either help or a single question mark (?) at the command
prompt.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command does not support a batch format
Example
mail3.example.com> help
Displays the list of all available commands.
rollbackconfig
The rollbackconfig command allows you to rollback to one of the previously committed 10
configurations.
Usage
Commit: This command requires a ‘commit’.
Cluster Management: This command is restricted to machine mode.
Batch Command: This command does not support a batch format.
Example
mail.example.com> rollbackconfig
Previous Commits:
Committed On
User
Description
--------------------------------------------------------------------------------1. Fri May 23 06:53:43 2014
admin
new user
2. Fri May 23 06:50:57 2014
admin
rollback
3. Fri May 23 05:47:26 2014
admin
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-20
Chapter 3
The Commands: Reference Examples
Configuration File Management
4. Fri May 23 05:45:51 2014
admin
edit user
Enter the number of the config to revert to.
[]> 2
Are you sure you want to roll back the configuration? [N]> y
Reverted to Fri May 23 06:50:57 2014
admin
Do you want to commit this configuration now? [N]> y
rollback
Committed the changes successfully
quit or q or exit
Description
The quit command logs you out of the CLI application. Configuration changes that have not been
committed are cleared. The quit command has no effect on email operations. Logout is logged into the
log files. (Typing exit is the same as typing quit.)
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command does not support a batch format
Example
mail3.example.com> quit
Configuration changes entered but not committed. Exiting will lose changes.
Type 'commit' at the command prompt to commit changes.
Are you sure you wish to exit? [N]> Y
Configuration File Management
This section contains the following CLI commands:
•
loadconfig
•
mailconfig
•
resetconfig
•
saveconfig
•
showconfig
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-21
Chapter 3
The Commands: Reference Examples
Configuration File Management
loadconfig
Description
Load a configuration file.
Note
Loading configuration on clustered machines is supported only using GUI. For instructions, see User
Guide for AsyncOS for Cisco Email Security Appliances.
Usage
Commit: This command requires a ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command does not support a batch format
Example
In this example, a new configuration file is imported from a local location.
mail3.example.com> loadconfig
1. Paste via CLI
2. Load from file
[1]> 2
Enter the name of the file to import:
[]> changed.config.xml
Values have been loaded.
Be sure to run "commit" to make these settings active.
mail3.example.com> commit
Please enter some comments describing your changes:
[]> loaded new configuration file
Do you want to save the current configuration for rollback? [Y]> n
Changes committed: Fri May 23 11:42:12 2014 GMT
In this example, a new configuration file is pasted directly at the command line. (Remember to type
Control-D on a blank line to end the paste command.) Then, the system setup wizard is used to change
the default hostname, IP address, and default gateway information. Finally, the changes are committed.
mail3.example.com> loadconfig
1. Paste via CLI
2. Load from file
[1]> 1
Paste the configuration file now.
Press CTRL-D on a blank line when done.
[The configuration file is pasted until the end tag . Control-D is entered on a
separate line.]
Values have been loaded.
Be sure to run "commit" to make these settings active.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-22
Chapter 3
The Commands: Reference Examples
Configuration File Management
mail3.example.com> systemsetup
[The system setup wizard is run.]
mail3.example.com> commit
Please enter some comments describing your changes:
[]> pasted new configuration file and changed default settings via
systemsetup
Do you want to save the current configuration for rollback? [Y]> n
Changes committed: Fri May 23 11:42:12 2014 GMT
mailconfig
Description
To test the configuration, you can use the mailconfig command immediately to send a test email
containing the system configuration data you just created with the systemsetup command.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command does not support a batch format
Example
mail.example.com> mailconfig
Please enter the email address to which you want to send the configuration file.
Separate multiple addresses with commas.
[]> [email protected]
Choose the password option:
1. Mask passwords (Files with masked passwords cannot be loaded using loadconfig command)
2. Encrypt passwords
3. Plain passwords
[1]> 2
The configuration file has been sent to [email protected].
Send the configuration to a mailbox to which you have access to confirm that the system is able to send
email on your network.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-23
Chapter 3
The Commands: Reference Examples
Configuration File Management
resetconfig
Description
When physically transferring the appliance, you may want to start with factory defaults. The
resetconfig command resets all configuration values to factory defaults. This command is extremely
destructive, and it should only be used when you are transferring the unit or as a last resort to solving
configuration issues. It is recommended you run the systemsetup command after reconnecting to the
CLI after you have run the resetconfig command.
Note
The resetconfig command only works when the appliance is in the offline state. When the resetconfig
command completes, the appliance is automatically returned to the online state, even before you run the
systemsetup command again. If mail delivery was suspended before you issued the resetconfig
command, the mail will attempt to be delivered again when the resetconfig command completes.
Warning
The resetconfig command will return all network settings to factory defaults, potentially
disconnecting you from the CLI, disabling services that you used to connect to the appliance (FTP,
Telnet, SSH, HTTP, HTTPS), and even removing additional user accounts you created with the
userconfig command. Do not use this command if you are not able to reconnect to the CLI using the
Serial interface or the default settings on the Management port through the default Admin user
account.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to machine mode. It is further restricted to the login
host (i.e., the specific machine you are logged onto). This command requires access to the local file
system.
Batch Command: This command does not support a batch format.
Example
mail3.example.com> suspend
Delay (seconds, minimum 30):
[30]> 45
Waiting for listeners to exit...
Receiving suspended.
Waiting for outgoing deliveries to finish...
Mail delivery suspended.
mail3.example.com> resetconfig
Are you sure you want to reset all configuration values? [N]> Y
All settings have been restored to the factory default.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-24
Chapter 3
The Commands: Reference Examples
Configuration File Management
saveconfig
Description
The saveconfig command saves the configuration file with a unique filename to the configuration
directory.
Note
If you are on a clustered environment, this command saves the complete cluster configuration. To run
this command on a clustered machine, change your configuration mode to cluster.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command does not support a batch format
Example
In the following example, the passwords in the configuration file is encrypted and saved in the
configuration directory.
mail.example.com> saveconfig
Choose the password option:
1. Mask passwords (Files with masked passwords cannot be loaded using loadconfig command)
2. Encrypt passwords
3. Plain passwords
[1]> 2
File written on machine "mail.example.com" to the location
"/configuration/C100V-4232116C4E14C70C4C7F-7898DA3BD955-20140319T050635.xml".
Configuration saved.
showconfig
Description
The showconfig command prints the current configuration to the screen.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command does not support a batch format
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-25
Chapter 3
The Commands: Reference Examples
Cluster Management
Example
In the following example, the configuration is displayed on CLI and the passwords in the configuration
are encrypted.
mail.example.com> showconfig
Choose the password display option:
1. Mask passwords (Files with masked passwords cannot be loaded using loadconfig command)
2. Encrypt passwords
3. Plain passwords
[1]> 2
[The remainder of the configuration file is printed to the screen.]
Cluster Management
This section contains the following CLI commands:
•
clusterconfig
clusterconfig
Description
The clusterconfig command is used to configure cluster-related settings. If this machine is not part of
a cluster, running clusterconfig will give you the option of joining a cluster or creating a new cluster.
The clusterconfig command provides additional subcommands:
Non-Cluster Commands
The following commands are available when you are not in a cluster.
•
clusterconfig new — This will create a new cluster with the given name. This machine
will be a member of this cluster and a member of a default cluster group called "Main Group".
- The name of the new cluster.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-26
Chapter 3
The Commands: Reference Examples
Cluster Management
•
clusterconfig join [--port=xx] []
—
This will add this machine to a cluster.
-
- The IP address of another machine in the cluster.
The admin password of the cluster. This should not be
specified if joining over CCS.
•
- The name of the group to join.
- The port of the remote machine to connect to (defaults to 22).
clusterconfig prepjoin print
This will display the information needed to prepare the joining of this machine to a cluster over a CCS
port.
Cluster Commands
The following commands are available when you are in a cluster.
•
clusterconfig addgroup —
Creates a new cluster group. The group starts off with
no members.
•
clusterconfig renamegroup —
Change the name of a cluster
group.
•
clusterconfig deletegroup [new_groupname] —
- Name of the cluster group to remove.
•
Remove a cluster group.
- The cluster group to put machines of the old group into.
clusterconfig setgroup —
Sets (or changes) which group a
machine is a member of.
- The name of the machine to set.
- The group to set the machine to.
Remove a machine from the cluster.
•
clusterconfig removemachine —
•
clusterconfig setname —
•
clusterconfig list —
•
clusterconfig connstatus — Display all the machines currently in the cluster and add routing
details for disconnected machines.
•
clusterconfig disconnect —
Changes the name of the cluster to the given name.
Display all the machines currently in the cluster.
This will temporarily detach a machine from the
cluster.
•
•
- The name of the machine to disconnect.
This will restore connections with machines that
were detached with the “disconnect” command.
clusterconfig reconnect -
clusterconfig prepjoin new —
This will add a new
host that is to join the cluster over the CCSport.
- The serial number of the machine being added.
- The host name of the machine being added.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-27
Chapter 3
The Commands: Reference Examples
Data Loss Prevention
- The SSH user key from the "prepjoin print" command from
the joining machine.
•
clusterconfig prepjoin delete — This will remove a host that was
previously indicated to be added from the "prepjoin new" command. This is only necessary to be
used if you later decide not to add the host. When a host is successfully added to the cluster, its
prepjoin information is automatically removed.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to cluster mode.
Batch Command: This command does not support a batch format.
Example
For an explanation of the clusterconfig command and its uses, see User Guide for AsyncOS for Cisco
Email Security Appliances.
Data Loss Prevention
This section contains the following CLI commands:
•
dlprollback
•
dlpstatus
•
dlpupdate
•
emconfig
•
emdiagnostic
dlprollback
Description
Rollback DLP engine and config to the previous version.
Note
DLP must already be configured via the DLP Global Settings page in the GUI before you can use the
dlprollback command.
Warning
This command will revert your appliance to older DLP policies. You must re-enable DLP policies in
Outbound Mail Policies so that DLP scanning can be resumed.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-28
Chapter 3
The Commands: Reference Examples
Data Loss Prevention
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is can be used at cluster, group or machine mode.
Batch Command: This command does not support a batch format.
Example
mail.example.com> dlprollback
This will revert to older DLP policies.
IMPORTANT: After rollback, you must re-enable DLP policies in Outbound Mail Policies so
that DLP scanning can be resumed successfully.
Do you wish to rollback? [N]> Y
Requesting rollback for DLP engine.
Re-enable DLP policies in Outbound Mail Policies when rollback is completed (Please check
rollback status in mail logs)
dlpstatus
Request version information for DLP Engine.
Note
DLP must already be configured via the DLP Global Settings page in the GUI before you can use the
dlpstatus command.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is can be used at cluster, group or machine mode.
Batch Command: This command does not support a batch format.
Example
mail.example.com> dlpstatus
Component
Version
Last Updated
RSA DLP Engine
3.0.2.31
Never updated
dlpupdate
Description
Update RSA DLP Engine.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-29
Chapter 3
The Commands: Reference Examples
Data Loss Prevention
Note
DLP must already be configured via the DLP Global Settings page in the GUI before you can use the
dlpupdate command.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is can be used at cluster, group or machine mode.
Batch Command: This command supports a batch format.
Batch Format
The batch format of the dlpupdate command forces an update of the DLP engine even if no changes are
detected.
dlpupdate [force]
Example
mail.example.com> dlpupdate
Checking for available updates. This may take a few seconds..
Could not check for available updates. Please check your Network and Service Updates
settings and retry.
Choose the operation you want to perform:
- SETUP - Enable or disable automatic updates for DLP Engine.
[]> setup
Automatic updates for DLP are disabled
Do you wish to enable automatic updates for DLP Engine? [N]> y
Choose the operation you want to perform:
- SETUP - Enable or disable automatic updates for DLP Engine.
[]>
emconfig
Description
Configure the interoperability settings for RSA Enterprise Manager.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-30
Chapter 3
The Commands: Reference Examples
Data Loss Prevention
Note
RSA Enterprise Manager must already be configured via the DLP Global Settings page in the GUI before
you can use the emconfig command. You cannot enable this functionality using the CLI, only edit the
existing settings.
Usage
Commit: This command requires a ‘commit’.
Cluster Management: This command is can be used at cluster, group or machine mode.
Batch Command: This command does not support a batch format.
Batch Format
To set up a connection between the Email Security appliance and RSA Enterprise Manager:
emconfig setup [options]
Table 3-1
emconfig Setup Options
Option
Description
--remote_host
Hostname or IP address of the RSA Enterprise
Manager.
--remote_port
Port to connect to on RSA Enterprise Manager.
--local_port
Port on the ESA for Enterprise Manager to connect.
--enable_ssl
Enable SSL communication to the RSA Enterprise
Manager.
Use 1 to enable, 0 to disable.
Example of Connecting to RSA Enterprise Manager
vm10esa0031.qa> emconfig
RSA Enterprise Manager connection status is: "UNKNOWN"
Choose the operation you want to perform:
- SETUP - Edit RSA Enterprise Manager interop config.
[]> setup
RSA Enterprise Manager: test.example.com:20000
Local port for EM to connect to: 20002
SSL Communication to RSA EM: disabled
Enter hostname of RSA Enterprise Manager:
[test.example.com]> em.example.com
Enter port number of RSA Enterprise Manager:
[20000]>
Enter local port for EM to connect:
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-31
Chapter 3
The Commands: Reference Examples
S/MIME Security Services
[20002]>
Enable SSL communication to EM [N]>
Advanced Settings:
RSA Enterprise Manager GUID: emlocalsite
Device Vendor name: Cisco Systems
Device Status Interval: 5 seconds
Polling Cycle Interval: 30 seconds
Connection Throttle Interval: 0 milliseconds
Max event archive size: 31457280 bytes
Max files in event archive: 50
Max file size in event archive: 10485760 MB
Max size of event.xml file: 1048576 MB
Interoperability subsystem heartbeat interval: 500 milliseconds
Heartbeat service attempts before failing: 3
Connection timeout duration: 30 seconds
Command status timeout duration: 30 seconds
Max chunk size: 1000
Msg exchange cycle: 1
Do you want to change advanced settings? [N]>
Choose the operation you want to perform:
- SETUP - Edit RSA Enterprise Manager interop config.
[]>
emdiagnostic
Description
Diagnostic tool for RSA EM on ESA.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command does not support a batch format.
S/MIME Security Services
smimeconfig
Description
Configure S/MIME settings such as sending profiles, managing public keys, and so on.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-32
Chapter 3
The Commands: Reference Examples
S/MIME Security Services
Usage
Commit: This command requires a ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command does not support a batch format.
Examples
•
Creating a Sending Profile for Signing and Encryption, page 3-33
•
Adding a Public Key for Encryption, page 3-34
Creating a Sending Profile for Signing and Encryption
The following example shows how to create a sending profile for signing and encrypting messages using
S/MIME.
mail.example.com> smimeconfig
Choose the operation you want to perform:
- GATEWAY - Manage S/MIME gateway configuration.
[]> gateway
Choose the operation you want to perform:
- VERIFICATION - Manage S/MIME Public Keys.
- SENDING - Manage S/MIME gateway sending profiles.
[]> sending
Choose the operation you want to perform:
- NEW - Create a new S/MIME sending profile.
- EDIT - Edit a S/MIME sending profile.
- RENAME - Rename a S/MIME sending profile.
- DELETE - Delete a S/MIME sending profile.
- IMPORT - Import a S/MIME sending profile from a file
- EXPORT - Export a S/MIME sending profile to a file
- PRINT - Display S/MIME sending profiles.
[]> new
Enter a name for this profile:
> hr_sign_and_encrypt
1. Encrypt
2. Sign
3. Sign/Encrypt
4. Triple
Enter S/MIME mode:
[2]> 3
1. smime_signing
Select S/MIME certificate to sign:
[1]>
1. Detached
2. Opaque
Enter S/MIME sign mode:
[1]>
1. Bounce
2. Drop
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-33
Chapter 3
The Commands: Reference Examples
S/MIME Security Services
3. Split
Enter S/MIME action:
[1]> 3
Choose the operation you want to perform:
- NEW - Create a new S/MIME sending profile.
- EDIT - Edit a S/MIME sending profile.
- RENAME - Rename a S/MIME sending profile.
- DELETE - Delete a S/MIME sending profile.
- IMPORT - Import a S/MIME sending profile from a file
- EXPORT - Export a S/MIME sending profile to a file
- PRINT - Display S/MIME sending profiles.
[]> print
S/MIME Sending Profiles
Name
Certificate
S/MIME Mode
--------- --------------- -----------hr_sign_a smime_signing
Sign/Encrypt
Sign Mode Action
--------- -------Detached
Split
Choose the operation you want to perform:
- NEW - Create a new S/MIME sending profile.
- EDIT - Edit a S/MIME sending profile.
- RENAME - Rename a S/MIME sending profile.
- DELETE - Delete a S/MIME sending profile.
- IMPORT - Import a S/MIME sending profile from a file
- EXPORT - Export a S/MIME sending profile to a file
- PRINT - Display S/MIME sending profiles.
[]>
Adding a Public Key for Encryption
The following example shows how to add the public key of the recipient's S/MIME certificate to the
appliance for encrypting messages.
mail.example.com> smimeconfig
Choose the operation you want to perform:
- GATEWAY - Manage S/MIME gateway configuration.
[]> gateway
Choose the operation you want to perform:
- VERIFICATION - Manage S/MIME Public Keys.
- SENDING - Manage S/MIME gateway sending profiles.
[]> verification
Choose the operation you want to perform:
- NEW - Create a new S/MIME Public Key.
- IMPORT - Import the list of S/MIME Public Keys from a file.
[]> new
Enter a name for this profile:
> hr_signing
1. Import
2. Paste
Choose one of the options for the certificate introducing:
[2]>
Paste public certificate in PEM format (end with '.'):
-----BEGIN CERTIFICATE----MIIDdDCCAlygAwIBAgIBDTANBgkqhkiG9w0BAQUFADCBljELMAkGA1UEBhMCSU4x
CzAJBgNVBAg...
-----END CERTIFICATE-----
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-34
Chapter 3
The Commands: Reference Examples
Domain Keys
.
C=IN,ST=KA,L=BN,O=Cisco,OU=stg,CN=cert_for_enc,[email protected]
Choose the operation you want to perform:
- NEW - Create a new S/MIME Public Key.
- EDIT - Edit a S/MIME Public Key.
- RENAME - Rename a S/MIME Public Key.
- DELETE - Delete a S/MIME Public Key.
- IMPORT - Import the list of S/MIME Public Keys from a file.
- EXPORT - Export the list of S/MIME Public Keys to a file.
- PRINT - Display S/MIME Public Keys.
[]> print
S/MIME Public Keys
Name
Emails
--------- ------------------------hr_signin [email protected]
Domains
------------------------dns.vm30bsd0008.ibqa
Remaining
--------145 days
Domain Keys
This section contains the following CLI commands:
•
domainkeysconfig
domainkeysconfig
Description
Configure DomainKeys/DKIM support.
Usage
Commit: This command requires a ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command supports a batch format.
Batch Format - Signing Profiles
The batch format of the domainkeysconfig command can be used to create, edit, or delete signing
profiles
•
Adding a DomainKeys/DKIM signing profile:
domainkeysconfig profiles signing new
[options]
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-35
Chapter 3
The Commands: Reference Examples
Domain Keys
Table 3-2
domainkeysconfig New Signing Profile Arguments
Argument
Description
Name of domain profile.
Type of domain. Can be dk or dkim.
Domain field of domain profile. This forms the d tag
of the Domain-Keys signature.
Selector field of domain profile. This forms the s tag
of the Domain-Keys signature.
Comma separated list of domain profile users. Users
are used to match against email addresses to
determine if a specific domain profile should be used
to sign an email. Use the special keyword all to
match all domain users.
[options]
--key_name
The name of the private key that will be used for
signing.
--canon
The canonicalization algorithm to use when signing
by DK. Currently supported algorithms are simple
and nofws. Default is nofws.
--body_canon
The body canonicalization algorithm of to use when
signing by DKIM. Currently supported algorithms
are simple and relaxed. Default is simple.
--header_canon
The headers canonicalization algorithm of to use
when signing by DKIM. Currently supported
algorithms are simple and relaxed. Default is
simple.
--body_length
Number of bytes of canonicalized body that are used
to calculate the signature. Is used only in DKIM
profiles. If used this value becomes l tag of the
signature. By default it is not used.
--headers_select
Detrmines how to select headers for signing. Is used
only in DKIM profiles. Can be one of all,
standard, standard_and_custom. all means to sign
all non-repetitive headers. "standard" means to sign
pedefined set of well known headers such as Subject,
From, To, Sender, MIME heades etc.
standard_and_custom means to sign well known
headers and user-defined set of headers. Default is
standard.
--custom_headers
User-defined set of headers to sign. Is used only in
DKIM profiles if headers_select is
standard_and_custom. Default is empty set.
--i_tag
Determines whether to include the i tag into the
signature. Possible values are yes or no. Default is
yes.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-36
Chapter 3
The Commands: Reference Examples
Domain Keys
Table 3-2
•
domainkeysconfig New Signing Profile Arguments
Argument
Description
--agent_identity
The identity of the user or agent on behalf of which
this message is signed. The syntax is a standard
email address where the local-part may be omitted.
Domain part of this address should be a sub-domain
of or equal to the . This option is only
applicable if --i_tag value is set to yes. Default is
an empty local-part followed by an @ and by the
.
--q_tag
Determines whether to include the q tag into the
signature. Possible values are yes or no. Default is
yes.
--t_tag
Determines whether to include the t tag into the
signature. Possible values are yes or no. Default is
yes.
--x_tag
Determines whether to include the x tag into the
signature. Possible values are yes or no. Default is
yes.
--expiration_time
Number of seconds before signature is expired. Is
used only in DKIM profiles. This value becomes a
difference of x and t tags of the signature. This
option is only applicable if --x_tag value is set to
yes. Default is 31536000 seconds (one year).
--z_tag
Determines whether to include the z tag into the
signature. Possible values are yes or no. Default is
no.
Editing a signing profile:
domainkeysconfig profiles signing edit
[signing-profile-options]
Signing profile options:
– rename
– domain
– selector
– canonicalization
– canonicalization
– key
– bodylength
– headerselect
– customheaders
– itag []
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-37
Chapter 3
The Commands: Reference Examples
Domain Keys
– qtag
– ttag
– xtag []
– ztag
– new
– delete
– print
– clear
•
Delete a signing profile:
domainkeysconfig profiles signing delete
•
Show a list of signing profiles:
domainkeysconfig profiles signing list
•
Print the details of a signing profile:
domainkeysconfig profiles signing print
•
Test a signing profile:
domainkeysconfig profiles signing test
•
Import a local copy of your signing profiles:
domainkeysconfig profiles signing import
•
Export a copy of your signing profile from the appliance:
domainkeysconfig profiles signing export
•
Delete all the signing profiles from the appliance:
domainkeysconfig profiles signing clear
Batch Format - Verification Profiles
•
Create a new DKIM verification profile:
domainkeysconfig profiles verification new
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-38
Chapter 3
The Commands: Reference Examples
Domain Keys
Table 3-3
domainkeysconfig Verification Profile Options
Argument
Description
--name
The name of DKIM verification profile.
--min_key_size
The smallest key to be accepted. Possible key-length
values (in bits) are 512, 768, 1024, 1536 and 2048.
Default is 512.
--max_key_size
The largest key to be accepted. Possible key-length
values (in bits) are 512, 768, 1024, 1536 and 2048.
Default is 2048.
--max_signatures_num
A maximum number of signatures in the message to
verify. Possible value is any positive number.
Default is 5.
--key_query_timeout
A number of seconds before the key query is timed
out. Possible value is any positive number. Default is
10.
--max_systemtime_diverge
nce
A number of seconds to tolerate wall clock
asynchronization between sender and verifier.
Possible value is any positive number. Default is 60.
--use_body_length
Whether to use a body length parameter. Possible
values are yes or no. Default is yes.
--tempfail_action
The SMTP action should be taken in case of
temporary failure. Possible values are accept or
reject. Default is accept.
--tempfail_response_code
The SMTP response code for rejected message in
case of temporary failure. Possible value is number
in 4XX format. Default is 451.
--tempfail_response_text
The SMTP response text for rejected message in
case of temporary failure. Default is #4.7.5 Unable
to verify signature - key server unavailable.
--permfail_action
The SMTP action should be taken in case of
permanent failure. Possible values are accept or
reject. Default is accept.
--permfail_response_code
The SMTP response code for rejected message in
case of permanent failure. Possible value is number
in 5XX format. Default is 550.
--permfail_response_text
The SMTP response text for rejected message in
case of permanent failure. Default is #5.7.5 DKIM
unauthenticated mail is prohibited.
•
Edit a verification profile:
domainkeysconfig profiles verification edit
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-39
Chapter 3
The Commands: Reference Examples
Domain Keys
•
Delete a verification profile:
domainkeysconfig profiles verification delete
•
Print details of an existing verification profile:
domainkeysconfig profiles verification print
•
Display a list of existing verification profiles:
domainkeysconfig profiles verification list
•
Import a file of verification profiles from a local machine:
domainkeysconfig profiles verification import
•
Export the verification profiles from the appliance:
domainkeysconfig profiles verification export
•
Delete all existing verification profiles from the appliance:
domainkeysconfig profiles verification clear
Batch Format - Signing Keys
•
Create a new signing key:
domainkeysconfig keys new
Table 3-4
domainkeysconfig Signing Keys Options
Argument
Description
--generate_key
Generate a private key. Possible key-length values
(in bits) are 512, 768, 1024, 1536, and 2048.
--use_key
Use supplied private key.
--public_key
Flag to derive and print to the screen a matching
public key for the specified private key. If
--generate_key is specified first, a new private key
is generated first, followed by the display of a
matching public key.
•
Edit a signing key:
domainkeysconfig keys edit key
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-40
Chapter 3
The Commands: Reference Examples
Domain Keys
•
Rename an existing signing key:
domainkeysconfig keys edit rename
•
To specify a public key:
domainkeysconfig keys publickey
•
Delete a key:
domainkeysconfig keys delete
•
Display a list of all signing keys:
domainkeysconfig keys list
•
Display all information about a specify signing key:
domainkeysconfig keys print
•
Import signing keys from a local machine:
domainkeysconfig keys import
•
Export signing keys from the appliance:
domainkeysconfig keys export
•
Delete all signing keys on the appliance:
domainkeysconfig keys clear
Batch Format - Search for a Key or Profile
•
Search for a profile signing key:
domainkeysconfig search
Batch Format - Global Settings
•
Modify global settings for Domain Keys/DKIM on your appliance:
domainkeysconfig setup
The option available is:
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-41
Chapter 3
The Commands: Reference Examples
Domain Keys
– --sign_generated_msgs - Specify whether to sign system-generated messages. Possible values
are yes or no.
Example: Configuring Domain Keys via the CLI
Use the domainkeysconfig command in the CLI to configure Domain Keys on your appliance.
The domainkeysconfig command has all of the features of the Mail Policies -> Domain Keys page. It
also provides the ability to generate a sample Domain Keys DNS TXT record. For more information
about generating sample Domain Keys DNS TXT records, see Creating a Sample Domain Keys DNS
TXT Record, page 3-45.
In this example, a key is generated, and a domain profile is created:
mail3.example.com> domainkeysconfig
Number of DK/DKIM Signing Profiles: 0
Number of Signing Keys: 0
Number of DKIM Verification Profiles: 1
Sign System-Generated Messages: Yes
Choose the operation you want to perform:
- PROFILES - Manage domain profiles.
- KEYS - Manage signing keys.
- SETUP - Change global settings.
- SEARCH - Search for domain profile or key.
[]> keys
No signing keys are defined.
Choose the operation you want to perform:
- NEW - Create a new signing key.
- IMPORT - Import signing keys from a file.
[]> new
Enter a name for this signing key:
[]> testkey
1. Generate a private key
2. Enter an existing key
[1]>
Enter the size (in bits) of this signing key:
1. 512
2. 768
3. 1024
4. 1536
5. 2048
[3]>
New key "testkey" created.
There are currently 1 signing keys defined.
Choose the operation you want to perform:
- NEW - Create a new signing key.
- EDIT - Modify a signing key.
- PUBLICKEY - Create a publickey from a signing key.
- DELETE - Delete a signing key.
- PRINT - Display signing keys.
- LIST - List signing keys.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-42
Chapter 3
The Commands: Reference Examples
Domain Keys
- IMPORT - Import signing keys from a file.
- EXPORT - Export signing keys to a file.
- CLEAR - Clear all signing keys.
[]>
Number of DK/DKIM Signing Profiles: 0
Number of Signing Keys: 1
Number of DKIM Verification Profiles: 1
Sign System-Generated Messages: Yes
Choose the operation you want to perform:
- PROFILES - Manage domain profiles.
- KEYS - Manage signing keys.
- SETUP - Change global settings.
- SEARCH - Search for domain profile or key.
[]> profiles
Choose the operation you want to perform:
- SIGNING - Manage signing profiles.
- VERIFICATION - Manage verification profiles.
[]> signing
No domain profiles are defined.
Choose the operation you want to perform:
- NEW - Create a new domain profile.
- IMPORT - Import domain profiles from a file.
[]> new
Enter a name for this domain profile:
[]> Example
Enter type of domain profile:
1. dk
2. dkim
[2]>
The domain field forms the basis of the public-key query. The value in
this field MUST match the domain of the sending email address or MUST
be one of the parent domains of the sending email address. This value
becomes the "d" tag of the Domain-Keys signature.
Enter the domain name of the signing domain:
[]> example.com
Selectors are arbitrary names below the "_domainkey." namespace. A
selector value and length MUST be legal in the DNS namespace and in
email headers with the additional provision that they cannot contain a
semicolon. This value becomes the "s" tag of the DomainKeys
Signature.
Enter selector:
[]> test
The private key which is to be used to sign messages must be entered.
A corresponding public key must be published in the DNS following the
form described in the DomainKeys documentation. If a key is not
immediately available, a key can be entered at a later time.
Select the key-association method:
1. Create new key
2. Paste in key
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-43
Chapter 3
The Commands: Reference Examples
Domain Keys
3. Enter key at later time
4. Select existing key
[1]> 4
Enter the name or number of a signing key.
1. testkey
[1]>
The canonicalization algorithm is the method by which the headers and
content are prepared for presentation to the signing algorithm.
Possible choices are "simple" and "relaxed".
Select canonicalization algorithm for body:
1. simple
2. relaxed
[1]> 1
How would you like to sign headers:
1. Sign all existing, non-repeatable headers (except Return-Path header).
2. Sign "well-known" headers (Date, Subject, From, To, Cc, Reply-To, Message-ID, Sender,
MIME headers).
3. Sign "well-known" headers plus a custom list of headers.
[2]>
Body length is a number of bytes of the message body to sign.
This value becomes the "l" tag of the signature.
Which body length option would you like to use?
1. Whole body implied. No further message modification is possible.
2. Whole body auto-determined. Appending content is possible.
3. Specify a body length.
[1]>
Would you like to fine-tune which tags should be used in the
DKIM Signature? (yes/no) [N]>
Finish by entering profile users. The following types of entries are
allowed:
- Email address entries such as "[email protected]".
- Domain entries such as "example.com".
- Partial domain entries such as ".example.com". For example, a partial
domain of ".example.com" will match "sales.example.com".
This
sort of entry will not match the root domain ("example.com").
- Leave blank to match all domain users.
Enter user for this signing profile:
[]> sales.example.com
Do you want to add another user? [N]>
There are currently 1 domain profiles defined.
Choose the operation you want to perform:
- NEW - Create a new domain profile.
- EDIT - Modify a domain profile.
- DELETE - Delete a domain profile.
- PRINT - Display domain profiles.
- LIST - List domain profiles.
- TEST - Test if a domain profile is ready to sign.
- DNSTXT - Generate a matching DNS TXT record.
- IMPORT - Import domain profiles from a file.
- EXPORT - Export domain profiles to a file.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-44
Chapter 3
The Commands: Reference Examples
Domain Keys
- CLEAR - Clear all domain profiles.
[]>
Choose the operation you want to perform:
- SIGNING - Manage signing profiles.
- VERIFICATION - Manage verification profiles.
[]>
Number of DK/DKIM Signing Profiles: 1
Number of Signing Keys: 1
Number of DKIM Verification Profiles: 1
Sign System-Generated Messages: Yes
Choose the operation you want to perform:
- PROFILES - Manage domain profiles.
- KEYS - Manage signing keys.
- SETUP - Change global settings.
- SEARCH - Search for domain profile or key.
[]>
Creating a Sample Domain Keys DNS TXT Record
mail3.example.com> domainkeysconfig
Number of DK/DKIM Signing Profiles: 1
Number of Signing Keys: 1
Number of DKIM Verification Profiles: 1
Sign System-Generated Messages: Yes
Choose the operation you want to perform:
- PROFILES - Manage domain profiles.
- KEYS - Manage signing keys.
- SETUP - Change global settings.
- SEARCH - Search for domain profile or key.
[]> profiles
Choose the operation you want to perform:
- SIGNING - Manage signing profiles.
- VERIFICATION - Manage verification profiles.
[]> signing
There are currently 1 domain profiles defined.
Choose the operation you want to perform:
- NEW - Create a new domain profile.
- EDIT - Modify a domain profile.
- DELETE - Delete a domain profile.
- PRINT - Display domain profiles.
- LIST - List domain profiles.
- TEST - Test if a domain profile is ready to sign.
- DNSTXT - Generate a matching DNS TXT record.
- IMPORT - Import domain profiles from a file.
- EXPORT - Export domain profiles to a file.
- CLEAR - Clear all domain profiles.
[]> dnstxt
Enter the name or number of a domain profile.
1. Example
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-45
Chapter 3
The Commands: Reference Examples
Domain Keys
[1]>
The answers to the following questions will be used to construct DKIM text
record for DNS. It can be used to publish information about this profile.
Do you wish to constrain the local part of the signing identities
("i=" tag of "DKIM-Signature" header field) associated with this
domain profile? [N]>
Do you wish to include notes that may be of interest to a human (no
interpretation is made by any program)? [N]>
The "testing mode" can be set to specify that this domain is testing DKIM and
that unverified email must not be treated differently from verified email.
Do you want to indicate the "testing mode"? [N]>
Do you wish to disable signing by subdomains of this domain? [N]>
The DKIM DNS TXT record is:
test._domainkey.example.com. IN TXT "v=DKIM1;
p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDX5dOG9J8rXreA/uPtYr5lrCTCqR+qlS5Gm1f0OplAzSuB2BvO
nxZ5Nr+se0T+k7mYDP0FSUHyWaOvO+kCcum7fFRjS3EOF9gLpbIdH5vzOCKp/w7hdjPy3q6PSgJVtqvQ6v9E8k5Ui7
C+DF6KvJUiMJSY5sbu2zmm9rKAH5m7FwIDAQAB;"
There are currently 1 domain profiles defined.
Choose the operation you want to perform:
- NEW - Create a new domain profile.
- EDIT - Modify a domain profile.
- DELETE - Delete a domain profile.
- PRINT - Display domain profiles.
- LIST - List domain profiles.
- TEST - Test if a domain profile is ready to sign.
- DNSTXT - Generate a matching DNS TXT record.
- IMPORT - Import domain profiles from a file.
- EXPORT - Export domain profiles to a file.
- CLEAR - Clear all domain profiles.
[]>
Choose the operation you want to perform:
- SIGNING - Manage signing profiles.
- VERIFICATION - Manage verification profiles.
[]>
Number of DK/DKIM Signing Profiles: 1
Number of Signing Keys: 1
Number of DKIM Verification Profiles: 1
Sign System-Generated Messages: Yes
Choose the operation you want to perform:
- PROFILES - Manage domain profiles.
- KEYS - Manage signing keys.
- SETUP - Change global settings.
- SEARCH - Search for domain profile or key.
[]>
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-46
Chapter 3
The Commands: Reference Examples
DMARC Verification
DMARC Verification
This section contains the following CLI commands:
•
dmarcconfig
dmarcconfig
Description
Configure DMARC settings.
Usage
Commit: This command requires a ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command supports a batch format.
Batch Format - DMARC Verification Profiles
The batch format of the dmarcconfig can be used to create, edit, or delete verification profiles and
modify global settings.
Add a DMARC Verification Profile
dmarcconfig profiles new [options]
Argument
Description
Name of the DMARC profile.
[options]
--rejectpolicy_action
The message action that AsyncOS must take when the policy in
DMARC record is reject. Possible values are “reject”,
“quarantine”, or “none.”
--rejectpolicy_response_code
The SMTP response code for rejected messages. The default
value is 550.
--rejectpolicy_response_text
The SMTP response text for rejected messages. The default
value is “#5.7.1 DMARC unauthenticated mail is prohibited.”
--rejectpolicy_quarantine
The quarantine for messages that fail DMARC verification.
--quarantinepolicy_action
The message action that AsyncOS must take when the policy in
DMARC record is quarantine. Possible values are “quarantine”
or “none.”
--quarantinepolicy_quarantine
The quarantine for messages that fail DMARC verification.
--tempfail_action
The message action that AsyncOS must take on the messages
that result in temporary failure during DMARC verification.
Possible values are “accept” or “reject.”
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-47
Chapter 3
The Commands: Reference Examples
DMARC Verification
Argument
Description
--tempfail_response_code
The SMTP response code for rejected messages in case of
temporary failure. The default value is 451.
--tempfail_response_text
The SMTP response text for rejected messages in case of
temporary failure. The default value is “#4.7.1 Unable to
perform DMARC verification.”
--permfail_action
The message action that AsyncOS must take on the messages
that result in permanent failure during DMARC verification.
Possible values are “accept” or “reject.”
--permfail_response_code
The SMTP response code for rejected messages in case of
permanent failure. The default value is 550.
--permfail_response_text
The SMTP response text for rejected messages in case of
permanent failure. The default value is “#5.7.1 DMARC
verification failed.”
Edit a DMARC Verification Profile
dmarcconfig profiles edit [options]
Delete a DMARC Verification Profile
dmarcconfig profiles delete
Delete all the DMARC Verification Profiles
dmarcconfig profiles clear
View the Details of a DMARC Verification Profile
dmarcconfig profiles print
Export DMARC Verification Profiles
dmarcconfig profiles export
Import DMARC Verification Profiles
dmarcconfig profiles import
Change Global Settings
dmarcconfig setup [options]
Options
Description
--report_schedule
The time when you want AsyncOS to generate DMARC aggregate
reports.
--error_reports
Send delivery error reports to the domain owners if the DMARC
aggregate report size exceeds 10 MB or the size specified in the RUA
tag of DMARC record.
--org_name
The entity generating DMARC aggregate reports. This must be a
domain name.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-48
Chapter 3
The Commands: Reference Examples
DMARC Verification
Options
Description
--contact_info
Additional contact information, for example, details of your
organization's customer support, if the domain owners who receive
DMARC aggregate reports want to contact the entity that generated the
report.
--copy_reports
Send copy of all the DMARC aggregate reports to specific users, for
example, internal users who perform analysis on the aggregate reports.
Enter an email address or multiple addresses separated by commas.
--bypass_addresslist
Skip DMARC verification of messages from specific senders (address
list).
Note
--bypass_headers
You can choose only address lists created with full email
addresses.
Skip DMARC verification of messages that contain specific header field
names. For example, use this option to skip DMARC verification of
messages from mailing lists and trusted forwarders. Enter a header or
multiple headers separated by commas.
Example
The following example shows how to setup a DMARC verification profile and edit the global settings of
DMARC verification profiles.
mail.example.com> dmarcconfig
Number of DMARC Verification Profiles: 1
Daily report generation time is: 00:00
Error reports enabled: No
Reports sent on behalf of:
Contact details for reports:
Send a copy of aggregate reports to: None Specified
Bypass DMARC verification for senders from addresslist: None Specified
Bypass DMARC verification for messages with header fields: None Specified
Choose the operation you want to perform:
- PROFILES - Manage DMARC verification profiles.
- SETUP - Change global settings.
[]> profiles
There are currently 1 DMARC verification profiles defined.
Choose the operation you want to perform:
- NEW - Create a new DMARC verification profile.
- EDIT - Modify a DMARC verification profile.
- DELETE - Delete a DMARC verification profile.
- PRINT - Display DMARC verification profiles.
- IMPORT - Import DMARC verification profiles from a file.
- EXPORT - Export DMARC verification profiles to a file.
- CLEAR - Clear all DMARC verification profiles.
[]> new
Enter the name of the new DMARC verification profile:
[]> dmarc_ver_profile_1
Select the message action when the policy in DMARC record is reject:
1. No Action
2. Quarantine the message
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-49
Chapter 3
The Commands: Reference Examples
DMARC Verification
3. Reject the message
[3]> 1
Select the message action when the policy in DMARC record is quarantine:
1. No Action
2. Quarantine the message
[2]> 2
Select the quarantine for messages that fail DMARC verification (when the DMARC policy is
quarantine).
1. Policy
[1]> 1
What SMTP action should be taken in case of temporary failure?
1. Accept
2. Reject
[1]> 2
Enter the SMTP response code for rejected messages in case of temporary failure.
[451]>
Enter the SMTP response text for rejected messages in case of temporary failure. Type
DEFAULT to use the default response text '#4.7.1 Unable to perform
DMARC verification.'
[#4.7.1 Unable to perform DMARC verification.]>
What SMTP action should be taken in case of permanent failure?
1. Accept
2. Reject
[1]> 2
Enter the SMTP response code for rejected messages in case of permanent failure.
[550]>
Enter the SMTP response text for rejected messages in case of permanent failure. Type
DEFAULT to use the default response text '#4.7.1 Unable to perform
DMARC verification.'
[#5.7.1 DMARC verification failed.]>
There are currently 2 DMARC verification profiles defined.
Choose the operation you want to perform:
- NEW - Create a new DMARC verification profile.
- EDIT - Modify a DMARC verification profile.
- DELETE - Delete a DMARC verification profile.
- PRINT - Display DMARC verification profiles.
- IMPORT - Import DMARC verification profiles from a file.
- EXPORT - Export DMARC verification profiles to a file.
- CLEAR - Clear all DMARC verification profiles.
[]>
Number of DMARC Verification Profiles: 2
Daily report generation time is: 00:00
Error reports enabled: No
Reports sent on behalf of:
Contact details for reports:
Send a copy of aggregate reports to: None Specified
Bypass DMARC verification for senders from addresslist: None Specified
Bypass DMARC verification for messages with header fields: None Specified
Choose the operation you want to perform:
- PROFILES - Manage DMARC verification profiles.
- SETUP - Change global settings.
[]> setup
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-50
Chapter 3
The Commands: Reference Examples
DMARC Verification
Would you like to modify DMARC report settings? (Yes/No) [N]> y
Enter the time of day to generate aggregate feedback reports. Use 24-hour format (HH:MM).
[00:00]>
Would you like to send DMARC error reports? (Yes/No) [N]> y
Enter the entity name responsible for report generation. This is added to the DMARC
aggregate reports.
[]> example.com
Enter additional contact information to be added to DMARC aggregate reports. This could be
an email address, URL of a website with additional help, a phone
number etc.
[]> http://dmarc.example.com
Would you like to send a copy of all aggregate reports?
(Yes/No) [N]>
Would you like to bypass DMARC verification for an addresslist? (Yes/No) [N]>
Would you like to bypass DMARC verification for specific header fields? (Yes/No) [N]> y
Choose the operation you want to perform:
- ADD - Add a header field to the verification-bypass list.
[]> add
Enter the header field name
[]> List-Unsubscribe
DMARC verification is configured to bypass DMARC verification for messages containing the
following header fields.
1. List-Unsubscribe
Choose the operation you want to perform:
- ADD - Add a header field to the verification-bypass list.
- REMOVE - Remove a header field from the list.
[]> add
Enter the header field name
[]> List-ID
DMARC verification is configured to bypass DMARC verification for messages containing the
following header fields.
1. List-Unsubscribe
2. List-ID
Choose the operation you want to perform:
- ADD - Add a header field to the verification-bypass list.
- REMOVE - Remove a header field from the list.
[]>
Number of DMARC Verification Profiles: 2
Daily report generation time is: 00:00
Error reports enabled: Yes
Reports sent on behalf of: example.com
Contact details for reports: http://dmarc.example.com
Send a copy of aggregate reports to: None Specified
Bypass DMARC verification for senders from addresslist: None Specified
Bypass DMARC verification for messages with header fields: List-Unsubscribe, List-ID
Choose the operation you want to perform:
- PROFILES - Manage DMARC verification profiles.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-51
Chapter 3
The Commands: Reference Examples
DNS
- SETUP - Change global settings.
[]>
DNS
This section contains the following CLI commands:
•
dig
•
dnsconfig
•
dnsflush
•
dnshostprefs
•
dnslistconfig
•
dnslisttest
•
dnsstatus
dig
Description
Look up a record on a DNS server
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command supports a batch format.
Batch Format
The batch format of the dig command can be used to perform all the functions of the traditional CLI
command.
•
Look up a record on a DNS server
dig [options] [@] [qtype]
•
Do a reverse lookup for given IP address on a DNS server
dig -x [options] [@]
These are the options available for the dig command’s batch format
-s
Specify the source IP address.
-t
Make query over TCP.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-52
Chapter 3
The Commands: Reference Examples
DNS
-u
Make query over UDP (default).
dns_ip - Query the DNS server at this IP address.
qtype - Query type: A, PTR, CNAME, MX, SOA, NS, TXT.
hostname - Record that user want to look up.
reverse_ip - Reverse lookup IP address.
dns_ip - Query the DNS server at this IP address.
Example
The following example explicitly specifies a DNS server for the lookup.
mail.com> dig @111.111.111.111 example.com MX
; <<>> DiG 9.4.3-P2 <<>> @111.111.111.111 example.com MX
; (1 server found)
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18540
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 3
;; QUESTION SECTION:
;example.com.
;; ANSWER SECTION:
mexample.com.
IN
10800
;; AUTHORITY SECTION:
example.com.
;; ADDITIONAL SECTION:
example.com. 10800 IN
example.com. 10800 IN
example.com.
300
IN
;;
;;
;;
;;
Note
IN
10800
A
AAAA
A
MX
MX
IN
10 mexample.com.
NS
test.example.com.
111.111.111.111
2620:101:2004:4201::bd
111.111.111.111
Query time: 6 msec
SERVER: 10.92.144.4#53(10.92.144.4)
WHEN: Fri Dec 9 23:37:42 2011
MSG SIZE rcvd: 143
The dig command filters out the information in the Authority and Additional sections if you do not
explicitly specify the DNS server when using the command.
dnsconfig
Description
Configure DNS setup
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-53
Chapter 3
The Commands: Reference Examples
DNS
Usage
Commit: This command requires a ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command supports a batch format.
Batch Format
The batch format of the dnsconfig command can be used to perform all the functions of the traditional
CLI command.
•
Configuring DNS to use a local nameserver cache:
dnsconfig parent new
Command arguments:
– - The IP address of the nameserver. Separate multiple IP addresses with commas.
– - The priority for this entry.
•
Deleting the local nameserver cache:
dnsconfig parent delete
•
Configuring alternate DNS caches to use for specific domains:
dnsconfig alt new
Note
Cannot be used when using Internet root nameservers.
Command arguments:
– - The IP address of the nameserver. Separate multiple IP addresses with commas.
– - A comma separated list of domains.
•
Deleting the alternate DNS cache for a specific domain:
dnsconfig alt delete
•
Configuring DNS to use the Internet root nameservers:
dnsconfig roots new
Nameserver arguments:
– - The domain to override.
– - The name of the nameserver.
– - The IP address of the nameserver.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-54
Chapter 3
The Commands: Reference Examples
DNS
Note
You can override certain domains by specifying an alternate name server for that domain.
•
Deleting nameservers:
dnsconfig roots delete [ns_name]
Note
When deleting, if you do not specify an ns_name, then all nameservers for that domain will be removed.
•
Clearing all DNS settings and automatically configuring the system to use the Internet root servers:
dnsconfig roots
Displaying the current DNS settings.
dnsconfig print
Example
Each user-specified DNS server requires the following information:
•
Hostname
•
IP address
•
Domain authoritative for (alternate servers only)
Four subcommands are available within the dnsconfig command:
Table 3-5
Subcommands for dnsconfig Command
Syntax
Description
new
Add a new alternate DNS server to use for specific domains or local
DNS server.
delete
Remove an alternate server or local DNS server.
edit
Modify an alternate server or local DNS server.
setup
Switch between Internet root DNS servers or local DNS servers.
mail3.example.com> dnsconfig
Currently using the Internet root DNS servers.
Alternate authoritative DNS servers:
1. com: dns.example.com (10.1.10.9)
Choose the operation you want to perform:
- NEW - Add a new server.
- EDIT - Edit a server.
- DELETE - Remove a server.
- SETUP - Configure general settings.
[]> setup
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-55
Chapter 3
The Commands: Reference Examples
DNS
Do you want the Gateway to use the Internet's root DNS servers or would you like
it to use your own DNS servers?
1. Use Internet root DNS servers
2. Use own DNS cache servers
[1]> 1
Choose the IP interface for DNS traffic.
1. Auto
2. Management (10.92.149.70/24: mail3.example.com)
[1]>
Enter the number of seconds to wait before timing out reverse DNS lookups.
[20]>
Enter the minimum TTL in seconds for DNS cache.
[1800]>
Currently using the Internet root DNS servers.
Alternate authoritative DNS servers:
1. com: dns.example.com (10.1.10.9)
Choose the operation you want to perform:
- NEW - Add a new server.
- EDIT - Edit a server.
- DELETE - Remove a server.
- SETUP - Configure general settings.
[]>
Adding an Alternate DNS Server for Specific Domains
You can configure the appliance to use the Internet root servers for all DNS queries except specific local
domains.
mail3.example.com> dnsconfig
Currently using the Internet root DNS servers.
No alternate authoritative servers configured.
Choose the operation you want to perform:
- NEW - Add a new server.
- SETUP - Configure general settings.
[]> new
Please enter the domain this server is authoritative for. (Ex: "com").
[]> example.com
Please enter the fully qualified hostname of the DNS server for the domain "example.com".
(Ex: "dns.example.com").
[]> dns.example.com
Please enter the IP address of dns.example.com.
[]> 10.1.10.9
Currently using the Internet root DNS servers.
Alternate authoritative DNS servers:
1. com: dns.example.com (10.1.10.9)
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-56
Chapter 3
The Commands: Reference Examples
DNS
Choose the operation you want to perform:
- NEW - Add a new server.
- EDIT - Edit a server.
- DELETE - Remove a server.
- SETUP - Configure general settings.
[]>
Using Your Own DNS Cache Servers
You can configure the appliance to use your own DNS cache server.
mail3.example.com> dnsconfig
Currently using the Internet root DNS servers.
Alternate authoritative DNS servers:
1. com: dns.example.com (10.1.10.9)
Choose the operation you want to perform:
- NEW - Add a new server.
- EDIT - Edit a server.
- DELETE - Remove a server.
- SETUP - Configure general settings.
[]> setup
Do you want the Gateway to use the Internet's root DNS servers or would you like
it to use your own DNS servers?
1. Use Internet root DNS servers
2. Use own DNS cache servers
[1]> 2
Please enter the IP address of your DNS server.
Separate multiple IPs with commas.
[]> 10.10.200.03
Please enter the priority for 10.10.200.3.
A value of 0 has the highest priority.
The IP will be chosen at random if they have the same priority.
[0]> 1
Choose the IP interface for DNS traffic.
1. Auto
2. Management (192.168.42.42/24)
3. PrivateNet (192.168.1.1/24: mail3.example.com)
4. PublicNet (192.168.2.1/24: mail3.example.com)
[1]> 1
Enter the number of seconds to wait before timing out reverse DNS lookups.
[20]>
Enter the minimum TTL in seconds for DNS cache.
[1800]>
Currently using the local DNS cache servers:
1. Priority: 1 10.10.200.3
Choose the operation you want to perform:
- NEW - Add a new server.
- EDIT - Edit a server.
- DELETE - Remove a server.
- SETUP - Configure general settings.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-57
Chapter 3
DNS
[]>
dnsflush
Description
Clear all entries from the DNS cache.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to machine mode.
Batch Command: This command does not support a batch format
Example
mail3.example.com> dnsflush
Are you sure you want to clear out the DNS cache? [N]> Y
dnshostprefs
Description
Configure IPv4/IPv6 DNS preferences
Usage
Commit: This command requires a ‘commit’.
Cluster Management: This command is restricted to machine mode.
Batch Command: This command does not support a batch format
Example
mail3.example.com> dnshostprefs
Choose the operation you want to perform:
- NEW - Add new domain override.
- SETDEFAULT - Set the default behavior.
[]> new
Enter the domain you wish to configure.
[]> example.com
How should the appliance sort IP addresses for this domain?
1. Prefer IPv4
2. Prefer IPv6
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-58
The Commands: Reference Examples
Chapter 3
The Commands: Reference Examples
DNS
3. Require IPv4
4. Require IPv6
[2]> 3
Choose the operation you want to perform:
- NEW - Add new domain override.
- SETDEFAULT - Set the default behavior.
[]> setdefault
How should the appliance sort IP addresses?
1. Prefer IPv4
2. Prefer IPv6
3. Require IPv4
4. Require IPv6
[2]> 1
Choose the operation you want to perform:
- NEW - Add new domain override.
- SETDEFAULT - Set the default behavior.
[]>
dnslistconfig
Description
Configure DNS List services support
Usage
Commit: This command requires a ‘commit’.
Cluster Management: This command is restricted to machine mode.
Batch Command: This command does not support a batch format
Example
mail3.example.com> dnslistconfig
Current DNS List Settings:
Negative Response TTL: 1800 seconds
DNS List Query Timeout: 3 seconds
Choose the operation you want to perform:
- SETUP - Configure general settings.
[]> setup
Enter the cache TTL for negative responses in seconds:
[1800]> 1200
Enter the query timeout in seconds:
[3]>
Settings updated.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-59
Chapter 3
DNS
Current DNS List Settings:
Negative Response TTL: 1200 seconds
DNS List Query Timeout: 3 seconds
Choose the operation you want to perform:
- SETUP - Configure general settings.
[]>
dnslisttest
Description
Test a DNS lookup for a DNS-based list service.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to machine mode.
Batch Command: This command does not support a batch format
Example
mail3.example.com> dnslisttest
Enter the query server name:
[]> mail4.example.com
Enter the test IP address to query for:
[127.0.0.2]> 10.10.1.11
Querying: 10.10.1.11.mail4.example.com
Result: MATCHED
dnsstatus
Description
Display DNS statistics.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to machine mode.
Batch Command: This command does not support a batch format.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-60
The Commands: Reference Examples
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
Example
mail3.example.com> dnsstatus
Status as of: Mon Apr 18 10:58:07 2005 PDT
Counters:
DNS Requests
Network Requests
Cache Hits
Cache Misses
Cache Exceptions
Cache Expired
Reset
1,115
186
1,300
1
0
185
Uptime
1,115
186
1,300
1
0
185
Lifetime
1,115
186
1,300
1
0
185
General Management/Administration/Troubleshooting
This section contains the following CLI commands:
•
addressconfig
•
adminaccessconfig
•
certconfig
•
date
•
diagnostic
•
diskquotaconfig
•
ecconfig
•
ecstatus
•
ecupdate
•
encryptionconfig
•
encryptionstatus
•
encryptionupdate
•
featurekey
•
featurekeyconfig
•
generalconfig
•
healthcheck
•
healthconfig
•
ntpconfig
•
reboot
•
repengstatus
•
repengstatus
•
resume
•
resumedel
•
resumelistener
•
revert
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-61
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
•
settime
•
settz
•
shutdown
•
sshconfig
•
status
•
supportrequest
•
supportrequeststatus
•
supportrequestupdate
•
suspend
•
suspenddel
•
suspendlistener
•
tcpservices
•
techsupport
•
tlsverify
•
trace
•
trackingconfig
•
updateconfig
•
updatenow
•
upgrade
•
version
•
wipedata
See also Virtual Appliance Management, page 3-293.
addressconfig
Description
The addressconfig command is used to configure the From: Address header. You can specify the
display, user, and domain names of the From: address. You can also choose to use the Virtual Gateway
domain for the domain name. Use the addressconfig command for mail generated by AsyncOS for the
following circumstances:
•
Anti-virus notifications
•
Bounces
•
DMARC feedback reports
•
Notifications (notify() and notify-copy() filter actions)
•
Quarantine Messages (and “Send Copy” in quarantine management)
•
Reports
•
All other messages
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-62
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
In the following example, the From: Address for notifications is changed from: Mail Delivery System
(the default) to Notifications [[email protected]]
[MAILER-DAEMON@domain]
Usage
Commit: This command requires a ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command does not support a batch format.
Example
mail3.example.com> addressconfig
Current
Current
Current
Current
Current
Current
anti-virus from: "Mail Delivery System"
bounce from: "Mail Delivery System"
notify from: "Mail Delivery System"
quarantine from: "Mail Delivery System"
DMARC reports from: "DMARC Feedback"
all other messages from: "Mail Delivery System"
Choose the operation you want to perform:
- AVFROM - Edit the anti-virus from address.
- BOUNCEFROM - Edit the bounce from address.
- NOTIFYFROM - Edit the notify from address.
- QUARANTINEFROM - Edit the quarantine bcc from address.
- DMARCFROM - Edit the DMARC reports from address.
- OTHERFROM - Edit the all other messages from address.
[]> notifyfrom
Please enter the display name portion of the "notify from" address
["Mail Delivery System"]> Notifications
Please enter the user name portion of the "notify from" address
[MAILER-DAEMON]> Notification
Do you want the virtual gateway domain used for the domain? [Y]> n
Please enter the domain name portion of the "notify from" address
[]> example.com
Current
Current
Current
Current
Current
Current
anti-virus from: "Mail Delivery System"
bounce from: "Mail Delivery System"
notify from: Notifications
quarantine from: "Mail Delivery System"
DMARC reports from: "DMARC Feedback"
all other messages from: "Mail Delivery System"
Choose the operation you want to perform:
- AVFROM - Edit the anti-virus from address.
- BOUNCEFROM - Edit the bounce from address.
- NOTIFYFROM - Edit the notify from address.
- QUARANTINEFROM - Edit the quarantine bcc from address.
- DMARCFROM - Edit the DMARC reports from address.
- OTHERFROM - Edit the all other messages from address.
[]>
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-63
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
adminaccessconfig
Description
Use the adminaccessconfig command to configure:
•
Login message (banner) for the administrator.
•
IP-based access for appliance administrative interface.
•
Web interface Cross-Site Request Forgeries protection.
•
Option to use host header in HTTP requests.
•
Web interface and CLI session inactivity timeout.
Usage
Commit: This command requires a ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command supports a batch format.
Batch Format
The batch format of the adminaccessconfig command can be used to perform all the functions of the
traditional CLI command.
•
Select whether to allow access for all IP addresses or limit access to specific IP address/subnet/range
adminaccessconfig ipaccess
•
Adding a new IP address/subnet/range
adminaccessconfig ipaccess new
•
Editing an existing IP address/subnet/range
adminaccessconfig ipaccess edit
•
Deleting an existing IP address/subnet/range
adminaccessconfig ipaccess delete
•
Printing a list of the IP addresses/subnets/ranges
adminaccessconfig ipaccess print
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-64
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
•
Deleting all existing IP addresses/subnets/ranges
adminaccessconfig ipaccess clear
•
Printing the login banner
adminaccessconfig banner print
•
Importing a login banner from a file on the appliance
adminaccessconfig banner import
•
Deleting an existing login banner
adminaccessconfig banner clear
•
Printing the welcome banner
adminaccessconfig welcome print
•
Importing a welcome banner from a file on the appliance
adminaccessconfig welcome import
•
Deleting an existing welcome banner
adminaccessconfig welcome clear
•
Exporting a welcome banner
adminaccessconfig welcome export
•
Add an allowed proxy IP address
adminaccessconfig ipaccess proxylist new
•
Edit an allowed proxy IP address
adminaccessconfig ipaccess proxylist edit
•
Delete an allowed proxy IP address
adminaccessconfig ipaccess proxylist delete
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-65
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
•
Delete all existing allowed proxy IP addresses
adminaccessconfig ipaccess proxylist clear
•
Configure the header name that contains origin IP address
adminaccessconfig ipaccess proxy-header
•
Enable or disable web interface Cross-Site Request Forgeries protection
adminaccessconfig csrf
•
Check whether web interface Cross-Site Request Forgeries protection is enabled
adminaccessconfig csrf print
•
Configure web interface session timeout
adminaccessconfig timeout gui
•
Configure CLI session timeout
adminaccessconfig timeout gui
Example - Configuring Network Access List
You can control from which IP addresses users access the Email Security appliance. Users can access
the appliance from any machine with an IP address from the access list you define. When creating the
network access list, you can specify IP addresses, subnets, or CIDR addresses.
AsyncOS displays a warning if you do not include the IP address of your current machine in the network
access list. If your current machine’s IP address is not in the list, it will not be able to access the appliance
after you commit your changes.
In the following example, network access to the appliance is restricted to two sets of IP addresses:
mail.example.com> adminaccessconfig
Choose the operation you want to perform:
- BANNER - Configure login message (banner) for appliance administrator login.
- WELCOME - Configure welcome message (post login message) for appliance administrator
login.
- IPACCESS - Configure IP-based access for appliance administrative interface.
- CSRF - Configure web UI Cross-Site Request Forgeries protection.
- HOSTHEADER - Configure option to use host header in HTTP requests.
- TIMEOUT - Configure GUI and CLI session inactivity timeout.
[]> ipaccess
Current mode: Allow All.
Please select the mode:
- ALL - All IP addresses will be allowed to access the administrative interface.
- RESTRICT - Specify IP addresses/Subnets/Ranges to be allowed access.
- PROXYONLY - Specify IP addresses/Subnets/Ranges to be allowed access through proxy.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-66
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
- PROXY - Specify IP addresses/Subnets/Ranges to be allowed access through proxy or
directly.
[]> restrict
List of allowed IP addresses/Subnets/Ranges:
Choose the operation you want to perform:
- NEW - Add a new IP address/subnet/range.
[]> new
Please enter IP address, subnet or range.
[]> 192.168.1.2-100
List of allowed IP addresses/Subnets/Ranges:
1.
192.168.1.2-100
Choose the operation you want to perform:
- NEW - Add a new IP address/subnet/range.
- EDIT - Modify an existing entry.
- DELETE - Remove an existing entry.
- CLEAR - Remove all the entries.
[]> new
Please enter IP address, subnet or range.
[]> 192.168.255.12
List of allowed IP addresses/Subnets/Ranges:
1.
2.
192.168.1.2-100
192.168.255.12
Choose the operation you want to perform:
- NEW - Add a new IP address/subnet/range.
- EDIT - Modify an existing entry.
- DELETE - Remove an existing entry.
- CLEAR - Remove all the entries.
[]>
Warning: The host you are currently using [72.163.202.175] is not included in the User
Access list. Excluding it will prevent your
host from connecting to the administrative interface. Are you sure you want to continue?
[N]> Y
Current mode: Restrict.
Please select the mode:
- ALL - All IP addresses will be allowed to access the administrative interface.
- RESTRICT - Specify IP addresses/Subnets/Ranges to be allowed access.
- PROXYONLY - Specify IP addresses/Subnets/Ranges to be allowed access through proxy.
- PROXY - Specify IP addresses/Subnets/Ranges to be allowed access through proxy or
directly.
[]>
Example - Configuring Login Banner
You can configure the Email Security appliance to display a message called a “login banner” when a user
attempts to log into the appliance through SSH, Telnet, FTP, or Web UI. The login banner is
customizable text that appears above the login prompt in the CLI and to the right of the login prompt in
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-67
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
the GUI. You can use the login banner to display internal security information or best practice
instructions for the appliance. For example, you can create a simple note that saying that unauthorized
use of the appliance is prohibited or a detailed warning concerning the organization’s right to review
changes made by the user to the appliance.
The maximum length of the login banner is 2000 characters to fit 80x25 consoles. A login banner can
be imported from a file in the /data/pub/configuration directory on the appliance. After creating the
banner, commit your changes.
In the following example, the login banner “Use of this system in an unauthorized manner is prohibited”
is added to the appliance:
mail.example.com> adminaccessconfig
Choose the operation you want to perform:
- BANNER - Configure login message (banner) for appliance administrator login.
- WELCOME - Configure welcome message (post login message) for appliance administrator
login.
- IPACCESS - Configure IP-based access for appliance administrative interface.
- CSRF - Configure web UI Cross-Site Request Forgeries protection.
- HOSTHEADER - Configure option to use host header in HTTP requests.
- TIMEOUT - Configure GUI and CLI session inactivity timeout.
[]> banner
A banner has not been defined.
Choose the operation you want to perform:
- NEW - Create a banner to display at login.
- IMPORT - Import banner text from a file.
[]> new
Enter or paste the banner text here. Enter CTRL-D on a blank line to end.
Use of this system in an unauthorized manner is prohibited.
^D
Choose the operation you want to perform:
- BANNER - Configure login message (banner) for appliance administrator login.
- WELCOME - Configure welcome message (post login message) for appliance administrator
login.
- IPACCESS - Configure IP-based access for appliance administrative interface.
- CSRF - Configure web UI Cross-Site Request Forgeries protection.
- HOSTHEADER - Configure option to use host header in HTTP requests.
- TIMEOUT - Configure GUI and CLI session inactivity timeout.
[]> banner
Banner: Use of this system in an unauthorized manner is prohibited.
Choose the operation you want to perform:
- NEW - Create a banner to display at login.
- IMPORT - Import banner text from a file.
- DELETE - Remove the banner.
[]>
Example - Configuring Web Interface and CLI Session Timeout
The following example sets the web interface and CLI session timeout to 32 minutes.
Note
The CLI session timeout applies only to the connections using Secure Shell (SSH), SCP, and direct serial
connection. Any uncommitted configuration changes at the time of CLI session timeout will be lost.
Make sure that you commit the configuration changes as soon as they are made.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-68
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
mail.example.com> adminaccessconfig
Choose the operation you want to perform:
- BANNER - Configure login message (banner) for appliance administrator login.
- WELCOME - Configure welcome message (post login message) for appliance administrator
login.
- IPACCESS - Configure IP-based access for appliance administrative interface.
- CSRF - Configure web UI Cross-Site Request Forgeries protection.
- HOSTHEADER - Configure option to use host header in HTTP requests.
- TIMEOUT - Configure GUI and CLI session inactivity timeout.
[]> timeout
Enter WebUI inactivity timeout(in minutes):
[30]> 32
Enter CLI inactivity timeout(in minutes):
[30]> 32
Choose the operation you want to perform:
- BANNER - Configure login message (banner) for appliance administrator login.
- WELCOME - Configure welcome message (post login message) for appliance administrator
login.
- IPACCESS - Configure IP-based access for appliance administrative interface.
- CSRF - Configure web UI Cross-Site Request Forgeries protection.
- HOSTHEADER - Configure option to use host header in HTTP requests.
- TIMEOUT - Configure GUI and CLI session inactivity timeout.
[]>
mail.example.com> commit
Please enter some comments describing your changes:
[]> Changed WebUI and CLI session timeout values
Do you want to save the current configuration for rollback? [Y]>
Changes committed: Wed Mar 12 08:03:21 2014 GMT
Note
After committing the changes, the new CLI session timeout takes affect only during the subsequent
login.
certconfig
Description
Configure security certificates and keys.
Usage
Commit: This command requires a ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command does not support a batch format.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-69
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
Example - Pasting in a certificate
In the following example, a certificate is installed by pasting in the certificate and private key.
mail3.example.com> certconfig
Choose the operation you want to perform:
- CERTIFICATE - Import, Create a request, Edit or Remove Certificate Profiles
- CERTAUTHORITY - Manage System and Customized Authorities
- CRL - Manage Certificate Revocation Lists
[]> certificate
List of Certificates
Name
Common Name
--------- -------------------Demo
Cisco Appliance Demo
Issued By
-------------------Cisco Appliance Demo
Status
------------Active
Remaining
--------3467 days
Choose the operation you want to perform:
- IMPORT - Import a certificate from a local PKCS#12 file
- PASTE - Paste a certificate into the CLI
- NEW - Create a self-signed certificate and CSR
- PRINT - View certificates assigned to services
[]> paste
Enter a name for this certificate profile:
> partner.com
Paste public certificate in PEM format (end with '.'):
-----BEGIN CERTIFICATE----MIICLDCCAdYCAQAwDQYJKoZIhvcNAQEEBQAwgaAxCzAJBgNVBAYTAlBUMRMwEQYD
VQQIEwpRdWVlbnNsYW5kMQ8wDQYDVQQHEwZMaXNib2ExFzAVBgNVBAoTDk5ldXJv
bmlvLCBMZGEuMRgwFgYDVQQLEw9EZXNlbnZvbHZpbWVudG8xGzAZBgNVBAMTEmJy
dXR1cy5uZXVyb25pby5wdDEbMBkGCSqGSIb3DQEJARYMc2FtcG9AaWtpLmZpMB4X
DTk2MDkwNTAzNDI0M1oXDTk2MTAwNTAzNDI0M1owgaAxCzAJBgNVBAYTAlBUMRMw
EQYDVQQIEwpRdWVlbnNsYW5kMQ8wDQYDVQQHEwZMaXNib2ExFzAVBgNVBAoTDk5l
dXJvbmlvLCBMZGEuMRgwFgYDVQQLEw9EZXNlbnZvbHZpbWVudG8xGzAZBgNVBAMT
EmJydXR1cy5uZXVyb25pby5wdDEbMBkGCSqGSIb3DQEJARYMc2FtcG9AaWtpLmZp
MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAL7+aty3S1iBA/+yxjxv4q1MUTd1kjNw
L4lYKbpzzlmC5beaQXeQ2RmGMTXU+mDvuqItjVHOK3DvPK7lTcSGftUCAwEAATAN
BgkqhkiG9w0BAQQFAANBAFqPEKFjk6T6CKTHvaQeEAsX0/8YHPHqH/9AnhSjrwuX
9EBc0n6bVGhN7XaXd6sJ7dym9sbsWxb+pJdurnkxjx4=
-----END CERTIFICATE----.
C=PT,ST=Queensland,L=Lisboa,O=Neuronio,
Lda.,OU=Desenvolvimento,CN=brutus.partner.com,[email protected]
Paste private key in PEM format (end with '.'):
-----BEGIN RSA PRIVATE KEY----MIIBPAIBAAJBAL7+aty3S1iBA/+yxjxv4q1MUTd1kjNwL4lYKbpzzlmC5beaQXeQ
2RmGMTXU+mDvuqItjVHOK3DvPK7lTcSGftUCAwEAAQJBALjkK+jc2+iihI98riEF
oudmkNziSRTYjnwjx8mCoAjPWviB3c742eO3FG4/soi1jD9A5alihEOXfUzloenr
8IECIQD3B5+0l+68BA/6d76iUNqAAV8djGTzvxnCxycnxPQydQIhAMXt4trUI3nc
a+U8YL2HPFA3gmhBsSICbq2OptOCnM7hAiEA6Xi3JIQECob8YwkRj29DU3/4WYD7
WLPgsQpwo1GuSpECICGsnWH5oaeD9t9jbFoSfhJvv0IZmxdcLpRcpslpeWBBAiEA
6/5B8J0GHdJq89FHwEG/H2eVVUYu5y/aD6sgcm+0Avg=
-----END RSA PRIVATE KEY----.
Do you want to add an intermediate certificate? [N]> n
List of Certificates
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-70
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
Name
Common Name
Issued By
Status
Remaining
-------- ------------------- -------------------- ------------- --------partner.c brutus.partner.com
brutus.partner
Active
30 days
Demo
Cisco Appliance Demo Cisco Appliance Demo Active
3467 days
Choose the operation you want to perform:
- IMPORT - Import a certificate from a local PKCS#12 file
- PASTE - Paste a certificate into the CLI
- NEW - Create a self-signed certificate and CSR
- EDIT - Update certificate or view the signing request
- EXPORT - Export a certificate
- DELETE - Remove a certificate
- PRINT - View certificates assigned to services
[]>
Choose the operation you want to perform:
- CERTIFICATE - Import, Create a request, Edit or Remove Certificate Profiles
- CERTAUTHORITY - Manage System and Customized Authorities
- CRL - Manage Certificate Revocation Lists
[]>
mail3.example.com> commit
Please enter some comments describing your changes:
[]> Installed certificate and key for receiving, delivery, and https
Do you want to save the current configuration for rollback? [Y]> n
Changes committed: Fri May 23 11:42:12 2014 GMT
Example - Creating a Self-signed Certificate
In the following example, a self-signed certificate is created.
mail3.example.com> certconfig
Choose the operation you want to perform:
- CERTIFICATE - Import, Create a request, Edit or Remove Certificate Profiles
- CERTAUTHORITY - Manage System and Customized Authorities
- CRL - Manage Certificate Revocation Lists
[]> certificate
List of Certificates
Name
Common Name
--------- -------------------partner.c brutus.neuronio.pt
days
Demo
Cisco Appliance Demo
Issued By
-------------------brutus.neuronio.pt
Status
------------Expired
Remaining
---------4930
Cisco Appliance Demo
Active
3467 days
Choose the operation you want to perform:
- IMPORT - Import a certificate from a local PKCS#12 file
- PASTE - Paste a certificate into the CLI
- NEW - Create a self-signed certificate and CSR
- EDIT - Update certificate or view the signing request
- EXPORT - Export a certificate
- DELETE - Remove a certificate
- PRINT - View certificates assigned to services
[]> new
1. Create a self-signed certificate and CSR
2. Create a self-signed SMIME certificate and CSR
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-71
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
[1]> 1
Enter a name for this certificate profile:
> example.com
Enter Common Name:
> example.com
Enter Organization:
> Example
Enter Organizational Unit:
> Org
Enter Locality or City:
> San Francisoc
Enter State or Province:
> CA
Enter Country (2 letter code):
> US
Duration before expiration (in days):
[3650]>
1. 1024
2. 2048
Enter size of private key:
[2]>
Do you want to view the CSR? [Y]> y
-----BEGIN CERTIFICATE REQUEST----MIICrTCCAZUCAQAwaDELMAkGA1UEBhMCVVMxFDASBgNVBAMTC2V4YW1wbGUuY29t
MRYwFAYDVQQHEw1TYW4gRnJhbmNpc29jMRAwDgYDVQQKEwdleGFtcGxlMQswCQYD
VQQIEwJDQTEMMAoGA1UECxMDb3JnMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB
CgKCAQEA+NwamZyX7VgTZka/x1I5HHrN9V2MPKXoLq7FjzUtiIDwznElrKIuJovw
Svonle6GvFlUHfjv8B3WobOzk5Ny6btKjwPrBfaY+qr7rzM4lAQKHM+P6l+lZnPU
P05N9RCkLP4XsUuyY6Ca1WLTiPIgaq2fR8Y0JX/kesZcGOqlde66pN+xJIHHYadD
oopOgqi6SLNfAzJu/HEu/fnSujG4nhF0ZGlOpVUx4fg33NwZ4wVl0XBk3GrOjbbA
ih9ozAwfNzxb57amtxEJk+pW+co3uEHLJIOPdih9SHzn/UVU4hiu8rSQR19sDApp
kfdWcfaDLF9tnQJPWSYoCh0USgCc8QIDAQABoAAwDQYJKoZIhvcNAQEFBQADggEB
AGiVhyMAZuHSv9yA08kJCmrgO89yRlnDUXDDo6IrODVKx4hHTiOanOPu1nsThSvH
7xV4xR35T/QV0U3yPrL6bJbbwMySOLIRTjsUcwZNjOE1xMM5EkBM2BOI5rs4l59g
FhHVejhG1LyyUDL0U82wsSLMqLFH1IT63tzwVmRiIXmAu/lHYci3+vctb+sopnN1
lY1OIuj+EgqWNrRBNnKXLTdXkzhELOd8vZEqSAfBWyjZ2mECzC7SG3evqkw/OGLk
AilNXHayiGjeY+UfWzF/HBSekSJtQu6hIv6JpBSY/MnYU4tllExqD+GX3lru4xc4
zDas2rS/Pbpn73Lf503nmsw=
-----END CERTIFICATE REQUEST----List of Certificates
Name
Common Name
Issued By
Status
Remaining
--------- ------------------- -------------------- ------------- --------example.c example.com
example.com
Valid
3649 days
partner.c brutus.partner.com
brutus.partner.com Valid
30 days
Demo
Cisco Appliance Demo Cisco Appliance Demo Active
3467 days
Choose the operation you want to perform:
- IMPORT - Import a certificate from a local PKCS#12 file
- PASTE - Paste a certificate into the CLI
- NEW - Create a self-signed certificate and CSR
- EDIT - Update certificate or view the signing request
- EXPORT - Export a certificate
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-72
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
- DELETE - Remove a certificate
- PRINT - View certificates assigned to services
[]>
Example - Create a Self-signed S/MIME Signing Certificate
The following example shows how to create a self-signed S/MIME certificate for signing messages.
vm10esa0031.qa> certconfig
Choose the operation you want to perform:
- CERTIFICATE - Import, Create a request, Edit or Remove Certificate Profiles
- CERTAUTHORITY - Manage System and Customized Authorities
- CRL - Manage Certificate Revocation Lists
[]> certificate
List of Certificates
Name
Common Name
--------- -------------------Demo
Cisco Appliance Demo
Issued By
-------------------Cisco Appliance Demo
Status
------------Active
Remaining
--------3329 days
Choose the operation you want to perform:
- IMPORT - Import a certificate from a local PKCS#12 file
- PASTE - Paste a certificate into the CLI
- NEW - Create a self-signed certificate and CSR
- PRINT - View certificates assigned to services
[]> new
1. Create a self-signed certificate and CSR
2. Create a self-signed SMIME certificate and CSR
[1]> 2
Enter a name for this certificate profile:
> smime_signing
Enter Common Name:
> CN
Enter Organization:
> ORG
Enter Organizational Unit:
> OU
Enter Locality or City:
> BN
Enter State or Province:
> KA
Enter Country (2 letter code):
> IN
Duration before expiration (in days):
[3650]>
1. 1024
2. 2048
Enter size of private key:
[2]>
Enter email address for 'subjectAltName' extension:
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-73
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
[]> [email protected]
Add another member? [Y]> n
Begin entering domain entries for 'subjectAltName'.
Enter the DNS you want to add.
[]> domain.com
Add another member? [Y]> n
Do you want to view the CSR? [Y]> n
List of Certificates
Name
Common Name
--------- -------------------smime_sig CN
Demo
Cisco Appliance Demo
Issued By
-------------------CN
Cisco Appliance Demo
Status
------------Valid
Active
Remaining
--------3649 days
3329 days
Choose the operation you want to perform:
- IMPORT - Import a certificate from a local PKCS#12 file
- PASTE - Paste a certificate into the CLI
- NEW - Create a self-signed certificate and CSR
- EDIT - Update certificate or view the signing request
- EXPORT - Export a certificate
- DELETE - Remove a certificate
- PRINT - View certificates assigned to services
[]>
date
Description
Displays the current date and time
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command does not support a batch format.
Example
mail.example.com> date
Tue Mar 10 11:30:21 2015 GMT
diagnostic
Description
Use the diagnostic command to:
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-74
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
•
Troubleshoot hardware and network issues using various utilities
•
Check the RAID status
•
Display ARP cache
•
Clear LDAP, DNS, and ARP caches
•
Send SMTP test messages
Using the diagnostic Command
The following commands are available within the diagnostic submenu:
Table 3-6
diagnostic Subcommands
Option
Sub Commands
Availability
RAID
1. Run disk verify
Available on C30 and C60 only.
2. Monitor tasks in progress
3. Display disk verify verdict
DISK_USAGE
No Sub Commands
This command has been deprecated. Instead,
use the diskquotaconfig command.
FLUSH
C-, X-, and M-Series
(deprecated)
NETWORK
ARPSHOW
SMTPPING
TCPDUMP
REPORTING
DELETEDB
C-, X-, and M-Series
DISABLE
TRACKING
DELETEDB
C-, X-, and M-Series
DEBUG
RELOAD
No Sub Commands
C-, X-, and M-Series
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to machine mode. It is further restricted to the login
host (i.e., the specific machine you are logged onto). This command requires access to the local file
system.
Batch Command: This command supports a batch format.
Batch Format
The batch format of the diagnostic command can be used to check RAID status, clear caches and show
the contents of the ARP cache. To invoke as a batch command, use the following formats:
Use the batch format to perform the following operations:
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-75
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
•
Check the RAID status
diagnostic raid
•
Show the contents of the ARP cache
diagnostic network arpshow
•
Show the contents of the NDP cache
diagnostic network ndpshow
•
Clear the LDAP, DNS, ARP and NDP caches
diagnostic network flush
•
Reset and delete the reporting database
diagnostic reporting deletedb
•
Enable reporting daemons
diagnostic reporting enable
•
Disable reporting daemons
diagnostic reporting disable
•
Reset and delete the tracking database
diagnostic tracking deletedb
•
Reset configuration to the initial manufacturer values
diagnostic reload
Example: Displaying and Clearing Caches
The following example shows the diagnostic command used to display the contents of the ARP cache
and to flush all network related caches.
mail.example.com> diagnostic
Choose the operation you want to perform:
- RAID - Disk Verify Utility.
- DISK_USAGE - Check Disk Usage.
- NETWORK - Network Utilities.
- REPORTING - Reporting Utilities.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-76
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
- TRACKING - Tracking Utilities.
- RELOAD - Reset configuration to the initial manufacturer values.
[]> network
Choose the operation you want to perform:
- FLUSH - Flush all network related caches.
- ARPSHOW - Show system ARP cache.
- NDPSHOW - Show system NDP cache.
- SMTPPING - Test a remote SMTP server.
- TCPDUMP - Dump ethernet packets.
[]> arpshow
System ARP cache contents:
(10.76.69.3) at 00:1e:bd:28:97:00 on em0 expires in 1193 seconds [ethernet]
(10.76.69.2) at 00:1e:79:af:f4:00 on em0 expires in 1192 seconds [ethernet]
(10.76.69.1) at 00:00:0c:9f:f0:01 on em0 expires in 687 seconds [ethernet]
(10.76.69.149) at 00:50:56:b2:0e:2b on em0 permanent [ethernet]
Choose the operation you want to perform:
- FLUSH - Flush all network related caches.
- ARPSHOW - Show system ARP cache.
- NDPSHOW - Show system NDP cache.
- SMTPPING - Test a remote SMTP server.
- TCPDUMP - Dump ethernet packets.
[]> flush
Flushing LDAP cache.
Flushing DNS cache.
Flushing system ARP cache.
10.76.69.3 (10.76.69.3) deleted
10.76.69.2 (10.76.69.2) deleted
10.76.69.1 (10.76.69.1) deleted
10.76.69.149 (10.76.69.149) deleted
Flushing system NDP cache.
fe80::250:56ff:feb2:e2d%em2 (fe80::250:56ff:feb2:e2d%em2) deleted
fe80::250:56ff:feb2:e2c%em1 (fe80::250:56ff:feb2:e2c%em1) deleted
fe80::250:56ff:feb2:e2b%em0 (fe80::250:56ff:feb2:e2b%em0) deleted
Network reset complete.
Example: Verify Connectivity to Another Mail Server
The following example shows diagnostics used to check connectivity to another mail server. You can test
the mail server by sending a message or pinging the server.
mail.example.com> diagnostic
Choose the operation you want to perform:
- RAID - Disk Verify Utility.
- NETWORK - Network Utilities.
- REPORTING - Reporting Utilities.
- TRACKING - Tracking Utilities.
- RELOAD - Reset configuration to the initial manufacturer values.
[]> network
Choose the operation you want to perform:
- FLUSH - Flush all network related caches.
- ARPSHOW - Show system ARP cache.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-77
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
- NDPSHOW - Show system NDP cache.
- SMTPPING - Test a remote SMTP server.
- TCPDUMP - Dump ethernet packets.
[]> smtpping
Enter the hostname or IP address of the SMTP server:
[mail.example.com]> mail.com
The domain you entered has MX records.
Would you like to select an MX host to test instead? [Y]> y
Select an MX host to test.
1. mx00.gmx.com
2. mx01.gmx.com
[1]>
Select a network interface to use for the test.
1. Management
2. auto
[2]> 1
Do you want to type in a test message to send?
no email will be sent. [N]>
If not, the connection will be tested but
Starting SMTP test of host mx00.gmx.com.
Resolved 'mx00.gmx.com' to 74.208.5.4.
Unable to connect to 74.208.5.4.
Example: Reset Appliance Configuration to the Initial Manufacturer Values
The following example shows how to reset your appliance configuration to the initial manufacturer
values.
mail.example.com> diagnostic
Choose the operation you want to perform:
- RAID - Disk Verify Utility.
- NETWORK - Network Utilities.
- REPORTING - Reporting Utilities.
- TRACKING - Tracking Utilities.
- RELOAD - Reset configuration to the initial manufacturer values.
[]> reload
This command will remove all user settings and reset the entire device.
If this is a Virtual Appliance, all feature keys will be removed,
and the license must be reapplied.
Are you sure you want to continue? [N]> Y
Are you *really* sure you want to continue? [N]> Y
Do you want to wipe also? [N]> Y
diskquotaconfig
View or configure disk space allocation for reporting and tracking, quarantines, log files, packet
captures, and configuration files.
See User Guide for AsyncOS for Cisco Email Security Appliances for complete information about this
feature.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-78
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
Usage
Commit: This command requires a ‘commit’.
Cluster Management: This command is restricted to machine mode.
Batch Command: This command supports a batch format.
Batch Format
diskquotaconfig [ [ [
]]]
Valid values for are euq, pvo, tracking, reporting
Valid values for are integers.
Example
mail.example.com> diskquotaconfig
Service
Disk Usage(GB)
Quota(GB)
--------------------------------------------------------------------------Spam Quarantine (EUQ)
1
1
Policy, Virus & Outbreak Quarantines
1
3
Reporting
5
10
Tracking
1
10
Miscellaneous Files
5
30
System Files Usage : 5 GB
User Files Usage : 0 GB
Total
13
54 of 143
Choose the operation you want to perform:
- EDIT - Edit disk quotas
[]> edit
Enter the number of the service for which you would like to edit disk quota:
1. Spam Quarantine (EUQ)
2. Policy, Virus & Outbreak Quarantines
3. Reporting
4. Tracking
5. Miscellaneous Files
[1]> 1
Enter the new disk quota [1]> 1
Disk quota for Spam Quarantine (EUQ) changed to 1
Service
Disk Usage(GB)
Quota(GB)
--------------------------------------------------------------------------Spam Quarantine (EUQ)
1
1
Policy, Virus & Outbreak Quarantines
1
3
Reporting
5
10
Tracking
1
10
Miscellaneous Files
5
30
System Files Usage : 5 GB
User Files Usage : 0 GB
Total
13
54 of 143
Choose the operation you want to perform:
- EDIT - Edit disk quotas
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-79
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
[]>
ecconfig
Set or clear the enrollment client that is used to obtain certificates for use with the URL Filtering feature.
Do not use this command without guidance from Cisco support.
Entries must be in the format or . Port is optional.
To specify the default server, enter ecconfig server default.
Usage
Commit: This command requires a ‘commit’.
Cluster Management: This command can be used at all levels in a cluster.
Batch Command: This command supports a batch format.
Batch Format
•
To specify a non-default enrollment client server:
> ecconfig server
To use the default enrollment client server:
> ecconfig server default
Example
mail.example.com> ecconfig
Enrollment Server: Not Configured (Use Default)
Choose the operation you want to perform:
- SETUP - Configure the Enrollment Server
[]> setup
Do you want to use non-default Enrollment server?
WARNING: Do not configure this option without the assistance of Cisco Support.
Incorrect configuration can impact the services using certificates from the Enrollment
server. [N]> y
[]> 192.0.2.1
Choose the operation you want to perform:
- SETUP - Configure the Enrollment Server
[]>
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-80
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
ecstatus
Display the current version of the enrollment client that is used to automatically obtain certificates for
use with the URL Filtering feature.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to machine mode.
Batch Command: This command does not support a batch format.
Example
mail.example.com> ecstatus
Component
Version
Enrollment Client
1.0.2-046
Last Updated
Never updated
ecupdate
Manually update the enrollment client that is used to automatically obtain certificates for use with the
URL Filtering feature. Normally, these updates occur automatically. Do not use this command without
guidance from Cisco support.
If you use the force parameter (ecupdate [force]) the client is updated even if no changes are detected.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to machine mode.
Batch Command: This command supports a batch format.
Batch Format
> ecupdate [force]
Example
mail.example.com> ecupdate
Requesting update of Enrollment Client.
encryptionconfig
Configure email encryption.
Usage
Commit: This command requires a ‘commit’.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-81
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
Cluster Management: This command is restricted to machine mode.
Batch Command: This command does not support a batch format
Example
The following example shows modifications to an encryption profile:
mail.example.com> encryptionconfig
IronPort Email Encryption: Enabled
Choose the operation you want to perform:
- SETUP - Enable/Disable IronPort Email Encryption
- PROFILES - Configure email encryption profiles
- PROVISION - Provision with the Cisco Registered Envelope Service
[]> setup
PXE Email Encryption: Enabled
Would you like to use PXE Email Encryption? [Y]>
WARNING: Increasing the default maximum message size(10MB) may result in
decreased performance. Please consult documentation for size recommendations
based on your environment.
Maximum message size for encryption: (Add a trailing K for kilobytes, M for
megabytes, or no letters for bytes.)
[10M]>
Enter the email address of the encryption account administrator
[[email protected]]>
IronPort Email Encryption: Enabled
Choose the operation you want to perform:
- SETUP - Enable/Disable IronPort Email Encryption
- PROFILES - Configure email encryption profiles
- PROVISION - Provision with the Cisco Registered Envelope Service
[]> profiles
Proxy: Not Configured
Profile Name
-----------HIPAA
Key Service
----------Hosted Service
Choose the operation you want to perform:
- NEW - Create a new encryption profile
- EDIT - Edit an existing encryption profile
- DELETE - Delete an encryption profile
- PRINT - Print all configuration profiles
- CLEAR - Clear all configuration profiles
- PROXY - Configure a key server proxy
[]> edit
1. HIPAA
Select the profile you wish to edit:
[1]> 1
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-82
Proxied
------No
Provision Status
---------------Not Provisioned
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
Profile name: HIPAA
External URL: https://res.cisco.com
Encryption algorithm: ARC4
Payload Transport URL: http://res.cisco.com
Envelope Security: High Security
Return receipts enabled: Yes
Secure Forward enabled: No
Secure Reply All enabled: No
Suppress Applet: No
URL associated with logo image:
Encryption queue timeout: 14400
Failure notification subject: [ENCRYPTION FAILURE]
Failure notification template: System Generated
Filename for the envelope: securedoc_${date}T${time}.html
Use Localized Envelope: No
Text notification template: System Generated
HTML notification template: System Generated
Choose the operation you want to perform:
- NAME - Change profile name
- EXTERNAL - Change external URL
- ALGORITHM - Change encryption algorithm
- PAYLOAD - Change the payload transport URL
- SECURITY - Change envelope security
- RECEIPT - Change return receipt handling
- FORWARD - Change "Secure Forward" setting
- REPLYALL - Change "Secure Reply All" setting
- LOCALIZED_ENVELOPE - Enable or disable display of envelopes in languages
other than English
- APPLET - Change applet suppression setting
- URL - Change URL associated with logo image
- TIMEOUT - Change maximum time message waits in encryption queue
- BOUNCE_SUBJECT - Change failure notification subject
- FILENAME - Change the file name of the envelope attached to the encryption
notification.
[]> security
1. High Security (Recipient must enter a password to open the encrypted
message, even if credentials are cached ("Remember Me" selected).)
2. Medium Security (No password entry required if recipient credentials are
cached ("Remember Me" selected).)
3. No Password Required (The recipient does not need a password to open the
encrypted message.)
Please enter the envelope security level:
[1]> 1
Profile name: HIPAA
External URL: https://res.cisco.com
Encryption algorithm: ARC4
Payload Transport URL: http://res.cisco.com
Envelope Security: High Security
Return receipts enabled: Yes
Secure Forward enabled: No
Secure Reply All enabled: No
Suppress Applet: No
URL associated with logo image:
Encryption queue timeout: 14400
Failure notification subject: [ENCRYPTION FAILURE]
Failure notification template: System Generated
Filename for the envelope: securedoc_${date}T${time}.html
Use Localized Envelope: No
Text notification template: System Generated
HTML notification template: System Generated
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-83
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
Choose the operation you want to perform:
- NAME - Change profile name
- EXTERNAL - Change external URL
- ALGORITHM - Change encryption algorithm
- PAYLOAD - Change the payload transport URL
- SECURITY - Change envelope security
- RECEIPT - Change return receipt handling
- FORWARD - Change "Secure Forward" setting
- REPLYALL - Change "Secure Reply All" setting
- LOCALIZED_ENVELOPE - Enable or disable display of envelopes in languages
other than English
- APPLET - Change applet suppression setting
- URL - Change URL associated with logo image
- TIMEOUT - Change maximum time message waits in encryption queue
- BOUNCE_SUBJECT - Change failure notification subject
- FILENAME - Change the file name of the envelope attached to the encryption
notification.
[]> forward
Would you like to enable "Secure Forward"? [N]> y
Profile name: HIPAA
External URL: https://res.cisco.com
Encryption algorithm: ARC4
Payload Transport URL: http://res.cisco.com
Envelope Security: High Security
Return receipts enabled: Yes
Secure Forward enabled: Yes
Secure Reply All enabled: No
Suppress Applet: No
URL associated with logo image:
Encryption queue timeout: 14400
Failure notification subject: [ENCRYPTION FAILURE]
Failure notification template: System Generated
Filename for the envelope: securedoc_${date}T${time}.html
Use Localized Envelope: No
Text notification template: System Generated
HTML notification template: System Generated
Choose the operation you want to perform:
- NAME - Change profile name
- EXTERNAL - Change external URL
- ALGORITHM - Change encryption algorithm
- PAYLOAD - Change the payload transport URL
- SECURITY - Change envelope security
- RECEIPT - Change return receipt handling
- FORWARD - Change "Secure Forward" setting
- REPLYALL - Change "Secure Reply All" setting
- LOCALIZED_ENVELOPE - Enable or disable display of envelopes in languages
other than English
- APPLET - Change applet suppression setting
- URL - Change URL associated with logo image
- TIMEOUT - Change maximum time message waits in encryption queue
- BOUNCE_SUBJECT - Change failure notification subject
- FILENAME - Change the file name of the envelope attached to the encryption
notification.
[]>
Proxy: Not Configured
Profile Name
-----------HIPAA
Key Service
----------Hosted Service
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-84
Proxied
------No
Provision Status
---------------Not Provisioned
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
Choose the operation you want to perform:
- NEW - Create a new encryption profile
- EDIT - Edit an existing encryption profile
- DELETE - Delete an encryption profile
- PRINT - Print all configuration profiles
- CLEAR - Clear all configuration profiles
- PROXY - Configure a key server proxy
[]>
IronPort Email Encryption: Enabled
Choose the operation you want to perform:
- SETUP - Enable/Disable IronPort Email Encryption
- PROFILES - Configure email encryption profiles
- PROVISION - Provision with the Cisco Registered Envelope Service
[]>
encryptionstatus
Description
The encryptionstatus command shows the version of the PXE Engine and Domain Mappings file on
the Email Security appliance, as well as the date and time the components were last updated.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to machine mode.
Batch Command: This command does not support a batch format.
Example
mail3.example.com> encryptionstatus
Component
PXE Engine
Domain Mappings File
Version
6.7.1
1.0.0
Last Updated
17 Nov 2009 00:09 (GMT)
Never updated
encryptionupdate
Description
The encryptionupdate command requests an update to the PXE Engine on the Email Security
appliance.
Usage
Commit: This command does not require a ‘commit’.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-85
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
Cluster Management: This command is restricted to machine mode. It is further restricted to the login
host (i.e., the specific machine you are logged onto).
Batch Command: This command does not support a batch format.
Example
mail3.example.com> encryptionupdate
Requesting update of PXE Engine.
featurekey
Description
The featurekey command lists all functionality enabled by keys on the system and information related
to the keys. It also allows you to activate features using a key or check for new feature keys.
For virtual appliances, see also loadlicense and showlicense.
Usage
Commit: This command requires a ‘commit’.
Cluster Management: This command is restricted to machine mode.
Batch Command: This command does not support a batch format
Example
In this example, the featurekey command is used to check for new feature keys.
mail3.example.com> featurekey
Module
Quantity
Outbreak Filters
1
2014
IronPort Anti-Spam
1
2014
Sophos Anti-Virus
1
2014
Bounce Verification
1
2014
Incoming Mail Handling
1
2014
IronPort Email Encryption
1
2014
RSA Email Data Loss Prevention
1
2014
McAfee
1
2014
Choose the operation you want to perform:
- ACTIVATE - Activate a (pending) key.
- CHECKNOW - Check now for new feature keys.
[]> checknow
No new feature keys are available.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-86
Status
Active
Remaining
28 days
Expiration Date
Tue Feb 25 06:40:53
Dormant
30 days
Wed Feb 26 07:56:57
Active
26 days
Sun Feb 23 02:27:48
Dormant
30 days
Wed Feb 26 07:56:57
Active
20 days
Sun Feb 16 08:55:58
Dormant
30 days
Wed Feb 26 07:56:57
Active
25 days
Fri Feb 21 10:07:10
Dormant
30 days
Wed Feb 26 07:56:57
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
featurekeyconfig
Description
The featurekeyconfig command allows you to configure the machine to automatically download
available keys and update the keys on the machine.
Usage
Commit: This command requires a ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine.
Batch Command: This command does not support a batch format.
Example
In this example, the featurekeyconfig command is used to enable the autoactivate and autocheck
features.
mail3.example.com> featurekeyconfig
Automatic activation of downloaded keys: Disabled
Automatic periodic checking for new feature keys: Disabled
Choose the operation you want to perform:
- SETUP - Edit feature key configuration.
[]> setup
Automatic activation of downloaded keys: Disabled
Automatic periodic checking for new feature keys: Disabled
Choose the operation you want to perform:
- AUTOACTIVATE - Toggle automatic activation of downloaded keys.
- AUTOCHECK - Toggle automatic checking for new feature keys.
[]> autoactivate
Do you want to automatically apply downloaded feature keys? [N]> y
Automatic activation of downloaded keys: Enabled
Automatic periodic checking for new feature keys: Disabled
Choose the operation you want to perform:
- AUTOACTIVATE - Toggle automatic activation of downloaded keys.
- AUTOCHECK - Toggle automatic checking for new feature keys.
[]> autocheck
Do you want to periodically query for new feature keys? [N]> y
Automatic activation of downloaded keys: Enabled
Automatic periodic checking for new feature keys: Enabled
generalconfig
Description
The generalconfig command allows you to configure browser settings.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-87
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
Usage
Commit: This command requires ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command supports a batch format. For details, see the inline help by typing the
command: help generalconfig.
Example - Configure Internet Explorer Compatibility Mode Override
The following example shows how to override IE Compatibility Mode.
mail.example.com> generalconfig
Choose the operation you want to perform:
- IEOVERRIDE - Configure Internet Explorer Compatibility Mode Override
[]> ieoverride
For better web interface rendering, we recommend that you enable Internet
Explorer Compatibility Mode Override. However, if enabling this feature
is against your organizational policy, you may disable this feature.
Internet Explorer Compatibility Mode Override is currently disabled.
Would you like to enable Internet Explorer Compatibility Mode Override? [N]y
Choose the operation you want to perform:
- IEOVERRIDE - Configure Internet Explorer Compatibility Mode Override
[]>
healthcheck
Description
Checks the health of your Email Security appliance. Health check analyzes historical data (up to three
months) in the current Status Logs to determine the health of the appliance.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command does not support a batch format.
Example
mail.example.com> healthcheck
Analyzing the system to determine current health of the system.
The analysis may take a while, depending on the size of the historical data.
System analysis is complete.
The analysis indicates that the system has experienced the following issue(s)recently:
Entered Resource conservation mode
Delay in mail processing
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-88
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
High CPU usage
High memory usage
Based on this analysis,
we recommend you to contact Cisco Customer Support before upgrading.
healthconfig
Description
Configure the threshold of various health parameters of your appliance such as CPU usage, maximum
messages in work queue and so on
Usage
Commit: This command requires ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command does not support a batch format.
Example
mail.example.com> healthconfig
Choose the operation you want to perform:
- WORKQUEUE - View and edit workqueue-health configuration.
- CPU - View and edit CPU-health configuration.
- SWAP - View and edit swap-health configuration.
[]> workqueue
Number of messages in the workqueue : 0
Current threshold on the workqueue size : 500
Alert when exceeds threshold : Disabled
Do you want to edit the settings? [N]> y
Please enter the threshold value for number of messages in work queue.
[500]> 550
Do you want to receive alerts if the number of messages in work queue exceeds
threshold value? [N]> n
Choose the operation you want to perform:
- WORKQUEUE - View and edit workqueue-health configuration.
- CPU - View and edit CPU-health configuration.
- SWAP - View and edit swap-health configuration.
[]> cpu
Overall CPU usage : 0 %
Current threshold on the overall CPU usage: 85 %
Alert when exceeds threshold : Disabled
Do you want to edit the settings? [N]> y
Please enter the threshold value for overall CPU usage (in percent)
[85]> 90
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-89
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
Do you want to receive alerts if the overall CPU usage exceeds threshold value?[N]> n
Choose the operation you want to perform:
- WORKQUEUE - View and edit workqueue-health configuration.
- CPU - View and edit CPU-health configuration.
- SWAP - View and edit swap-health configuration.
[]> swap
Number of pages swapped from memory in a minute : 0
Current threshold on the number of pages swapped from memory per minute : 5000
Alert when exceeds threshold : Disabled
Do you want to edit the settings? [N]> y
Please enter the threshold value for number of pages swapped from memory in a
minute.
[5000]> 5500
Do you want to receive alerts if number of pages swapped from memory in a
minute exceeds the threshold? [N]> n
Choose the operation you want to perform:
- WORKQUEUE - View and edit workqueue-health configuration.
- CPU - View and edit CPU-health configuration.
- SWAP - View and edit swap-health configuration.
[]>
ntpconfig
Description
The ntpconfig command configures AsyncOS to use Network Time Protocol (NTP) to synchronize the
system clock with other computers. NTP can be turned off using the settime command.
Usage
Commit: This command requires ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command does not support a batch format.
Example
mail3.example.com> ntpconfig
Currently configured NTP servers:
1. time.ironport.com
Choose the operation you want to perform:
- NEW - Add a server.
- DELETE - Remove a server.
- SOURCEINT - Set the interface from whose IP address NTP queries should originate.
[]> new
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-90
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
Please enter the fully qualified hostname or IP address of your NTP server.
[]> ntp.example.com
Currently configured NTP servers:
1. time.ironport.com
2. bitsy.mit.edi
Choose the operation you want to perform:
- NEW - Add a server.
- DELETE - Remove a server.
- SOURCEINT - Set the interface from whose IP address NTP queries should
originate.
[]> sourceint
When initiating a connection to an NTP server, the outbound IP address
used is chosen automatically.
If you want to choose a specific outbound IP address,please select
its interface name now.
1. Auto
2. Management (172.19.0.11/24: elroy.run)
3. PrivateNet (172.19.1.11/24: elroy.run)
4. PublicNet (172.19.2.11/24: elroy.run)
[1]> 1
Currently configured NTP servers:
1. time.ironport.com
2. bitsy.mit.edi
Choose the operation you want to perform:
- NEW - Add a server.
- DELETE - Remove a server.
- SOURCEINT - Set the interface from whose IP address NTP queries should originate.
[]>
mail3.example.com> commit
Please enter some comments describing your changes:
[]> Added new NTP server
Do you want to save the current configuration for rollback? [Y]> n
Changes committed: Fri May 23 11:42:12 2014 GMT
reboot
Description
Restart the appliance.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to machine mode.
Batch Command: This command does not support a batch format.
Example
mail3.example.com> reboot
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-91
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
Enter the number of seconds to wait before abruptly closing connections.
[30]>
Waiting for listeners to exit...
Receiving suspended.
Waiting for outgoing deliveries to finish...
Mail delivery suspended.
repengstatus
Description
Request version information of Reputation Engine.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to machine mode.
Batch Command: This command does not support a batch format.
Example
mail.example.com> repengstatus
Component
Reputation Engine
Reputation Engine Tools
Last Update
28 Jan 2014 23:47 (GMT +00:00)
28 Jan 2014 23:47 (GMT +00:00)
Version
1
1
resume
Description
Resume receiving and deliveries
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to machine mode.
Batch Command: This command does not support a batch format.
Example
mail3.example.com> resume
Receiving resumed for Listener 1.
Mail delivery resumed.
Mail delivery for individually suspended domains must be resumed individually.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-92
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
resumedel
Description
Resume deliveries.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to machine mode.
Batch Command: This command does not support a batch format.
Example
mail.example.com> resumedel
Currently suspended domains:
1. domain1.com
2. domain2.com
3. domain3.com
Enter one or more domains [comma-separated] to which you want to resume delivery.
[ALL]> domain1.com, domain2.com
Mail delivery resumed.
resumelistener
Description
Resume receiving on a listener.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to machine mode.
Batch Command: This command does not support a batch format.
Example
mail3.example.com> resumelistener
Choose the listener(s) you wish to resume.
Separate multiple entries with commas.
1. All
2. InboundMail
3. OutboundMail
[1]> 1
Receiving resumed.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-93
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
mail3.example.com>
revert
Description
Revert to a previous release.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command does not support a batch format.
Example
mail.example.com> revert
This command will revert the appliance to a previous version of AsyncOS.
WARNING: Reverting the appliance is extremely destructive.
The following data will be destroyed in the process:
- all configuration settings (including listeners)
- all log files
- all databases (including messages in Virus Outbreak and Policy quarantines)
- all reporting data (including saved scheduled reports)
- all message tracking data
- all IronPort Spam Quarantine message and end-user safelist/blocklist data
Only the network settings will be preserved.
Before running this command, be sure you have:
- saved the configuration file of this appliance (with passwords unmasked)
- exported the IronPort Spam Quarantine safelist/blocklist database
to another machine (if applicable)
- waited for the mail queue to empty
Reverting the device causes an immediate reboot to take place.
After rebooting, the appliance reinitializes itself and reboots
again to the desired version.
Available versions
=================
1. 9.1.0-019
Please select an AsyncOS version [1]:
Do you want to continue? [N]>
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-94
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
settime
Description
The settime command allows you to manually set the time if you are not using an NTP server. The
command asks you if you want to stop NTP and manually set the system clock. Enter the time is using
this format: MM/DD/YYYY HH:MM:SS.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to machine mode.
Batch Command: This command does not support a batch format.
Example
mail3.example.com> settime
WARNING: Changes to system time will take place immediately
and do not require the user to run the commit command.
Current time 09/23/2001 21:03:53.
This machine is currently running NTP.
In order to manually set the time, NTP must be disabled.
Do you want to stop NTP and manually set the time? [N]> Y
Please enter the time in MM/DD/YYYY HH:MM:SS format.
[]> 09/23/2001 21:03:53
Time set to 09/23/2001 21:03:53.
settz
Description
Set the local time zone.
Usage
Commit: This command requires a ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command does not support a batch format.
Example
mail3.example.com> settz
Current time zone: Etc/GMT
Current time zone version: 2010.02.0
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-95
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
Choose the operation you want to perform:
- SETUP - Set the local time zone.
[]> setup
Please choose your continent:
1. Africa
2. America
[ ... ]
11. GMT Offset
[2]> 2
Please choose your country:
1. Anguilla
[ ... ]
45. United States
46. Uruguay
47. Venezuela
48. Virgin Islands (British)
49. Virgin Islands (U.S.)
[45]> 45
Please choose your timezone:
1. Alaska Time (Anchorage)
2. Alaska Time - Alaska panhandle (Juneau)
[ ... ]
21. Pacific Time (Los_Angeles)
[21]> 21
Current time zone: America/Los_Angeles
Choose the operation you want to perform:
- SETUP - Set the local time zone.
[]>
shutdown
Description
Shut down the system to power off
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to machine mode.
Batch Command: This command does not support a batch format.
Example
mail3.example.com> shutdown
Enter the number of seconds to wait before abruptly closing connections.
[30]>
System shutting down.
Please wait while the queue is being closed.
Closing CLI connection.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-96
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
Use the power button (in 30 seconds) to turn off the machine.
sshconfig
Description
Configure SSH server and user key settings.
Usage
Commit: This command requires a ‘commit’.
Cluster Management: This command is restricted to cluster mode.
Batch Command: This command does not support a batch format.
Reboot. Reboot is required for changes to take effect.
Example
In the following example, a new public key is installed for the administrator account:
mail.example.com> sshconfig
Choose the operation you want to perform:
- SSHD - Edit SSH server settings.
- USERKEY - Edit SSH User Key settings
[]> userkey
Currently installed keys for admin:
Choose the operation you want to perform:
- NEW - Add a new key.
- USER - Switch to a different user to edit.
[]> new
Please enter the public SSH key for authorization.
Press enter on a blank line to finish.
[-paste public key for user authentication here-]
Choose the operation you want to perform:
- SSHD - Edit SSH server settings.
- USERKEY - Edit SSH User Key settings
[]>
The following example shows how to edit the SSH server configuration.
mail.example.com> sshconfig
Choose the operation you want to perform:
- SSHD - Edit SSH server settings.
- USERKEY - Edit SSH User Key settings
[]> sshd
ssh server config settings:
Public Key Authentication Algorithms:
rsa1
ssh-dss
ssh-rsa
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-97
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
Cipher Algorithms:
aes128-ctr
aes192-ctr
aes256-ctr
arcfour256
arcfour128
aes128-cbc
3des-cbc
blowfish-cbc
cast128-cbc
aes192-cbc
aes256-cbc
arcfour
[email protected]
MAC Methods:
hmac-md5
hmac-sha1
[email protected]
hmac-ripemd160
[email protected]
hmac-sha1-96
hmac-md5-96
Minimum Server Key Size:
1024
KEX Algorithms:
diffie-hellman-group-exchange-sha256
diffie-hellman-group-exchange-sha1
diffie-hellman-group14-sha1
diffie-hellman-group1-sha1
Choose the operation you want to perform:
- SETUP - Setup SSH server configuration settings
[]> setup
Enter the Public Key Authentication Algorithms do you want to use
[rsa1,ssh-dss,ssh-rsa]>
Enter the Cipher Algorithms do you want to use
[aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,c
ast128-cbc,aes192-cbc,aes256-cbc,arcfour,[email protected]]>
Enter the MAC Methods do you want to use
[hmac-md5,hmac-sha1,[email protected],hmac-ripemd160,[email protected],hmac-sha
1-96,hmac-md5-96]>
Enter the Minimum Server Key Size do you want to use
[1024]>
Enter the KEX Algorithms do you want to use
[diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-gr
oup14-sha1,diffie-hellman-group1-sha1]>
ssh server config settings:
Public Key Authentication Algorithms:
rsa1
ssh-dss
ssh-rsa
Cipher Algorithms:
aes128-ctr
aes192-ctr
aes256-ctr
arcfour256
arcfour128
aes128-cbc
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-98
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
3des-cbc
blowfish-cbc
cast128-cbc
aes192-cbc
aes256-cbc
arcfour
[email protected]
MAC Methods:
hmac-md5
hmac-sha1
[email protected]
hmac-ripemd160
[email protected]
hmac-sha1-96
hmac-md5-96
Minimum Server Key Size:
1024
KEX Algorithms:
diffie-hellman-group-exchange-sha256
diffie-hellman-group-exchange-sha1
diffie-hellman-group14-sha1
diffie-hellman-group1-sha1
Choose the operation you want to perform:
- SETUP - Setup SSH server configuration settings
[]>
Choose the operation you want to perform:
- SSHD - Edit SSH server settings.
- USERKEY - Edit SSH User Key settings
[]>
status
Description
Show system status.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to machine mode.
Batch Command: This command does not support a batch format.
Example
mail3.example.com> status
Status as of:
Up since:
Last counter reset:
System status:
Oldest Message:
Feature - McAfee:
Thu Oct 21 14:33:27 2004 PDT
Wed Oct 20 15:47:58 2004 PDT (22h 45m 29s)
Never
Online
4 weeks 46 mins 53 secs
161 days
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-99
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
[....]
Feature - Outbreak Filters:
161 days
Counters:
Receiving
Messages Received
Recipients Received
Rejection
Rejected Recipients
Dropped Messages
Queue
Soft Bounced Events
Completion
Completed Recipients
Current IDs
Message ID (MID)
Injection Conn. ID (ICID)
Delivery Conn. ID (DCID)
Gauges:
Connections
Current Inbound Conn.
Current Outbound Conn.
Queue
Active Recipients
Messages In Work Queue
Kilobytes Used
Kilobytes Free
Quarantine
Messages In Quarantine
Policy, Virus and Outbreak
Kilobytes In Quarantine
Policy, Virus and Outbreak
Reset
Uptime
Lifetime
62,049,822
62,049,823
290,920
290,920
62,049,822
62,049,823
3,949,663
11,606,037
11,921
219
3,949,663
11,606,037
2,334,552
13,598
2,334,552
50,441,741
332,625
50,441,741
99524480
51180368
17550674
Current
0
14
1
0
92
8,388,516
0
0
supportrequest
Description
Send a message to Cisco customer support. This command requires that the appliance is able to send
mail to the Internet. A trouble ticket is automatically created, or you can associate the support request
with an existing trouble ticket.
To access Cisco technical support directly from the appliance, your Cisco.com user ID must be
associated with your service agreement contract for this appliance. To view a list of service contracts
that are currently associated with your Cisco.com profile, visit the Cisco.com Profile Manager at
https://sso.cisco.com/autho/forms/CDClogin.html. If you do not have a Cisco.com user ID, register to
get one. See information about registering for an account in the online help or user guide for your release.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to machine mode. It is further restricted to the login
host (i.e., the specific machine you are logged onto). This command requires access to the local file
system.
Batch Command: This command does not support a batch format.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-100
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
Example
The following example shows a support request that is not related to an existing support ticket.
mail.example.com> supportrequest
Please Note:
If you have an urgent issue, please call one of our worldwide Support Centers
(www.cisco.com/support). Use this command to open a technical support request
for issues that are not urgent, such as:
- Request for information.
- Problem for which you have a work-around, but would like an alternative
solution.
Do you want to send the support request to [email protected]?
[Y]>
Do you want to send the support request to additional recipient(s)?
[N]>
Is this support request associated with an existing support ticket?
[N]>
Please select a technology related to this support request:
1. Security - Email and Web
2. Security - Management
[1]> 1
Please select a subtechnology related to this
1. Cisco Email Security Appliance (C1x0,C3x0,
Messages
2. Cisco Email Security Appliance (C1x0,C3x0,
3. Cisco Email Security Appliance (C1x0,C3x0,
4. Email Security Appliance - Virtual
[1]> 3
support request:
C6x0, X10x0) - Misclassified
C6x0, X10x0) - SBRS
C6x0, X10x0) - Other
Please select the problem category:
1. Upgrade
2. Operate
3. Configure
4. Install
[1]> 3
Please select a problem sub-category:
1. Error Messages, Logs, Debugs
2. Software Failure
3. Interoperability
4. Configuration Assistance
5. Install, Uninstall or Upgrade
6. Hardware Failure
7. Licensing
8. Data Corruption
9. Software Selection/Download Assistance
10. Password Recovery
[1]> 5
Please enter a subject line for this support request:
[]>
Please enter a description of your issue, providing as much detail as possible
to aid in diagnosis:
[]>
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-101
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
It is important to associate all your service contracts with your Cisco.com profile (CCO
ID) in order for you to receive complete access to support and
services from Cisco. Please follow the URLs below to associate your contract coverage on
your Cisco.com profile. If you do not have a CCO ID, please follow
the URL below to create a CCO ID.
How to create a CCO ID:
https://tools.cisco.com/RPF/register/register.do
How to associate your CCO ID with contract:
https://tools.cisco.com/RPFA/profile/profile_management.do
Frequently Asked Question:
http://www.cisco.com/web/ordering/cs_info/faqs/index.html
Select the CCOID
1. New CCOID
[1]>
Please enter the CCOID of the contact person :
[]> your name
The CCO ID may contain alphabets, numbers and '@', '.', '-' and '_' symbols.
Please enter the CCOID of the contact person :
[]> [email protected]
Please enter the name of the contact person :
[]> yourname
Please enter your email address:
[]> [email protected]
Please enter the contract ID:
[]> 1234
Please enter any additional contact information (e.g. phone number):
[]>
Please wait while configuration information is generated...
Do you want to print the support request to the screen?
[N]>
supportrequeststatus
Description
Display Support Request Keywords version information for requesting support from Cisco TAC.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command does not support a batch format.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-102
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
Example
mail.example.com> supportrequeststatus
Component
Support Request
Version
1.0
Last Updated
Never updated
supportrequestupdate
Description
Request manual update of Support Request Keywords for requesting support from Cisco TAC.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command does not support a batch format.
Example
mail.example.com> supportrequestupdate
Requesting update of Support Request Keywords.
suspend
Description
Suspend receiving and deliveries
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to machine mode.
Batch Command: This command does not support a batch format.
Example
mail3.example.com> suspend
Enter the number of seconds to wait before abruptly closing connections.
[30]> 45
Waiting for listeners to exit...
Receiving suspended for Listener 1.
Waiting for outgoing deliveries to finish...
Mail delivery suspended.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-103
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
mail3.example.com>
suspenddel
Description
Suspend deliveries
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to machine mode.
Batch Command: This command does not support a batch format.
Example
mail.example.com> suspenddel
Enter the number of seconds to wait before abruptly closing connections.
[30]>
Enter one or more domains [comma-separated] to which you want to suspend delivery.
[ALL]> domain1.com, domain2.com, domain3.com
Waiting for outgoing deliveries to finish...
Mail delivery suspended.
suspendlistener
Description
Suspend receiving.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to machine mode.
Batch Command: This command does not support a batch format.
Example
mail3.example.com> suspendlistener
Choose the listener(s) you wish to suspend.
Separate multiple entries with commas.
1. All
2. InboundMail
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-104
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
3. OutboundMail
[1]> 1
Enter the number of seconds to wait before abruptly closing connections.
[30]>
Waiting for listeners to exit...
Receiving suspended.
mail3.example.com>
tcpservices
Description
Display information about files opened by processes.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to machine mode.
Batch Command: This command does not support a batch format.
Example
mail.cisco.com> tcpservices
System Processes
ftpd.main
ginetd
interface
ipfw
slapd
sntpd
sshd
syslogd
winbindd
-
(Note: All processes may not always be present)
The FTP daemon
The INET daemon
The interface controller for inter-process communication
The IP firewall
The Standalone LDAP daemon
The SNTP daemon
The SSH daemon
The system logging daemon
The Samba Name Service Switch daemon
Feature Processes
euq_webui
- GUI for ISQ
gui
- GUI process
hermes
- MGA mail server
postgres
- Process for storing and querying quarantine data
splunkd
- Processes for storing and querying Email Tracking data
COMMAND
interface
postgres
qabackdoo
ftpd.main
euq_webui
euq_webui
gui
gui
gui
gui
gui
USER
root
pgsql
root
root
root
root
root
root
root
root
root
TYPE
IPv4
IPv4
IPv4
IPv4
IPv4
IPv6
IPv4
IPv4
IPv6
IPv4
IPv4
NODE
TCP
TCP
TCP
TCP
TCP
TCP
TCP
TCP
TCP
TCP
TCP
NAME
127.0.0.1:53
127.0.0.1:5432
*:8123
10.1.1.0:21
10.1.1.0:83
[2001:db8::]:83
172.29.181.70:80
10.1.1.0:80
[2001:db8::]:80
172.29.181.70:443
10.1.1.0:443
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-105
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
gui
ginetd
ginetd
ginetd
ginetd
ginetd
hermes
splunkd
splunkd
api_serve
api_serve
api_serve
api_serve
java
root
root
root
root
root
root
root
root
root
root
root
root
root
root
IPv6
IPv4
IPv4
IPv6
IPv4
IPv6
IPv4
IPv4
IPv4
IPv4
IPv6
IPv4
IPv6
IPv6
TCP
TCP
TCP
TCP
TCP
TCP
TCP
TCP
TCP
TCP
TCP
TCP
TCP
TCP
[2001:db8::]:443
172.29.181.70:22
10.1.1.0:22
[2001:db8::]:22
10.1.1.0:2222
[2001:db8::]:2222
172.29.181.70:25
127.0.0.1:8089
127.0.0.1:9997
10.1.1.0:6080
[2001:db8::]:6080
10.1.1.0:6443
[2001:db8::]:6443
[::127.0.0.1]:9999
techsupport
Description
Allow Cisco TAC to access your system.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to machine mode.
Batch Command: This command does not support a batch format.
Example
mail3.example.com> techsupport
Service Access currently disabled.
Serial Number: XXXXXXXXXXXX-XXXXXXX
Choose the operation you want to perform:
- SSHACCESS - Allow a Cisco IronPort Customer Support representative to remotely access
your system, without establishing a tunnel.
- TUNNEL - Allow a Cisco IronPort Customer Support representative to remotely access your
system, and establish a secure tunnel for communication.
- STATUS - Display the current techsupport status.
[]> sshaccess
A random seed string is required for this operation
1. Generate a random string to initialize secure communication (recommended)
2. Enter a random string
[1]> 1
Are you sure you want to enable service access? [N]> y
Service access has been ENABLED.
Please provide the string:
QT22-JQZF-YAQL-TL8L-8@2L-95
to your Cisco IronPort Customer Support representative.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-106
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
Service Access currently ENABLED (0 current service logins).
Tunnel option is not active.
Serial Number: XXXXXXXXXXXX-XXXXXXX
Choose the operation you want to perform:
- DISABLE - Prevent customer service representatives from remotely accessing your system.
- STATUS - Display the current techsupport status.
[]>
tlsverify
Description
Establish an outbound TLS connection on demand and debug any TLS connection issues concerning a
destination domain. To create the connection, specify the domain to verify against and the destination
host. AsyncOS checks the TLS connection based on the Required (Verify) TLS setting
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to machine mode.
Batch Command: This command supports a batch format.
Batch Format
The batch format of the tlsverify command can be used to perform all the fuctions of the traditional
CLI command to check the TLS connection to the given hostname.
tlsverify [:]
Example
mail3.example.com> tlsverify
Enter the TLS domain to verify against:
[]> example.com
Enter the destination host to connect to.
connecting on port 25:
[example.com]> mxe.example.com:25
Append the port (example.com:26) if you are not
Connecting to 1.1.1.1 on port 25.
Connected to 1.1.1.1 from interface 10.10.10.10.
Checking TLS connection.
TLS connection established: protocol TLSv1, cipher RC4-SHA.
Verifying peer certificate.
Verifying certificate common name mxe.example.com.
TLS certificate match mxe.example.com
TLS certificate verified.
TLS connection to 1.1.1.1 succeeded.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-107
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
TLS successfully connected to mxe.example.com.
TLS verification completed.
trace
Description
Trace the flow of a message through the system
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to machine mode.
Batch Command: This command does not support a batch format.
Example
mail3.example.com> trace
Enter the source IP
[]> 192.168.1.1
Enter the fully qualified domain name of the source IP
[]> example.com
Select the listener to trace behavior on:
1. InboundMail
2. OutboundMail
[1]> 1
Fetching default SenderBase values...
Enter the SenderBase Org ID of the source IP.
[N/A]>
The actual ID is N/A.
Enter the SenderBase Reputation Score of the source IP.
[N/A]>
The actual score is N/A.
Enter the Envelope Sender address:
[]> [email protected]
Enter the Envelope Recipient addresses.
[]> [email protected]
Load message from disk?
Separate multiple addresses by commas.
[Y]> n
Enter or paste the message body here. Enter '.' on a blank line to end.
Subject: Hello
This is a test message.
.
HAT matched on unnamed sender group, host ALL
- Applying $ACCEPTED policy (ACCEPT behavior).
- Maximum Message Size: 100M (Default)
- Maximum Number Of Connections From A Single IP: 1000 (Default)
- Maximum Number Of Messages Per Connection: 1,000 (Default)
- Maximum Number Of Recipients Per Message: 1,000 (Default)
- Maximum Recipients Per Hour: 100 (Default)
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-108
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
-
Use SenderBase For Flow Control: Yes (Default)
Spam Detection Enabled: Yes (Default)
Virus Detection Enabled: Yes (Default)
Allow TLS Connections: No (Default)
Processing MAIL FROM:
- Default Domain Processing:
No Change
Processing Recipient List:
Processing [email protected]
- Default Domain Processing: No Change
- Domain Map: No Change
- RAT matched on [email protected], behavior = ACCEPT
- Alias expansion: No Change
Message Processing:
- No Virtual Gateway(tm) Assigned
- No Bounce Profile Assigned
Domain Masquerading/LDAP Processing:
- No Changes.
Processing filter 'always_deliver':
Evaluating Rule:
rcpt-to == "@mail.qa"
Result = False
Evaluating Rule:
rcpt-to == "ironport.com"
Result = True
Evaluating Rule:
OR
Result = True
Executing Action: deliver()
Footer Stamping:
- Not Performed
Inbound Recipient Policy Processing: (matched on Management Upgrade policy)
Message going to: [email protected]
AntiSpam Evaluation:
- Not Spam
AntiVirus Evaluation:
- Message Clean.
- Elapsed Time = '0.000 sec'
Outbreak Filter Evaluation:
- No threat detected
Message Enqueued for Delivery
Would you like to see the resulting message? [Y]> y
Final text for messages matched on policy Management Upgrade
Final Envelope Sender: [email protected]
Final Recipients:
- [email protected]
Final Message Content:
Received: from remotehost.example.com (HELO TEST) (1.2.3.4)
by stacy.qa with TEST; 19 Oct 2004 00:54:48 -0700
Message-Id: <3i93q9$@Management>
X-IronPort-AV: i="3.86,81,1096873200";
d="scan'208"; a="0:sNHT0"
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-109
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
Subject: hello
This is a test message.
Run through another debug session? [N]>
Note
When using trace, you must include both the header and the body of the message pasted into the CLI.
trackingconfig
Description
Configure the tracking system.
Usage
Commit: This command requires a ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command does not support a batch format.
Example
mail.example.com> trackingconfig
Message Tracking service status: Message Tracking is enabled.
Choose the operation you want to perform:
- SETUP - Enable Message Tracking for this appliance.
[]> setup
Would you like to use the Message Tracking Service? [Y]>
Do you want to use Centralized Message Tracking for this appliance? [N]>
Would you like to track rejected connections? [N]>
Message Tracking service status: Local Message Tracking is enabled.
Rejected connections are currently not being tracked.
Choose the operation you want to perform:
- SETUP - Enable Message Tracking for this appliance.
[]>
tzupdate
Description
Update timezone rules
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-110
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to machine mode. It is further restricted to the login
host (i.e., the specific machine you are logged onto).
Batch Command: This command supports a batch format.
Batch Format
The batch format of the tzupdate command forces an update off all time zone rules even if no changes
are detected.
tzupdate [force]
Example
mail.example.com> tzupdate
Requesting update of Timezone Rules
updateconfig
Description
Configure system update parameters.
Usage
Commit: This command requires a ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command does not support a batch format.
Examples
•
Configure the Appliance to Download Updates from Updater Servers, page 3-111
•
Configure the Appliance to Verify the Validity of Updater Server Certificate, page 3-114
•
Configure the Appliance to Trust Proxy Server Communication, page 3-115
Configure the Appliance to Download Updates from Updater Servers
In the following example, the updateconfig command is used to configure the appliance to download
update images from Cisco servers and download the list of available AsyncOS upgrades from a local
server.
mail.example.com> updateconfig
Service (images):
Update URL:
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-111
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
-----------------------------------------------------------------------------------------Feature Key updates
http://downloads.ironport.com/asyncos
Timezone rules
Cisco IronPort Servers
Enrollment Client Updates
Cisco IronPort Servers
Support Request updates
Cisco IronPort Servers
Cisco IronPort AsyncOS upgrades
Cisco IronPort Servers
Service (list):
Update URL:
-----------------------------------------------------------------------------------------Timezone rules
Cisco IronPort Servers
Enrollment Client Updates
Cisco IronPort Servers
Support Request updates
Cisco IronPort Servers
Service (list):
Update URL:
-----------------------------------------------------------------------------------------Cisco IronPort AsyncOS upgrades
Cisco IronPort Servers
Update interval: 5m
Proxy server: not enabled
HTTPS Proxy server: not enabled
Choose the operation you want to perform:
- SETUP - Edit update configuration.
- VALIDATE_CERTIFICATES - Validate update server certificates
- TRUSTED_CERTIFICATES - Manage trusted certificates for updates
[]> setup
For the following services, please select where the system will download updates from:
Service (images):
Update URL:
-----------------------------------------------------------------------------------------Feature Key updates
http://downloads.ironport.com/asyncos
1. Use Cisco IronPort update servers (http://downloads.ironport.com)
2. Use own server
[1]>
For the following services, please select where the system will download updates from
(images):
Service (images):
Update URL:
-----------------------------------------------------------------------------------------Timezone rules
Cisco IronPort Servers
Enrollment Client Updates
Cisco IronPort Servers
Support Request updates
Cisco IronPort Servers
1. Use Cisco IronPort update servers
2. Use own server
[1]>
For the following services, please select where the system will download updates from
(images):
Service (images):
Update URL:
-----------------------------------------------------------------------------------------Cisco IronPort AsyncOS upgrades
Cisco IronPort Servers
1. Use Cisco IronPort update servers
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-112
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
2. Use own server
[1]>
For the following services, please select where the system will download the list of
available
updates from:
Service (list):
Update URL:
-----------------------------------------------------------------------------------------Timezone rules
Cisco IronPort Servers
Enrollment Client Updates
Cisco IronPort Servers
Support Request updates
Cisco IronPort Servers
1. Use Cisco IronPort update servers
2. Use own update list
[1]>
For the following services, please select where the system will download the list of
available
updates from:
Service (list):
Update URL:
-----------------------------------------------------------------------------------------Cisco IronPort AsyncOS upgrades
Cisco IronPort Servers
1. Use Cisco IronPort update servers
2. Use own update list
[1]>
Enter the time interval between checks for new:
- Timezone rules
- Enrollment Client Updates (used to fetch certificates for URL Filtering)
- Support Request updates
Use a trailing 's' for seconds, 'm' for minutes or 'h' for hours. The minimum
valid update time is 30s or enter '0' to disable automatic updates (manual
updates will still be available for individual services).
[5m]>
When initiating a connection to the update server the originating IP interface
is chosen automatically. If you want to choose a specific interface, please
specify it now.
1. Auto
2. Management (10.76.69.149/24: vm30esa0086.ibqa)
[1]>
Do you want to set up a proxy server for HTTP updates for ALL of the following
services:
-
Feature Key updates
Timezone rules
Enrollment Client Updates (used to fetch certificates for URL Filtering)
Support Request updates
Cisco IronPort AsyncOS upgrades
[N]>
Do you want to set up an HTTPS proxy server for HTTPS updates for ALL of the following
services:
-
Feature Key updates
Timezone rules
Enrollment Client Updates (used to fetch certificates for URL Filtering)
Support Request updates
Cisco IronPort AsyncOS upgrades
SenderBase Network Participation sharing
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-113
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
[N]>
Service (images):
Update URL:
-----------------------------------------------------------------------------------------Feature Key updates
http://downloads.ironport.com/asyncos
Timezone rules
Cisco IronPort Servers
Enrollment Client Updates
Cisco IronPort Servers
Support Request updates
Cisco IronPort Servers
Cisco IronPort AsyncOS upgrades
Cisco IronPort Servers
Service (list):
Update URL:
-----------------------------------------------------------------------------------------Timezone rules
Cisco IronPort Servers
Enrollment Client Updates Cisco IronPort Servers
Support Request updates
Cisco IronPort Servers
Service (list):
Update URL:
-----------------------------------------------------------------------------------------Cisco IronPort AsyncOS upgrades
Cisco IronPort Servers
Update interval: 5m
Proxy server: not enabled
HTTPS Proxy server: not enabled
Choose the operation you want to perform:
- SETUP - Edit update configuration.
- VALIDATE_CERTIFICATES - Validate update server certificates
- TRUSTED_CERTIFICATES - Manage trusted certificates for updates
[]>
Configure the Appliance to Verify the Validity of Updater Server Certificate
If you configure this option, every time the appliance communicates the Cisco updater server, the
validity of the updater server certificate is verified. If the verification fails, updates are not downloaded
and the details are logged in Updater Logs. The following example shows how to configure this option:
mail.example.com> updateconfig
Service (images):
Update URL:
-----------------------------------------------------------------------------------------Feature Key updates
http://downloads.ironport.com/asyncos
Timezone rules
Cisco IronPort Servers
Enrollment Client Updates
Cisco IronPort Servers
Support Request updates
Cisco IronPort Servers
Cisco IronPort AsyncOS upgrades
Cisco IronPort Servers
Service (list):
Update URL:
-----------------------------------------------------------------------------------------Timezone rules
Cisco IronPort Servers
Enrollment Client Updates
Cisco IronPort Servers
Support Request updates
Cisco IronPort Servers
Service (list):
Update URL:
-----------------------------------------------------------------------------------------Cisco IronPort AsyncOS upgrades
Cisco IronPort Servers
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-114
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
Update interval: 5m
Proxy server: not enabled
HTTPS Proxy server: not enabled
Choose the operation you want to perform:
- SETUP - Edit update configuration.
- VALIDATE_CERTIFICATES - Validate update server certificates
- TRUSTED_CERTIFICATES - Manage trusted certificates for updates
[]> validate_certificates
Should server certificates from Cisco update servers be validated?
[Yes]>
Service (images):
Update URL:
-----------------------------------------------------------------------------------------Feature Key updates
http://downloads.ironport.com/asyncos
Timezone rules
Cisco IronPort Servers
Enrollment Client Updates
Cisco IronPort Servers
Support Request updates
Cisco IronPort Servers
Cisco IronPort AsyncOS upgrades
Cisco IronPort Servers
Service (list):
Update URL:
-----------------------------------------------------------------------------------------Timezone rules
Cisco IronPort Servers
Enrollment Client Updates
Cisco IronPort Servers
Support Request updates
Cisco IronPort Servers
Service (list):
Update URL:
-----------------------------------------------------------------------------------------Cisco IronPort AsyncOS upgrades
Cisco IronPort Servers
Update interval: 5m
Proxy server: not enabled
HTTPS Proxy server: not enabled
Choose the operation you want to perform:
- SETUP - Edit update configuration.
- VALIDATE_CERTIFICATES - Validate update server certificates
- TRUSTED_CERTIFICATES - Manage trusted certificates for updates
[]>
Configure the Appliance to Trust Proxy Server Communication
If you are using a non-transparent proxy server, you can add the CA certificate used to sign the proxy
certificate to the appliance. By doing so, the appliance trusts the proxy server communication. The
following example shows how to configure this option:
...
Choose the operation you want to perform:
- SETUP - Edit update configuration.
- VALIDATE_CERTIFICATES - Validate update server certificates
- TRUSTED_CERTIFICATES - Manage trusted certificates for updates
[]> trusted_certificates
Choose the operation you want to perform:
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-115
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
- ADD - Upload a new trusted certificate for updates.
[]> add
Paste certificates to be trusted for secure updater connections, blank to quit
Trusted Certificate for Updater:
Paste cert in PEM format (end with '.'):
-----BEGIN CERTIFICATE----MMIICiDCCAfGgAwIBAgIBATANBgkqhkiG9w0BAQUFADCBgDELMAkGA1UEBhMCSU4x
DDAKBgNVBAgTA0tBUjENM............................................
-----END CERTIFICATE----.
Choose the operation you want to perform:
- ADD - Upload a new trusted certificate for updates.
- LIST - List trusted certificates for updates.
- DELETE - Delete a trusted certificate for updates.
[]>
updatenow
Description
Requests an update to all system service components.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to machine mode. It is further restricted to the login
host (i.e., the specific machine you are logged onto).
Batch Command: This command does support a batch format.
Batch Format
The batch format of the updatenow command can be used to update all components on the appliance even
if no changes are detected.
updatenow [force]
Example
mail3.example.com> updatenow
Success - All component updates requested
version
Description
View system version information
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-116
Chapter 3
The Commands: Reference Examples
General Management/Administration/Troubleshooting
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to machine mode.
Batch Command: This command does not support a batch format.
Example
mail3.example.com> version
Current Version
===============
Product: Cisco C100V Email Security Virtual Appliance
Model: C100V
Version: 9.1.0-019
Build Date: 2015-02-17
Install Date: 2015-02-19 05:17:56
Serial #: 421C73B18CFB05784A83-B03A99E71ED8
BIOS: 6.00
CPUs: 2 expected, 2 allocated
Memory: 6144 MB expected, 6144 MB allocated
RAID: NA
RAID Status: Unknown
RAID Type: NA
BMC: NA
wipedata
Description
Use the wipedata command to wipe the core files on the disk and check the status of the last coredump
operation.
Note
Depending on the size of the data, wipe action may take a while and can affect the system performance
until the action is complete.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to machine mode.
Batch Command: This command does not support a batch format.
Example
mail.example.com> wipedata
Wiping data may take a while and can affect system performance till it completes.
Choose the operation you want to perform:
- STATUS - Display status of last command run
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-117
Chapter 3
The Commands: Reference Examples
LDAP
- COREDUMP - Wipe core files on disk
[]> coredump
wipedata: In progress
mail.example.com> wipedata
Wiping data may take a while and can affect system performance till it completes.
Choose the operation you want to perform:
- STATUS - Display status of last command run
- COREDUMP - Wipe core files on disk
[]> status
Last wipedata status: Successful
upgrade
Description
The upgrade CLI command displays a list of available upgrades and upgrades the AsyncOS system to
the version specified by the user.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to machine mode.
Batch Command: This command does not support a batch format.
Example
mail3.example.com> upgrade
Upgrades available:
1. AsyncOS (***DON'T TOUCH!***) 4.0.8 upgrade, 2005-05-09 Build 900
2. AsyncOS 4.0.8 upgrade, 2005-08-12 Build 030
.......
45. SenderBase Network Participation Patch
[45]>
Performing an upgrade will require a reboot of the system after the upgrade is applied.
Do you wish to proceed with the upgrade? [Y]> Y
LDAP
This section contains the following CLI commands:
•
ldapconfig
•
ldapflush
•
ldaptest
•
sievechar
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-118
Chapter 3
The Commands: Reference Examples
LDAP
ldapconfig
Description
Configure LDAP servers
Usage
Commit: This command requires a ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command does not support a batch format.
Example - Creating a New LDAP Server Profile
In the following example, the ldapconfig command is used to define an LDAP server for the appliance
to bind to, and queries for recipient acceptance (ldapaccept subcommand), routing (ldaprouting
subcommand), masquerading (masquerade subcommand), end-user authentication for the Spam
Quarantine (isqauth subcommand), and alias consolidation for spam notifications (isqalias
subcommand) are configured.
First, the nickname of “PublicLDAP” is given for the mldapserver.example.com LDAP server. Queries
are directed to port 3268 (the default). The search base of example.com is defined (dc=example,dc=com),
and queries for recipient acceptance, mail re-routing, and masquerading are defined. The queries in this
example are similar to an OpenLDAP directory configuration which uses the inetLocalMailRecipient
auxiliary object class defined in the expired Internet Draft draft-lachman-laser-ldap-mail-routing-xx.txt,
also sometimes known as “the Laser spec.” (A version of this draft is included with the OpenLDAP
source distribution.) Note that in this example, the alternate mailhost to use for queried recipients in the
mail re-routing query is mailForwardingAddress. Remember that query names are case-sensitive and
must match exactly in order to return the proper results.
mail3.example.com> ldapconfig
No LDAP server configurations.
Choose the operation you want to perform:
- NEW - Create a new server configuration.
- SETUP - Configure LDAP options.
[]> new
Please create a name for this server configuration (Ex: "PublicLDAP"):
[]> PublicLDAP
Please enter the hostname:
[]> myldapserver.example.com
Use SSL to connect to the LDAP server? [N]> n
Select the authentication method to use for this server configuration:
1. Anonymous
2. Password based
[1]> 2
Please enter the bind username:
[cn=Anonymous]>
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-119
Chapter 3
The Commands: Reference Examples
LDAP
Please enter the bind password:
[]>
Connect to LDAP server to validate setting? [Y]
Connecting to the LDAP server, please wait...
Select the server type to use for this server configuration:
1. Active Directory
2. OpenLDAP
3. Unknown or Other
[3]> 1
Please enter the port number:
[3268]> 3268
Please enter the base:
[dc=example,dc=com]> dc=example,dc=com
Name: PublicLDAP
Hostname: myldapserver.example.com Port 3268
Server Type: Active Directory
Authentication Type: password
Base: dc=example,dc=com
Choose the operation you want to perform:
- SERVER - Change the server for the query.
- TEST - Test the server configuration.
- LDAPACCEPT - Configure whether a recipient address should be accepted or
bounced/dropped.
- LDAPROUTING - Configure message routing.
- MASQUERADE - Configure domain masquerading.
- LDAPGROUP - Configure whether a sender or recipient is in a specified group.
- SMTPAUTH - Configure SMTP authentication.
- CERTAUTH - Configure certificate authentication.
- EXTERNALAUTH - Configure external authentication queries.
- ISQAUTH - Configure Spam Quarantine End-User Authentication Query.
- ISQALIAS - Configure Spam Quarantine Alias Consolidation Query.
[]> ldapaccept
Please create a name for this query:
[PublicLDAP.ldapaccept]> PublicLDAP.ldapaccept
Enter the LDAP query string:
[(proxyAddresses=smtp:{a})]> (proxyAddresses=smtp:{a})
Do you want to test this query? [Y]> n
Name: PublicLDAP
Hostname: myldapserver.example.com Port 3268
Server Type: Active Directory
Authentication Type: password
Base: dc=example,dc=com
LDAPACCEPT: PublicLDAP.ldapaccept
Choose the operation you want to perform:
- SERVER - Change the server for the query.
- LDAPACCEPT - Configure whether a recipient address should be accepted or
bounced/dropped.
- LDAPROUTING - Configure message routing.
- MASQUERADE - Configure domain masquerading.
- LDAPGROUP - Configure whether a sender or recipient is in a specified group.
- SMTPAUTH - Configure SMTP authentication.
- EXTERNALAUTH - Configure external authentication queries.
- ISQAUTH - Configure Spam Quarantine End-User Authentication Query.
- ISQALIAS - Configure Spam Quarantine Alias Consolidation Query.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-120
Chapter 3
The Commands: Reference Examples
LDAP
[]> ldaprouting
Please create a name for this query:
[PublicLDAP.routing]> PublicLDAP.routing
Enter the LDAP query string:
[(mailLocalAddress={a})]> (mailLocalAddress={a})
The query requires one of the attributes below. Please make a selection.
[1] Configure MAILROUTINGADDRESS only - Rewrite the Envelope Recipient (and
leave MAILHOST unconfigured)?
[2] Configure MAILHOST only - Send the messages to an alternate mail host
(and leave MAILROUTINGADDRESS unconfigured)?
[3] Configure both attributes
[]> 1
Enter the attribute which contains the full rfc822 email address for the
recipients.
[mailRoutingAddress]> mailRoutingAddress
Do you want to test this query? [Y]> n
Name: PublicLDAP
Hostname: myldapserver.example.com Port 3268
Server Type: Active Directory
Authentication Type: password
Base: dc=example,dc=com
LDAPACCEPT: PublicLDAP.ldapaccept
LDAPROUTING: PublicLDAP.routing
Choose the operation you want to perform:
- SERVER - Change the server for the query.
- LDAPACCEPT - Configure whether a recipient address should be accepted or
bounced/dropped.
- LDAPROUTING - Configure message routing.
- MASQUERADE - Configure domain masquerading.
- LDAPGROUP - Configure whether a sender or recipient is in a specified group.
- SMTPAUTH - Configure SMTP authentication.
- EXTERNALAUTH - Configure external authentication queries.
- ISQAUTH - Configure Spam Quarantine End-User Authentication Query.
- ISQALIAS - Configure Spam Quarantine Alias Consolidation Query.
[]> masquerade
Please create a name for this query:
[PublicLDAP.masquerade]> PublicLDAP.masquerade
Enter the LDAP query string:
[(mailRoutingAddress={a})]> (mailRoutingAddress={a})
Enter the attribute which contains the externally visible full rfc822 email address.
[]> mailLocalAddress
Do you want the results of the returned attribute to replace the entire friendly portion
of the original recipient? [N]> n
Do you want to test this query? [Y]> n
Name: PublicLDAP
Hostname: myldapserver.example.com Port 3268
Server Type: Active Directory
Authentication Type: password
Base: dc=example,dc=com
LDAPACCEPT: PublicLDAP.ldapaccept
LDAPROUTING: PublicLDAP.routing
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-121
Chapter 3
The Commands: Reference Examples
LDAP
MASQUERADE: PublicLDAP.masquerade
Choose the operation you want to perform:
- SERVER - Change the server for the query.
- LDAPACCEPT - Configure whether a recipient address should be accepted or
bounced/dropped.
- LDAPROUTING - Configure message routing.
- MASQUERADE - Configure domain masquerading.
- LDAPGROUP - Configure whether a sender or recipient is in a specified group.
- SMTPAUTH - Configure SMTP authentication.
- EXTERNALAUTH - Configure external authentication queries.
- ISQAUTH - Configure Spam Quarantine End-User Authentication Query.
- ISQALIAS - Configure Spam Quarantine Alias Consolidation Query.
[]> isqauth
Please create a name for this query:
[PublicLDAP.isqauth]> PublicLDAP.isqauth
Enter the LDAP query string:
[(sAMAccountName={u})]> (sAMAccountName={u})
Enter the list of email attributes.
[]> mail,proxyAddresses
Do you want to activate this query? [Y]> y
Do you want to test this query? [Y]> y
User identity to use in query:
[]> [email protected]
Password to use in query:
[]> password
LDAP query test results:
LDAP Server: myldapserver.example.com
Query: PublicLDAP.isqauth
User: [email protected]
Action: match positive
LDAP query test finished.
Name: PublicLDAP
Hostname: myldapserver.example.com Port 3268
Server Type: Active Directory
Authentication Type: password
Base: dc=example,dc=com
LDAPACCEPT: PublicLDAP.ldapaccept
LDAPROUTING: PublicLDAP.routing
MASQUERADE: PublicLDAP.masquerade
ISQAUTH: PublicLDAP.isqauth [active]
Choose the operation you want to perform:
- SERVER - Change the server for the query.
- LDAPACCEPT - Configure whether a recipient address should be accepted or
bounced/dropped.
- LDAPROUTING - Configure message routing.
- MASQUERADE - Configure domain masquerading.
- LDAPGROUP - Configure whether a sender or recipient is in a specified group.
- SMTPAUTH - Configure SMTP authentication.
- EXTERNALAUTH - Configure external authentication queries.
- ISQAUTH - Configure Spam Quarantine End-User Authentication Query.
- ISQALIAS - Configure Spam Quarantine Alias Consolidation Query.
[]>
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-122
Chapter 3
The Commands: Reference Examples
LDAP
Current LDAP server configurations:
1. PublicLDAP: (myldapserver.example.com:3268)
Choose the operation you want to perform:
- NEW - Create a new server configuration.
- SETUP - Configure LDAP options.
- EDIT - Modify a server configuration.
- DELETE - Remove a server configuration.
[]>
Example - Configuring Global Settings
In the following example, the LDAP global settings are configured, including the certificate for TLS
connections.
mail3.example.com> ldapconfig
No LDAP server configurations.
Choose the operation you want to perform:
- NEW - Create a new server configuration.
- SETUP - Configure LDAP options.
[]> setup
Choose the IP interface for LDAP traffic.
1. Auto
2. Management (10.92.145.175/24: esx16-esa01.qa)
[1]> 1
LDAP will determine the interface automatically.
Should group queries that fail to complete be silently treated as having
negative results? [Y]>
The "Demo" certificate is currently configured. You may use "Demo", but this will not be
secure.
1. partner.com
2. Demo
Please choose the certificate to apply:
[1]> 1
No LDAP server configurations.
Choose the operation you want to perform:
- NEW - Create a new server configuration.
- SETUP - Configure LDAP options.
[]>
ldapflush
Description
Flush any cached LDAP results.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-123
Chapter 3
The Commands: Reference Examples
LDAP
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to machine mode.
Batch Command: This command does not support a batch format
Example
mail3.example.com> ldapflush
Are you sure you want to flush any cached LDAP results? [N]> y
Flushing cache
mail3.example.com>
ldaptest
Description
Perform a single LDAP query test
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to machine mode.
Batch Command: This command does not support a batch format
Example
In this example, the ldaptest command is used to test the only recipient acceptance query for the
configured LDAP server configuration. The recipient address “[email protected]” passes the test,
while the recipient address “[email protected]” fails.
mail3.example.com> ldaptest
Select which LDAP query to test:
1. PublicLDAP.ldapaccep
[1]> 1
Address to use in query:
[]> [email protected]
LDAP query test results:
Query: PublicLDAP.ldapaccept
Argument: [email protected]
Action: pass
LDAP query test finished.
mail3.example.com> ldaptest
Select which LDAP query to test:
1. PublicLDAP.ldapaccep
[1]> 1
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-124
Chapter 3
The Commands: Reference Examples
LDAP
Address to use in query:
[]> [email protected]
LDAP query test results:
Query: PublicLDAP.ldapaccept
Argument: [email protected]
Action: drop or bounce (depending on listener settings)
Reason: no matching LDAP record was found
LDAP query test finished.
mail3.example.com>
sievechar
Description
Sets or disables the character used for Sieve Email Filtering, as described in RFC 3598. Note that the
Sieve Character is ONLY recognized in LDAP Accept and LDAP Reroute queries. Other parts of the
system will operate on the complete email address.
Allowable characters are: -_=+/^#
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command does not support a batch format
Example
In this example, the sievechar command is used to define + as the sieve character recognized in Accept
and LDAP Reroute queries.
mail3.example.com> sievechar
Sieve Email Filtering is currently disabled.
Choose the operation you want to perform:
- SETUP - Set the separator character.
[]> setup
Enter the Sieve Filter Character, or a space to disable Sieve Filtering.
[]> +
Sieve Email Filter is enabled, using the '+' character as separator.
This applies only to LDAP Accept and LDAP Reroute Queries.
Choose the operation you want to perform:
- SETUP - Set the separator character.
[]>
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-125
Chapter 3
Mail Delivery Configuration/Monitoring
Mail Delivery Configuration/Monitoring
This section contains the following CLI commands:
•
addresslistconfig
•
aliasconfig
•
archivemessage
•
altsrchost
•
bounceconfig
•
bouncerecipients
•
bvconfig
•
deleterecipients
•
deliveryconfig
•
delivernow
•
destconfig
•
hostrate
•
hoststatus
•
imageanalysisconfig
•
oldmessage
•
rate
•
redirectrecipients
•
resetcounters
•
removemessage
•
showmessage
•
showrecipients
•
status
•
tophosts
•
topin
•
unsubscribe
•
workqueue
addresslistconfig
Description
Configure address lists.
Usage
Commit: This command requires a ‘commit’.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-126
The Commands: Reference Examples
Chapter 3
The Commands: Reference Examples
Mail Delivery Configuration/Monitoring
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command supports a batch format.
Batch Format
The batch format for the addresslistconfig command can be used to create a new address list, edit an
existing address list, print a list of address lists, delete an address list, or find conflicting addresses within
an address list.
•
Adding a new address list”
addresslistconfig new --descr=
--addresses=
•
Editing an existing address list:
addresslistconfig edit --name= --descr=
--addresses=
•
Deleting an address list:
addresslistconfig delete
•
Printing a list of address lists:
addresslistconfig print
•
Finding conflicting addresses within an address list:
addresslistconfig conflicts
Example
mail.example.com> addresslistconfig
No address lists configured.
Choose the operation you want to perform:
- NEW - Create a new address list.
[]> new
Enter a name for the address list:
> add-list1
Enter a description for the address list:
> This is a sample address list.
Do you want to enter only full Email Addresses? [N]> Y
Enter a comma separated list of addresses:
(e.g.: [email protected])
> [email protected], [email protected]
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-127
Chapter 3
The Commands: Reference Examples
Mail Delivery Configuration/Monitoring
Address list "add-list1" added.
Choose the operation you want to perform:
- NEW - Create a new address list.
- EDIT - Modify an address list.
- DELETE - Remove an address list.
- PRINT - Display the contents of an address list.
- CONFLICTS - Find conflicting entries within an address list.
[]>
aliasconfig
Description
Configure email aliases.
Usage
Commit: This command requires a ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command supports a batch format.
Batch Format
The batch format of the aliasconfig command can be used to add a new alias table, edit an existing table,
print a list of email aliases, and import/export alias table. To invoke as a batch command, use the
following format of the aliasconfig command with the variables listed below:
•
Adding a new email alias:
aliasconfig new [email_address1] [email_address2] ...
Note
Using the ‘aliasconfig new’ command with a non-existant domain causes the domain to be created.
•
Editing an existing email alias
aliasconfig edit
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-128
Chapter 3
The Commands: Reference Examples
Mail Delivery Configuration/Monitoring
•
Exporting an alias listing on the appliance:
aliasconfig export
Example
mail3.example.com> aliasconfig
Enter address(es) for "customercare".
Separate multiple addresses with commas.
[]> [email protected], [email protected], [email protected]
Adding alias customercare: [email protected],[email protected],[email protected]
Do you want to add another alias? [N]> n
There are currently 1 mappings defined.
Choose the operation you want to perform:
- NEW - Create a new entry.
- EDIT - Modify an entry.
- DELETE - Remove an entry.
- PRINT - Display the table.
- IMPORT - Import aliases from a file.
- EXPORT - Export table to a file.
- CLEAR - Clear the table.
[]> new
How do you want your aliases to apply?
1. Globally
2. Add a new domain context
3. example.com
[1]> 1
Enter the alias(es) to match on.
Separate multiple aliases with commas.
Allowed aliases:
- "user@domain" - This email address.
- "user" - This user for any domain
- "@domain" - All users in this domain.
- "@.partialdomain" - All users in this domain, or any of its sub domains.
[]> admin
Enter address(es) for "admin".
Separate multiple addresses with commas.
[]> [email protected]
Adding alias admin: [email protected]
Do you want to add another alias? [N]> n
There are currently 2 mappings defined.
Choose the operation you want to perform:
- NEW - Create a new entry.
- EDIT - Modify an entry.
- DELETE - Remove an entry.
- PRINT - Display the table.
- IMPORT - Import aliases from a file.
- EXPORT - Export table to a file.
- CLEAR - Clear the table.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-129
Chapter 3
The Commands: Reference Examples
Mail Delivery Configuration/Monitoring
[]> print
admin: [email protected]
[ example.com ]
customercare: [email protected], [email protected], [email protected]
There are currently 2 mappings defined.
Choose the operation you want to perform:
- NEW - Create a new entry.
- EDIT - Modify an entry.
- DELETE - Remove an entry.
- PRINT - Display the table.
- IMPORT - Import aliases from a file.
- EXPORT - Export table to a file.
- CLEAR - Clear the table.
[]>
Table 3-7
Arguments for Configuring Aliases
Argument
Description
The domain context in which an alias is applied. ‘Global’
specifies the Global Domain Context.
The name of the alias to configure
Aliases permitted at the Global Comain Context:
‘user@domain’ — This email address.
‘user’— This user for any domain.
‘@domain— All users in this domain.
‘@.partialdomain’— All users in this domain or any of its
sub-domains.
Aliases permitted for specific domain contexts:
‘user’— This user in this domain context
‘user@domain’— This email address
The email address that an alias mapps to. A single alias can
map to multiple email addresses.
The filename to use with importing/exporting the alias table.
archivemessage
Description
Archive older messages in your queue.
Usage
Commit: This command does not require a commit.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-130
Chapter 3
The Commands: Reference Examples
Mail Delivery Configuration/Monitoring
Cluster Management: This command is restricted to machine mode..
Batch Command: This command does not support a batch format.
Example
In the following example, an older message is archived:
mail3.example.com> archivemessage
Enter the MID to archive.
[0]> 47
MID 47 has been saved in file oldmessage_47.mbox in the configuration
altsrchost
Description
Configure Virtual Gateway(tm) mappings.
Usage
Commit: This command requires a ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command does not support a batch format.
Example
In the following example, the altsrchost table is printed to show that there are no existing mappings.
Two entries are then created:
•
Mail from the groupware server host named @exchange.example.com is mapped to the PublicNet
interface.
•
Mail from the sender IP address of 192.168.35.35 is mapped to the AnotherPublicNet interface.
Finally, the altsrchost mappings are printed to confirm and the changes are committed.
mail3.example.com> altsrchost
There are currently no mappings configured.
Choose the operation you want to perform:
- NEW - Create a new mapping.
- IMPORT - Load new mappings from a file.
[]> new
Enter the Envelope From address or client IP address for which you want to set up a
Virtual Gateway mapping. Partial addresses such as "@example.com" or "user@" are allowed.
[]> @exchange.example.com
Which interface do you want to send messages for @exchange.example.com from?
1. AnotherPublicNet (192.168.2.2/24: mail4.example.com)
2. Management (192.168.42.42/24: mail3.example.com)
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-131
Chapter 3
The Commands: Reference Examples
Mail Delivery Configuration/Monitoring
3. PrivateNet (192.168.1.1/24: mail3.example.com)
4. PublicNet (192.168.2.1/24: mail4.example.com)
[1]> 4
Mapping for @exchange.example.com on interface PublicNet created.
Choose the operation you want to perform:
- NEW - Create a new mapping.
- EDIT - Modify a mapping.
- DELETE - Remove a mapping.
- IMPORT - Load new mappings from a file.
- EXPORT - Export all mappings to a file.
- PRINT - Display all mappings.
- CLEAR - Remove all mappings.
[]> new
Enter the Envelope From address or client IP address for which you want to set up a
Virtual Gateway mapping. Partial addresses such as "@example.com" or "user@" are allowed.
[]> 192.168.35.35
Which interface do you want to send messages for 192.168.35.35 from?
1. AnotherPublicNet (192.168.2.2/24: mail4.example.com)
2. Management (192.168.42.42/24: mail3.example.com)
3. PrivateNet (192.168.1.1/24: mail3.example.com)
4. PublicNet (192.168.2.1/24: mail4.example.com)
[1]> 1
Mapping for 192.168.35.35 on interface AnotherPublicNet created.
Choose the operation you want to perform:
- NEW - Create a new mapping.
- EDIT - Modify a mapping.
- DELETE - Remove a mapping.
- IMPORT - Load new mappings from a file.
- EXPORT - Export all mappings to a file.
- PRINT - Display all mappings.
- CLEAR - Remove all mappings.
[]> print
1. 192.168.35.35 -> AnotherPublicNet
2. @exchange.example.com -> PublicNet
Choose the operation you want to perform:
- NEW - Create a new mapping.
- EDIT - Modify a mapping.
- DELETE - Remove a mapping.
- IMPORT - Load new mappings from a file.
- EXPORT - Export all mappings to a file.
- PRINT - Display all mappings.
- CLEAR - Remove all mappings.
[]>
mail3.example.com> commit
Please enter some comments describing your changes:
[]> Added 2 altsrchost mappings
Do you want to save the current configuration for rollback? [Y]> n
Changes committed: Fri May 23 11:42:12 2014 GMT
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-132
Chapter 3
The Commands: Reference Examples
Mail Delivery Configuration/Monitoring
bounceconfig
Description
Configure the behavior of bounces.
Usage
Commit: This command requires a ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command does not support a batch format.
Example
In the following example, a bounce profile named bounceprofile is created using the bounceconfig
command. In this profile, all hard bounced messages are sent to the alternate address
[email protected]. Delay warnings messages are enabled. One warning message will be
sent per recipient, and the default value of 4 hours (14400 seconds) between warning messages is
accepted
mail3.example.com> bounceconfig
Current bounce profiles:
1. Default
Choose the operation you want to perform:
- NEW - Create a new profile.
- EDIT - Modify a profile.
[]> new
Please create a name for the profile:
[]> bounceprofile
Please enter the maximum number of retries.
[100]> 100
Please enter the maximum number of seconds a message may stay in the queue before being
hard bounced.
[259200]> 259200
Please enter the initial number of seconds to wait before retrying a message.
[60]> 60
Please enter the maximum number of seconds to wait before retrying a message.
[3600]> 3600
Do you want a message sent for each hard bounce? (Yes/No/Default) [Y]> y
Do you want bounce messages to use the DSN message format? (Yes/No/Default) [Y]> y
If a message is undeliverable after some interval, do you want to send a delay warning
message? (Yes/No/Default) [N]> y
Please enter the minimum interval in seconds between delay warning messages.
[14400]> 14400
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-133
Chapter 3
The Commands: Reference Examples
Mail Delivery Configuration/Monitoring
Please enter the maximum number of delay warning messages to send per
recipient.
[1]> 1
Do you want hard bounce and delay warning messages sent to an alternate address, instead
of the sender? [N]> y
Please enter the email address to send hard bounce and delay warning.
[]> [email protected]
Current bounce profiles:
1. Default
2. bounceprofile
Choose the operation you want to perform:
- NEW - Create a new profile.
- EDIT - Modify a profile.
- DELETE - Remove a profile.
[]>
mail3.example.com>
Editing the Default Bounce Profile
You can also edit the default bounce profile. In this example, the default profile is edited to increase the
maximum number of seconds to wait before retrying unreachable hosts from 3600 (one
hour) to 10800 (three hours):
mail3.example.com> bounceconfig
Current bounce profiles:
1. Default
2. bounceprofile
Choose the operation you want to perform:
- NEW - Create a new profile.
- EDIT - Modify a profile.
- DELETE - Remove a profile.
[]> edit
Please enter the number of the profile to edit:
[]> 2
Please enter the maximum number of retries.
[100]>
Please enter the maximum number of seconds a message may stay in the queue before being
hard bounced.
[259200]>
Please enter the initial number of seconds to wait before retrying a message.
[60]>
Please enter the maximum number of seconds to wait before retrying a message.
[3600]> 10800
Do you want a message sent for each hard bounce? (Yes/No/Default)[Y]>
Do you want bounce messages to use the DSN message format? (Yes/No/Default) [N]>
If a message is undeliverable after some interval, do you want to send a delay warning
message? (Yes/No/Default)[N]>
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-134
Chapter 3
The Commands: Reference Examples
Mail Delivery Configuration/Monitoring
Do you want hard bounce messages sent to an alternate address, instead of the sender? [Y]>
Please enter the email address to send hard bounce.
[[email protected]]>
Current bounce profiles:
1. Default
2. bounceprofile
Choose the operation you want to perform:
- NEW - Create a new profile.
- EDIT - Modify a profile.
- DELETE - Remove a profile.
Applying a Bounce Profile to a Listener
After a bounce profile has been configured, you can apply the profile for each listener using the
listenerconfig -> bounceconfig command and then committing the changes.
Note
Bounce profiles can be applied based upon the listener that a message was received on. However, this
listener has nothing to do with how the message is ultimately delivered.
In this example, the OutboundMail private listener is edited and the bounce profile named bouncepr1 is
applied to it.
mail3.example.com> listenerconfig
Currently configured listeners:
1. InboundMail (on PublicNet, 192.168.2.1) SMTP Port 25 Public
2. OutboundMail (on PrivateNet, 192.168.1.1) SMTP Port 25 Private
Choose the operation you want to perform:
- NEW - Create a new listener.
- EDIT - Modify a listener.
- DELETE - Remove a listener.
- SETUP - Change global settings.
[]> edit
Enter the name or number of the listener you wish to edit.
[]> 2
Name: OutboundMail
Type: Private
Interface: PrivateNet (192.168.1.1/24) TCP Port 25
Protocol: SMTP
Default Domain:
Max Concurrency: 600 (TCP Queue: 50)
Domain Map: Disabled
TLS: No
SMTP Authentication: Disabled
Bounce Profile: Default
Footer: None
LDAP: Off
Choose the operation you want to perform:
- NAME - Change the name of the listener.
- INTERFACE - Change the interface.
- LIMITS - Change the injection limits.
- SETUP - Configure general options.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-135
Chapter 3
The Commands: Reference Examples
Mail Delivery Configuration/Monitoring
- HOSTACCESS - Modify the Host Access Table.
- BOUNCECONFIG - Choose the bounce profile to use for messages injected on this listener.
- MASQUERADE - Configure the Domain Masquerading Table.
- DOMAINMAP - Configure domain mappings.
[]> bounceconfig
Please choose a bounce profile to apply:
1. Default
2. bouncepr1
3. New Profile
[1]> 2
Name: OutboundMail
Type: Private
Interface: PrivateNet (192.168.1.1/24) TCP Port 25
Protocol: SMTP
Default Domain:
Max Concurrency: 600 (TCP Queue: 50)
Domain Map: Disabled
TLS: No
SMTP Authentication: Disabled
Bounce Profile: bouncepr1
Footer: None
LDAP: Off
Choose the operation you want to perform:
- NAME - Change the name of the listener.
- INTERFACE - Change the interface.
- LIMITS - Change the injection limits.
- SETUP - Configure general options.
- HOSTACCESS - Modify the Host Access Table.
- BOUNCECONFIG - Choose the bounce profile to use for messages injected on this listener.
- MASQUERADE - Configure the Domain Masquerading Table.
- DOMAINMAP - Configure domain mappings.
[]>
Currently configured listeners:
1. InboundMail (on PublicNet, 192.168.2.1) SMTP Port 25 Public
2. OutboundMail (on PrivateNet, 192.168.1.1) SMTP Port 25 Private
Choose the operation you want to perform:
- NEW - Create a new listener.
- EDIT - Modify a listener.
- DELETE - Remove a listener.
- SETUP - Change global settings.
[]>
mail3.example.com> commit
Please enter some comments describing your changes:
[]> Enabled the bouncepr1 profile to the Outbound mail listener
Do you want to save the current configuration for rollback? [Y]> n
Changes committed: Fri May 23 11:42:12 2014 GMT
bouncerecipients
Description
Bounce messages from the queue.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-136
Chapter 3
The Commands: Reference Examples
Mail Delivery Configuration/Monitoring
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to machine mode.
Batch Command: This command does not support a batch format
Example
Recipients to be bounced are identified by either the destination recipient host or the message sender
identified by the specific address given in the Envelope From line of the message envelope. Alternately,
all messages in the delivery queue can be bounced at once.
Bounce by Recipient Host
mail3.example.com> bouncerecipients
Please select how you would like to bounce messages:
1. By recipient host.
2. By Envelope From address.
3. All.
[1]> 1
Please enter the hostname for the messages you wish to bounce.
[]> example.com
Are you sure you want to bounce all messages being delivered to "example.com"? [N]> Y
Bouncing messages, please wait.
100 messages bounced.
Bounce by Envelope From Address
mail3.example.com> bouncerecipients
Please select how you would like to bounce messages:
1. By recipient host.
2. By Envelope From address.
3. All.
[1]> 2
Please enter the Envelope From address for the messages you wish to bounce.
[]> [email protected]
Are you sure you want to bounce all messages with the Envelope From address of
"[email protected]"? [N]> Y
Bouncing messages, please wait.
100 messages bounced.
Bounce All
mail3.example.com> bouncerecipients
Please select how you would like to bounce messages:
1. By recipient host.
2. By Envelope From address.
3. All.
[1]>
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-137
Chapter 3
The Commands: Reference Examples
Mail Delivery Configuration/Monitoring
Are you sure you want to bounce all messages in the queue? [N]> Y
Bouncing messages, please wait.
1000 messages bounced.
bvconfig
Description
Configure settings for Bounce Verification. Use this command to configure keys and invalid bounced
emails.
Usage
Commit: This command requires a ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command does not support a batch format.
Example
The following exampe shows key configuration and settings configured for invalid bounced emails.
mail3.example.com> bvconfig
Behavior on invalid bounces: reject
Key for tagging outgoing mail: key
Previously-used keys for verifying incoming mail:
1. key (current outgoing key)
2. goodneighbor (last in use Wed May 31 23:21:01 2006 GMT)
Choose the operation you want to perform:
- KEY - Assign a new key for tagging outgoing mail.
- PURGE - Purge keys no longer needed for verifying incoming mail.
- CLEAR - Clear all keys including current key.
- SETUP - Set how invalid bounces will be handled.
[]> key
Enter the key to tag outgoing mail with (when tagging is enabled in the Good
Neighbor Table)
[]> basic_key
Behavior on invalid bounces: reject
Key for tagging outgoing mail: basic_key
Previously-used keys for verifying incoming mail:
1. basic_key (current outgoing key)
2. key (last in use Wed May 31 23:22:49 2006 GMT)
3. goodneighbor (last in use Wed May 31 23:21:01 2006 GMT)
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-138
Chapter 3
The Commands: Reference Examples
Mail Delivery Configuration/Monitoring
Choose the operation you want to perform:
- KEY - Assign a new key for tagging outgoing mail.
- PURGE - Purge keys no longer needed for verifying incoming mail.
- CLEAR - Clear all keys including current key.
- SETUP - Set how invalid bounces will be handled.
[]> setup
How do you want bounce messages which are not addressed to a valid tagged
recipient to be handled?
1. Reject.
2. Add a custom header and deliver.
[1]> 1
Behavior on invalid bounces: reject
Key for tagging outgoing mail: basic_key
Previously-used keys for verifying incoming mail:
1. basic_key (current outgoing key)
2. key (last in use Wed May 31 23:22:49 2006 GMT)
3. goodneighbor (last in use Wed May 31 23:21:01 2006 GMT)
Choose the operation you want to perform:
- KEY - Assign a new key for tagging outgoing mail.
- PURGE - Purge keys no longer needed for verifying incoming mail.
- CLEAR - Clear all keys including current key.
- SETUP - Set how invalid bounces will be handled.
[]>
mail3.example.com> commit
Please enter some comments describing your changes:
[]> Configuring a new key and setting reject for invalid email bounces
Do you want to save the current configuration for rollback? [Y]> n
Changes committed: Fri May 23 11:42:12 2014 GMT
deleterecipients
Description
Delete messages from the queue
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to machine mode.
Batch Command: This command does not support a batch format
Example
The appliance gives you various options to delete recipients depending upon the need. The following
example show deleting recipients by recipient host, deleting by Envelope From Address, and deleting all
recipients in the queue.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-139
Chapter 3
The Commands: Reference Examples
Mail Delivery Configuration/Monitoring
Delete by Recipient Domain
mail3.example.com> deleterecipients
Please select how you would like to delete messages:
1. By recipient host.
2. By Envelope From address.
3. All.
[1]> 1
Please enter the hostname for the messages you wish to delete.
[]> example.com
Are you sure you want to delete all messages being delivered to "example.com"? [N]> Y
Deleting messages, please wait.
100 messages deleted.
Delete by Envelope From Address
mail3.example.com> deleterecipients
Please select how you would like to delete messages:
1. By recipient host.
2. By Envelope From address.
3. All.
[1]> 2
Please enter the Envelope From address for the messages you wish to delete.
[]> [email protected]
Are you sure you want to delete all messages with the Envelope From address of
"[email protected]"? [N]> Y
Deleting messages, please wait.
100 messages deleted.
Delete All
mail3.example.com> deleterecipients
Please select how you would like to delete messages:
1. By recipient host.
2. By Envelope From address.
3. All.
[1]> 1
Are you sure you want to delete all messages in the queue? [N]> Y
Deleting messages, please wait.
1000 messages deleted.
deliveryconfig
Description
Configure mail delivery
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-140
Chapter 3
The Commands: Reference Examples
Mail Delivery Configuration/Monitoring
Usage
Commit: This command requires a ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command does not support a batch format.
Example
In the following example, the deliveryconfig command is used to set the default interface to “Auto”
with “Possible Delivery” enabled. The system-wide maximum outbound message delivery is set to 9000
connections.
mail3.example.com> deliveryconfig
Choose the operation you want to perform:
- SETUP - Configure mail delivery.
[]> setup
Choose the default interface to deliver mail.
1. Auto
2. AnotherPublicNet (192.168.3.1/24: mail4.example.com)
3. Management (192.168.42.42/24: mail3.example.com)
4. PrivateNet (192.168.1.1/24: mail3.example.com)
5. PublicNet (192.168.2.1/24: mail3.example.com)
[1]> 1
Enable "Possible Delivery" (recommended)?
[Y]> y
Please enter the default system wide maximum outbound message delivery
concurrency
[10000]> 9000
mail3.example.com>
delivernow
Description
Reschedule messages for immediate delivery. Users have the option of selecting a single recipient host,
or all messages currently scheduled for delivery.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to machine mode.
Batch Command: This command does not support a batch format
Example
mail3.example.com> delivernow
Please choose an option for scheduling immediate delivery.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-141
Chapter 3
The Commands: Reference Examples
Mail Delivery Configuration/Monitoring
1. By recipient domain
2. All messages
[1]> 1
Please enter the recipient domain to schedule for delivery.
[]>foo.com
Scheduling all messages to foo.com for delivery.
destconfig
Formerly the setgoodtable command. The table is now called the Destination Control Table. Use this
table to configure delivery limits for a specified domain.
Using the destconfig Command
The following commands are available within the destconfig submenu:
Table 3-8
destconfig Subcommands
Syntax
Description
SETUP
Change global settings.
NEW
Add new limits for a domain.
EDIT
Modify the limits for a domain.
DELETE
Remove the limits for a domain.
DEFAULT
Change the default limits for non-specified domains.
LIST
Display the list of domains and their limits.
DETAIL
Display the details for one destination or all entries.
CLEAR
Remove all entries from the table.
IMPORT
Imports a table of destination control entries from a .INI
configuration file.
EXPORT
Exports a table of destination control entries to a .INI
configuration file.
The destconfig command requires the following information for each row in the Destination Controls
table.
•
Domain (recipient host)
•
Maximum simultaneous connections to the domain
•
Messages-per-connection limit
•
Recipient limit
•
System-wide or Virtual Gateway switch
•
Enforce limits per MX or domain
•
Time period for recipient limit (in minutes)
•
Bounce Verification
•
Bounce profile to use for the domain
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-142
Chapter 3
The Commands: Reference Examples
Mail Delivery Configuration/Monitoring
Sample Destination Control Table
The following table shows entries in a destination control table.
Table 3-9
Example Destination Control Table Entries
Domain
Conn. Limit
Rcpt. Limit
Min. Prd.
Enforce MX/DOM
(default)
500
None
1
Domain
Unlisted domains get their own set of 500 connections with unlimited rcpts/hr
(default)
500
None
1
MXIP
Mail gateways at unlisted domains get up to 500 connections, with unlimited rcpts/hr
partner.com
10
500
60
Domain
All gateways at partner.com will share 10 connections, with 500 rcpts/minute
maximum
101.202.101.2
500
None
0
MXIP
Specifying an IP address
Batch Format
The batch format of the destconfig command can be used to perform all the fuctions of the traditional
CLI command.
•
Creating a new destination control table
destconfig new [options]
•
Editing an existing destination control table
destconfig edit [options]
•
Deleting an existing destination control table
destconfig delete
•
Displaying a summary of all destination control entries
destconfig list
•
Displaying details for one destination or all entries
destconfig detail
•
Deleting all existing destination control table entries
destconfig clear
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-143
Chapter 3
The Commands: Reference Examples
Mail Delivery Configuration/Monitoring
•
Import table from a file
destconfig import
•
Export table to a file
destconfig export
For the edit and new batch commands, any or all of the following options may be provided by identifying
the value with the variable name and an equals sign. Options not specified will not be modified (if using
edit) or will be set to default values (if using new).
concurrency_limit= - The maximum concurrency for a specific host.
concurrency_limit_type= - Maximum concurrency is per host or
per MX IP.
concurrency_limit_apply= - Apply maximum concurrency is system
wide or by Virtual Gateway(tm).
max_messages_per_connection= - The maximum number of messages that
will be sent per connection.
recipient_limit_minutes= - The time frame to check for recipient
limits in minutes.
recipient_limit= - The number of recipients to limit per unit of
time.
use_tls= - Whether TLS should be
on, off, or required for a given host.
bounce_profile= - The bounce profile name to use.
bounce_verification= - Bounce Verification option.
Example: Creating a new destconfig Entry
In the following example, the current destconfig entries are printed to the screen. Then, a new entry for
the domain partner.com is created. The concurrency limit of 100 simultaneous connections and
recipient limit of 50 recipients for a 60-minute time period is set for that domain. So, the system will
never open more than 100 connections or deliver to more than more than 50 recipients in a given hour
to the domain partner.com. No bounce profile is assigned for this specific domain, and no specific TLS
setting is configured. Finally, the changes are printed to confirm and then committed
mail3.example.com> destconfig
There are currently 2 entries configured.
Choose the operation you want to perform:
- SETUP - Change global settings.
- NEW - Create a new entry.
- EDIT - Modify an entry.
- DELETE - Remove an entry.
- DEFAULT - Change the default.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-144
Chapter 3
The Commands: Reference Examples
Mail Delivery Configuration/Monitoring
- LIST - Display a summary list of all entries.
- DETAIL - Display details for one destination or all entries.
- CLEAR - Remove all entries.
- IMPORT - Import tables from a file.
- EXPORT - Export tables to a file.
[]> list
l
Domain
=========
(Default)
Rate
Limiting
========
On
TLS
=======
Off
Bounce
Verification
============
Off
Bounce
Profile
=========
(Default)
Choose the operation you want to perform:
- SETUP - Change global settings.
- NEW - Create a new entry.
- EDIT - Modify an entry.
- DELETE - Remove an entry.
- DEFAULT - Change the default.
- LIST - Display a summary list of all entries.
- DETAIL - Display details for one destination or all entries.
- CLEAR - Remove all entries.
- IMPORT - Import tables from a file.
- EXPORT - Export tables to a file.
[]> new
Enter the domain you wish to configure.
[]> partner.com
Do you wish to configure a concurrency limit for partner.com? [Y]> y
Enter the max concurrency limit for "partner.com".
[500]> 100
Do you wish to apply a messages-per-connection limit to this domain? [N]> n
Do you wish to apply a recipient limit to this domain? [N]> y
Enter the number of minutes used to measure the recipient limit.
[60]> 60
Enter the max number of recipients per 60 minutes for "partner.com".
[]> 50
Select how you want to apply the limits for partner.com:
1. One limit applies to the entire domain for partner.com
2. Separate limit for each mail exchanger IP address
[1]> 1
Select how the limits will be enforced:
1. System Wide
2. Per Virtual Gateway(tm)
[1]> 1
Do you wish to apply a specific TLS setting for this domain? [N]> n
Do you wish to apply a specific bounce verification address tagging setting for
this domain? [N]> n
Do you wish to apply a specific bounce profile to this domain? [N]> n
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-145
Chapter 3
The Commands: Reference Examples
Mail Delivery Configuration/Monitoring
There are currently 3 entries configured.
mail3.example.com> commit
Please enter some comments describing your changes:
[]> Throttled delivery to partner.com in the destconfig table
Do you want to save the current configuration for rollback? [Y]> n
Changes committed: Fri May 23 11:42:12 2014 GMT
Example: Bounce Profile and TLS Settings
In this example, a new destconfig entry is configured for the domain newpartner.com. TLS connections
are required. The example also shows the bounce profile named bouncepr1 (see “Editing the Default
Bounce Profile” on page 134) configured to be used for all email delivery to the domain
newpartner.com.
mail3.example.com> destconfig
There is currently 1 entry configured.
Choose the operation you want to perform:
- SETUP - Change global settings.
- NEW - Create a new entry.
- EDIT - Modify an entry.
- DELETE - Remove an entry.
- DEFAULT - Change the default.
- LIST - Display a summary list of all entries.
- DETAIL - Display details for one destination or all entries.
- CLEAR - Remove all entries.
- IMPORT - Import tables from a file.
- EXPORT - Export tables to a file.
[]> new
Enter the domain you wish to configure.
[]> newpartner.com
Do you wish to configure a concurrency limit for newpartner.com? [Y]> n
Do you wish to apply a messages-per-connection limit to this domain? [N]> n
Do you wish to apply a recipient limit to this domain? [N]> n
Do you wish to apply a specific TLS setting for this domain? [N]> y
Do you want to use TLS support?
1. No
2. Preferred
3. Required
4. Preferred(Verify)
5. Required(Verify)
[1]> 3
You have chosen to enable TLS. Please use the 'certconfig' command to ensure that there is
a valid certificate configured.
Do you wish to apply a specific bounce verification address tagging setting for this
domain? [N]> y
Perform bounce verification address tagging? [N]> y
Do you wish to apply a specific bounce profile to this domain? [N]> y
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-146
Chapter 3
The Commands: Reference Examples
Mail Delivery Configuration/Monitoring
Please choose a bounce profile to apply:
1. Default
2. New Profile
[1]> 1
There are currently 2 entries configured.
Choose the operation you want to perform:
- SETUP - Change global settings.
- NEW - Create a new entry.
- EDIT - Modify an entry.
- DELETE - Remove an entry.
- DEFAULT - Change the default.
- LIST - Display a summary list of all entries.
- DETAIL - Display details for one destination or all entries.
- CLEAR - Remove all entries.
- IMPORT - Import tables from a file.
- EXPORT - Export tables to a file.
[]> detail
Domain
==============
newpartner.com
(Default)
Rate
Limiting
========
Default
On
TLS
=======
Req
Off
Bounce
Verification
============
On
Off
Bounce
Profile
=========
Default
(Default)
Enter the domain name to view, or enter DEFAULT to view details for the
default, or enter ALL to view details for all:
[]> all
newpartner.com
Maximum messages per connection: Default
Rate Limiting: Default
TLS: Required
Bounce Verification Tagging: On
Bounce Profile: Default
Default
Rate Limiting:
500 concurrent connections
No recipient limit
Limits applied to entire domain, across all virtual gateways
TLS: Off
Bounce Verification Tagging: Off
There are currently 2 entries configured.
[]>
mail3.example.com> commit
Please enter some comments describing your changes:
[]> enabled TLS for delivery to newpartner.com using demo certificate
Do you want to save the current configuration for rollback? [Y]> n
Changes committed: Fri May 23 11:42:12 2014 GMT
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-147
Chapter 3
The Commands: Reference Examples
Mail Delivery Configuration/Monitoring
Example: Inbound “Shock Absorber”
In this example, another destconfig entry is created to throttle mail to the internal groupware server
exchange.example.com. This “shock absorber” entry for your internal server throttles inbound delivery
to your internal groupware servers during periods of especially high volume traffic. In this example, the
appliance will never open more than ten simultaneous connections or deliver to more than 1000
recipients to the internal groupware server exchange.example.com in any given minute. No bounce
profile or TLS setting is configured:
mail3.example.com> destconfig
There are currently 2 entries configured.
Choose the operation you want to perform:
- SETUP - Change global settings.
- NEW - Create a new entry.
- EDIT - Modify an entry.
- DELETE - Remove an entry.
- DEFAULT - Change the default.
- LIST - Display a summary list of all entries.
- DETAIL - Display details for one destination or all entries.
- CLEAR - Remove all entries.
- IMPORT - Import tables from a file.
- CLEAR - Remove all entries.
[]> new
Enter the domain you wish to configure.
[]> exchange.example.com
Do you wish to configure a concurrency limit for exchange.example.com? [Y]> y
Enter the max concurrency limit for "exchange.example.com".
[500]> 10
Do you wish to apply a recipient limit to this domain? [N]> y
Enter the number of minutes used to measure the recipient limit.
[60]> 1
Enter the max number of recipients per 1 minutes for "exchange.example.com".
[]> 1000
Select how you want to apply the limits for exchange.example.com:
1. One limit applies to the entire domain for exchange.example.com
2. Separate limit for each mail exchanger IP address
[1]> 1
Select how the limits will be enforced:
1. System Wide
2. Per Virtual Gateway(tm)
[1]> 1
Do you wish to apply a specific TLS setting for this domain? [N]> n
Do you wish to apply a specific bounce verification address tagging setting for this
domain? [N]> n
Do you wish to apply a specific bounce profile to this domain? [N]> n
There are currently 3 entries configured.
Choose the operation you want to perform:
- SETUP - Change global settings.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-148
Chapter 3
The Commands: Reference Examples
Mail Delivery Configuration/Monitoring
- NEW - Create a new entry.
- EDIT - Modify an entry.
- DELETE - Remove an entry.
- DEFAULT - Change the default.
- LIST - Display a summary list of all entries.
- DETAIL - Display details for one destination or all entries.
- CLEAR - Remove all entries.
- IMPORT - Import tables from a file.
- CLEAR - Remove all entries.
[]>
mail3.example.com> commit
Please enter some comments describing your changes:
[]> set up shock absorber for inbound mail
Do you want to save the current configuration for rollback? [Y]> n
Changes committed: Fri May 23 11:42:12 2014 GMT
Example: Global Settings
In this example, the TLS alert and certificate for TLS connections are configured.
mail3.example.com> destconfig
Choose the operation you want to perform:
- SETUP - Change global settings.
- NEW - Create a new entry.
- EDIT - Modify an entry.
- DELETE - Remove an entry.
- DEFAULT - Change the default.
- LIST - Display a summary list of all entries.
- DETAIL - Display details for one destination or all entries.
- CLEAR - Remove all entries.
- IMPORT - Import tables from a file.
- EXPORT - Export tables to a file.
[]> setup
The "Demo" certificate is currently configured. You may use "Demo", but this will not be
secure.
1. partner.com
2. Demo
Please choose the certificate to apply:
[1]> 1
Do you want to send an alert when a required TLS connection fails? [N]> n
hostrate
Description
Monitor activity for a particular host
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to machine mode.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-149
Chapter 3
The Commands: Reference Examples
Mail Delivery Configuration/Monitoring
Batch Command: This command does not support a batch format
Example
mail3.example.com> hostrate
Recipient host:
[]> aol.com
Enter the number of seconds between displays.
[10]> 1
Time
23:38:23
23:38:24
23:38:25
^C
Host
Status
up
up
up
CrtCncOut
1
1
1
ActvRcp ActvRcp
Delta
0
0
0
0
0
0
DlvRcp HrdBncRcp SftBncEvt
Delta
Delta
Delta
4
0
0
4
0
0
12
0
0
Use Control-C to stop the hostrate command.
hoststatus
Description
Get the status of the given hostname.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to machine mode.
Batch Command: This command does not support a batch format
Example
mail3.example.com> hoststatus
Recipient host:
[]> aol.com
Host mail status for: 'aol.com'
Status as of:
Fri Aug 8 11:12:00 2003
Host up/down:
up
Counters:
Queue
Soft Bounced Events
Completion
Completed Recipients
Hard Bounced Recipients
DNS Hard Bounces
5XX Hard Bounces
Filter Hard Bounces
Expired Hard Bounces
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-150
0
1
1
0
1
0
0
Chapter 3
The Commands: Reference Examples
Mail Delivery Configuration/Monitoring
Other Hard Bounces
Delivered Recipients
Deleted Recipients
0
0
0
Gauges:
Queue
Active Recipients
Unattempted Recipients
Attempted Recipients
Connections
Current Outbound Connections
Pending Outbound Connections
0
0
0
0
0
Oldest Message
No Messages
Last Activity
Fri Aug 8 11:04:24 2003
Ordered IP addresses: (expiring at Fri Aug 8 11:34:24 2003)
Preference
IPs
15
64.12.137.121
64.12.138.89
64.12.138.120
15
64.12.137.89
64.12.138.152
152.163.224.122
15
64.12.137.184
64.12.137.89
64.12.136.57
15
64.12.138.57
64.12.136.153
205.188.156.122
15
64.12.138.57
64.12.137.152
64.12.136.89
15
64.12.138.89
205.188.156.154 64.12.138.152
15
64.12.136.121
152.163.224.26
64.12.137.184
15
64.12.138.120
64.12.137.152
64.12.137.121
MX Records:
Preference
TTL
Hostname
15
52m24s
mailin-01.mx.aol.com
15
52m24s
mailin-02.mx.aol.com
15
52m24s
mailin-03.mx.aol.com
15
52m24s
mailin-04.mx.aol.com
Last 5XX Error:
---------550 REQUESTED ACTION NOT TAKEN: DNS FAILURE
(at Fri Aug 8 11:04:25 2003)
---------Virtual gateway information:
============================================================
example.com (PublicNet_017):
Host up/down:up
Last ActivityWed Nov 13 13:47:02 2003
Recipients0
============================================================
example.com (PublicNet_023):
Host up/down:up
Last ActivityWed Nov 13 13:45:01 2003
Recipients
imageanalysisconfig
Description
Configure the IronPort Image Analysis settings
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-151
Chapter 3
The Commands: Reference Examples
Mail Delivery Configuration/Monitoring
Usage
Commit: This command requires a ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command does not support a batch format
Example
mail.example.com>imageanalysisconfig
IronPort Image Analysis: Enabled
Image Analysis Sensitivity: 65
Verdict Ranges: Clean (0-49), Suspect(50-74), Inappropriate (75+)
Skip small images with size less than 100 pixels (width or height)
(First time users see the license agreement displayed here.)
Choose the operation you want to perform:
- SETUP - Configure IronPort Image Analysis.
[]> setup
IronPort Image Analysis: Enabled
Would you like to use IronPort Image Analysis? [Y]>
Define the image analysis sensitivity. Enter a value between 0 (least sensitive) and 100
(most sensitive). As sensitivity increases, so does the false
positive rate. The default setting of 65 is recommended.
[65]>
Define the range for a CLEAN verdict. Enter the upper bound of the CLEAN range by entering
a value between 0 and 98. The default setting of 49 is
recommended.
[49]>
Define the range for a SUSPECT verdict. Enter the upper bound of the SUSPECT range by
entering a value between 50 and 99. The default setting of 74 is
recommended.
[74]>
Would you like to skip scanning of images smaller than a specific size? [Y]>
Please enter minimum image size to scan in pixels, representing either height or width of
a given image.
[100]>
IronPort Image Analysis: Enabled
Image Analysis Sensitivity: 65
Verdict Ranges: Clean (0-49), Suspect(50-74), Inappropriate (75+)
Skip small images with size less than 100 pixels (width or height)
Choose the operation you want to perform:
- SETUP - Configure IronPort Image Analysis.
[]>
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-152
Chapter 3
The Commands: Reference Examples
Mail Delivery Configuration/Monitoring
oldmessage
Description
Displays the mid and headers of the oldest non-quarantine message on the system.
Usage
Commit: This command does not require a commit.
Cluster Management: This command is restricted to machine mode..
Batch Command: This command does not support a batch format.
Example
In the following example, an older messages are displayed:
mail3.example.com> oldmessage
MID 9: 1 hour 5 mins 35 secs old
Received: from test02.com ([172.19.0.109])
by test02.com with SMTP; 14 Feb 2007 22:11:37 -0800
From: [email protected]
To: [email protected]
Subject: Testing
Message-Id: <[email protected]
rate
Description
Monitor message throughput
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to machine mode.
Batch Command: This command does not support a batch format.
Example
mail3.example.com> rate
Enter the number of seconds between displays.
[10]> 1
Hit Ctrl-C to return to the main prompt.
Time
Connections Recipients
In
Out
Received
Delta
Recipients
Completed
Delta
Queue
K-Used
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-153
Chapter 3
The Commands: Reference Examples
Mail Delivery Configuration/Monitoring
23:37:13
23:37:14
23:37:15
23:37:16
23:37:17
23:37:18
23:37:19
23:37:21
^C
10
8
9
7
5
9
7
11
2
2
2
3
3
3
3
3
41708833
41708841
41708848
41708852
41708858
41708871
41708881
41708893
0
8
7
4
6
13
10
12
40842686
40842692
40842700
40842705
40842711
40842722
40842734
40842744
0
6
8
5
6
11
12
10
64
105
76
64
64
67
64
79
redirectrecipients
Description
Redirect all messages to another relay host.
Warning
Redirecting messages to a receiving domain that has /dev/null as its destination results in the loss of
messages. The CLI does not display a warning if you redirect mail to such a domain. Check the SMTP
route for the receiving domain before redirecting messages.
Warning
Redirecting recipients to a host or IP address that is not prepared to accept large volumes of SMTP
mail from this host will cause messages to bounce and possibly result in the loss of mail.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to machine mode.
Batch Command: This command supports a batch format.
Batch Format
The batch format of the redirectrecipients command can be used to perform all the fuctions of the
traditional CLI command.
•
Redirects all mail to another host name or IP address
redirectrecipients host
Example
The following example redirects all mail to the example2.com host.
mail3.example.com> redirectrecipients
Please enter the hostname or IP address of the machine you want to send all mail to.
[]> example2.com
WARNING: redirecting recipients to a host or IP address that is not prepared to accept
large volumes of SMTP mail from this host will cause messages to bounce and possibly
result in the loss of mail.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-154
Chapter 3
The Commands: Reference Examples
Mail Delivery Configuration/Monitoring
Are you sure you want to redirect all mail in the queue to "example2.com"? [N]> y
Redirecting messages, please wait.
246 recipients redirected.
resetcounters
Description
Reset all of the counters in the system
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to machine mode.
Batch Command: This command does not support a batch format.
Example
mail3.example.com> resetcounters
Counters reset: Mon Jan 01 12:00:01 2003
removemessage
Description
Attempts to safely remove a message for a given message ID.
The removemessage command can only remove messages that are in the work queue, retry queue, or a
destination queue. Note that depending on the state of the system, valid and active messages may not be
in any of those queues.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to machine mode.
Batch Command: This command does not support a batch format.
Example
example.com> removemessage
Enter the MID to remove.
[]> 1
MID 1: 19 secs old
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-155
Chapter 3
The Commands: Reference Examples
Mail Delivery Configuration/Monitoring
Received: from example2.com ([172.16.0.102])
by test02.com with SMTP; 01 Mar 2007 19:50:41 -0800
From: [email protected]
To: [email protected]
Subject: Testing
Message-Id: <[email protected]>
Remove this message? [N]> y
showmessage
Description
Shows the message and message body for a specified message ID.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to machine mode.
Batch Command: This command does not support a batch format.
Example
example.com> showmessage
MID 9: 1 hour 5 mins 35 secs old
Received: from example2.com([172.19.0.109])
by test02.com with SMTP; 14 Feb 2007 22:11:37 -0800
From: [email protected]
To: [email protected]
Subject: Testing
Message-Id: <[email protected]>
This is the message body.
showrecipients
Description
Show messages from the queue by recipient host, Envelope From address, or all messages.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to machine mode.
Batch Command: This command does support a batch format.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-156
Chapter 3
The Commands: Reference Examples
Mail Delivery Configuration/Monitoring
Batch Format
The batch format of the showrecipients command can be used to perform all the fuctions of the
traditional CLI command.
•
Find messages by a recipient host name
showrecipients host
•
Find messages by an envelope from address
showrecipients [sender_options]
The following sender_option is available:
--match-case
•
Case-sensitive matching for the username portion of an address.
Find all messages
showrecipients all
Example
The following example shows messages in the queue for all recipient hosts.
mail3.example.com> showrecipients
Please select how you would like to show messages:
1. By recipient host.
2. By Envelope From address.
3. All.
[1]> 3
Showing messages, please wait.
MID/
[RID]
1527
[0]
Bytes/
[Atmps]
1230
[0]
Sender/
Subject
Recipient
[email protected] Testing
[email protected]
1522
[0]
1230
[0]
[email protected] Testing
[email protected]
1529
[0]
1230
[0]
[email protected] Testing
[email protected]
1530
[0]
1230
[0]
[email protected] Testing
[email protected]
1532
[0]
1230
[0]
[email protected] Testing
[email protected]
1531
[0]
1230
[0]
[email protected] Testing
[email protected]
1518
[0]
1230
[0]
[email protected] Testing
[email protected]
1535
1230
[email protected] Testing
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-157
Chapter 3
The Commands: Reference Examples
Mail Delivery Configuration/Monitoring
[0]
[0]
[email protected]
1533
[0]
1230
[0]
[email protected] Testing
[email protected]
1536
[0]
1230
[0]
[email protected] Testing
[email protected]
status
The status command is used to display the system status of your appliance. Using the ‘detail’ option
(status detail) displays additional information.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command does not support a batch format.
Example
mail.example.com> status detail
Status as of:
Up since:
Mon Sep 08 00:01:44 2014 GMT
Tue Aug 26 17:24:16 2014 GMT
(12d 6h 37m 28s)
Last counter reset:
Never
System status:
Online
Oldest Message:
No Messages
Feature - IronPort Anti-Spam: 1459 days
Feature - Incoming Mail Handling: Perpetual
Feature - Outbreak Filters:
1459 days
Counters:
Receiving
Messages Received
Recipients Received
Rejection
Rejected Recipients
Dropped Messages
Queue
Soft Bounced Events
Completion
Completed Recipients
Current IDs
Message ID (MID)
Injection Conn. ID (ICID)
Delivery Conn. ID (DCID)
Reset
Uptime
Lifetime
2
2
2
2
2
2
0
0
0
0
0
0
0
0
0
0
0
0
Gauges:
Connections
Current Inbound Conn.
Current Outbound Conn.
Queue
Active Recipients
Messages In Work Queue
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-158
2
0
13
Current
0
0
2
0
Chapter 3
The Commands: Reference Examples
Mail Delivery Configuration/Monitoring
Kilobytes Used
Kilobytes Free
Quarantine
Messages In Quarantine
Policy, Virus and Outbreak
Kilobytes In Quarantine
Policy, Virus and Outbreak
184
8,388,424
0
0
tophosts
Description
To get immediate information about the email queue and determine if a particular recipient host has
delivery problems — such as a queue buildup — use the tophosts command. The tophosts command
returns a list of the top 20 recipient hosts in the queue. The list can be sorted by a number of different
statistics, including active recipients, connections out, delivered recipients, soft bounced events, and
hard bounced recipients.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to machine mode.
Batch Command: This command does not support a batch format.
Example
mail3.example.com> tophosts
Sort results by:
1. Active Recipients
2. Connections Out
3. Delivered Recipients
4. Hard Bounced Recipients
5. Soft Bounced Events
[1]> 1
Status as of:
Fri Mar 13 06:09:18 2015 GMT
Hosts marked with '*' were down as of the last delivery attempt.
#
Recipient Host
1*
2
3
4
example.com
the.encryption.queue
the.euq.queue
the.euq.release.queue
Active
Recip.
Conn.
Out
Deliv.
Recip.
Soft
Bounced
Hard
Bounced
2
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-159
Chapter 3
The Commands: Reference Examples
Mail Delivery Configuration/Monitoring
topin
Description
Display the top hosts by number of incoming connections
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to machine mode.
Batch Command: This command does not support a batch format.
Example
mail3.example.com> topin
Status as of:
Sat Aug 23 21:50:54 2003
#
Remote hostname
Remote IP addr.
listener
1mail.remotedomain01.com
172.16.0.2
Incoming01
2
mail.remotedomain01.com
172.16.0.2
Incoming02
3
mail.remotedomain03.com
172.16.0.4
Incoming01
4
mail.remotedomain04.com
172.16.0.5
Incoming02
5
mail.remotedomain05.com
172.16.0.6
Incoming01
6
7
8
9
10
mail.remotedomain06.com
mail.remotedomain07.com
mail.remotedomain08.com
mail.remotedomain09.com
mail.remotedomain10.com
172.16.0.7
172.16.0.8
172.16.0.9
172.16.0.10
172.16.0.11
Incoming02
Incoming01
Incoming01
Incoming01
Incoming01
3
3
3
3
2
11
12
13
14
15
mail.remotedomain11.com
mail.remotedomain12.com
mail.remotedomain13.com
mail.remotedomain14.com
mail.remotedomain15.com
172.16.0.12
172.16.0.13
172.16.0.14
172.16.0.15
172.16.0.16
Incoming01
Incoming02
Incoming01
Incoming01
Incoming01
2
2
2
2
2
16
17
18
19
20
mail.remotedomain16.com
mail.remotedomain17.com
mail.remotedomain18.com
mail.remotedomain19.com
mail.remotedomain20.com
172.16.0.17
172.16.0.18
172.16.0.19
172.16.0.20
172.16.0.21
Incoming01
Incoming01
Incoming02
Incoming01
Incoming01
2
1
1
1
1
unsubscribe
Description
Update the global unsubscribe list
Usage
Commit: This command requires a ‘commit’.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-160
Conn. In
10
10
5
4
3
Chapter 3
The Commands: Reference Examples
Mail Delivery Configuration/Monitoring
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command does not support a batch format.
Example
In this example, the address [email protected] is added to the Global Unsubscribe list, and the feature
is configured to hard bounce messages. Messages sent to this address will be bounced; the appliance will
bounce the message immediately prior to delivery.
mail3.example.com> unsubscribe
Global Unsubscribe is enabled. Action: drop.
Choose the operation you want to perform:
- NEW - Create a new entry.
- IMPORT - Import entries from a file.
- SETUP - Configure general settings.
[]> new
Enter the unsubscribe key to add. Partial addresses such as "@example.com"
or "user@" are allowed, as are IP addresses. Partial hostnames such as "@.example.com" are
allowed.
[]> [email protected]
Email Address '[email protected]' added.
Global Unsubscribe is enabled. Action: drop.
Choose the operation you want to perform:
- NEW - Create a new entry.
- DELETE - Remove an entry.
- PRINT - Display all entries.
- IMPORT - Import entries from a file.
- EXPORT - Export all entries to a file.
- SETUP - Configure general settings.
- CLEAR - Remove all entries.
[]> setup
Do you want to enable the Global Unsubscribe feature? [Y]> y
Would you like matching messages to be dropped or bounced?
1. Drop
2. Bounce
[1]> 2
Global Unsubscribe is enabled. Action: bounce.
Choose the operation you want to perform:
- NEW - Create a new entry.
- DELETE - Remove an entry.
- PRINT - Display all entries.
- IMPORT - Import entries from a file.
- EXPORT - Export all entries to a file.
- SETUP - Configure general settings.
- CLEAR - Remove all entries.
[]>
mail3.example.com> commit
Please enter some comments describing your changes:
[]> Added username “[email protected]” to global unsubscribe
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-161
Chapter 3
The Commands: Reference Examples
Networking Configuration / Network Tools
Do you want to save the current configuration for rollback? [Y]> n
Changes committed: Fri May 23 11:42:12 2014 GMT
workqueue
Description
Display and/or alter work queue pause status
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to machine mode.
Batch Command: This command does not support a batch format.
Example
mail3.example.com> workqueue
Status:
Operational
Messages: 1243
Manually pause work queue?
This will only affect unprocessed messages.
[N]> y
Reason for pausing work queue:
[]> checking LDAP server
Status:
Paused by admin: checking LDAP server
Messages: 1243
Note
Entering a reason is optional. If you do not enter a reason, the system logs the reason as “operator
paused.”
In this example, the work queue is resumed:
mail3.example.com> workqueue
Status:
Paused by admin: checking LDAP server
Messages: 1243
Resume the work queue?
[Y]> y
Status:
Operational
Messages: 1243
Networking Configuration / Network Tools
This section contains the following CLI commands:
•
etherconfig
•
interfaceconfig
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-162
Chapter 3
The Commands: Reference Examples
Networking Configuration / Network Tools
•
netstat
•
nslookup
•
packetcapture
•
ping
•
ping6
•
routeconfig
•
setgateway
•
sethostname
•
smtproutes
•
sslconfig
•
sslv3config
•
telnet
•
traceroute
•
traceroute6
etherconfig
Description
Configure Ethernet settings, including media settings, NIC pairing, VLAN configuration, and DSR
configuration.
Usage
Commit: This command requires a ‘commit’.
Cluster Management: This command is restricted to machine mode.
Batch Command: This command does not support a batch format.
Example
mail3.example.com> etherconfig
Choose the operation you want to perform:
- MEDIA - View and edit ethernet media settings.
- VLAN - View and configure VLANs.
- LOOPBACK - View and configure Loopback.
- MTU - View and configure MTU.
[]> vlan
VLAN interfaces:
Choose the operation you want to perform:
- NEW - Create a new VLAN.
[]> new
VLAN tag ID for the interface (Ex: "34"):
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-163
Chapter 3
The Commands: Reference Examples
Networking Configuration / Network Tools
[]> 12
Enter the name or number of the ethernet interface you wish bind to:
1. Data 1
2. Data 2
3. Management
[1]> 1
VLAN interfaces:
1. VLAN
12 (Data 1)
Choose the operation you want to perform:
- NEW - Create a new VLAN.
- EDIT - Edit a VLAN.
- DELETE - Delete a VLAN.
[]>
Choose the operation you want to perform:
- MEDIA - View and edit ethernet media settings.
- VLAN - View and configure VLANs.
- LOOPBACK - View and configure Loopback.
- MTU - View and configure MTU.
[]> loopback
Currently configured loopback interface:
Choose the operation you want to perform:
- ENABLE - Enable Loopback Interface.
[]>
Choose the operation you want to perform:
- MEDIA - View and edit ethernet media settings.
- VLAN - View and configure VLANs.
- LOOPBACK - View and configure Loopback.
- MTU - View and configure MTU.
[]> mtu
Ethernet interfaces:
1. Data 1 default mtu 1500
2. Data 2 default mtu 1500
3. Management default mtu 1500
4. VLAN
12 default mtu 1500
Choose the operation you want to perform:
- EDIT - Edit an ethernet interface.
[]> edit
Enter the name or number of the ethernet interface you wish to edit.
[]> pair1
That value is not valid.
Enter the name or number of the ethernet interface you wish to edit.
[]> 12
That value is not valid.
Enter the name or number of the ethernet interface you wish to edit.
[]> 2
Please enter a non-default (1500) MTU value for the Data 2 interface.
[]> 1200
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-164
Chapter 3
The Commands: Reference Examples
Networking Configuration / Network Tools
Ethernet interfaces:
1. Data 1 default mtu 1500
2. Data 2 mtu 1200
3. Management default mtu 1500
4. VLAN
12 default mtu 1500
Choose the operation you want to perform:
- EDIT - Edit an ethernet interface.
[]>
interfaceconfig
Description
Configure the interface. You can create, edit, or delete interfaces. You can enable FTP, change an IP
address, and configure Ethernet IP addresses.
Usage
Commit: This command requires a ‘commit’.
Cluster Management: This command is restricted to machine mode.
Batch Command: This command supports a batch format.
Batch Format
The batch format of the interfaceconfig command can be used to perform all the fuctions of the
traditional CLI command.
•
Creating a new interface
interfaceconfig new
--ip=IPv4 Address/Netmask
--ip6=IPv6 Address/Prefix Lenght
[--ftp[=]]
[--telnet[=]]
[--ssh[=]]
[--http][=]
[--https[=]]
[--euq_http[=]]
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-165
Chapter 3
The Commands: Reference Examples
Networking Configuration / Network Tools
[--euq_https][=]
[--ccs[=]].
FTP is available only on IPv4.
•
Deleting an interface
interfaceconfig delete
Example: Configuring an Interface
mail.example.com> interfaceconfig
Currently configured interfaces:
1. Management (10.76.69.149/24 on Management: mail.example.com)
Choose the operation you want to perform:
- NEW - Create a new interface.
- EDIT - Modify an interface.
- GROUPS - Define interface groups.
- DELETE - Remove an interface.
[]> edit
Enter the number of the interface you wish to edit.
[]> 1
IP interface name (Ex: "InternalNet"):
[Management]>
Would you like to configure an IPv4 address for this interface (y/n)? [Y]>
IPv4 Address (Ex: 192.168.1.2 ):
[1.1.1.1]>
Netmask (Ex: "24", "255.255.255.0" or "0xffffff00"):
[0xffffffff]>
Would you like to configure an IPv6 address for this interface (y/n)? [N]> n
Ethernet interface:
1. Data 1
2. Data 2
3. Management
[3]>
Hostname:
[mail.example.com]>
Do you want to enable SSH on this interface? [Y]>
Which port do you want to use for SSH?
[22]>
Do you want to enable FTP on this interface? [N]>
Do you want to enable Cluster Communication Service on this interface? [N]>
Do you want to enable HTTP on this interface? [Y]>
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-166
Chapter 3
The Commands: Reference Examples
Networking Configuration / Network Tools
Which port do you want to use for HTTP?
[80]>
Do you want to enable HTTPS on this interface? [Y]>
Which port do you want to use for HTTPS?
[443]>
Do you want to enable Spam Quarantine HTTP on this interface? [N]>
Do you want to enable Spam Quarantine HTTPS on this interface? [N]>
Do you want to enable AsyncOS API (Monitoring) HTTP on this interface? [N]> y
Which port do you want to use for AsyncOS API (Monitoring) HTTP?
[6080]>
Do you want to enable AsyncOS API (Monitoring) HTTPS on this interface? [N]> y
Which port do you want to use for AsyncOS API (Monitoring) HTTPS?
[6443]>
The "Demo" certificate is currently configured. You may use "Demo", but this will not be
secure. To assure privacy, run "certconfig" first.
Both HTTP and HTTPS are enabled for this interface, should HTTP requests redirect to the
secure service? [Y]>
You have edited the interface you are currently logged into. Are you sure you want to
change it? [Y]>
Currently configured interfaces:
1. Management (10.76.69.149/24 on Management: mail.example.com)
Choose the operation you want to perform:
- NEW - Create a new interface.
- EDIT - Modify an interface.
- GROUPS - Define interface groups.
- DELETE - Remove an interface.
[]>
nslookup
Description
Use the nslookup command to check the DNS functionality.
The nslookup command can confirm that the appliance is able to reach and resolve hostnames and IP
addresses from a working DNS (domain name service) server.
Table 3-10
nslookup Command Query Types
Query Type
Description
A
the host's Internet address
CNAME
the canonical name for an alias
MX
the mail exchanger
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-167
Chapter 3
The Commands: Reference Examples
Networking Configuration / Network Tools
Table 3-10
nslookup Command Query Types
Query Type
Description
NS
the name server for the named zone
PTR
the hostname if the query is an Internet address, otherwise the pointer
to other information
SOA
the domain's “start-of-authority” information
TXT
the text information
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command does not support a batch format
Example
mail.example.com> nslookup
Please enter the host or IP address to resolve.
[]> vm30esa0086.ibqa
Choose the
1. A
2. AAAA
3. CNAME
4. MX
5. NS
6. PTR
query type:
the host's IP address
the host's IPv6 address
the canonical name for an alias
the mail exchanger
the name server for the named zone
the hostname if the query is an Internet address,
otherwise the pointer to other information
7. SOA
the domain's "start-of-authority" information
8. TXT
the text information
[1]> 2
AAAA=2001:420:54ff:ff06::95 TTL=30m
netstat
Description
Use the netstat command to displays network connections (both incoming and outgoing), routing
tables, and a number of network interface statistics. Note that this version will not support all arguments.
Specifically, you cannot use -a, -A, -g, -m, -M, -N, -s. The command was designed to be run in interactive
mode, so that you may enter netstat, then choose from five options to report on. You can also specify the
interface to listen on and the interval for display.
Usage
Commit: This command does not require a ‘commit’.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-168
Chapter 3
The Commands: Reference Examples
Networking Configuration / Network Tools
Cluster Management: This command is restricted to machine mode.
Batch Command: This command does not support a batch format
Example
example.com> netstat
Choose the information you want to display:
1. List of active sockets.
2. State of network interfaces.
3. Contents of routing tables.
4. Size of the listen queues.
5. Packet traffic information.
[1]> 2
Select the ethernet interface whose state you wish to display:
1. Data 1
2. Data 2
3. Management
4. ALL
[]> 1
Show the number of bytes in and out? [N]>
Show the number of dropped packets? [N]> y
Name
Mtu Network
Address
Ipkts Ierrs
Opkts
Oerrs Coll Drop
Data 1 1500 197.19.1/24
example.com
30536
5
example.com>
-
packetcapture
Description
Use the netstat command to displays network connections (both incoming and outgoing), routing
tables, and a number of network interface statistics. Note that this version will not support all arguments.
Specifically, you cannot use -a, -A, -g, -m, -M, -N, -s. The command was designed to be run in interactive
mode, so that you may enter netstat, then choose from five options to report on. You can also specify the
interface to listen on and the interval for display.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command does not support a batch format
Example
mail.example.com> packetcapture
Capture Information:
Status:
No capture running
Current Settings:
Maximum File Size:
Limit:
200 MB
None (Run Indefinitely)
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-169
Chapter 3
The Commands: Reference Examples
Networking Configuration / Network Tools
Interface(s):
Filter:
ALL
(tcp port 25)
Choose the operation you want to perform:
- START - Start packet capture.
- SETUP - Change packet capture settings.
[]> start
Success - Packet Capture has started
Capture Information:
File Name:
File Size:
Duration:
Limit:
Interface(s):
Filter:
C100V-421C73B18CFB05784A83-B03A99E71ED8-20150312-105256.cap
0 of 200M
0s
None (Run Indefinitely)
ALL
(tcp port 25)
Choose the operation you want to perform:
- STOP - Stop packet capture.
- STATUS - Display current capture status.
- SETUP - Change packet capture settings.
[]> stop
Success - Packet Capture has stopped
Capture Information:
File Name:
File Size:
Duration:
Limit:
Interface(s):
Filter:
C100V-421C73B18CFB05784A83-B03A99E71ED8-20150312-105256.cap
24 of 200M
10s
None (Run Indefinitely)
ALL
(tcp port 25)
Choose the operation you want to perform:
- START - Start packet capture.
- SETUP - Change packet capture settings.
[]> setup
Enter maximum allowable size for the capture file (in MB)
[200]>
Do you want to stop the capture when the file size is reached? (If not, a new file will be
started and the older capture data will be discarded.)
[N]>
The following interfaces are configured:
1. Management
2. ALL
Enter the name or number of one or more interfaces to capture packets from, separated by
commas (enter ALL to use all interfaces):
[2]>
Select an operation. Press enter to continue with the existing filter.
- PREDEFINED - PREDEFINED filter.
- CUSTOM - CUSTOM filter.
- CLEAR - CLEAR filter.
[]>
Capture settings successfully saved.
Current Settings:
Maximum File Size:
Limit:
200 MB
None (Run Indefinitely)
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-170
Chapter 3
The Commands: Reference Examples
Networking Configuration / Network Tools
Interface(s):
Filter:
ALL
(tcp port 25)
Choose the operation you want to perform:
- START - Start packet capture.
- SETUP - Change packet capture settings.
[]>
ping
Description
The ping command allows you to test connectivity to a network host from the appliance.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to machine mode. It is further restricted to the login
host (i.e., the specific machine you are logged onto). This command requires access to the local file
system.
Batch Command: This command does not support a batch format.
Example
mail3.example.com> ping
Which interface do you want to send the pings from?
1. Auto
2. Management (192.168.42.42/24: mail3.example.com)
3. PrivateNet (192.168.1.1/24: mail3.example.com)
4. PublicNet (192.168.2.1/24: mail3.example.com)
[1]> 1
Please enter the host you wish to ping.
[]> anotherhost.example.com
Press Ctrl-C to stop.
PING anotherhost.example.com (x.x.x.x): 56 data bytes
64 bytes from 10.19.0.31: icmp_seq=0 ttl=64 time=1.421 ms
64 bytes from 10.19.0.31: icmp_seq=1 ttl=64 time=0.126 ms
64 bytes from 10.19.0.31: icmp_seq=2 ttl=64 time=0.118 ms
64 bytes from 10.19.0.31: icmp_seq=3 ttl=64 time=0.115 ms
64 bytes from 10.19.0.31: icmp_seq=4 ttl=64 time=0.139 ms
64 bytes from 10.19.0.31: icmp_seq=5 ttl=64 time=0.125 ms
64 bytes from 10.19.0.31: icmp_seq=6 ttl=64 time=0.124 ms
64 bytes from 10.19.0.31: icmp_seq=7 ttl=64 time=0.122 ms
64 bytes from 10.19.0.31: icmp_seq=8 ttl=64 time=0.126 ms
64 bytes from 10.19.0.31: icmp_seq=9 ttl=64 time=0.133 ms
64 bytes from 10.19.0.31: icmp_seq=10 ttl=64 time=0.115 ms
^C
--- anotherhost.example.com ping statistics --11 packets transmitted, 11 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.115/0.242/1.421/0.373 ms
^C
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-171
Chapter 3
The Commands: Reference Examples
Networking Configuration / Network Tools
Note
You must use Control-C to end the ping command.
ping6
Description
Ping a network host using IPv6
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to machine mode. It is further restricted to the login
host (i.e., the specific machine you are logged onto). This command requires access to the local file
system.
Batch Command: This command does not support a batch format.
Example
mail.example.com> ping6
Which interface do you want to send the pings from?
1. Auto
2. Management (192.168.42.42/24: mail3.example.com)
[1]> 1
Please enter the host you wish to ping.
[]> anotherhost.example.com
Press Ctrl-C to stop.
Note
You must use Control-C to end the ping6 command.
routeconfig
Description
The routeconfig command allows you to create, edit, and delete static routes for TCP/IP traffic. By
default, traffic is routed through the default gateway set with the setgateway command. However,
AsyncOS allows specific routing based on destination.
Routes consist of a nickname (for future reference), a destination, and a gateway. A gateway (the next
hop) is an IP address such as 10.1.1.2. The destination can be one of two things:
•
an IP address, such as 192.168.14.32
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-172
Chapter 3
The Commands: Reference Examples
Networking Configuration / Network Tools
•
a subnet using CIDR notation. For example, 192.168.5.0/24 means the entire class C network from
192.168.5.0 to 192.168.5.255.
For IPv6 addresses, you can use the following formats:
•
2620:101:2004:4202::0-2620:101:2004:4202::ff
•
2620:101:2004:4202::
•
2620:101:2004:4202::23
•
2620:101:2004:4202::/64
The command presents a list of all currently configured TCP/IP routes for you to select from using the
edit and delete subcommands.
Usage
Commit: This command requires a ‘commit’.
Cluster Management: This command is restricted to machine mode.
Batch Command: This command supports a batch format.
Batch Format
The batch format of the smtproutes command can be used to perform all the fuctions of the traditional
CLI command. You can choose whether to use IPv4 or IPv6 addresses for the route.
•
Creating a static route:
routeconfig new 4|6
Table 3-11
routeconfig Arguments
Argument
Description
4|6
The IP version (IPv4 or IPv6) to apply this command
to. For clear and print this option can be omitted
and the command applies to both versions.
name
The name of the route.
destination_address
The IP or CIDR address to match on for outgoing IP
traffic.
gateway_ip
•
The IP address to send this traffic to.
Editing a static route:
routeconfig edit 4|6
•
Deleting a static route:
routeconfig delete 4|6
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-173
Chapter 3
The Commands: Reference Examples
Networking Configuration / Network Tools
•
Deleting all static routes:
routeconfig clear [4|6]
•
Printing a list of static routes:
routeconfig print [4|6]
Example
mail3.example.com> routeconfig
Configure routes for:
1. IPv4
2. IPv6
[1]>
Currently configured routes:
Choose the operation you want to perform:
- NEW - Create a new route.
[]> new
Please create a name for the route:
[]> EuropeNet
Please enter the destination IPv4 address to match on.
CIDR addresses such as 192.168.42.0/24 are also allowed.
[]> 192.168.12.0/24
Please enter the gateway IP address for traffic to 192.168.12.0/24:
[]> 192.168.14.4
Currently configured routes:
1. EuropeNet Destination: 192.168.12.0/24 Gateway: 192.168.14.4
Choose the operation you want to perform:
- NEW - Create a new route.
- EDIT - Modify a route.
- DELETE - Remove a route.
- CLEAR - Clear all entries.
[]>
mail3.example.com> routeconfig
Configure routes for:
1. IPv4
2. IPv6
[1]> 2
Currently configured routes:
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-174
Chapter 3
The Commands: Reference Examples
Networking Configuration / Network Tools
Choose the operation you want to perform:
- NEW - Create a new route.
[]> new
Please create a name for the route:
[]> EuropeIPv6Net
Please enter the destination IPv6 address to match on.
CIDR addresses such as 2001:db8::/32 are also allowed.
[]> 2620:101:2004:4202::/6
Please enter the gateway IP address for traffic to 2620:101:2004:4202::/6:
[]> 2620:101:2004:4202::23
Currently configured routes:
1. EuropeIPv6Net Destination: 2620:101:2004:4202::/6 Gateway:
2620:101:2004:4202::23
Choose the operation you want to perform:
- NEW - Create a new route.
- EDIT - Modify a route.
- DELETE - Remove a route.
- CLEAR - Clear all entries.
[]>
setgateway
Description
The setgateway command configures the default next-hop intermediary through which packets should
be routed. Alternate (non-default) gateways are configured using the routeconfig command.
Usage
Commit: This command requires a ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command does not support a batch format.
Example
mail3.example.com> setgateway
Warning: setting an incorrect default gateway may cause the current connection to be
interrupted when the changes are committed.
Enter new default gateway:
[10.1.1.1]> 192.168.20.1
mail3.example.com> commit
Please enter some comments describing your changes:
[]> changed default gateway to 192.168.20.1
Do you want to save the current configuration for rollback? [Y]> n
Changes committed: Fri May 23 11:42:12 2014 GMT
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-175
Chapter 3
The Commands: Reference Examples
Networking Configuration / Network Tools
sethostname
Description
The hostname is used to identify the system at the CLI prompt. You must enter a fully-qualified
hostname. The sethostname command sets the name of the Email Security appliance. The new hostname
does not take effect until you issue the commit command.
Usage
Commit: This command requires a ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command does not support a batch format.
Example
oldname.example.com> sethostname
[oldname.example.com]> mail3.example.com
oldname.example.com>
For the hostname change to take effect, you must enter the commit command. After you have successfully
committed the hostname change, the new name appears in the CLI prompt:
oldname.example.com> commit
Please enter some comments describing your changes:
[]> Changed System Hostname
Do you want to save the current configuration for rollback? [Y]> n
Changes committed: Fri May 23 11:42:12 2014 GMT
The new hostname appears in the prompt as follows:
mail3.example.com>
smtproutes
Description
Set up permanent domain redirections.
Usage
Commit: This command requires a ‘commit’.
Cluster Management: This command can be used in all three machine modes (cluster, group, machine).
Batch Command: This command supports a batch format.
CLI Reference Guide for AsyncOS 9.6 for Cisco Email Security Appliances
3-176
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
smtproutes new