AsyncOS CLI

Download as pdf or txt
Download as pdf or txt
You are on page 1of 276

IronPort AsyncOS 5.

5
CLI REFERENCE GUIDE
for IronPort Appliances

COPYRIGHT
Copyright 2007 by IronPort Systems, Inc. All rights reserved. Part Number: 421-0510 Revision Date: October 16, 2007 The IronPort logo, IronPort Systems, Messaging Gateway, Virtual Gateway, SenderBase, Mail Flow Monitor, Virus Outbreak Filters, Context Adaptive Scanning Engine (CASE), IronPort Anti-Spam, and AsyncOS are all trademarks or registered trademarks of IronPort Systems, Inc. Brightmail, the Brightmail logo, BLOC, BrightSig, and Probe Network are trademarks or registered trademarks of Symantec Incorporated. McAfee and VirusScan are registered trademarks or trademarks of McAfee, Inc. and/or its affiliates in the US and/or other countries. Copyright 2007 McAfee, Inc. All rights reserved. Used with permission. All other trademarks, service marks, trade names, or company names referenced herein are used for identification only and are the property of their respective owners. This publication and the information contained herein is furnished AS IS and is subject to change without notice. Publication of this document should not be construed as a commitment by IronPort Systems, Inc. IronPort Systems, Inc., assumes no responsibility or liability for any errors or inaccuracies, makes no warranty of any kind with respect to this publication, and expressly disclaims any and all warranties of merchantability, fitness for particular purposes and non-infringement of third-party rights. Some software included within IronPort AsyncOS is distributed under the terms, notices, and conditions of software license agreements of FreeBSD, Inc., Stichting Mathematisch Centrum, Corporation for National Research Initiatives, Inc., and other third party contributors, and all such terms and conditions are incorporated in IronPort license agreements. The full text of these agreements can be found here: https://support.ironport.com/3rdparty/AsyncOS_User_Guide-1-1.html. Portions of the software within IronPort AsyncOS is based upon the RRDtool with the express written consent of Tobi Oetiker. Portions of this document are reproduced with permission of Dell Computer Corporation. Portions of this document are reproduced with permission of McAfee, Inc. Portions of this document are reproduced with permission of Symantec Incorporated. Portions of this document are reproduced with permission of Sophos Plc. Brightmail Anti-Spam is protected under U.S. Patent No. 6,052,709.

IRONPORT SYSTEMS, INC. CONTACTING IRONPORT CUSTOMER SUPPORT


IronPort Systems, Inc. 950 Elm Ave. San Bruno, CA 94066
If you have purchased support directly from IronPort Systems, you can request our support by phone, email or online 24 hours a day, 7 days a week. During our office hours (24 hours per day, Monday through Friday excluding US holidays), one of our engineers will contact you within an hour of your request. To report a critical issue that requires urgent assistance outside of our office hours, please call us immediately at the numbers below. U.S. Toll-free:1 (877) 641-IRON (4766)

International: www.ironport.com/support/ contact_support.html Support Portal: www.ironport.com/support


If you have purchased support through a reseller or another entity, please contact them for support of your IronPort products.

Table of Contents
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii
Before you Read this Book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .xiii How This Book Is Organized . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .xiii Typographic Conventions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiv Contacting IronPort Customer Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiv IronPort Welcomes Your Comments. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiv

1. AsyncOS CLI Quick Reference Guide . . . . . . . . . . . . . . . . . . . . . . . . 1 2. Command Line Interface: The Basics . . . . . . . . . . . . . . . . . . . . . . . . 9
Command Line Interface (CLI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Accessing the Command Line Interface (CLI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Command Line Interface Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 General Purpose CLI Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Batch Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Batch Command Example. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

3. The Commands: Reference Examples . . . . . . . . . . . . . . . . . . . . . . . 19


How to Read the Listing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Anti-Spam . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 antispamconfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 antispamstatus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 antispamupdate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 incomingrelayconfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 Anti-Virus. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 antivirusconfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 antivirusstatus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 antivirusupdate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 Command Line Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 commit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 commitdetail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 clearchanges or clear . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 help or h or ? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 quit or q or exit. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 Configuration File Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 loadconfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 mailconfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38

iii

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

resetconfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . saveconfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . showconfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Cluster Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . clusterconfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . clustercheck. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Domain Keys . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . domainkeysconfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . DNS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . dnsconfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . dnsflush . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . dnslistconfig. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . dnslistflush. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . dnslisttest . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . dnsstatus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . General Management/Administration/Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . addressconfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . certconfig. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . diagnostic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . featurekey . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . featurekeyconfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ntpconfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . reboot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . resume. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . resumedel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . resumelistener . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . settime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . settz . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . shutdown. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . sshconfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . supportrequest . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . suspend . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . suspenddel. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . suspendlistener . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . techsupport . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . trace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . updateconfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . upgradeconfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . version. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . upgrade . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . revert . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . LDAP. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ldapconfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ldapflush . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ldaptest . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

39 40 41 42 42 44 45 45 51 51 55 55 56 57 57 59 59 61 62 65 66 67 69 69 70 70 71 72 73 74 75 77 78 78 79 80 81 84 86 88 88 89 91 91 95 95

iv

Mail Delivery Configuration/Monitoring. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 aliasconfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 archivemessage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 altsrchost . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102 bounceconfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104 bouncerecipients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110 bvconfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111 deleterecipients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113 deliveryconfig. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115 delivernow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116 destconfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116 hostrate. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124 hoststatus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124 oldmessage. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127 rate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128 resetcounters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128 removemessage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129 showmessage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129 findevent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130 tophosts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133 topin. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134 unsubscribe . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135 workqueue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137 Networking Configuration / Network Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138 etherconfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138 interfaceconfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144 nslookup. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148 netstat. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149 ping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150 routeconfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151 setgateway . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152 sethostname . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153 smtproutes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154 telnet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156 traceroute . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157 Policy Enforcement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159 dictionaryconfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159 exceptionconfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165 filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166 policyconfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169 quarantineconfig. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190 scanconfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192 stripheaders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195 textconfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 196 Logging and Alerts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201 alertconfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

grep . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . logconfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . rollovernow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . snmpconfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . tail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Senderbase . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . sbstatus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . senderbaseconfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SMTP Services Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . listenerconfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . localeconfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . smtpauthconfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . System Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . systemsetup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . User Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . userconfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . passord or passwd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . last. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . who . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . whoami . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Virus Outbreak Filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vofconfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vofflush . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vofstatus. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vofupdate. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

204 206 214 215 217 220 220 220 222 222 241 242 245 245 253 253 254 255 256 256 257 257 258 259 259

vi

List of Command Line Interface Examples


help . . . . . . . . . . . . . antispamconfig . . . . . . . . incomingrelayconfig . . . . . antivirusconfig . . . . . . . antivirusconfig -> detail . . antivirusstatus . . . . . . . antivirusupdate . . . . . . . commit . . . . . . . . . . . . commitdetail . . . . . . . . . clear . . . . . . . . . . . . help . . . . . . . . . . . . . quit . . . . . . . . . . . . . loadconfig . . . . . . . . . . mailconfig . . . . . . . . . . resetconfig . . . . . . . . . saveconfig . . . . . . . . . . showconfig . . . . . . . . . . domainkeysconfig . . . . . . domainkeysconfig -> profiles dnsconfig . . . . . . . . . . dnsconfig -> setup . . . . . dnsconfig -> new . . . . . . dnsflush . . . . . . . . . . . dnslistconfig . . . . . . . . dnslistflush . . . . . . . . . dnslisttest . . . . . . . . . dnsstatus . . . . . . . . . . addressconfig . . . . . . . . certconfig . . . . . . . . . . diagnostic . . . . . . . . . . diagnostic . . . . . . . . . . featurekeyconfig . . . . . . ntpconfig . . . . . . . . . . reboot . . . . . . . . . . . . resume . . . . . . . . . . . . resumedel . . . . . . . . . . resumelistener . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . 15 . . . . . . . . . . . . . . . . . . . . . . . . 22 . . . . . . . . . . . . . . . . . . . . . . . . 26 . . . . . . . . . . . . . . . . . . . . . . . . 30 . . . . . . . . . . . . . . . . . . . . . . . . 31 . . . . . . . . . . . . . . . . . . . . . . . . 32 . . . . . . . . . . . . . . . . . . . . . . . . 33 . . . . . . . . . . . . . . . . . . . . . . . . 34 . . . . . . . . . . . . . . . . . . . . . . . . 35 . . . . . . . . . . . . . . . . . . . . . . . . 35 . . . . . . . . . . . . . . . . . . . . . . . . 36 . . . . . . . . . . . . . . . . . . . . . . . . 36 . . . . . . . . . . . . . . . . . . . . . . . . 37 . . . . . . . . . . . . . . . . . . . . . . . . 39 . . . . . . . . . . . . . . . . . . . . . . . . 40 . . . . . . . . . . . . . . . . . . . . . . . . 41 . . . . . . . . . . . . . . . . . . . . . . . . 41 . . . . . . . . . . . . . . . . . . . . . . . . 45

-> dnstxt . . . . . . . . . . . . . . . . . . . 48
. . . . . . . . . . . . . . . . . . . . . . . . 52 . . . . . . . . . . . . . . . . . . . . . . . . 52 . . . . . . . . . . . . . . . . . . . . . . . . 53 . . . . . . . . . . . . . . . . . . . . . . . . 55 . . . . . . . . . . . . . . . . . . . . . . . . 56 . . . . . . . . . . . . . . . . . . . . . . . . 57 . . . . . . . . . . . . . . . . . . . . . . . . 57 . . . . . . . . . . . . . . . . . . . . . . . . 58 . . . . . . . . . . . . . . . . . . . . . . . . 60 . . . . . . . . . . . . . . . . . . . . . . . . 61 . . . . . . . . . . . . . . . . . . . . . . . . 64 . . . . . . . . . . . . . . . . . . . . . . . . 64 . . . . . . . . . . . . . . . . . . . . . . . . 66 . . . . . . . . . . . . . . . . . . . . . . . . 67 . . . . . . . . . . . . . . . . . . . . . . . . 69 . . . . . . . . . . . . . . . . . . . . . . . . 70 . . . . . . . . . . . . . . . . . . . . . . . . 70 . . . . . . . . . . . . . . . . . . . . . . . . 71

vii

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

settime . . . . . . . . . shutdown . . . . . . . . sshconfig . . . . . . . . sshconfig->setup . . . . status . . . . . . . . . . suspend . . . . . . . . . suspenddel . . . . . . . suspendlistener . . . . . trace . . . . . . . . . . updateconfig . . . . . . revert . . . . . . . . . . ldapconfig . . . . . . . ldaptest . . . . . . . . aliasconfig . . . . . . . archivemessage . . . . . altsrchost . . . . . . . bounceconfig . . . . . . bounceconfig . . . . . . bvconfig . . . . . . . . deleterecipients . . . . deleterecipients . . . . deleterecipients . . . . deliveryconfig . . . . . destconfig . . . . . . . destconfig . . . . . . . destconfig . . . . . . . hostrate . . . . . . . . hoststatus . . . . . . . oldmessage . . . . . . . rate . . . . . . . . . . . resetcounters . . . . . . removemessage . . . . . . showmessage . . . . . . . findevent . . . . . . . . tophosts . . . . . . . . topin . . . . . . . . . . unsubscribe . . . . . . . etherconfig -> media . . etherconfig -> pairing . etherconfig -> failover . etherconfig -> VLAN . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . 72 . . . . . . . . . . . . . . . . . . . . . . . . . . 74 . . . . . . . . . . . . . . . . . . . . . . . . . . 74 . . . . . . . . . . . . . . . . . . . . . . . . . . 75 . . . . . . . . . . . . . . . . . . . . . . . . . . 76 . . . . . . . . . . . . . . . . . . . . . . . . . . 78 . . . . . . . . . . . . . . . . . . . . . . . . . . 79 . . . . . . . . . . . . . . . . . . . . . . . . . . 80 . . . . . . . . . . . . . . . . . . . . . . . . . . 82 . . . . . . . . . . . . . . . . . . . . . . . . . . 84 . . . . . . . . . . . . . . . . . . . . . . . . . . 89 . . . . . . . . . . . . . . . . . . . . . . . . . . 91 . . . . . . . . . . . . . . . . . . . . . . . . . . 96 . . . . . . . . . . . . . . . . . . . . . . . . . . 99 . . . . . . . . . . . . . . . . . . . . . . . . . . 102 . . . . . . . . . . . . . . . . . . . . . . . . . . 102 . . . . . . . . . . . . . . . . . . . . . . . . . . 104 . . . . . . . . . . . . . . . . . . . . . . . . . . 106 . . . . . . . . . . . . . . . . . . . . . . . . . . 111 . . . . . . . . . . . . . . . . . . . . . . . . . . 113 . . . . . . . . . . . . . . . . . . . . . . . . . . 114 . . . . . . . . . . . . . . . . . . . . . . . . . . 115 . . . . . . . . . . . . . . . . . . . . . . . . . . 115 . . . . . . . . . . . . . . . . . . . . . . . . . . 118 . . . . . . . . . . . . . . . . . . . . . . . . . . 120 . . . . . . . . . . . . . . . . . . . . . . . . . . 122 . . . . . . . . . . . . . . . . . . . . . . . . . . 124 . . . . . . . . . . . . . . . . . . . . . . . . . . 126 . . . . . . . . . . . . . . . . . . . . . . . . . . 127 . . . . . . . . . . . . . . . . . . . . . . . . . . 128 . . . . . . . . . . . . . . . . . . . . . . . . . . 129 . . . . . . . . . . . . . . . . . . . . . . . . . . 129 . . . . . . . . . . . . . . . . . . . . . . . . . . 130 . . . . . . . . . . . . . . . . . . . . . . . . . . 130 . . . . . . . . . . . . . . . . . . . . . . . . . . 134 . . . . . . . . . . . . . . . . . . . . . . . . . . 134 . . . . . . . . . . . . . . . . . . . . . . . . . . 135 . . . . . . . . . . . . . . . . . . . . . . . . . . 138 . . . . . . . . . . . . . . . . . . . . . . . . . . 139 . . . . . . . . . . . . . . . . . . . . . . . . . . 140 . . . . . . . . . . . . . . . . . . . . . . . . . . 141

viii

etherconfig -> pairing -> failover . . interfaceconfig . . . . . . . . . . . . interfaceconfig . . . . . . . . . . . . netstat . . . . . . . . . . . . . . . . ping . . . . . . . . . . . . . . . . . . routeconfig . . . . . . . . . . . . . . setgateway . . . . . . . . . . . . . . . sethostname . . . . . . . . . . . . . . smtproutes . . . . . . . . . . . . . . . traceroute . . . . . . . . . . . . . . . exceptionconfig . . . . . . . . . . . . filters . . . . . . . . . . . . . . . . filters -> new . . . . . . . . . . . . . listenerconfig -> antispam . . . . . . policyconfig . . . . . . . . . . . . . . quarantineconfig . . . . . . . . . . . textconfig . . . . . . . . . . . . . . . textconfig -> import . . . . . . . . . alertconfig . . . . . . . . . . . . . . grep . . . . . . . . . . . . . . . . . . logconfig . . . . . . . . . . . . . . . logconfig . . . . . . . . . . . . . . . logconfig . . . . . . . . . . . . . . . rollovernow . . . . . . . . . . . . . . snmpconfig . . . . . . . . . . . . . . . tail . . . . . . . . . . . . . . . . . . tail . . . . . . . . . . . . . . . . . . sbstatus . . . . . . . . . . . . . . . . senderbaseconfig . . . . . . . . . . . listenerconfig . . . . . . . . . . . . . listenerconfig -> hostaccess . . . . . listenerconfig -> hostaccess -> print listenerconfig -> hostaccess -> export listenerconfig -> hostaccess -> import listenerconfig -> hostaccess . . . . . localeconfig . . . . . . . . . . . . . . smtpauthconfig . . . . . . . . . . . . . userconfig . . . . . . . . . . . . . . . password . . . . . . . . . . . . . . . . who . . . . . . . . . . . . . . . . . . whoami . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . .141 . . . . . . . . . . . . . . . . . . .145 . . . . . . . . . . . . . . . . . . .146 . . . . . . . . . . . . . . . . . . .149 . . . . . . . . . . . . . . . . . . .150 . . . . . . . . . . . . . . . . . . .152 . . . . . . . . . . . . . . . . . . .153 . . . . . . . . . . . . . . . . . . .154 . . . . . . . . . . . . . . . . . . .155 . . . . . . . . . . . . . . . . . . .157 . . . . . . . . . . . . . . . . . . .166 . . . . . . . . . . . . . . . . . . .167 . . . . . . . . . . . . . . . . . . .167 . . . . . . . . . . . . . . . . . . .170 . . . . . . . . . . . . . . . . . . .173 . . . . . . . . . . . . . . . . . . .190 . . . . . . . . . . . . . . . . . . .196 . . . . . . . . . . . . . . . . . . .198 . . . . . . . . . . . . . . . . . . .201 . . . . . . . . . . . . . . . . . . .205 . . . . . . . . . . . . . . . . . . .206 . . . . . . . . . . . . . . . . . . .208 . . . . . . . . . . . . . . . . . . .212 . . . . . . . . . . . . . . . . . . .215 . . . . . . . . . . . . . . . . . . .216 . . . . . . . . . . . . . . . . . . .218 . . . . . . . . . . . . . . . . . . .218 . . . . . . . . . . . . . . . . . . .220 . . . . . . . . . . . . . . . . . . .221 . . . . . . . . . . . . . . . . . . .229 . . . . . . . . . . . . . . . . . . .232 . . . . . . . . . . . . . . . . . . .233 . . . . . . . . . . . . . . . . . . .234 . . . . . . . . . . . . . . . . . . .235 . . . . . . . . . . . . . . . . . . .236 . . . . . . . . . . . . . . . . . . .242 . . . . . . . . . . . . . . . . . . .243 . . . . . . . . . . . . . . . . . . .254 . . . . . . . . . . . . . . . . . . .255 . . . . . . . . . . . . . . . . . . .256 . . . . . . . . . . . . . . . . . . .256

ix

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

vofconfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257 vofflush . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 258 vofstatus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259

List of Tables
Table 1-1: Table 1-2: Table 2-1: Table 2-2: Table 3-1: Table 3-2: Table 3-3: Table 3-4: Table 3-5: Table 3-6: Table 3-7: Table 3-8: CLI Commands (No commit required) CLI Commands (commit required) Example listenerconfig command Using the CLI Example listenerconfig Command Using Batch Format Subcommands for dnsconfig Command diagnostic Subcommands Arguments for Configuring Aliases destconfig Subcommands Example Destination Control Table Entries nslookup Command Query Types grep Command Options listenerconfig Commands

Table 3-10: listenerconfig Argument Values - RAT Table 3-11: Advanced HAT Parameter Syntax

xi

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

xii

Preface
The IronPort AsyncOS 5.1 CLI Reference Guide provides detail listings and examples for use of the AsyncOS command line interface on the IronPort Email Security appliance. These instructions are designed for an experienced system administrator with knowledge of networking and email administration.

BE FO R E Y O U R E A D T H IS B O OK
This guide assumes that you have already installed and configured your IronPort appliance. You should also be familiar with the IronPort AsyncOS Beginning and Advanced User Guides. Note If you have already cabled your appliance to your network, ensure that the default IP address for the IronPort 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 to Chapter 3, Setup and Installation, in the IronPort AsyncOS User Guide for more information about assigning IP addresses to the IronPort appliance.
Documentation Set

The AsyncOS documentation set is divided into three separate books the IronPort AsyncOS User Guide, the IronPort AsyncOS Advanced User Guide, and this book, which focuses on advanced features and configuration via the command line interface. Occasionally, this book will refer to the User Guide or Advanced User Guide for additional information on topics.

HO W T HI S B O OK I S O RG A N IZ E D
Chapter 1, AsyncOS CLI Quick Reference Guide, provides a quick reference for most commands in the CLI. Chapter 2, Command Line Interface: The Basics, covers the basics of using the CLI: how to access the CLI, general CLI use, batch commands, and more. Chapter 3, The Commands: Reference Examples, provides sample CLI sessions for each command.

xiii

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

TY P OG RA P HI C C ONVE NT IO N S
Typeface or Symbol AaBbCc123 Meaning Examples

The names of commands, files, and directories; on-screen computer output.

Please choose an IP interface for this Listener.


The sethostname command sets the name of the IronPort appliance.

AaBbCc123

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
Read the IronPort QuickStart Guide. The IronPort appliance must be able to uniquely select an interface to send an outgoing packet.

AaBbCc123

Book titles, new words or terms, words to be emphasized. Command line variable; replace with a real name or value.

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

CO N TA CT IN G I RO N PO R T C U ST OM E R S UP P O R T
You can request our support by phone, email or online 24 hours a day, 7 days a week. During our office hours (24 hours per day, Monday through Friday excluding US holidays), one of our engineers will contact you within an hour of your request. To report a critical issue that requires urgent assistance outside of our office hours, please call us immediately at the numbers below. U.S. Toll-free:1 (877) 641-IRON (4766) International: www.ironport.com/support/contact_support.html Support Portal: www.ironport.com/support

I R O NPO R T WE L C O M E S YO U R C O M M E N T S
We are interested in improving our documentation and welcome your comments and suggestions. You can email your comments to us at:
[email protected].

xiv

Please include the following part number in the subject of your email: 421-0017.

xv

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

xvi

CHAPTER

AsyncOS CLI Quick Reference Guide


Use the table to locate the appropriate CLI command, a brief description and its availability on the C-, X, and M-series platforms.
Table 1-1 CLI Commands (No commit required)

CLI Command antispamstatus antispamupdate antivirusstatus antivirusupdate archivemessage bouncerecipients clearchanges or clear commit commitdetail

Description
Display Anti-Spam status Manually update spam definitions Display anti-virus status Manually update virus definitions Archives older messages in your queue. Bounce messages from the queue Clear changes

Platform Availability
C- and X- Series C- and X- Series C- and X- Series C- and X- Series C- and X- Series C-, X-, and M-Series C-, X-, and M-Series

Commit changes Display detailed information about the last commit Delete messages from the queue Reschedule messages for immediate delivery Check RAID disks, network caches, and SMTP connections. Clear network caches.

C-, X-, and M-Series C- and X- Series C-, X-, and M-Series C-, X-, and M-Series C-, X-, and M-Series

deleterecipients delivernow

diagnostic

CHAPTER 1: ASYNCOS CLI QUICK REFERENCE GUIDE 1

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Table 1-1 CLI Commands (No commit required) (Continued)

dnsflush dnslistflush dnslisttest

Clear all entries from the DNS cache Flush the current DNS List cache Test a DNS lookup for a DNS-based list service Display DNS statistics Administer system feature keys Find events in the mail log files Search for text in a log file Help Monitor activity for a particular host Get the status of the given hostname Display who has recently logged into the system Flush any cached LDAP results Perform a single LDAP query test Mail the current configuration to an email address Display network connections, routing tables, and network interface statistics. Query a name server displays a list of old messages in the queue. Ping a network host Quit

C-, X-, and M-Series C- and X- Series C- and X- Series C-, X-, and M-Series C-, X-, and M-Series C-, X-, and M-Series C-, X-, and M-Series C-, X-, and M-Series C-, X-, and M-Series C-, X-, and M-Series C-, X-, and M-Series C- and X- Series C- and X- Series C-, X-, and M-Series C-, X-, and M-Series C-, X-, and M-Series C- and X- Series C-, X-, and M-Series C-, X-, and M-Series

dnsstatus featurekey findevent grep help or h or ? hostrate hoststatus last

ldapflush ldaptest mailconfig

netstat

nslookup oldmessage ping quit or q or exit rate

Monitor message throughput

C-, X-, and M-Series

Table 1-1 CLI Commands (No commit required) (Continued)

reboot removemessage

Restart the system Removes old, undelivered messages from your queue. Restore the factory configuration defaults Reset all of the counters in the system Resume receiving and deliveries Resume deliveries Resume receiving Revert to a previous release Roll over a log file Saves the configuration to disk Display status of SenderBase queries Manually set the system clock Display all configuration values Displays old undelivered messages in your queue. Shut down the system to power off System status Send a message to IronPort Customer Care Suspend receiving and deliveries Suspend deliveries Suspend receiving

C-, X-, and M-Series C- and X- Series C-, X-, and M-Series C-, X-, and M-Series C-, X-, and M-Series C-, X-, and M-Series C-, X-, and M-Series C-, X-, and M-Series C-, X-, and M-Series C-, X-, and M-Series C- and X- Series C-, X-, and M-Series C-, X-, and M-Series C- and X- Series C-, X-, and M-Series C-, X-, and M-Series C-, X-, and M-Series C-, X-, and M-Series C-, X-, and M-Series C-, X-, and M-Series

resetconfig resetcounters resume resumedel resumelistener revert rollovernow saveconfig sbstatus settime showconfig showmessage

shutdown status supportrequest suspend suspenddel suspendlistener

CHAPTER 1: ASYNCOS CLI QUICK REFERENCE GUIDE 3

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Table 1-1 CLI Commands (No commit required) (Continued)

systemsetup tail techsupport

First time system setup Continuously display the end of a log file. Allow IronPort customer service to access your system Connect to a remote host Display the top hosts by queue size Display the top hosts by number of incoming connections Trace the flow of a message through the system Display the network route to a remote host Install an upgrade View system version information Clear the cached Outbreak Rules Display current Outbreak Rules Update Virus Outbreak Filter rules List who is logged in Display your current user id Display and/or alter work queue pause status

C- and X- Series C-, X-, and M-Series C-, X-, and M-Series C-, X-, and M-Series C-, X-, and M-Series C-, X-, and M-Series C-, X-, and M-Series C-, X-, and M-Series C-, X-, and M-Series C-, X-, and M-Series C- and X- Series C- and X- Series C- and X- Series C-, X-, and M-Series C-, X-, and M-Series C- and X- Series

telnet tophosts topin

trace

traceroute upgrade version vofflush vofstatus vofupdate who whoami workqueue

The commands in Table 1-2 require you to issue the commit command in order to take effect
Table 1-2 CLI Commands (commit required)

CLI Command addressconfig

Description
Configure From: addresses for system generated mail

Platform Availability
C-, X-, and M- Series

Table 1-2 CLI Commands (commit required) (Continued)

alertconfig aliasconfig altsrchost antispamconfig antivirusconfig bounceconfig bvconfig

Configure email alerts Configure email aliases Configure Virtual Gateway mappings Configure Anti-Spam policy Configure anti-virus policy Configure the behavior of bounces Configure key settings for outgoing mail, and configure how to handle invalid bounces. Configure security certificates and keys Configure cluster related settings Configure mail delivery Configure options for the Destination Controls Table. Configure content dictionaries Configure DNS setup Configure DNS List services support Configure DomainKeys support Configure Ethernet settings Configure domain exception table Automatically check and update feature keys Configure message processing options

C-, X-, and M- Series C- and X- Series C- and X- Series C- and X- Series C- and X- Series C-, X-, and M- Series C- and X- Series

certconfig clusterconfig deliveryconfig destconfig

C-, X-, and M- Series C- and X- Series C- and X- Series C- and X- Series C-, X-, and M- Series C- and X- Series C- and X- Series C- and X- Series C-, X-, and M- Series C- and X- Series C-, X-, and M-Series C- and X- Series

dictionaryconfig dnsconfig dnslistconfig domainkeysconfig etherconfig exceptionconfig featurekeyconfig

filters

CHAPTER 1: ASYNCOS CLI QUICK REFERENCE GUIDE 5

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Table 1-2 CLI Commands (commit required) (Continued)

incomingrelaycon fig interfaceconfig ldapconfig listenerconfig loadconfig localeconfig logconfig ntpconfig passord or passwd policyconfig

Configure Incoming Relays

C- and X- Series

Configure Ethernet IP addresses Configure LDAP servers Configure mail listeners Load a configuration file Configure multi-lingual settings Configure access to log files Configure NTP time server Change your password

C-, X-, and M- Series C- and X- Series C- and X- Series C-, X-, and M- Series C- and X- Series C-, X-, and M- Series C-, X-, and M- Series C-, X-, and M- Series

Configure per recipient or sender based policies Configure system quarantines Configure IP routing table Configure attachment scanning policy Configure SenderBase connection settings Set the default gateway (router) Set the name of the machine Set the local time zone Configure SMTP Auto profiles Set up permanent domain redirections Configure SNMP

C- and X- Series C- and X- Series C-, X-, and M- Series C- and X- Series C- and X- Series C-, X-, and M- Series C-, X-, and M- Series C-, X-, and M- Series C- and X- Series C-, X-, and M- Series C-, X-, and M- Series

quarantineconfig routeconfig scanconfig senderbaseconfig setgateway sethostname settz smtpauthconfig smtproutes snmpconfig

Table 1-2 CLI Commands (commit required) (Continued)

sshconfig stripheaders textconfig unsubscribe updateconfig upgradeconfig userconfig vofconfig

Configure SSH keys Set message headers to remove Configure text resources Update the global unsubscribe list Configure system update parameters Configure system upgrade parameters Add, edit, and remove users Configure Virus Outbreak Filters

C-, X-, and M- Series C- and X- Series C- and X- Series C-, X-, and M- Series C- and X- Series C- and X- Series C-, X-, and M- Series C- and X- Series

CHAPTER 1: ASYNCOS CLI QUICK REFERENCE GUIDE 7

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

CHAPTER

Command Line Interface: The Basics


This chapter contains the following sections: Command Line Interface (CLI) on page 10 Batch Commands on page 16

CHAPTER 2: COMMAND LINE INTERFACE: THE BASICS 9

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

CO M M A ND L IN E IN T E R FA C E ( C L I)
The IronPort AsyncOS Command Line Interface is an interactive interface designed to allow you to configure and monitor the IronPort appliance. The commands are invoked by entering the command name, or in the case of batch format commands the command name with arguments (or parameters). If you enter the command without arguments, the command prompts you for the required information. 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 described in Other Tasks in the GUI in the IronPort AsyncOS User Guide to disable these services.

Accessing the Command Line Interface (CLI)


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 in the AsyncOS User Guide 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

Command Line Interface Conventions


This section describes the rules and conventions of the AsyncOS CLI.

10

COMMAND LINE INTERFACE CONVENTIONS

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 AsyncOS Advanced 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) 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

C H A P T E R 2 : C O M M A N D L I N E I N T E R F A C E : T H E B A S I C S 11

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

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? Subcommands [Y]> n

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. 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.

12

GENERAL PURPOSE CLI COMMANDS

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 IronPort AsyncOS CLI 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 to IronPort AsyncOS while email operations proceed normally. Configuration changes will not take effect until you complete the following steps:

1. Issue the commit command at the command prompt. 2. Give the commit command the input required. 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. Note Not all commands in AsyncOS require the commit command to be run. See Appendix 1, AsyncOS 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.

C H A P T E R 2 : C O M M A N D L I N E I N T E R F A C E : T H E B A S I C S 13

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Committing Configuration Changes

The commit command is critical to saving configuration changes to the IronPort 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 to IronPort AsyncOS 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 Changes committed: Wed Jan 01 12:00:01 2003

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 changes made to the IronPort AsyncOS configuration 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 Changes cleared: Mon Jan 01 12:00:01 2003 mail3.example.com> Quitting the Command Line Interface Session [Y]>

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

14

GENERAL PURPOSE CLI COMMANDS

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

C H A P T E R 2 : C O M M A N D L I N E I N T E R F A C E : T H E B A S I C S 15

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

BA TC H C OM M A N DS
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 user inputs required to complete tasks and provides a mechanism allowing users to easily automate common configuration tasks. Batch commands also allow users to issue commands remotely using an SSH client. This enables users to easily script CLI commands and execute them on multiple appliances at one time. Please note that these commands do not provide new functionality to your IronPort appliance; rather, they provide you with an additional method of execution for your appliance. For the current release of AsyncOS these CLI commands have associated batch commands:
aliasconfig listenerconfig -> hostacess (HAT) listenerconfig -> rcptacess (RAT)

smtproutes Batch command syntax is dependent on the specific command being used. Please see the appropriate CLI example contained 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:
Table 2-1 Example listenerconfig command 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 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

16

BATCH COMMAND EXAMPLE

Table 2-1 Example listenerconfig command Using the CLI (Continued)

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. - 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.

C H A P T E R 2 : C O M M A N D L I N E I N T E R F A C E : T H E B A S I C S 17

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Table 2-1 Example listenerconfig command Using the CLI (Continued)

Separate multiple hosts with commas []> possible_spammer.com Select a behavior for this entry. 1. Accept 2. Relay 3. Reject 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:


Table 2-2 Example listenerconfig Command Using Batch Format

example.com> listenerconfig edit IncomingMail hostaccess new sendergroup REDLIST possible_spammer.com Policy: THROTTLED example.com> commit

18

CHAPTER

The Commands: Reference Examples


This chapter contains the following sections: Anti-Spam on page 21 Anti-Virus on page 30 Command Line Management on page 34 Configuration File Management on page 37 Cluster Management on page 42 Domain Keys on page 45 DNS on page 51 General Management/Administration/Troubleshooting on page 59 LDAP on page 91 Mail Delivery Configuration/Monitoring on page 97 Networking Configuration / Network Tools on page 138 Policy Enforcement on page 159 Logging and Alerts on page 201 Senderbase on page 220 SMTP Services Configuration on page 222 System Setup on page 245 User Management on page 253 Virus Outbreak Filters on page 257

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: 1. Does the command require a commit command to be implemented on the appliance? 2. Is the command restricted to a particular mode (cluster, group, or machine).?

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 19

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

3. Does the command permit a batch format? For more information about Centralized Management, please see the IronPort AsyncOS User Guide. For more information about batch formats, please see Command Line Interface: The Basics on page 9.

20

ANTI-SPAM

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). Batch Command: This command does not support a batch format.
Example

The following examples demonstrates the configuration for Ironport Anti-Spam and Brightmail Anti-Spam.
Code Example 3-1 antispamconfig - IronPort Anti-Spam Configuration

mail3.example.com> antispamconfig Choose the operation you want to perform: - BRIGHTMAIL - Configure Symantec Brightmail Anti-Spam. - IRONPORT - Configure IronPort Anti-Spam. []> IronPort Choose the operation you want to perform: - SETUP - Edit antispam setting. []> setup IronPort Anti-Spam scanning: Disabled Would you like to enable 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 What is the largest size message that IronPort Anti-Spam scanning should scan? [262144]>

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 21

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-1 antispamconfig - IronPort Anti-Spam Configuration

Please specify the IronPort Anti-Spam scanning timeout (in seconds) [60]> 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 IronPort scanning behavior for default and custom Incoming and Outgoing Mail Policies. This is recommended for your DEFAULT policy. The system is using http://downloads.ironport.com/as to receive IronPort Anti-Spam updates. (Use "updateconfig" to change this.) IronPort Anti-Spam scanning: Enabled Choose the operation you want to perform: - SETUP - Edit IronPort Anti-Spam settings. []>
Code Example 3-2 antispamconfig - Brightmail Anti-Spam Configuration

mail3.example.com> antispamconfig Choose the operation you want to perform: - BRIGHTMAIL - Configure Symantec Brightmail Anti-Spam. - IRONPORT - Configure IronPort Anti-Spam. []> brightmail Choose the operation you want to perform: - SETUP - Edit antispam setting. []> setup Would you like to enable Symantec Brightmail anti-spam scanning? [Y]> y The Symantec Brightmail License Agreement is displayed (if you have not already accepted it). Do you accept the above Symantec Brightmail license agreement? []> Y Suspected Spam Threshold (between 25 and 89) [75]> Do you want to specify a reinsertion key for messages released from quarantine? [N]> y Enter Reinsertion Key

22

ANTISPAMSTATUS

Code Example 3-2 antispamconfig - Brightmail Anti-Spam Configuration (Continued)

[]> Released from Quarantine elect the Symantec Brightmail Anti-Spam Reputation Service lists to use: Use the Symantec Brightmail Anti-Spam Open Proxy List? [Y]> y Use the Symantec Brightmail Anti-Spam Safe List? [N]> y Symantec Brightmail Anti-Spam plug-in for Outlook users can specify that all messages written in certain languages be treated as spam. For performance, enable language identification only if you are deploying the plug-in's Language feature. Use Language Identification? [N]> n Maximum size of message scanned by Symantec Brightmail Anti-Spam (in bytes) [120000]> Do you want to cache verdicts for reuse on messages with an identical body? [Y]> y Please specify for how long to cache verdicts (in seconds): [600]> The system is using https://aztec.brightmail.com to receive Symantec Brightmail Anti-Spam rules.

Symantec Brightmail Anti-Spam scanning is now enabled on the system. Please note: you must issue the 'policyconfig' command (CLI) or Mail Policies (GUI) to configure Symantec Brightmail Anti-Spam scanning behavior for default and custom Incoming and Outgoing Mail Policies. This is recommended for your DEFAULT policy. Symantec Brightmail Anti-Spam scanning: Enabled Choose the operation you want to perform: - SETUP - Edit anti-spam setting. - STATUS - View anti-spam status []>

antispamstatus
Description

Display anti-spam status.

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 23

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

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
Code Example 3-3 antispamstatus - Symantec Brightmail Anti-Spam

mail3.example.com>antispamstatus Choose the operation you want to perform: - BRIGHTMAIL - Display Symantec Brightmail Anti-Spam version and rule information. - IRONPORT - Display IronPort Anti-Spam version and rule information. []> brightmail Symantec Brightmail Version: 6.0 Verdict Cache Status Since Last Flush (Thu May 05 13:44:21 2005 PDT): entry lifetime: 600 seconds, number of entries: 0, limit: 60000 hit rate: 0.0%, time saved: 0.0, total time 0.0 seconds Rule Update Status Rule Type Header Rules Body Hash Rules Heuristic Rules BrightSig2 Rules Open Proxy List Last Update Thu Thu Thu Thu Thu May May May May May 05 05 05 05 05 13:37:04 13:39:05 13:44:21 13:42:13 13:24:49 2005 2005 2005 2005 2005 PDT PDT PDT PDT PDT

Code Example 3-4 antispamstatus - IronPort Anti-Spam

(Machine elroy.run)> antispamstatus

Choose the operation you want to perform: - BRIGHTMAIL - Display Symantec Brightmail Anti-Spam version and rule information. - IRONPORT - Display IronPort Anti-Spam version and rule information. []> ironport

24

ANTISPAMUPDATE

Code Example 3-4 antispamstatus - IronPort Anti-Spam

Component CASE Core Files Structural Rules CASE Utilities Web Reputation DB Web Reputation Rules

Version 1.1.0-313 1.1.0-315-20060206_092657 1.1.0-002 20060208_114000 20060208_11400020060208_154000 Last download attempt made on Thu Feb 09 00:07:55

Last Update Tue Feb 07 02:33:07 Tue Feb 07 02:33:07 Tue Feb 07 02:28:07 Wed Feb 08 19:42:56 Wed Feb 08 23:42:55

antispamupdate
Description

Manually request an immediate update of IronPort Anti-Spam rules and related CASE components.
Usage

This command does not require a commit. This command is restricted to machine mode. This command does not support a batch format.
Example
Code Example 3-5 antispamupdate

mail3.example.com> antispamupdate 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 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.

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 25

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Example: Enabling Incoming RelaysConfiguring an Incoming Relay Code Example 3-6 incomingrelayconfig 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 IronPort appliance determine the sender's originating IP address. You should ONLY enable this command if your 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 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. []> 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. 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.

26

INCOMINGRELAYCONFIG

Code Example 3-6 incomingrelayconfig []> 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 Header to parse: --------Received Match after: -----[ Received position: --------1

IP address: ----------192.168.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 []> new Enter a name for this incoming relay (Ex: "first-hop") []> second-hop Enter the IP address of the incoming relay. CIDR addresses such as

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 27

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-6 incomingrelayconfig 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. []> 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 Match after: -----[ n/a Received position: --------1 n/a

IP address: ----------192.168.1.1 192.168.1.2

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

28

INCOMINGRELAYCONFIG

Code Example 3-6 incomingrelayconfig Incoming relay "first-hop" deleted. There is 1 relay defined.

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 29

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

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 84. 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.
Code Example 3-7 antivirusconfig

mail3.example.com> antivirusconfig 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

30

ANTIVIRUSCONFIG

Code Example 3-7 antivirusconfig (Continued)

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. []> mail3.example.com> 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:
Code Example 3-8 antivirusconfig - Viewing IDE Details

mail3.example.com> antivirusconfig 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 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' Virus Virus Virus Virus Sig. Sig. Sig. Sig. 23 22 22 21 Dec Dec Dec Dec 2004 2004 2004 2004 01:24:02 19:10:06 06:16:32 18:33:58

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 31

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-8 antivirusconfig - Viewing IDE Details (Continued)

'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

Sig. Sig. Sig. Sig. Sig. Sig. Sig.

21 21 20 19 19 18 17

Dec Dec Dec Dec Dec Dec Dec

2004 2004 2004 2004 2004 2004 2004

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
Code Example 3-9 antivirusstatus

mail3.example.com> antivirusstatus 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 mail3.example.com>

antivirusupdate
Description

Manually update virus definitions.


Usage

Commit: This command does not require a commit. Cluster Management: This command can be used in all three machine modes (cluster, group, machine).

32

ANTIVIRUSUPDATE

Batch Command: This command does not support a batch format.


Example
Code Example 3-10 antivirusupdate

mail3.example.com> antivirusupdate Requesting update of virus definitions mail3.example.com>

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 33

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

CO M M A ND L IN E M A N A G E M E NT
This section contains the following CLI commands: commit commitdetail clearchanges or clear help or h or ? quit or q or exit

commit
Description

Commit changes. Entering comments after the commit command is optional.


Usage

Commit: N/A 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.
Code Example 3-11 commit

mail3.example.com> commit Please enter some comments describing your changes: []> Changed "psinet" IP Interface to a different IP ad dress Changes committed: Wed Apr 13 12:00:01 2005

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.

34

CLEARCHANGES OR CLEAR

Example Code Example 3-12 commitdetail 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 changes made to the IronPort AsyncOS configuration 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
Example
Code Example 3-13 clear

mail3.example.com> clear Are you sure you want to clear all changes since the last commit? y Changes cleared: Mon Jan 01 12:00:01 2003 mail3.example.com> [Y]>

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

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 35

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Example
Code Example 3-14 help

mail3.example.com> help

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
Code Example 3-15 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

36

CONFIGURATION FILE MANAGEMENT

CO N FI GU R A T IO N F I LE M A N A GE M E N T
This section contains the following CLI commands: loadconfig mailconfig resetconfig saveconfig showconfig

loadconfig
Description

Load a configuration file.


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.


Code Example 3-16 loadconfig -

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

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 37

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

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.
Code Example 3-17 loadconfig - Example 2

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 </config>. Control-D is entered on a separate line.] Values have been loaded. Be sure to run "commit" to make these settings active. 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

mailconfig
Description

To test the IronPort AsyncOS 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

38

RESETCONFIG

Example
Code Example 3-18 mailconfig

mail3.example.com> mailconfig Please enter the email address to which you want to send the configuration file. Separate multiple addresses with commas. []> [email protected] The configuration file has been sent to [email protected]. mail3.example.com>

Send the configuration to a mailbox to which you have access to confirm that the system is able to send email on your network.

resetconfig
Description

When physically transferring the appliance, you may want to start with factory defaults. The resetconfig command resets all IronPort AsyncOS 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.

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 39

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Example
Code Example 3-19 resetconfig

mail3.example.com> offline 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.

saveconfig
Description

The saveconfig command saves the configuration file with a unique filename to the configuration directory.
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

40

SHOWCONFIG

Example
Code Example 3-20 saveconfig

mail3.example.com> saveconfig Do you want to include passwords? Please be aware that a configuration without passwords will fail when reloaded with loadconfig. [N]> y The file C60-00065B8FCEAB-31PM121-20030630T130433.xml has been saved in the configuration directory. mail3.example.com>

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
Example
Code Example 3-21 showconfig

ail3.example.com> showconfig Do you want to include passwords? Please be aware that a configuration without passwords will fail when reloaded with loadconfig. <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE config SYSTEM "config.dtd"> <!-Product: IronPort model number Messaging Gateway Appliance(tm) Model Number: model number Version: version of AsyncOS installed Serial Number: serial number Current Time: current time and date [The remainder of the configuration file is printed to the screen.]

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 41

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

CL U S TE R M A N A G E M E NT
This section contains the following CLI commands: clusterconfig clustercheck

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 <name> 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".
<name> - The name of the new cluster.

clusterconfig join [--port=xx] <ip_of_remote_cluster> [<admin_password>]<groupname> This will add this machine to a cluster.
<ip_of_remote_cluster> - The IP address of another machine in the cluster. <admin_password >- The admin password of the cluster. This should not be

specified if joining over CCS.


<groupname> - The name of the group to join. <port> - 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 <groupname> Creates a new cluster group. The group starts off with no members. clusterconfig renamegroup <old_groupname> <new_groupname> Change the name of a cluster group. clusterconfig deletegroup <groupname> [new_groupname] Remove a cluster group.

42

CLUSTERCONFIG

<groupname> - Name of the cluster group to remove. <new_groupname> - The cluster group to put machines of the old group into.

clusterconfig setgroup <machinename> <groupname> Sets (or changes) which group a machine is a member of.
<machinename> - The name of the machine to set. <groupname> - The group to set the machine to.

clusterconfig removemachine <machinename> Remove a machine from the cluster. clusterconfig setname <name> Changes the name of the cluster to the given name. clusterconfig list Display all the machines currently in the cluster. clusterconfig connstatus Display all the machines currently in the cluster and add routing details for disconnected machines. clusterconfig disconnect <machinename> This will temporarily detach a machine from the cluster.
<machinename> - The name of the machine to disconnect.

clusterconfig reconnect <machinename> - This will restore connections with machines that were detached with the disconnect command. clusterconfig prepjoin new <serial_number> <hostname> <user_key> This will add a new host that is to join the cluster over the CCSport.
<serial_number> - The serial number of the machine being added. <hostname> - The host name of the machine being added. <user_key> - The SSH user key from the "prepjoin print" command from

the joining machine. clusterconfig prepjoin delete <serial_number|hostname> 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 supports a batch format.

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 43

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Example

For an explanation of the clusterconfig command and its uses, please see the IronPort AsyncOS Advanced User Guide.

clustercheck
Description

The clustercheck command checks that all configuration databases in the cluster are sychronized.
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

For an explanation of the clustercheck command and its uses, please see the IronPort AsyncOS Advanced User Guide.

44

DOMAIN KEYS

DO MA IN KEY S
This section contains the following CLI commands: domainkeysconfig

domainkeysconfig
Description

Configure DomainKeys support.


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: Configuring Domain Keys via the CLI

Use the domainkeysconfig command in the CLI to configure Domain Keys on your IronPort 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 on page 48. In this example, a key is generated, and a domain profile is created:
Code Example 3-22 domainkeysconfig - Example 1

mail3.example.com> domainkeysconfig Number of Domain Profiles: 0 Number of Signing Keys: 0 Choose the operation you want to perform: - PROFILES - Manage domain profiles. - KEYS - Manage signing keys. - 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

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 45

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-22 domainkeysconfig - Example 1 (Continued)

Enter a name for this signing key: []> TestKey 1. Generate a private key 2. Enter an existing key [1]> 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. - IMPORT - Import signing keys from a file. - EXPORT - Export signing keys to a file. - CLEAR - Clear all signing keys. []> Number of Domain Profiles: 0 Number of Signing Keys: 1 Choose the operation you want to perform: - PROFILES - Manage domain profiles. - KEYS - Manage signing keys. - SEARCH - Search for domain profile or key. []> profiles

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:

46

DOMAINKEYSCONFIG

Code Example 3-22 domainkeysconfig - Example 1 (Continued)

[]> Example 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 values 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 Domain Keys Signature.

Enter selector: []> test 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 "nofws". Select canonicalization algorithm: 1. simple 2. nofws [2]> 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 Domain Keys 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 3. Enter key at later time 4. Select existing key [1]> 4 Enter the name or number of a signing key. 1. TestKey [1]> Finish by entering profile users. The following types of entries are allowed: - Email address entries such as "[email protected]".

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 47

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-22 domainkeysconfig - Example 1 (Continued)

- Domain entries such as "example.com". - Partial domain entries such as ".example.com". For example, a partial domain of ".example.com" will match "sales.examples.com". This sort of entry will not match the root domain ("example.com"). 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. - 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. []> mail3.example.com> commit Creating a Sample Domain Keys DNS TXT Record Code Example 3-23 domainkeysconfig - Example 2 mail3.example.com> domainkeysconfig Number of Domain Profiles: 1 Number of Signing Keys: 1 Choose the operation you want to perform: - PROFILES - Manage domain profiles. - KEYS - Manage signing keys. - SEARCH - Search for domain profile or key. []> profiles 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. - TEST - Test if a domain profile is ready to sign.

48

DOMAINKEYSCONFIG

Code Example 3-23 domainkeysconfig - Example 2

- 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 [1]> The answers to the following questions are used to construct the tags of a sample DomainKeys DNS TXT record. This record can be used to publish this domain profile's public DomainKeys information in the DNS. Do you wish to constrain the local part of the sending address associated with this domain profile? (This is the "g" tag of DomainKeys DNS TXT record.)

Constrain local part of sending address? [N]> The "k" tag is used to specify the key type of the publish key. At this time the only supported key type is 'rsa'. This tag is optional, and can be included to improve the readability of the DNS TXT record. Include the "k" tag? [N]> Notes that may be of interest to a human can be included in the TXT record under the "n" tag. No interpretation is made by any program. Include the "n" tag? [N]> The "testing mode" tag can be set to specify that this domain is testing DomainKeys and that unverified email must not be treated differently from verified email. Include the "t" (testing mode) tag? [N]> The DomainKeys DNS TXT record is: test._domainkey.example.com IN TXT "p=rh0DF7SH+Yvywe0FaxnOEoxzzZyFCf3KEAy4oE+x9Wm40g9JrMhFiboZ9TgoDTPdXQ NgOLDiH9ngxarJN9y9XBglVJTYMuq4SEI97WjMUeGC0XQ10q3zHYpd+usPFmwwIDAQAB; "

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 49

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-23 domainkeysconfig - Example 2

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. - 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. []> Number of Domain Profiles: 1 Number of Signing Keys: 1 Choose the operation you want to perform: - PROFILES - Manage domain profiles. - KEYS - Manage signing keys. - SEARCH - Search for domain profile or key. []> mail3.example.com> commit

50

DNS

DN S
This section contains the following CLI commands: dnsconfig dnsflush dnslistconfig dnslistflush dnslisttest dnsstatus

dnsconfig
Description

Configure DNS setup


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

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-1 Subcommands for dnsconfig Command

Syntax new delete edit setup

Description
Add a new alternate DNS server to use for specific domains or local DNS server. Remove an alternate server or local DNS server. Modify an alternate server or local DNS server. Switch between Internet root DNS servers or local DNS servers.

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 51

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-24 dnsconfig

mail3.example.com> dnsconfig Currently using the local DNS cache servers: 1. 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]> 1 Choose the IP interface for DNS traffic. 1. Auto 2. Management (100.100.10.15/24) [1]> 1 Enter the number of seconds to wait before timing out reverse DNS lookups. [20]> Currently using the Internet root DNS servers. No alternate authoritative servers configured. Enter the number of seconds to wait before timing out reverse DNS lookups. [20]> Choose the operation you want to perform: - NEW - Add a new server. - SETUP - Configure general settings. []> mail3.example.com>

52

DNSCONFIG

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.
Code Example 3-25 dnsconfig -Adding Alternate DNS Servers

mail3.example.com> dnsconfig Currently using the Internet root DNS servers. No alternate authoritative servers configured. Enter "NEW" to add a server, "DELETE" to remove, "EDIT" to modify, or "SETUP" for 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 of dns.example.com. []> 10.1.10.9 Enter the number of seconds to wait before timing out reverse DNS lookups. [20]> Currently using the Internet root DNS servers. Alternate authoritative DNS servers: 1. example.com: dns.example.com (10.10.200.1) Choose the operation you want to perform: - NEW - Add a new server. - EDIT - Edit a server. - DELETE - Remove a server. - SETUP - Configure general settings. []> mail3.example.com>

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 53

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Using Your Own DNS Cache Servers

You can configure the appliance to use your own DNS cache server.
Code Example 3-26 dnsconfig - Using your own DNS cache servers

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. - 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. []> dnsmain.example.com The IP address must be 4 numbers separated by a period. must be a value from 0 to 255. (Ex: 192.168.1.1) Please enter the IP address of your DNS server. Separate multiple IPs with commas. []> 10.10.200.03 Each number

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 [1]> 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.

54

DNSFLUSH

Code Example 3-26 dnsconfig - Using your own DNS cache servers (Continued)

[20]> Currently using the local DNS cache servers: 1. dnsmain.example.com (10.10.200.03) Choose the operation you want to perform: - NEW - Add a new server. - EDIT - Edit a server. - DELETE - Remove a server. - SETUP - Configure general settings. []>

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
Code Example 3-27 dnsflush

mail3.example.com> dnsflush Are you sure you want to clear out the DNS cache? [N]> Y

dnslistconfig
Description

Configure DNS List services support


Usage

Commit: This command require sa commit. Cluster Management: This command is restricted to machine mode. Batch Command: This command does not support a batch format

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 55

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Example
Code Example 3-28 dnslistconfig

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. 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. []> mail3.example.com>

dnslistflush
Description

Flush the current DNS List 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

56

DNSLISTTEST

Example
Code Example 3-29 dnslistflush

mail3.example.com> dnslistflush Are you sure you want to clear out the DNS List cache? [N]> y DNS List cache has been cleared. mail3.example.com>

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
Code Example 3-30 dnslisttest

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 mail3.example.com>

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.

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 57

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Example
Code Example 3-31 dnsstatus

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 mail3.example.com> 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

58

GENERAL MANAGEMENT/ADMINISTRATION/TROUBLESHOOTING

GE NE RA L M A NA G E M E N T/ A D M I NI ST R A T IO N/ TR O UB L E S HO O TI NG
This section contains the following CLI commands: addressconfig certconfig diagnostic featurekey featurekeyconfig ntpconfig reboot resume resumedel resumelistener settimesettz shutdown sshconfig status supportrequest suspend suspenddel suspendlistener techsupport trace updateconfig upgradeconfig version upgrade revert

addressconfig
Description

The addressconfig command is used to configure the From: Addresss header. You can specify the display, user, and domain names of the From: address. You can also choose to use

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 59

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

the Virtual Gateway domain for the domain name. Use the addressconfig command for mail generated by AsyncOS for the following circumstatnces: Anti-virus notifications Bounces Notifications (notify() and notify-copy() filter actions) tine notifications (duplicate() filter action) In the following example, the From: Address for notifications is changed from: Mail Delivery System [MAILER-DAEMON@domain] (the default) to Notifications
[[email protected]] 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.
Code Example 3-32 addressconfig

mail3.example.com> addressconfig Current Current Current Current anti-virus from: "Mail Delivery System" <MAILER-DAEMON@domain> bounce from: "Mail Delivery System" <MAILER-DAEMON@domain> notify from: "Mail Delivery System" <MAILER-DAEMON@domain> quarantine from: "Mail Delivery System" <MAILER-DAEMON@domain>

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. - 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 [None]> example.com

60

CERTCONFIG

Code Example 3-32 addressconfig (Continued)

Current Current Current Current

anti-virus from: "Mail Delivery System" <MAILER-DAEMON@domain> bounce from: "Mail Delivery System" <MAILER-DAEMON@domain> notify from: Notifications <[email protected]> quarantine from: "Mail Delivery System" <MAILER-DAEMON@domain>

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. []>

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.
Example

In the following example, a certificate is installed and configured to be used for SMTP receiving, SMTP delivery, and HTTPS.
Code Example 3-33 certconfig

mail3.example.com> certconfig Currently using the demo certificate/key for receiving, delivery, and HTTPS management access.

Choose the operation you want to perform: - SETUP - Configure security certificates and keys. []> setup Do you want to use one certificate/key for receiving, delivery, and HTTPS management access? [Y]> y paste cert in PEM format (end with '.'): -----BEGIN CERTIFICATE-----

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 61

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-33 certconfig (Continued)

MIICLDCCAdYCAQAwDQYJKoZIhvcNAQEEBQAwgaAxCzAJBgNVBAYTAlBUMRMwEQYD VQQIEwpRdWVlbnNsYW5kMQ8wDQYDVQQHEwZMaXNib2ExFzAVBgNVBAoTDk5ldXJv bmlvLCBMZGEuMRgwFgYDVQQLEw9EZXNlbnZvbHZpbWVudG8xGzAZBgNVBAMTEmJy dXR1cy5uZXVyb25pby5wdDEbMBkGCSqGSIb3DQEJARYMc2FtcG9AaWtpLmZpMB4X DTk2MDkwNTAzNDI0M1oXDTk2MTAwNTAzNDI0M1owgaAxCzAJBgNVBAYTAlBUMRMw EQYDVQQIEwpRdWVlbnNsYW5kMQ8wDQYDVQQHEwZMaXNib2ExFzAVBgNVBAoTDk5l dXJvbmlvLCBMZGEuMRgwFgYDVQQLEw9EZXNlbnZvbHZpbWVudG8xGzAZBgNVBAMT EmJydXR1cy5uZXVyb25pby5wdDEbMBkGCSqGSIb3DQEJARYMc2FtcG9AaWtpLmZp MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAL7+aty3S1iBA/+yxjxv4q1MUTd1kjNw L4lYKbpzzlmC5beaQXeQ2RmGMTXU+mDvuqItjVHOK3DvPK7lTcSGftUCAwEAATAN BgkqhkiG9w0BAQQFAANBAFqPEKFjk6T6CKTHvaQeEAsX0/8YHPHqH/9AnhSjrwuX 9EBc0n6bVGhN7XaXd6sJ7dym9sbsWxb+pJdurnkxjx4= -----END CERTIFICATE----. paste 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----. Currently using one certificate/key for receiving, delivery, and HTTPS management access. Choose the operation you want to perform: - SETUP - Configure security certificates and keys. []> mail3.example.com> commit Please enter some comments describing your changes: []> Installed certificate and key for receiving, delivery, and https Changes committed: Fri Apr 4 17:59:53 2003

diagnostic
Description

The diagnostic command is used to check RAID disks, view and clear cache information, and to test connectivity to other mail servers.

62

DIAGNOSTIC

Using the diagnostic Command

The following commands are available within the diagnostic submenu:


Table 3-2 diagnostic Subcommands

Option RAID

Sub commands
1. Run disk verify 2. Monitor tasks in progress 3. Display disk verify verdict

Availability
Available on C30 and C60 only.

NETWORK

FLUSH ARPSHOW SMTPPING TCPDUMP

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: Check the RAID status
diagnostic raid

Clear the LDAP, DNS and ARP caches


diagnostic network flush

Display the ARP cache:


diagnostic network arpshow

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 63

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

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.
Code Example 3-34 diagnostic mail3.example.com> diagnostic Choose the operation you want to perform: - RAID - Disk Verify Utility. - NETWORK - Network Utilities. []> network Choose the operation you want to perform: - FLUSH - Flush all network related caches. - ARPSHOW - Show system ARP cache. - SMTPPING - Test a remote SMTP server. []> arpshow System ARP cache contents: (163.17.0.1) at 00:02:b1:cf:10:11 on fxp0 [ethernet] Choose the operation you want to perform: - FLUSH - Flush all network related caches. - ARPSHOW - Show system ARP cache. - SMTPPING - Test a remote SMTP server. []> flush Flushing LDAP cache. Flushing DNS cache. Flushing DNS List cache. Flushing system ARP cache. 163.17.0.1 (163.17.0.1) 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.
Code Example 3-35 diagnostic: SMTPPING mail3.example.com> diagnostic Choose the operation you want to perform: - RAID - Disk Verify Utility. - NETWORK - Network Utilities.

64

FEATUREKEY

Code Example 3-35 diagnostic: SMTPPING []> network Choose the operation you want to perform: - FLUSH - Flush all network related caches. - ARPSHOW - Show system ARP cache. - SMTPPING - Test a remote SMTP server. []> smtpping Enter the hostname or IP address of the SMTP server: [mail3.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. d1.mail.com 2. d2.mail.com 3. mail.com [1]> 3 Select a network interface to use for the test. 1. Data 1 2. Data 2 3. Management 4. auto [4]> 3 Using interface 'Management' with source IP 168.18.0.220. Do you want to type in a test message to send? If not, the connection will be tested but no email will be sent. [N]>n Starting SMTP test of host mail.com. Resolved 'mail.com' to 166.11.0.6. Connection to 166.11.0.6 succeeded. Command EHLO succeeded Command MAIL FROM succeeded. Test complete. Total time elapsed 0.01 seconds

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.

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 65

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

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.
Code Example 3-36

mail3.example.com> featurekey Module Bounce Verification IronPort Anti-Spam Incoming Mail Handling Virus Outbreak Filters Symantec Brightmail Anti-Spam Sophos Anti-Virus Choose the operation you want

Quantity Remaining 1 30 days 1 28 days 1 28 days 1 28 days 1 29 days 1 28 days to perform:

Expiration Fri Jun 30 Thu Jun 29 Thu Jun 29 Thu Jun 29 Fri Jun 30 Thu Jun 29

Date 18:57:26 15:20:23 15:20:31 15:20:24 17:03:09 15:20:23

2006 2006 2006 2006 2006 2006

- ACTIVATE - Activate a (pending) key. - CHECKNOW - Check now for new feature keys. []> checknow No new feature keys are available.

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 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 featurekeyconfig command is used to enable the autoactivate and autocheck features.
Code Example 3-37 featurekeyconfig

mail3.example.com> featurekeyconfig

66

NTPCONFIG

Code Example 3-37 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

ntpconfig
Description

The ntpconfig command configures IronPort 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
Code Example 3-38 ntpconfig

mail3.example.com> ntpconfig

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 67

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-38 ntpconfig (Continued)

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 Please enter the fully qualified hostname or IP address of your NTP server. []> bitsy.mit.edi 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.

68

REBOOT

Code Example 3-38 ntpconfig (Continued)

- 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 Changes committed: Thu Mar 27 15:01:27 2003

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
Code Example 3-39 reboot

mail3.example.com> reboot 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.

resume
Description

Resume receiving and deliveries


Usage

Commit: This command does not require a commit. Cluster Management: This command is restricted to machine mode.

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 69

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Batch Command: This command does not support a batch format.


Example
Code Example 3-40 resume

mail3.example.com> resume Receiving resumed. Mail delivery resumed. mail3.example.com>

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
Code Example 3-41 resumedel

mail3.example.com> resumedel 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.

70

SETTIME

Example
Code Example 3-42 resumelistener

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. mail3.example.com>

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.

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 71

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Example
Code Example 3-43 settime

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
Code Example 3-44 settz

mail3.example.com> settz Current time zone: America/Los_Angeles 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

72

SHUTDOWN

Code Example 3-44 settz (Continued)

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. []> mail3.example.com>

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.

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 73

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Example
Code Example 3-45 shutdown

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. Use the power button (in 30 seconds) to turn off the machine.

sshconfig
Description

Configure SSH keys.


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.
Example

In the following example, a new public key is installed for the admin account:
Code Example 3-46 sshconfig - Install a New Public Key for the Admin Account

mail3.example.com> sshconfig 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. - SETUP - Configure general settings. []> new Please enter the public SSH key for authorization. Press enter on a blank line to finish. [cut and paste public key for user authentication here] Currently installed keys for admin: 1. ssh-dss AAAAB3NzaC1kc3MAA...CapRrgxcY= ([email protected])

74

STATUS

Code Example 3-46 sshconfig - Install a New Public Key for the Admin Account (Continued)

Choose the operation you want to perform: - NEW - Add a new key. - EDIT - Modify a key. - DELETE - Remove a key. - PRINT - Display a key. []> Disabling SSH1

To disable (or enable) SSH1, use the setup subcommand of the sshconfig command:
Code Example 3-47 sshconfig - Enabling/Disabling SSH1

mail3.example.com> sshconfig 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. - SETUP - Configure general settings. []> setup Choose the operation you want to perform: - DISABLE - Disable SSH v1 []> disable 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. - SETUP - Configure general settings []> mail3.example.com> commit

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.

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 75

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Example
Code Example 3-48 status

mail3.example.com> status Status as of: Up since: Last counter reset: System status: Oldest Message: 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 Reset 62,049,822 62,049,823 3,949,663 11,606,037 2,334,552 50,441,741 Uptime 290,920 290,920 11,921 219 13,598 332,625 Lifetime 62,049,822 62,049,823 3,949,663 11,606,037 2,334,552 50,441,741 99524480 51180368 17550674 Current 0 14 7,166 0 16,248 387,143 338,206 39,458,745

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 Messages In Quarantine Kilobytes Used Kilobytes In Quarantine Kilobytes Free

mail3.example.com>

76

SUPPORTREQUEST

supportrequest
Description

Send a message to IronPort Customer Care. 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.
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

The following example shows a support request that is not related to an existing support ticket.
Code Example 3-49 supportrequest

mail3.example.com> supportrequest Do you want to send the support request to [email protected]? [Y]> y Do you want to send the support request to additional recipient(s)? [N]> y Please enter the email address(es) to which you want to send the support request. Include anyone in your organization that should be included on future correspondence for this issue. Separate multiple addresses with commas. []> [email protected], [email protected] Is this support request associated with an existing support ticket? [N]> n Please enter some comments describing your issue, providing as much detail as possible to aid in diagnosing any issues: []> Having DNS resolution issues with some domains For future correspondence on this issue, please enter your email address: []> [email protected]

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 77

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-49 supportrequest

Please enter any additional contact information (e.g. phone number(s)): []> (650)555-1212 (office), (650)555-1212 (cell) Generating configuration information; this will take about 10 seconds... The support request information has been sent to [email protected], [email protected], [email protected]. Do you want to print the support request to the screen? [N]> n

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
Code Example 3-50 suspend

mail3.example.com> suspend Enter the number of seconds to wait before abruptly closing connections. [30]> 45 Waiting for listeners to exit... Receiving suspended. Waiting for outgoing deliveries to finish... Mail delivery suspended. mail3.example.com>

suspenddel
Description

Suspend deliveries
Usage

Commit: This command does not require a commit.


78

SUSPENDLISTENER

Cluster Management: This command is restricted to machine mode. Batch Command: This command does not support a batch format.
Example
Code Example 3-51 suspenddel

mail3.example.com> suspenddel Enter the number of seconds to wait before abruptly closing connections. [30]> 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.

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 79

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Example
Code Example 3-52 suspendlistener

mail3.example.com> suspendlistener Choose the listener(s) you wish to suspend. Separate multiple entries with commas. 1. All 2. InboundMail 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>

techsupport
Description

Allow IronPort customer service 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.

80

TRACE

Example
Code Example 3-53 techsupport

mail3.example.com> techsupport S/N XXXXXXXXXXXX-XXXXXXX Service Access currently disabled. Choose the operation you want to perform: - ENABLE - Allow an IronPort customer service representative to remotely access your system to assist you in solving your technical issues. - STATUS - Display the current techsupport status. []> enable Enter a temporary password for customer care to use. This password may not be the same as your admin password. This password will not be able to be used to directly access your system. []> ********** Are you sure you want to enable service access? [N]> y Service access has been ENABLED. Please provide your temporary password to your IronPort Customer Care representative. S/N 00065BF3BA6D-9WFWC21 Service Access currently ENABLED (0 current service logins). Choose the operation you want to perform: - DISABLE - Prevent IronPort customer service representatives from remotely accessing your system. - STATUS - Display the current techsupport status. []>

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.

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 81

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Example
Code Example 3-54 trace

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. score is N/A. [N/A]> Enter the Envelope Sender address: []> [email protected] Enter the Envelope Recipient addresses. by commas. []> [email protected] Load message from disk? [Y]> n

The actual

Separate multiple addresses

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) - Use SenderBase For Flow Control: Yes (Default) - Spam Detection Enabled: Yes (Default)

82

TRACE

Code Example 3-54 trace (Continued)

- 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' VOF Evaluation: - No threat detected

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 83

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-54 trace (Continued)

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-BrightmailFiltered: true X-Brightmail-Tracker: AAAAAA== X-IronPort-AV: i="3.86,81,1096873200"; d="scan'208"; a="0:sNHT0" 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.

updateconfig
Description

Configure system update parameters.


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
Code Example 3-55 updateconfig

mail3.example.com> updateconfig

84

UPDATECONFIG

Code Example 3-55 updateconfig (Continued)

Service: Update URL: ----------------------------------------------------------------------Sophos Anti-Virus definitions http://downloads.ironport.com/av IronPort Anti-Spam rules http://downloads.ironport.com/as Virus Outbreak Filters rules http://downloads.ironport.com/as Update interval: 5m Proxy server: not enabled HTTPS Proxy server: not enabled Choose the operation you want to perform: - SETUP - Edit update configuration. []> setup Please select how the system will receive updates for: Service: Update URL: ----------------------------------------------------------------------Sophos Anti-Virus definitions http://downloads.ironport.com/av IronPort Anti-Spam rules http://downloads.ironport.com/as Virus Outbreak Filters rules http://downloads.ironport.com/as 1. Use IronPort update servers (http://downloads.ironport.com) 2. Use own server [1]>1

Enter -

the time interval between checks for new: Sophos Anti-Virus definitions IronPort Anti-Spam rules Virus Outbreak Filters rules

Use a trailing 'm' for minutes or 'h' for hours. Enter '0' to disable automatic updates (manual updates will still be available for individual services). [5m]> 6m Do you want to set up a proxy server for HTTP updates for ALL of the following services: - Symantec Brightmail Anti-Spam rules - Sophos Anti-Virus definitions - IronPort Anti-Spam rules - Virus Outbreak Filters rules

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 85

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-55 updateconfig (Continued)

- SenderBase Network Participation sharing [N]> y Enter the URL of the proxy server. The default port is 80. You can specify an optional authentication and port using the format: http://optionaluser:[email protected]:80 []> http://myupdateproxy.server:80 Do you want to use an HTTPS proxy server for updates of Symantec Brightmail Anti-Spam rules: [N]> Service: Update URL: ----------------------------------------------------------------------Sophos Anti-Virus definitions http://downloads.ironport.com/av IronPort Anti-Spam rules http://downloads.ironport.com/as Virus Outbreak Filters rules http://downloads.ironport.com/as Update interval: 6m Proxy server: http://myupdateproxy.server:80 The proxy server will be used for the following services: - Sophos Anti-Virus definitions - IronPort Anti-Spam rules - Virus Outbreak Filters rules - SenderBase Network Participation sharing HTTPS Proxy server: not enabled Choose the operation you want to perform: - SETUP - Edit update configuration. []> mail3.example.com>

upgradeconfig
Description

Configure system upgrade parameters


Usage

Commit: This command requires a commit. Cluster Management: This command can be used in all three machine modes (cluster, group, machine).

86

UPGRADECONFIG

Batch Command: This command does not support a batch format.


Example
Code Example 3-56 upgradeconfig

mail3.example.com> upgradeconfig Upgrade source: http://downloads.qa/asyncos/upgrade/ Upgrade interface: AUTO Proxy server: not in use Choose the operation you want to perform: - SETUP - Edit upgrade configuration. []> setup Please select the upgrade source you want to use for AsyncOS updates: 1. IronPort upgrade server 2. Local upgrade server [1]> 2 Please select the location of the upgrade files using the format (http://optionalname:[email protected]:port/directory/). The default HTTP port is 80; you do not need to specify the port unless you wish to use a non-standard port. The optional username/password will be presented using HTTP BASIC_AUTH. []> http://upgrades.example.com:1442/asyncos/ When initiating a connection to the upgrade server for AsyncOS upgrades, the originating IP interface is chosen automatically. If you want to choose a specific interface, please specify it now. 1. Auto 2. Management (192.168.0.1/24: mail3.example.com) [1]> Would you like to use an HTTP proxy server to retrieve AsyncOS updates? [N]> The system will now use http://upgrades.example.com:1442/asyncos/ for all AsyncOS updates. Upgrade source: http://upgrades.example.com:1442/asyncos/ Upgrade interface: AUTO Proxy server: not in use Choose the operation you want to perform:

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 87

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-56 upgradeconfig (Continued)

- SETUP - Edit upgrade configuration.

version
Description

View system version information


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
Code Example 3-57 version

mail3.example.com> version Current Version =============== Model: C60 Version: 4.5.0-316 Build Date: 2005-04-13 Install Date: 2005-04-14 13:32:20 Serial #: XXXXXXXXXXXX-XXXXXXX BIOS: A15I RAID: 2.7-1 3170 RAID Status: Okay RAID Type: 10 Symantec Brightmail Version: 6.0 mail3.example.com>

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.

88

REVERT

Batch Command: This command does not support a batch format.


Code Example 3-58 upgrade

elroy.run> 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

revert
Description

Reverts the AsyncOS operating system to a previous version for emergency uses only. Using the revert command on an IronPort appliance is a very destructive action. This command destroys all configuration logs and databases. In addition, it disrupts mail handling until the appliance is reconfigured. Because this command destroys all configuration, it is highly recommended that you have physical local access to the IronPort appliance when you want to issue the revert command. Once the revert action is complete, you must use the console CLI or a network connection to the Management port on the default IP address of 192.168.42.42 to reconfigure the appliance. Please follow instructions for preparing for and performing reversion in the IronPort AsyncOS User Guide.
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 Code Example 3-59 The revert Command mail.mydomain.com> revert This command will reset the device to a different AsyncOS version. Resetting the device will destroy all configuration, logs, databases, and generally disrupt mail handling until reconfigured. This command will reset the device to a different AsyncOS version.

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 89

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-59 The revert Command Resetting the device will destroy all configuration, logs, databases, and generally disrupt mail handling until reconfigured. Resetting the device will cause an immediate reboot to take place. The device will then reboot, reinitialize itself, and finally reboot again to the desired version. Are you sure you want to continue? yes Are you *really* sure you want to continue? yes Available version Install date ================= ============ Available version Install date 1. 5.5.0-236 Tue Aug 28 11:03:44 PDT 2007 2. 5.5.0-330 Tue Aug 28 13:06:05 PDT 2007 3. 5.5.0-418 Wed Sep 5 11:17:08 PDT 2007 Please select an AsyncOS version: 2 You have selected "5.5.0-330". The system will now reboot to perform the revert operation.

90

LDAP

L DA P
This section contains the following CLI commands: ldapconfig ldapflush ldaptest

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

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), and masquerading (masquerade subcommand) are configured. First, the nickname of PublicLDAP is given for the mldapserver.example.com LDAP server. Queries are directed to port 389 (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 rerouting query is mailForwardingAddress. Remember that query names are case-sensitive and must match exactly in order to return the proper results.
Code Example 3-60 ldapconfig

mail3.example.com> ldapconfig No LDAP server configurations. Choose the operation you want to perform: - NEW - Create a new server configuration. []> new

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 91

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-60 ldapconfig (Continued)

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 Please enter the port number: [389]> 389 Please enter the base: [dc=example,dc=com]> dc=example,dc=com Select the authentication method to use for this server configuration: 1. Anonymous 2. Password based [1]> 2 Please enter the bind username: [cn=Anonymous]> Please enter the bind password: []> Name: PublicLDAP Hostname: myldapserver.example.com Port 389 Authentication Type: password Base: dc=example,dc=com 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. []> ldapaccept Please create a name for this query: [PublicLDAP.ldapaccept]> PublicLDAP.ldapaccept Enter the LDAP query string:

92

LDAPCONFIG

Code Example 3-60 ldapconfig (Continued)

[(mailLocalAddress={a})]> (mailLocalAddress={a}) Do you want to test this query? [Y]> n Name: PublicLDAP Hostname: myldapserver.example.com Port 389 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. []> ldaprouting Please create a name for this query: [PublicLDAP.routing]> PublicLDAP.routing Enter the LDAP query string: [(mailLocalAddress={a})]> (mailLocalAddress={a}) Do you want to rewrite the Envelope Header? [Y]> y Enter the attribute which contains the full rfc822 email address for the recipients. [mailRoutingAddress]> Do you want to send the messages to an alternate mail host? [Y]> y Enter the attribute which contains the alternate mailhost for the recipients. [mailHost]> mailForwardingAddress Do you want to test this query? [Y]> n Name: PublicLDAP Hostname: myldapserver.example.com Port 389 Authentication Type: simple Base: dc=example,dc=com LDAPACCEPT: PublicLDAP.ldapaccept

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 93

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-60 ldapconfig (Continued)

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. []> masquerade Please create a name for this query: [PublicLDAP.masquerade]> PublicLDAP.masquerade Enter the LDAP query string: [(mailRoutingAddress={a})]> (mailRoutingAddress={a}) Please enter the following variable mappings: The externally visible full rfc822 email address. [mailLocalAddress]> mailLocalAddress Do you want to test this query? [Y]> n Name: PublicLDAP Hostname: myldapserver.example.com Port 389 Authentication Type: simple Base: dc=example,dc=com LDAPACCEPT: PublicLDAP.ldapaccept LDAPROUTING: PublicLDAP.routing 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. []> Current LDAP server configurations:

94

LDAPFLUSH

Code Example 3-60 ldapconfig (Continued)

1. PublicLDAP: (myldapserver.example.com:389) Choose the operation you want to perform: - NEW - Create a new server configuration. - EDIT - Modify a server configuration. - DELETE - Remove a server configuration. []> mail3.example.com>

ldapflush
Description

Flush any cached LDAP results.


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
Code Example 3-61 ldapflush

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

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 95

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

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.
Code Example 3-62 ldaptest

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 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>

96

MAIL DELIVERY CONFIGURATION/MONITORING

M A I L DE L I V E R Y C ON F IG UR A T I ON /M ON I TO RI N G
This section contains the following CLI commands: aliasconfig archivemessage altsrchost bounceconfig bouncerecipients bvconfig deleterecipients deliveryconfig delivernow destconfig hostrate hoststatus oldmessage rate resetcounters removemessage showmessage findevent status tophosts topin unsubscribe workqueue

aliasconfig
Description

Configure email aliases.


Usage

Commit: This command requires a commit.

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 97

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

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 <domain> <alias> [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 <domain> <alias> <email_address1] [email_address2] ...

Displaying an email alias:


aliasconfig print

Importing a local alias listing:


aliasconfig import <filename>

Exporting an alias listing on the IronPort appliance:


aliasconfig export <filename>

98

ALIASCONFIG

Example
Code Example 3-63 aliasconfig

mail3.example.com> aliasconfig No aliases in table. Choose the operation you want to perform: - NEW - Create a new entry. - IMPORT - Import aliases from a file. []> new How do you want your aliases to apply? 1. Globally 2. Add a new domain context [1]> 2 Enter new domain context. Separate multiple domains with commas. Partial domains such as .example.com are allowed. []> example.com Enter the alias(es) to match on. Separate multiple aliases with commas. Allowed aliases: - "user" - This user in this domain context. - "user@domain" - This email address. []> customercare 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.

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 99

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-63 aliasconfig (Continued)

- 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. []> print admin: [email protected] [ example.com ] customercare: [email protected], [email protected], [email protected]

100

ARCHIVEMESSAGE

Code Example 3-63 aliasconfig (Continued)

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-3 Arguments for Configuring Aliases

Argument <domain>

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.

<alias>

<email_address> <filename>

archivemessage
Description

Archive older messages in your 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.

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 101

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Example

In the following example, an older message is archived:


Code Example 3-64 archivemessage

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 (for example, the marketing campaign messaging system) is mapped to the AnotherPublicNet interface. Finally, the altsrchost mappings are printed to confirm and the changes are committed.
Code Example 3-65 altsrchost

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

102

ALTSRCHOST

Code Example 3-65 altsrchost (Continued)

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) 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.

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 103

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-65 altsrchost (Continued)

- 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 Changes committed: Thu Mar 27 14:57:56 2003

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
Code Example 3-66 bounceconfig- Creating a Bounce Profile

mail3.example.com> bounceconfig Current bounce profiles:

104

BOUNCECONFIG

Code Example 3-66 bounceconfig- Creating a Bounce Profile

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 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

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 105

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-66 bounceconfig- Creating a Bounce Profile

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):
Code Example 3-67 bounceconfig- Editing a Bounce Profile

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.

106

BOUNCECONFIG

Code Example 3-67 bounceconfig- Editing a Bounce Profile

[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]> 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.
Code Example 3-68 listenerconfig and bounceconfig - Applying a Bounce Profile to a Listener

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

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 107

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-68 listenerconfig and bounceconfig - Applying a Bounce Profile to a Listener (Continued)

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. - 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

108

BOUNCECONFIG

Code Example 3-68 listenerconfig and bounceconfig - Applying a Bounce Profile to a Listener (Continued)

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 Changes committed: Thu Mar 27 14:57:56 2003

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 109

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

bouncerecipients
Description

Bounce 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

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 Code Example 3-69 bouncerecipients - Bouncing Recipients by 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 Code Example 3-70 boundcerecipients - Bouncing Recipients by 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

110

BVCONFIG

Code Example 3-70 boundcerecipients - Bouncing Recipients by Address (Continued)

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
Code Example 3-71 bouncerecipients - bouncing All Recipients

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]> 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.
Code Example 3-72 bvconfig mail3.example.com> bvconfig

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 111

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-72 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) 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

112

DELETERECIPIENTS

Code Example 3-72 bvconfig 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 Changes committed: Wed May 31 23:24:09 2006 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 IronPort 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.
Delete by Recipient Domain Code Example 3-73 deleterecipients - Delete Messages by Recipient Domain mail3.example.com> deleterecipients

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 113

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-73 deleterecipients - Delete Messages by Recipient Domain (Continued)

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 Code Example 3-74 deleterecipients -Delete Mesages 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.

114

DELIVERYCONFIG

Delete All
Code Example 3-75 deleterecipients - Delete all Message from a Queue

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


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.
Code Example 3-76 deliveryconfig

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

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 115

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-76 deliveryconfig (Continued)

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
Code Example 3-77 delivernow

mail3.example.com> delivernow Please choose an option for scheduling immediate delivery. 1. By recipient host 2. All messages [1]> 1 Please enter the domain to schedule for immediate delivery. []>foo.com Rescheduling all messages to foo.com for immediate 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.

116

DESTCONFIG

Using the destconfig Command

The following commands are available within the destconfig submenu:


Table 3-4 destconfig Subcommands

Syntax NEW EDIT DELETE DEFAULT LIST DETAIL CLEAR

Description
Add new limits for a domain. Modify the limits for a domain. Remove the limits for a domain. Change the default limits for non-specified domains. Display the list of domains and their limits. Display the details for one destination or all entries. Remove all entries from the table.

The destconfig command requires the following information for each row in the Destination Controls table. Domain (recipient host) Maximum simultaneous connections to the domain 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
Sample Destination Control Table

The following table shows entries in a destination control table.


Table 3-5 Example Destination Control Table Entries

Domain
(default)

Conn. Limit
500

Rcpt. Limit
None

Min. Prd.
1

Enforce MX/DOM
Domain

Unlisted domains get their own set of 500 connections with unlimited rcpts/hr

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 117

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Table 3-5 Example Destination Control Table Entries

Domain
(default)

Conn. Limit
500

Rcpt. Limit
None

Min. Prd.
1

Enforce MX/DOM
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

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
Code Example 3-78 destconfig example: Configuring the Destination Configuration Table

mail3.example.com> destconfig There are currently 2 entries configured. Choose the operation you want to perform: - 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. []> list l Domain ========= (Default) Rate Limiting ======== On TLS ======= Off Bounce Verification ============ Off Bounce Profile ========= (Default)

Choose the operation you want to perform:

118

DESTCONFIG

Code Example 3-78 destconfig example: Configuring the Destination Configuration Table

- 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. []> 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 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

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 119

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-78 destconfig example: Configuring the Destination Configuration Table

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 Changes committed: Wed May 31 21:30:47 2006 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 106) configured to be used for all email delivery to the domain newpartner.com.
Code Example 3-79 destconfig example: Configuring Bounce Profile and TLS Settings

mail3.example.com> destconfig There is currently 1 entry configured. Choose the operation you want to perform: - 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. []> 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 recipient limit to this domain? [N]> n Do you wish to apply a specific TLS setting for this domain? [N]> y Do 1. 2. 3. 4. 5. you want to use TLS support? No Preferred Required Preferred(Verify) Required(Verify)

120

DESTCONFIG

Code Example 3-79 destconfig example: Configuring Bounce Profile and TLS Settings

[1]> 3 You have not entered a certificate. To assure privacy, run 'certconfig' first. You may use the demo certificate to test TLS, but this will not be secure. Do you really wish to use a demo certificate? [N]> y 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 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: - 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. []> detail Rate Limiting ======== Default On Bounce Verification ============ On Off Bounce Profile ========= Default (Default)

Domain ============== newpartner.com (Default)

TLS ======= Req Off

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 Rate Limiting: Default TLS: Required Bounce Verification Tagging: On Bounce Profile: Default

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 121

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-79 destconfig example: Configuring Bounce Profile and TLS Settings

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 Changes committed: Wed May 31 22:05:57 2006 GMT 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 IronPort 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:
Code Example 3-80 destconfig example: Inbound Shock Absorber

mail3.example.com> destconfig There are currently 2 entries configured. Choose the operation you want to perform: - 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. []> new Enter the domain you wish to configure.

122

DESTCONFIG

Code Example 3-80 destconfig example: Inbound Shock Absorber

[]> 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: - 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. []>

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 123

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-80 destconfig example: Inbound Shock Absorber

mail3.example.com> commit Please enter some comments describing your changes: []> set up shock absorber for inbound mail Changes committed: Wed May 31 22:25:28 2006 GMT mail3.example.com>

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. Batch Command: This command does not support a batch format
Example Code Example 3-81 hostrate 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.

124

HOSTSTATUS

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

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 125

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Example
Code Example 3-82 hoststatus

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 Other Hard Bounces Delivered Recipients Deleted Recipients Gauges: Queue Active Recipients Unattempted Recipients Attempted Recipients Connections Current Outbound Connections Pending Outbound Connections

0 1 1 0 1 0 0 0 0 0

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

126

OLDMESSAGE

Code Example 3-82 hoststatus (Continued)

MX Records: Preference 15 15 15 15

TTL 52m24s 52m24s 52m24s 52m24s

Hostname mailin-01.mx.aol.com mailin-02.mx.aol.com mailin-03.mx.aol.com 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

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:


Code Example 3-83 oldmessage

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

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 127

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-83 oldmessage (Continued)

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
Code Example 3-84 rate

mail3.example.com> rate Enter the number of seconds between displays. [10]> 1 Hit Ctrl-C to return to the main prompt. Time 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 Connections Recipients In Out Received 10 2 41708833 8 2 41708841 9 2 41708848 7 3 41708852 5 3 41708858 9 3 41708871 7 3 41708881 11 3 41708893 Recipients Completed 40842686 40842692 40842700 40842705 40842711 40842722 40842734 40842744 Queue K-Used 64 105 76 64 64 67 64 79

Delta 0 8 7 4 6 13 10 12

Delta 0 6 8 5 6 11 12 10

resetcounters
Description

Reset all of the counters in the system


Usage

Commit: This command does not require a commit.


128

REMOVEMESSAGE

Cluster Management: This command is restricted to machine mode. Batch Command: This command does not support a batch format.
Example
Code Example 3-85 resetcounters

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 Code Example 3-86 removemessage example.com> removemessage 1 MID 1: 19 secs old 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.

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 129

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

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 Code Example 3-87 showmessage 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.

findevent
Description

The findevent CLI command allows you to search through the mail logs for a particular message by searching for a message ID or a regular expression match against the subject header, envelope sender or envelope recipient. You can display results for the current log file, all the log files, or display log files by date. When you view log files by date, you can specify a date or a range of dates.
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 Code Example 3-88 findevent example.com> findevent Please choose which type of search you want to perform: 1. Search by envelope FROM 2. Search by Message ID 3. Search by Subject 4. Search by envelope TO [1]> 3

130

FINDEVENT

Code Example 3-88 findevent Enter the regular expression to search for. []> confidential Currently configured logs: 1. "mail_logs" Type: "IronPort Text Mail Logs" Retrieval: FTP Poll Enter the number of the log you wish to use for message tracking. []> 1 Please choose which set of logs to search: 1. All available log files 2. Select log files by date list 3. Current log file [3]> 3 The following matching message IDs were found. Please choose one to show additional log information: 1. MID 4 (Tue Jul 31 17:37:35 2007) sales: confidential [1]> 1 Tue Jul 31 17:37:32 2007 Info: New SMTP ICID 2 interface Data 1 (172.19.1.86) address 10.251.20.180 reverse dns host unknown verified no Tue Jul 31 17:37:32 2007 Info: ICID 2 ACCEPT SG None match ALL SBRS None Tue Jul 31 17:37:35 2007 Info: Start MID 4 ICID 2 Tue Jul 31 17:37:35 2007 Info: MID 4 ICID 2 From: <[email protected]> Tue Jul 31 17:37:35 2007 Info: MID 4 ICID 2 RID 0 To: <[email protected]> Tue Jul 31 17:37:35 2007 Info: MID 4 Subject 'sales: confidential' Tue Jul 31 17:37:35 2007 Info: MID 4 ready 4086 bytes from <[email protected]> Tue Jul 31 17:37:35 2007 Info: MID 4 matched all recipients for perrecipient policy DEFAULT in the inbound table Tue Jul 31 17:37:35 2007 Info: ICID 2 close Tue Jul 31 17:37:37 2007 Info: MID 4 interim verdict using engine: CASE spam negative Tue Jul 31 17:37:37 2007 Info: MID 4 using engine: CASE spam negative Tue Jul 31 17:37:37 2007 Info: MID 4 interim AV verdict using Sophos CLEAN Tue Jul 31 17:37:37 2007 Info: MID 4 antivirus negative Tue Jul 31 17:37:37 2007 Info: MID 4 queued for delivery Tue Jul 31 17:37:37 2007 Info: Delivery start DCID 0 MID 4 to RID [0] Tue Jul 31 17:37:37 2007 Info: Message done DCID 0 MID 4 to RID [0] Tue Jul 31 17:37:37 2007 Info: MID 4 RID [0] Response '/null' Tue Jul 31 17:37:37 2007 Info: Message finished MID 4 done status

The status command is used to display the system status of your IronPort appliance. Using the detail option (status detail) displays additional information.

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 131

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

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
Code Example 3-89 status

example.mail3.com> status Enter "status detail" for more information. Status as of: Tue Aug 02 14:03:53 2005 PDT Up since: Tue Aug 02 10:27:22 2005 PDT (3h 36m 31s) Last counter reset: Tue Aug 02 10:24:51 2005 PDT System status: Online Oldest Message: No Messages Feature - IronPort Anti-Spam: 25 days Feature - Receiving: 25 days Feature - Brightmail: 25 days Feature - Sophos: 25 days Feature - Virus Outbreak Filters: 25 days Feature - Central Mgmt: 29 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 Reset 0 0 1 0 0 0 Uptime 0 0 1 0 0 0 Lifetime 2 2 1 0 0 2 3 1 1 Current 0 0

132

TOPHOSTS

Code Example 3-89 status (Continued)

Active Recipients Messages In Work Queue Messages In Quarantine Kilobytes Used Kilobytes In Quarantine Kilobytes Free

0 0 0 0 0 39,845,888

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.

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 133

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Example
Code Example 3-90 tophosts

mail3.example.com> tophosts Sort results by: 1. Active Recipients 2. Connections Out 3. Delivered Recipients 4. Soft Bounced Events 5. Hard Bounced Recipients [1]> 1 Status as of: Mon Nov 18 22:22:23 2003 Active Conn. Deliv. Soft Hard # Recipient Host Recip Out Recip. Bounced Bounced 1 aol.com 365 10 255 21 8 2 hotmail.com 290 7 198 28 13 3 yahoo.com 134 6 123 11 19 4 excite.com 98 3 84 9 4 5 msn.com 84 2 76 33 29 mail3.example.com>

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
Code Example 3-91 topin

mail3.example.com> topin Status as of: #Remote hostname 1mail.remotedomain01.com 2mail.remotedomain01.com 3mail.remotedomain03.com 4mail.remotedomain04.com Sat Aug 23 21:50:54 2003 Remote IP addr. 172.16.0.2 172.16.0.2 172.16.0.4 172.16.0.5 listener Incoming01 Incoming02 Incoming01 Incoming02 Conn. In 10 10 5 4

134

UNSUBSCRIBE

Code Example 3-91 topin (Continued)

5mail.remotedomain05.com 6mail.remotedomain06.com 7mail.remotedomain07.com 8mail.remotedomain08.com 9mail.remotedomain09.com 10mail.remotedomain10.com 11mail.remotedomain11.com 12mail.remotedomain12.com 13mail.remotedomain13.com 14mail.remotedomain14.com 15mail.remotedomain15.com 16mail.remotedomain16.com 17mail.remotedomain17.com 18mail.remotedomain18.com 19mail.remotedomain19.com 20mail.remotedomain20.com

172.16.0.6 172.16.0.7 172.16.0.8 172.16.0.9 172.16.0.10 172.16.0.11 172.16.0.12 172.16.0.13 172.16.0.14 172.16.0.15 172.16.0.16 172.16.0.17 172.16.0.18 172.16.0.19 172.16.0.20 172.16.0.21

Incoming01 Incoming02 Incoming01 Incoming01 Incoming01 Incoming01 Incoming01 Incoming02 Incoming01 Incoming01 Incoming01 Incoming01 Incoming01 Incoming02 Incoming01 Incoming01

3 3 3 3 3 2 2 2 2 2 2 2 1 1 1 1

unsubscribe
Description

Update the global unsubscribe list


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 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.
Code Example 3-92 unsubscribe

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.

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 135

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-92 unsubscribe (Continued)

- 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. 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

136

WORKQUEUE

Code Example 3-92 unsubscribe (Continued)

Changes committed: Thu Mar 27 14:57:56 2003

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
Code Example 3-93 workqueue - Manually Pausing the Work Queue

mail3.example.com> workqueue Status: Operational Messages: 1243 Manually pause work queue? messages. [N]> y This will only affect unprocessed

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:
Code Example 3-94 workqueue - Resuming a Paused Work Queue

mail3.example.com> workqueue Status: Paused by admin: checking LDAP server Messages: 1243 Resume the work queue? Status: Operational Messages: 1243 [Y]> y

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 137

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

NE TW OR K IN G C ON F IG U RA T I ON / NE TW OR K TO OL S
This section contains the following CLI commands: etherconfig interfaceconfig netstat nslookup ping routeconfig setgateway sethostname smtproutes telnet traceroute

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 of Editing Media Settings Code Example 3-95 etherconfig -Editing Media Settings mail3.example.com> etherconfig Choose the operation you want to perform: - MEDIA - View and edit ethernet media settings. - PAIRING - View and configure NIC Pairing. - VLAN - View and configure VLANs. - LOOPBACK - View and configure Loopback. []> media Ethernet interfaces: 1. Data 1 (Autoselect: <100baseTX full-duplex>) 00:06:5b:f3:ba:6d 2. Data 2 (Autoselect: <100baseTX full-duplex>) 00:06:5b:f3:ba:6e

138

ETHERCONFIG

Code Example 3-95 etherconfig (Continued)-Editing Media Settings (Continued)

3. Management (Autoselect: <100baseTX full-duplex>) 00:02:b3:c7:a2:da 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. []> 2 Please choose the Ethernet media options for the Data 2 interface. 1. Autoselect 2. 10baseT/UTP half-duplex 3. 10baseT/UTP full-duplex 4. 100baseTX half-duplex 5. 100baseTX full-duplex 6. 1000baseTX half-duplex 7. 1000baseTX full-duplex [1]> 5 Ethernet interfaces: 1. Data 1 (Autoselect: <100baseTX full-duplex>) 00:06:5b:f3:ba:6d 2. Data 2 (100baseTX full-duplex: <100baseTX full-duplex>) 00:06:5b:f3:ba:6e 3. Management (Autoselect: <100baseTX full-duplex>) 00:02:b3:c7:a2:da Choose the operation you want to perform: - EDIT - Edit an ethernet interface. []> Choose the operation you want to perform: - MEDIA - View and edit ethernet media settings. - PAIRING - View and configure NIC Pairing. - VLAN - View and configure VLANs. - LOOPBACK - View and configure Loopback. []> Enabling NIC Pairing via the etherconfig Command Code Example 3-96 etherconfig - Enabling NIC Pairing mail3.example.com> etherconfig Choose the operation you want to perform: - MEDIA - View and edit ethernet media settings. - PAIRING - View and configure NIC Pairing. - VLAN - View and configure VLANs. - LOOPBACK - View and configure Loopback.

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 139

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-96 etherconfig - Enabling NIC Pairing (Continued)

[]> pairing Paired interfaces: Choose the operation you want to perform: - NEW - Create a new pairing. []> new Please enter a name for this pair (Ex: "Pair 1"): []> Pair 1 1. Data 1 2. Data 2 Enter the name or number of the primary ethernet interface you wish bind to. []> 1 Paired interfaces: 1. Pair 1: Primary (Data 1) Active, Link is up Backup (Data 2) Standby, Link is up Choose the - FAILOVER - DELETE - STATUS []> operation you want to perform: - Manually failover to other port. Delete a pairing. Refresh status.

Using the failover Subcommand for NIC Pairing

In this example, a manual failover is issued, forcing the Data 2 interface to become the primary interface. Note that you must issue the status sub-command to see the change in the CLI.
Code Example 3-97 etherconfig - Issuing a Manual Failover Command

mail3.example.com> etherconfig Choose the operation you want to perform: - MEDIA - View and edit ethernet media settings. - PAIRING - View and configure NIC Pairing. - VLAN - View and configure VLANs. - LOOPBACK - View and configure Loopback. []> pairing Paired interfaces: 1. Pair 1:

140

ETHERCONFIG

Code Example 3-97 etherconfig - Issuing a Manual Failover Command (Continued)

Primary (Data 1) Active, Link is up Backup (Data 2) Standby, Link is up Choose the operation you want to perform: - FAILOVER - Manually failover to other port. - DELETE - Delete a pairing. - STATUS - Refresh status. []> failover Paired interfaces: 1. Pair 1: Primary (Data 1) Active, Link is up Backup (Data 2) Standby, Link is up Choose the - FAILOVER - DELETE - STATUS []> status operation you want to perform: - Manually failover to other port. Delete a pairing. Refresh status.

Paired interfaces: 1. Pair 1: Primary (Data 1) Standby, Link is up Backup (Data 2) Active, Link is up Choose the operation you want to perform: - FAILOVER - Manually failover to other port. - DELETE - Delete a pairing. - STATUS - Refresh status. []> Choose the operation you want to perform: - MEDIA - View and edit ethernet media settings. - PAIRING - View and configure NIC Pairing. - VLAN - View and configure VLANs. - LOOPBACK - View and configure Loopback. []> Creating a New VLAN via the etherconfig Command

In this example, two VLANs are created (named VLAN 31 and VLAN 34) on the Data 1 port:
Code Example 3-98 etherconfig - Creating a New VLAN

mail3.example.com> etherconfig Choose the operation you want to perform: - MEDIA - View and edit ethernet media settings. - PAIRING - View and configure NIC Pairing.

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 141

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-98 etherconfig - Creating a New VLAN (Continued)

- VLAN - View and configure VLANs. - LOOPBACK - View and configure Loopback. []> vlan VLAN interfaces: Choose the operation you want to perform: - NEW - Create a new VLAN. []> new VLAN tag ID for the interface (Ex: "34"): []> 34 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 34 (Data 1) Choose the operation you want to perform: - NEW - Create a new VLAN. - EDIT - Edit a VLAN. - DELETE - Delete a VLAN. []> new VLAN tag ID for the interface (Ex: "34"): []> 31 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 31 (Data 1) 2. VLAN 34 (Data 1) Choose the operation you want to perform: - NEW - Create a new VLAN. - EDIT - Edit a VLAN. - DELETE - Delete a VLAN.

142

ETHERCONFIG

Code Example 3-98 etherconfig - Creating a New VLAN (Continued)

[]> Choose the operation you want to perform: - MEDIA - View and edit ethernet media settings. - PAIRING - View and configure NIC Pairing. - VLAN - View and configure VLANs. - LOOPBACK - View and configure Loopback. []> Enabling the Loopback Interface via the etherconfig Command

Once enabled, the loopback interface is treated like any other interface (e.g. Data 1):
Code Example 3-99 etherconfig Enabling the Loopback Interface

mail3.example.com> etherconfig Choose the operation you want to perform: - MEDIA - View and edit ethernet media settings. - PAIRING - View and configure NIC Pairing. - VLAN - View and configure VLANs. - LOOPBACK - View and configure Loopback. []> loopback Currently configured loopback interface: Choose the operation you want to perform: - ENABLE - Enable Loopback Interface. []> enable Currently configured loopback interface: 1. Loopback Choose the operation you want to perform: - DISABLE - Disable Loopback Interface. []> Choose the operation you want to perform: - MEDIA - View and edit ethernet media settings. - PAIRING - View and configure NIC Pairing. - VLAN - View and configure VLANs. - LOOPBACK - View and configure Loopback. []>

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 143

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

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.

144

INTERFACECONFIG

Example: Configuring an Interface Code Example 3-100 interfaceconfig Configuring an Interface mail3.example.com> interfaceconfig Currently configured interfaces: 1. Data 1 (192.168.1.1/24 on Data1: mail3.example.com) 2. Data 2 (192.168.2.1/24 on Data2: mail3.example.com) 3. Management (192.168.42.42/24 on Management: 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. []> edit Enter the number of the interface you wish to edit. []> 1 IP interface name (Ex: "InternalNet"): [Data 1]> IP Address (Ex: 192.168.1.2): [192.168.1.1]> Ethernet interface: 1. Data 1 2. Data 2 3. Management [1]> Netmask (Ex: "255.255.255.0" or "0xffffff00"): [255.255.255.0]> Hostname: [mail3.example.com]> Do you want to enable FTP on this interface? [N]> [N]>

Do you want to enable Telnet on this interface? Do you want to enable SSH on this interface? Do you want to enable HTTP on this interface? Which port do you want to use for HTTP?

[N]> [N]> y

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 145

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-100 interfaceconfig Configuring an Interface (Continued)

[80]> 80 Do you want to enable HTTPS on this interface? Which port do you want to use for HTTPS? [443]> 443 Do you want to enable EUQ HTTP on this interface? [N] Do you want to enable EUQ HTTPS on this interface? [N] You have not entered a certificate. To assure privacy, run 'certconfig' first. You may use the demo certificate to test HTTPS, but this will not be secure. Do you really wish to use a demo certificate? [Y]> y Both HTTP and HTTPS are enabled for this interface, should HTTP requests redirect to the secure service? [Y]> Currently configured interfaces: 1. Data 1 (192.168.1.1/24 on Data 1: mail3.example.com) 2. Data 2 (192.168.2.1/24 on Data 2: mail3.example.com) 3. Management (192.168.42.42/24 on Management: 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. []> mail3.example.com> commit Please enter some comments describing your changes: []> enabled HTTP, HTTPS for Data 1 Changes committed: Mon Jul mail3.example.com> 7 13:21:23 2003 [N]> y

Example: Changing the IronPort Spam Quarantine URL

The following example shows a change in the IronPort Spam Quarantine URL.
Code Example 3-101 Changing the IronPort Spam Quarantine URL

mail3.example.com]>interfaceconfig Currently configured interfaces:

146

INTERFACECONFIG

Code Example 3-101 Changing the IronPort Spam Quarantine URL (Continued)

1. Data 1 (192.168.1.1/24 on Data1: mail3.example.com) 2. Data 2 (192.168.2.1/24 on Data2: mail3.example.com) 3. Management (192.168.42.42/24 on Management: 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. []> edit Enter the number of the interface you wish to edit. []> 3 IP interface name (Ex: "InternalNet"): [Management]> Which port do you want to use for HTTP? [80]> [ ... ] Do you want to enable IronPort Spam Quarantine HTTP on this interface? [Y]> Which port do you want to use for IronPort Spam Quarantine HTTP? [82]> Do you want to enable IronPort Spam Quarantine HTTPS on this interface? [Y]> Which port do you want to use for IronPort Spam Quarantine HTTPS? [83]> You have not entered an HTTPS certificate. To assure privacy, run "certconfig" first. You may use the demo, but this will not be secure. Do you really wish to use a demo certificate? [Y]> Both HTTP and HTTPS are enabled for this interface, should HTTP requests redirect to the secure service? [Y]>

Both IronPort Spam Quarantine HTTP and IronPort Spam Quarantine HTTPS are enabled for this interface, should IronPort Spam Quarantine HTTP requests redirect to the secure service? [Y]>

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 147

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-101 Changing the IronPort Spam Quarantine URL (Continued)

Do you want Management as the default interface for IronPort Spam Quarantine? [Y]> Do you want to use a custom base URL in your IronPort Spam Quarantine email notifications? [N]> y Enter the custom base URL (Ex: "http://isq.example.url:81/") []> http://ISQ.example.com:82/ You have edited the interface you are currently logged into. Are you sure you want to change it? [Y]> y Currently configured interfaces: 1. Data 1 (192.168.1.1/24 on Data1: mail3.example.com) 2. Data 2 (192.168.2.1/24 on Data2: mail3.example.com) 3. Management (192.168.42.42/24 on Management: 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.

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-6 nslookup Command Query Types

Query Type A CNAME MX NS PTR

Description
the host's Internet 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

148

NETSTAT

Table 3-6 nslookup Command Query Types

Query Type SOA TXT

Description
the domain's start-of-authority information the text information

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. Cluster Management: This command is restricted to machine mode. Batch Command: This command does not support a batch format
Example
Code Example 3-102 netstat

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 -

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 149

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-102 netstat (Continued)

example.com>

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
Code Example 3-103 ping

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

150

ROUTECONFIG

Code Example 3-103 ping (Continued)

^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

Note You must use Control-C to end the ping 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, IronPort 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 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. 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 does not support a batch format.

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 151

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Example
Code Example 3-104 routeconfig

mail3.example.com> routeconfig Currently configured routes: 1. WestNet Destination: 192.168.11.0/24 Gateway: 192.168.14.2 2. EastNet Destination: 192.168.13.0/24 Gateway: 192.168.14.3 Choose the operation you want to perform: - NEW - Create a new route. - EDIT - Modify a route. - DELETE - Remove a route. - CLEAR - Clear all entries. []> new Please create a name for the route: []> EuropeNet Please enter the destination IP address to match on. CIDR addresses such as 192.168.42.0/24 are also allowed. []> 192.168.12.0/24 Gateway address for traffic to 192.168.12.0/24: []> 192.168.14.4 Currently configured routes: 1. WestNet Destination: 192.168.11.0/24 Gateway: 192.168.14.2 2. EastNet Destination: 192.168.13.0/24 Gateway: 192.168.14.3 3. 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> commit Please enter some comments describing your changes: []> Created new static route Changes committed: Mon Jan 01 12:00:01 2003

setgateway
Description

The setgateway command configures the default next-hop intermediary through which

152

SETHOSTNAME

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
Code Example 3-105 setgateway

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 Changes committed: Mon Jan 01 12:00:01 2003

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 IronPort 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.

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 153

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Example
Code Example 3-106 sethostname

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:
Code Example 3-107

oldname.example.com> commit Please enter some comments describing your changes: []> Changed System Hostname Changes committed: Mon Apr 18 12:00:01 2003

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.
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 <source> <destination> [destination] [destination] [...]

Deleting an existing SMTP route


smtproutes delete <source>

154

SMTPROUTES

Clear a listing of SMTP routes


smtproutes clear

Print a listing of SMTP routes


smtproutes print

Import a listing of SMTP routes


smtproutes import <filenames>

Export a listing of SMTP routes


smtproutes export <filenames> Example

In the following example, the smptroutes command is used to construct a route (mapping) for the domain example.com to exchange.example.com. (Note that you may have constructed the same mapping during the systemsetup command when you configured the InboundMail public listener.)
Code Example 3-108 smtproutes

mail3.example.com> smtproutes There are no routes configured. Choose the operation you want to perform: - NEW - Create a new route. - IMPORT - Import new routes from a file. []> new Enter the hostname for which you want to set up a permanent route. Partial hostnames such as ".example.com" are allowed. Use "ALL" for the default route. []> example.com Enter the destination hosts, separated by commas, which you want mail for example.com to be delivered. Enter /dev/null by itself if you wish to discard the mail. Do you want to associate an SMTP authentication profile with this route? [N]>

[]> exchange.example.com

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 155

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-108 smtproutes (Continued)

Mapping for example.com to exchange.example.com created. There are currently 1 routes configured. Choose the operation you want to perform: - NEW - Create a new route. - DELETE - Remove a route. - PRINT - Display all routes. - IMPORT - Import new routes from a file. - EXPORT - Export all routes to a file. - CLEAR - Remove all routes. []>

telnet
Description

Connect to a remote host


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.

156

TRACEROUTE

Example
Code Example 3-109 telnet

mail3.example.com> telnet Please select which interface you want to telnet 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]> 3 Enter the remote hostname or IP. []> 193.168.1.1 Enter the remote port. [25]> 25 Trying 193.168.1.1... Connected to 193.168.1.1. Escape character is '^]'.

traceroute
Description

Use the traceroute command to test connectivity to a network host from the appliance and debug routing issues with network hops.
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
Code Example 3-110 traceroutes

mail3.example.com> traceroute Which interface do you want to trace 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

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 157

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-110 traceroutes (Continued)

Please enter the host to which you want to trace the route. []> 10.1.1.1 Press Ctrl-C to stop. traceroute to 10.1.1.1 (10.1.1.1), 64 hops max, 44 byte packets 1 gateway (192.168.0.1) 0.202 ms 0.173 ms 0.161 ms 2 hostname (10.1.1.1) 0.298 ms 0.302 ms 0.291 ms mail3.example.com>

158

POLICY ENFORCEMENT

POL I C Y E N F O R C E M E N T
This section contains the following CLI commands: dictionaryconfig exceptionconfig filters policyconfig quarantineconfig scanconfig stripheaders textconfig

dictionaryconfig
Description

Configure content dictionaries. Note You can add a weight to dictionary terms by using the following syntax:
<dictionary term>, <term weight>

For example, if you want to weight the term, account, with a weight of three, you would add the following entry:
account, 3 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

Use dictionaryconfig -> new to create dictionaries, and dictionaryconfig -> delete to remove dictionaries.
Code Example 3-111 dictionaryconfig - Creating a Dictionary 1

example.com> dictionaryconfig No content dictionaries have been defined.

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 159

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-111 dictionaryconfig - Creating a Dictionary 1 (Continued)

Choose the operation you want to perform: - NEW - Create a new content dictionary. []> new Enter a name for this content dictionary. []> HRWords Do you wish to specify a file for import? [N]> Enter new words or regular expressions, enter a blank line to finish. <list of words typed here> Currently configured content dictionaries: 1. HRWords Choose the operation you want to perform: - NEW - Create a new content dictionary. - EDIT - Modify a content dictionary. - DELETE - Remove a content dictionary. - RENAME - Change the name of a content dictionary. []> delete Enter the number of the dictionary you want to delete: 1. HRWords []> 1 Content dictionary "HRWords" deleted. No content dictionaries have been defined. Choose the operation you want to perform: - NEW - Create a new content dictionary. []>

In this example, a new dictionary named secret_words is created to contain the term codename. Once the dictionary has been entered, the edit -> settings subcommand is used to define the case-sensitivity and word boundary detection for words in the dictionary.
Code Example 3-112 dictionaryconfig - Creating a Dictionary 2

mail3.example.com> dictionaryconfig No content dictionaries have been defined. Choose the operation you want to perform: - NEW - Create a new content dictionary. []> new

160

DICTIONARYCONFIG

Code Example 3-112 dictionaryconfig - Creating a Dictionary 2 (Continued)

Enter a name for this content dictionary. []> secret_words Do you wish to specify a file for import? [N]> Enter new words or regular expressions, enter a blank line to finish. codename Currently configured content dictionaries: 1. secret_words Choose the operation you want to perform: - NEW - Create a new content dictionary. - EDIT - Modify a content dictionary. - DELETE - Remove a content dictionary. - RENAME - Change the name of a content dictionary. []> edit Enter the number of the dictionary you want to edit: 1. secret_words []> 1 Choose the operation you want to perform on dictionary 'secret_words': - NEW - Create new entries in this dictionary. - IMPORT - Replace all of the words in this dictionary. - EXPORT - Export the words in this dictionary. - DELETE - Remove an entry in this dictionary. - PRINT - List the entries in this dictionary. - SETTINGS - Change settings for this dictionary. []> settings Do you want to ignore case when matching using this dictionary? [Y]> Do you want strings in this dictionary to only match complete words? [Y]> Enter the default encoding to be used for exporting this dictionary: 1. US-ASCII 2. Unicode (UTF-8) 3. Unicode (UTF-16) 4. Western European/Latin-1 (ISO 8859-1) 5. Western European/Latin-1 (Windows CP1252) 6. Traditional Chinese (Big 5) 7. Simplified Chinese (GB 2312) 8. Simplified Chinese (HZ GB 2312)

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 161

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-112 dictionaryconfig - Creating a Dictionary 2 (Continued)

9. Korean (ISO 2022-KR) 10. Korean (KS-C-5601/EUC-KR) 11. Japanese (Shift-JIS (X0123)) 12. Japanese (ISO-2022-JP) 13. Japanese (EUC) [2]> Choose the operation you want to perform on dictionary 'secret_words': - NEW - Create new entries in this dictionary. - IMPORT - Replace all of the words in this dictionary. - EXPORT - Export the words in this dictionary. - DELETE - Remove an entry in this dictionary. - PRINT - List the entries in this dictionary. - SETTINGS - Change settings for this dictionary. []> Currently configured content dictionaries: 1. secret_words Choose the operation you want to perform: - NEW - Create a new content dictionary. - EDIT - Modify a content dictionary. - DELETE - Remove a content dictionary. - RENAME - Change the name of a content dictionary. []> mail3.example.com> commit Please enter some comments describing your changes: []> Added new dictionary: secret_words Changes committed: Thu Feb 03 13:00:19 2005 PST mail3.example.com> Importing Dictionaries

In the example below, using the dictionaryconfig command, 84 terms in the profanity.txt text file are imported as Unicode (UTF-8) into a dictionary named profanity.
Code Example 3-113 dictionaryconfig - Importing Dictionaries

mail3.example.com> dictionaryconfig No content dictionaries have been defined. Choose the operation you want to perform:

162

DICTIONARYCONFIG

Code Example 3-113 dictionaryconfig - Importing Dictionaries (Continued)

- NEW - Create a new content dictionary. []> new Enter a name for this content dictionary. []> profanity Do you wish to specify a file for import? Enter the name of the file to import: []> profanity.txt Enter the encoding to use for the imported file: 1. US-ASCII 2. Unicode (UTF-8) 3. Unicode (UTF-16) 4. Western European/Latin-1 (ISO 8859-1) 5. Western European/Latin-1 (Windows CP1252) 6. Traditional Chinese (Big 5) 7. Simplified Chinese (GB 2312) 8. Simplified Chinese (HZ GB 2312) 9. Korean (ISO 2022-KR) 10. Korean (KS-C-5601/EUC-KR) 11. Japanese (Shift-JIS (X0123)) 12. Japanese (ISO-2022-JP) 13. Japanese (EUC) [2]> 84 entries imported successfully. Currently configured content dictionaries: 1. profanity Choose the operation you want to perform: - NEW - Create a new content dictionary. - EDIT - Modify a content dictionary. - DELETE - Remove a content dictionary. - RENAME - Change the name of a content dictionary. []> mail3.example.com> commit Exporting Dictionaries [N]> y

In the example below, using the dictionaryconfig command, the secret_words dictionary is exported to a text file named secret_words_export.txt
Code Example 3-114 dictionaryconfig - Exporting a Dictionary

mail3.example.com> dictionaryconfig

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 163

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-114 dictionaryconfig - Exporting a Dictionary (Continued)

Currently configured content dictionaries: 1. secret_words Choose the operation you want to perform: - NEW - Create a new content dictionary. - EDIT - Modify a content dictionary. - DELETE - Remove a content dictionary. - RENAME - Change the name of a content dictionary. []> edit Enter the number of the dictionary you want to edit: 1. secret_words []> 1 Choose the operation you want to perform on dictionary 'secret_words': - NEW - Create new entries in this dictionary. - IMPORT - Replace all of the words in this dictionary. - EXPORT - Export the words in this dictionary. - DELETE - Remove an entry in this dictionary. - PRINT - List the entries in this dictionary. - SETTINGS - Change settings for this dictionary. []> export Enter a name for the exported file: []> secret_words_export.txt mail3.example.com> dictionaryconfig Currently configured content dictionaries: 1. secret_words Choose the operation you want to perform: - NEW - Create a new content dictionary. - EDIT - Modify a content dictionary. - DELETE - Remove a content dictionary. - RENAME - Change the name of a content dictionary. []> edit Enter the number of the dictionary you want to edit: 1. secret_words []> 1 Choose the operation you want to perform on dictionary 'secret_words': - NEW - Create new entries in this dictionary.

164

EXCEPTIONCONFIG

Code Example 3-114 dictionaryconfig - Exporting a Dictionary (Continued)

- IMPORT - Replace all of the words in this dictionary. - EXPORT - Export the words in this dictionary. - DELETE - Remove an entry in this dictionary. - PRINT - List the entries in this dictionary. - SETTINGS - Change settings for this dictionary. []> export Enter a name for the exported file: []> secret_words_export.txt

exceptionconfig
Description

Use the exceptionconfig command in the CLI to create the domain exception table. In this example, the email address [email protected] is added to the domain exception table with a policy of Allow.
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.

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 165

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Example
Code Example 3-115 exceptionconfig

mail3.example.com> exceptionconfig Choose the operation you want to perform: - NEW - Create a new domain exception table entry []> new Enter a domain, sub-domain, user, or email address for which you wish to provide an exception: []> mail.partner.com Any of the following passes: - @[IP address] Matches any email address with this IP address. - @domain Matches any email address with this domain. - @.partial.domain Matches any email address domain ending in this domain. - user@ Matches any email address beginning with user@. - user@domain Matches entire email address. Enter a domain, sub-domain, user, or email address for which you wish to provide an exception: []> [email protected] Choose a policy for this domain exception: 1. Allow 2. Reject [1]> 1 Choose the operation you want to perform: - NEW - Create a new domain exception table entry - EDIT - Edit a domain exception table entry - DELETE - Delete a domain exception table entry - PRINT - Print all domain exception table entries - SEARCH - Search domain exception table - CLEAR - Clear all domain exception entries []>

filters
Description

Configure message processing options.

166

FILTERS

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 filter command is used to create three new filters: The first filter is named big_messages. It uses the body-size rule to drop messages larger than 10 megabytes. The second filter is named no_mp3s. It uses the attachment-filename rule to drop messages that contain attachments with the filename extension of .mp3. The third filter is named mailfrompm. It uses mail-from rule examines all mail from [email protected] and blind-carbon copies [email protected]. Using the filter -> list subcommand, the filters are listed to confirm that they are active and valid, and then the first and last filters are switched in position using the move subcommand. Finally, the changes are committed so that the filters take effect.
Code Example 3-116 filters

mail3.example.com> filters Choose the operation you want to perform: - NEW - Create a new filter. - IMPORT - Import a filter script from a file. []> new Enter filter script. Enter '.' on its own line to end. big_messages: if (body-size >= 10M) { drop(); } . 1 filters added. Choose the operation you want to perform: - NEW - Create a new filter. - DELETE - Remove a filter. - IMPORT - Import a filter script from a file. - EXPORT - Export filters to a file - MOVE - Move a filter to a different position. - SET - Set a filter attribute. - LIST - List the filters. - DETAIL - Get detailed information on the filters. - LOGCONFIG - Configure log subscriptions used by filters.

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 167

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-116 filters (Continued)

- ROLLOVERNOW - Roll over a filter log file. []> new Enter filter script. Enter '.' on its own line to end. no_mp3s: if (attachment-filename == '\\.mp3$') { drop(); } . 1 filters added. Choose the operation you want to perform: - NEW - Create a new filter. - DELETE - Remove a filter. - IMPORT - Import a filter script from a file. - EXPORT - Export filters to a file - MOVE - Move a filter to a different position. - SET - Set a filter attribute. - LIST - List the filters. - DETAIL - Get detailed information on the filters. - LOGCONFIG - Configure log subscriptions used by filters. - ROLLOVERNOW - Roll over a filter log file. []> new Enter filter script. Enter '.' on its own line to end. mailfrompm: if (mail-from == "^postmaster$") { bcc ("[email protected]");} . 1 filters added. Choose the operation you want to perform: - NEW - Create a new filter. - DELETE - Remove a filter. - IMPORT - Import a filter script from a file. - EXPORT - Export filters to a file - MOVE - Move a filter to a different position. - SET - Set a filter attribute. - LIST - List the filters. - DETAIL - Get detailed information on the filters. - LOGCONFIG - Configure log subscriptions used by filters. - ROLLOVERNOW - Roll over a filter log file. []> list

168

POLICYCONFIG

policyconfig
Description

Configure per recipient or sender based policies


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 policyconfig -> edit -> antispam subcommand is used to edit the Symantec Brightmail Anti-Spam settings for the default incoming mail policy. (Note that this same configuration is available in the GUI from the Email Security Manager feature. For more information see the AsyncOS 4.6 User Guide.) First, messages positively identified as spam are chosen not to be archived; they will be dropped. Messages that are suspected to be spam are chosen to be archived. They will also be sent to the Symantec Brightmail Quarantine installed on the server named quarantine.example.com. The text [quarantined: possible spam] is prepended to the subject line and a special header of X-quarantined: true is configured to be added to these suspect messages. In this scenario, Administrators and end-users can check the quarantine for false positives, and an administrator can adjust, if necessary, the suspected spam threshold. Finally, the changes are committed.
Code Example 3-117 policyconfig - Creating a Policy to Drop Spam

mail3.example.com> policyconfig Would you like to configure Incoming or Outgoing Mail Policies? 1. Incoming 2. Outgoing [1]> 1 Incoming Mail Policy Configuration Name: Anti-Spam: Anti-Virus: Content Filter: VOF: -------------- ----------- --------------- ---DEFAULT Enabled Enabled Off Enabled Choose the operation you want to perform: - NEW - Create a new policy - EDIT - Edit an existing policy - DELETE - Remove a policy

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 169

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-117 policyconfig - Creating a Policy to Drop Spam (Continued)

- PRINT - Print all policies - SEARCH - Search for a policy by member - FILTERS - Edit content filters - CLEAR - Clear all policies []> edit Name: ----1. DEFAULT Anti-Spam: Anti-Virus: Content Filter: VOF: ---------- ----------- --------------- ---Enabled Enabled Off Enabled

Enter the name or number of the entry you wish to edit: []> 1 Policy Summaries: Anti-Spam: Deliver, Prepend "[SPAM] " to Subject Anti-Virus: Scan and Clean Content Filters: Off (No content filters have been created) Virus Outbreak Filter: Enabled. No bypass extensions. Choose the operation you want to perform: - ANTISPAM - Modify Anti-Spam policy - ANTIVIRUS - Modify Anti-Virus policy - VOF - Modify Virus Outbreak policy []> antispam Choose the operation you want to perform: - EDIT - Edit Anti-Spam policy - DISABLE - Disable Anti-Spam policy (Disables all policy-related actions) []> edit Begin Anti-Spam configuration Some messages will be positively identified as spam. Some messages will be identified as suspected spam. You can set the Suspected Spam Threshold with the antispamconfig command. The following configuration options apply to messages POSITIVELY identified as spam: 1. 2. 3. 4. DELIVER DROP BOUNCE QUARANTINE

170

POLICYCONFIG

Code Example 3-117 policyconfig - Creating a Policy to Drop Spam (Continued)

What do you want to do with messages identified as spam? [1]> 2 Do you want to archive messages identified as spam? [N]> Do you want to enable special treatment of suspected spam? [N]> y The following configuration options apply to messages identified as SUSPECTED spam: 1. DELIVER 2. DROP 3. BOUNCE 4. QUARANTINE What do you want to do with messages identified as SUSPECTED spam? [1]> 4 Do you want to archive messages identified as SUSPECTED spam? [N]> y Note: Archive log subscription not configured. Use logconfig to create a suspectspam log archive subscription. 1. PREPEND 2. APPEND 3. NONE Do you want to add text to the subject of messages identified as SUSPECTED spam? [1]> 1 What text do you want to prepend to the subject? [[SUSPECTED SPAM] ]> [quarantined: possible spam] Do you want to add a custom header to messages identified as SUSPECTED spam? [N]> y Enter the name of the header: []> X-quarantined Enter the text for the content of the header: []> true Please enter the host to send SUSPECTED spam to: []> quarantine.example.com Anti-Spam configuration complete

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 171

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-117 policyconfig - Creating a Policy to Drop Spam (Continued)

Policy Summaries: Anti-Spam: Symantec Brightmail Anti-Spam - Drop Suspect-Spam: Symantec Brightmail Anti-Spam - Quarantine to Host "quarantine.example.com" Port "41025", Prepend "[quarantined: possible spam]" to Subject, Add Header "X-quarantined: true" Archiving copies of the original message. Anti-Virus: Scan and Clean Content Filters: Off (No content filters have been created) Virus Outbreak Filter: Enabled. No bypass extensions. Choose the operation you want to perform: - ANTISPAM - Modify Anti-Spam policy - ANTIVIRUS - Modify Anti-Virus policy - VOF - Modify Virus Outbreak policy []> Incoming Mail Policy Configuration Name: Anti-Spam: Anti-Virus: Content Filter: VOF: -------------- ----------- --------------- ---DEFAULT Enabled Enabled Off Enabled Choose the operation you want to perform: - NEW - Create a new policy - EDIT - Edit an existing policy - DELETE - Remove a policy - PRINT - Print all policies - SEARCH - Search for a policy by member - FILTERS - Edit content filters - CLEAR - Clear all policies []> mail3.example.com> commit Please enter some comments describing your changes: []> configured anti-spam for Incoming Default Policy Changes committed: Thu May 05 15:52:32 2005 PDT mail3.example.com>

172

POLICYCONFIG

Example
Code Example 3-118 policyconfig - Configuring a Policy to Archive Suspected Spam

mail3.example.com> policyconfig Would you like to configure Incoming or Outgoing Mail Policies? 1. Incoming 2. Outgoing [1]> 1 Incoming Mail Policy Configuration Name: Anti-Spam: Anti-Virus: Content Filter: VOF: -------------- ----------- --------------- ---DEFAULT Enabled Enabled Off Enabled

Choose the operation you want to perform: - NEW - Create a new policy - EDIT - Edit an existing policy - PRINT - Print all policies - FILTERS - Edit content filters []> edit Name: ----1. DEFAULT Anti-Spam: ---------Enabled Anti-Virus: Content Filter: VOF: ----------- --------------- ---Enabled Off Enabled

Enter the name or number of the entry you wish to edit: []> 1 Policy Summaries: Anti-Spam: Deliver, Prepend "[SPAM] " to Subject Anti-Virus: Scan and Clean Content Filters: Off (No content filters have been created) Virus Outbreak Filter: Enabled. No bypass extensions. Choose the operation you want to perform: - ANTISPAM - Modify Anti-Spam policy - ANTIVIRUS - Modify Anti-Virus policy - VOF - Modify Virus Outbreak policy []> antispam Choose the operation you want to perform: - EDIT - Edit Anti-Spam policy - DISABLE - Disable Anti-Spam policy (Disables all policy-related actions) []> edit

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 173

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-118 policyconfig - Configuring a Policy to Archive Suspected Spam (Continued)

Begin Anti-Spam configuration Some messages will be positively identified as spam. Some messages will be identified as suspected spam. You can set the Suspected Spam Threshold with the antispamconfig command. The following configuration options apply to messages POSITIVELY identified as spam: Do you want to archive messages identified as spam? [N]> n 1. DELIVER 2. DROP 3. BOUNCE 4. QUARANTINE What do you want to do with messages identified as spam? [1]> 2 Do you want to enable special treatment of suspected spam? [N]> y

The following configuration options apply to messages identified as SUSPECTED spam: Do you want to archive messages identified as SUSPECTED spam? [N]> n 1. DELIVER 2. DROP 3. BOUNCE 4. QUARANTINE What do you want to do with messages identified as SUSPECTED spam? [1]> 1 1. PREPEND 2. APPEND 3. NONE Do you want to add text to the subject of messages identified as SUSPECTED spam? [1]> 1 What text do you want to prepend to the subject? [[SUSPECTED SPAM] ]> Do you want to add a custom header to messages identified as SUSPECTED spam? [N]> n Do you want SUSPECTED spam sent to an external quarantine or alternate envelope recipient? [N]> n

174

POLICYCONFIG

Code Example 3-118 policyconfig - Configuring a Policy to Archive Suspected Spam (Continued)

Do you want SUSPECTED spam sent to an alternate destination host? Anti-Spam configuration complete Policy Summaries: Anti-Spam: Drop Suspect-Spam: Deliver, Prepend "[SUSPECTED SPAM] " to Subject Anti-Virus: Scan and Clean Content Filters: Off (No content filters have been created) Virus Outbreak Filter: Enabled. No bypass extensions. Choose the operation you want to perform: - ANTISPAM - Modify Anti-Spam policy - ANTIVIRUS - Modify Anti-Virus policy - VOF - Modify Virus Outbreak policy []> Incoming Mail Policy Configuration Name: Anti-Spam: Anti-Virus: Content Filter: VOF: -------------- ----------- --------------- ---DEFAULT Enabled Enabled Off Enabled

[N]> n

Choose the operation you want to perform: - NEW - Create a new policy - EDIT - Edit an existing policy - PRINT - Print all policies - FILTERS - Edit content filters []>

Then, use the new subcommand to add two new policies for different sets of users the sales organization and the engineering organization and configure different email security settings for each. In the CLI, you can configure different settings than the default as you create the policy. First, create the policy for the sales team, specifying a more aggressive anti-spam setting:
Code Example 3-119 policyconfig - Creating a Policy for the Sales Team

Incoming Mail Policy Configuration Name: Anti-Spam: Anti-Virus: Content Filter: VOF: -------------- ----------- --------------- ---DEFAULT Enabled Enabled Off Enabled

Choose the operation you want to perform:

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 175

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-119 policyconfig - Creating a Policy for the Sales Team (Continued)

- NEW - Create a new policy - EDIT - Edit an existing policy - PRINT - Print all policies - FILTERS - Edit content filters []> new Enter the name for this policy: []> sales_team Begin entering policy members. The following types of entries are allowed: Username entries such as joe@, domain entries such as @example.com, subdomain entries such as @.example.com, LDAP group memberships such as ldap(Engineers) Enter a member for this policy: []> ldap(sales) Please select an LDAP group query: 1. PublicLDAP.ldapgroup [1]> 1 Is this entry a recipient or a sender? 1. Recipient 2. Sender [1]> 1 Add another member? [Y]> n Would you like to enable Anti-Spam support? Use the policy table default? Begin Anti-Spam configuration Some messages will be positively identified as spam. Some messages will be identified as suspected spam. You can set the Suspected Spam Threshold with the antispamconfig command. The following configuration options apply to messages POSITIVELY identified as spam: Do you want to archive messages identified as spam? [N]> n 1. DELIVER 2. DROP 3. BOUNCE 4. QUARANTINE What do you want to do with messages identified as spam? [Y]> n

[Y]> y

176

POLICYCONFIG

Code Example 3-119 policyconfig - Creating a Policy for the Sales Team (Continued)

[1]> 2 Do you want to enable special treatment of suspected spam? [N]> y

The following configuration options apply to messages identified as SUSPECTED spam: Do you want to archive messages identified as SUSPECTED spam? [N]> n 1. DELIVER 2. DROP 3. BOUNCE 4. QUARANTINE What do you want to do with messages identified as SUSPECTED spam? [1]> 4 1. PREPEND 2. APPEND 3. NONE Do you want to add text to the subject of messages identified as SUSPECTED spam? [1]> 3 Do you want to add a custom header to messages identified as SUSPECTED spam? [N]> n Please enter the host to send SUSPECTED spam to: []> 10.3.1.45:41025 Anti-Spam configuration complete Would you like to enable Anti-Virus support? Use the policy table default? [Y]> y [Y]> y [Y]> y

Would you like to enable Virus Outbreak Filters for this policy? Use the policy table default? [Y]> y

Incoming Mail Policy Configuration Name: Anti-Spam: Anti-Virus: -------------- ----------sales_team Enabled Default DEFAULT Enabled Enabled

Content Filter: --------------Default Off

VOF: ---Default Enabled

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 177

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-119 policyconfig - Creating a Policy for the Sales Team (Continued)

Choose the operation you want to perform: - NEW - Create a new policy - EDIT - Edit an existing policy - DELETE - Remove a policy - PRINT - Print all policies - SEARCH - Search for an policy by member - FILTERS - Edit content filters - CLEAR - Clear all policies []>

Then, create the policy for the engineering team (three individual email recipients), specifying that .dwg files are exempt from Virus Outbreak Filter scanning.
Code Example 3-120 policyconfig - Creating a Policy for the Engineering Team

Incoming Mail Policy Configuration Name: Anti-Spam: Anti-Virus: -------------- ----------sales_team Enabled Default DEFAULT Enabled Enabled

Content Filter: --------------Default Off

VOF: ---Default Enabled

Choose the operation you want to perform: - NEW - Create a new policy - EDIT - Edit an existing policy - DELETE - Remove a policy - PRINT - Print all policies - SEARCH - Search for an policy by member - FILTERS - Edit content filters - CLEAR - Clear all policies []> new Enter the name for this policy: []> engineering

Begin entering policy members. The following types of entries are allowed: Username entries such as joe@, domain entries such as @example.com, sub-domain entries such as @.example.com, LDAP group memberships such as ldap(Engineers) Enter a member for this policy: []> [email protected] Is this entry a recipient or a sender? 1. Recipient

178

POLICYCONFIG

Code Example 3-120 policyconfig - Creating a Policy for the Engineering Team (Continued)

2. Sender [1]> 1 Add another member? [Y]> y

Enter a member for this policy: []> [email protected] Add another member? [Y]> y

Enter a member for this policy: []> [email protected] Is this entry a recipient or a sender? 1. Recipient 2. Sender [1]> 1 Add another member? [Y]> n [Y]> y

Would you like to enable Anti-Spam support? Use the policy table default? [Y]> y

Would you like to enable Anti-Virus support? Use the policy table default? [Y]> y

[Y]> y

Would you like to enable Virus Outbreak Filters for this policy? Use the policy table default? [Y]> n

[Y]> y

Would you like to change or add VOF-bypass file extensions?

[N]> y

Choose the operation you want to perform: - NEW - Add file extension []> new Enter a file extension for VOF-bypass: []> dwg

Choose the operation you want to perform: - NEW - Add file extension

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 179

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-120 policyconfig - Creating a Policy for the Engineering Team (Continued)

- DELETE - Delete a file extension - PRINT - Display all file extensions - CLEAR - Clear all file extensions []> print The following file extensions will bypass VOF processing: dwg

Choose the operation you want to perform: - NEW - Add file extension - DELETE - Delete a file extension - PRINT - Display all file extensions - CLEAR - Clear all file extensions []> Incoming Mail Policy Configuration Name: Anti-Spam: Anti-Virus: -------------- ----------sales_team Enabled Default engineering Default Default DEFAULT Enabled Enabled

Content Filter: --------------Default Default Off

VOF: ---Default Enabled Enabled

Choose the operation you want to perform: - NEW - Create a new policy - EDIT - Edit an existing policy - DELETE - Remove a policy - PRINT - Print all policies - SEARCH - Search for an policy by member - MOVE - Move the position of a policy - FILTERS - Edit content filters - CLEAR - Clear all policies []>

180

POLICYCONFIG

Next, create a new content filter to be used in the Incoming Mail Overview policy table. In the CLI, the filters subcommand of the policyconfig command is the equivalent of the Incoming Content Filters GUI page. When you create content filters in the CLI, you must use the save subcommand to save the filter and return to the policyconfig command. First, create the scan_for_confidential content filter:
Code Example 3-121 policyconfig - Creating the scan_for_confidential Content Filter

Incoming Mail Policy Configuration Name: Anti-Spam: Anti-Virus: -------------- ----------sales_team Enabled Default engineering Default Default DEFAULT Enabled Enabled

Content Filter: --------------Default Default Off

VOF: ---Default Enabled Enabled

Choose the operation you want to perform: - NEW - Create a new policy - EDIT - Edit an existing policy - DELETE - Remove a policy - PRINT - Print all policies - SEARCH - Search for an policy by member - MOVE - Move the position of a policy - FILTERS - Edit content filters - CLEAR - Clear all policies []> filters No filters defined. Choose the operation you want to perform: - NEW - Create a new filter []> new Enter a name for this filter: []> scan_for_confidential Enter a description or comment for this filter (optional): []> scan all incoming mail for the string 'confidential' Filter Name: Conditions: Always Run Actions: No actions defined yet. scan_for_confidential

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 181

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-121 policyconfig - Creating the scan_for_confidential Content Filter

Description: scan all incoming mail for the string 'confidential' Choose the operation you want to perform: - RENAME - Rename this filter - DESC - Edit filter description - ADD - Add condition or action []> add 1. Condition 2. Action [1]> 1 1. Message Body Contains 2. Message Body Matches Term in Dictionary 3. Only Body Contains (Attachments are not scanned) 4. Message Body Size 5. Subject Header 6. Subject Header Matches Term in Dictionary 7. Other Header 8. Other Header Matches Term in Dictionary 9. Attachment Contains 10. Attachment File Type 11. Attachment Name 12. Attachment MIME Type 13. Attachment Protected 14. Attachment Matches Term in Dictionary 15. Envelope Recipient Address 16. Envelope Recipient in LDAP Group 17. Envelope Recipient Address Matches Term in Dictionary 18. Envelope Sender Address 19. Envelope Sender in LDAP Group 20. Envelope Sender Address Matches Term in Dictionary 21. Receiving Listener 22. Reputation Score 23. Remote IP 24. DKIM verification result [1]> 1 Enter regular expression or smart identifier to search message contents for: []> confidential Threshold required for match: [1]> 1

182

POLICYCONFIG

Code Example 3-121 policyconfig - Creating the scan_for_confidential Content Filter

Filter Name:

scan_for_confidential

Conditions: body-contains("confidential") Actions: No actions defined yet. Description: scan all incoming mail for the string 'confidential' Choose the operation you want to perform: - RENAME - Rename this filter - DESC - Edit filter description - ADD - Add condition or action - DELETE - Delete condition or action []> add 1. Condition 2. Action [1]> 2 1. Bcc 2. Notify 3. Redirect To Alternate Email Address 4. Redirect to Alternate Host 5. Insert A Custom Header 6. Strip A Header 7. Send from a specific IP Interface 8.Drop Attachments By Content 9. Drop Attachments By Name 10.Drop Attachments By MIME Type 11. Drop Attatchments by File Type 12.Drop Attachments by Size 13. Send to System Quarantine 14. Duplicate And Send To System Quarantine 15. Drop (Final Action) 16. Bounce (Final Action) 17. Deliver (Final Action) 18. Skip Virus Outbreak Filters check [1]> 1 Enter the email address(es) to send the Bcc message to:

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 183

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-121 policyconfig - Creating the scan_for_confidential Content Filter

[]> [email protected] Do you want to edit the subject line used on the Bcc message? Enter the subject to use: [$Subject]> [message matched confidential filter] Do you want to edit the return path of the Bcc message? Filter Name: scan_for_confidential [N]> n [N]> y

Conditions: body-contains("confidential") Actions: bcc ("[email protected]", "[message matched confidential filter]") Description: scan all incoming mail for the string 'confidential' Choose the operation you want to perform: - RENAME - Rename this filter - DESC - Edit filter description - ADD - Add condition or action - DELETE - Delete condition or action - SAVE - Save filter []> add 1. Condition 2. Action [1]> 2 1. Bcc 2. Notify 3. Redirect To Alternate Email Address 4. Redirect to Alternate Host 5. Insert A Custom Header 6. Strip A Header 7. Send from a specific IP Interface 8. Drop Attachments By Content 9. Drop Attachments By Name 10. Drop Attachments By MIME Type 11. Drop Attatchments by File Type 12. Drop Attachments by Size 13. Send to System Quarantine

184

POLICYCONFIG

Code Example 3-121 policyconfig - Creating the scan_for_confidential Content Filter

14. Duplicate And Send To System Quarantine 15. Drop (Final Action) 16. Bounce (Final Action) 17. Deliver (Final Action) 18. Skip Virus Outbreak Filters check [1]> 9 1. Policy [1]> 1 Filter Name: scan_for_confidential

Conditions: body-contains("confidential") Actions: bcc ("[email protected]", "[message matched confidential filter]") quarantine ("Policy") Description: scan all incoming mail for the string 'confidential' Choose the operation you want to perform: - RENAME - Rename this filter - DESC - Edit filter description - ADD - Add condition or action - DELETE - Delete condition or action - MOVE - Reorder the actions - SAVE - Save filter []> save Defined filters: 1. scan_for_confidential: scan all incoming mail for the string 'confidential' Choose the operation you want to perform: - NEW - Create a new filter - EDIT - Edit an existing filter - DELETE - Delete a filter - PRINT - Print all filters - RENAME - Rename a filter []>

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 185

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-122 illustrates how to enable the policies once again to enable the content filters for some policies, but not for others.
Code Example 3-122 policyconfig 0 Enabling Content Filters for Specific Policies

Incoming Mail Policy Configuration Name: Anti-Spam: Anti-Virus: -------------- ----------sales_team Enabled Default engineering Default Default DEFAULT Enabled Enabled

Content Filter: --------------Default Default Off

VOF: ---Default Enabled Enabled

Choose the operation you want to perform: - NEW - Create a new policy - EDIT - Edit an existing policy - DELETE - Remove a policy - PRINT - Print all policies - SEARCH - Search for an policy by member - MOVE - Move the position of a policy - FILTERS - Edit content filters - CLEAR - Clear all policies []> edit Name: ----1. sales_team 2. engineering 3. DEFAULT Anti-Spam: ---------Enabled Default Enabled Anti-Virus: Content Filter: VOF: ----------- --------------- ---Default Default Enabled Default Default Off Default Enabled Enabled

Enter the name or number of the entry you wish to edit: []> 3 Policy Summaries: Anti-Spam: Drop Suspect-Spam: Deliver, Prepend "[SUSPECTED SPAM] " to Subject Anti-Virus: Scan and Clean Content Filters: Off Virus Outbreak Filter: Enabled. No bypass extensions. Choose the operation you want to perform: - ANTISPAM - Modify Anti-Spam policy - ANTIVIRUS - Modify Anti-Virus policy - VOF - Modify Virus Outbreak policy - FILTERS - Modify filters []> filters

186

POLICYCONFIG

Code Example 3-122 policyconfig 0 Enabling Content Filters for Specific Policies (Continued)

Choose the operation you want to perform: - ENABLE - Enable Content Filters policy []> enable 1. 2. 3. Enter the []> 1 1. Active 2. 3. Enter the []> 2 1. Active 2. Active 3. Enter the []> 3 1. Active 2. Active 3. Active Enter the []> scan_for_confidential no_mp3s ex_employee filter to toggle on/off, or press enter to finish:

scan_for_confidential no_mp3s ex_employee filter to toggle on/off, or press enter to finish:

scan_for_confidential no_mp3s ex_employee filter to toggle on/off, or press enter to finish:

scan_for_confidential no_mp3s ex_employee filter to toggle on/off, or press enter to finish:

Policy Summaries: Anti-Spam: Drop Suspect-Spam: Deliver, Prepend "[SUSPECTED SPAM] " to Subject Anti-Virus: Scan and Clean Content Filters: Enabled. Filters: scan_for_confidential, no_mp3s, ex_employee Virus Outbreak Filter: Enabled. No bypass extensions. Choose the operation you want to perform: - ANTISPAM - Modify Anti-Spam policy - ANTIVIRUS - Modify Anti-Virus policy - VOF - Modify Virus Outbreak policy - FILTERS - Modify filters []>

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 187

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-122 policyconfig 0 Enabling Content Filters for Specific Policies (Continued)

Incoming Mail Policy Configuration Name: Anti-Spam: Anti-Virus: -------------- ----------sales_team Enabled Default engineering Default Default DEFAULT Enabled Enabled

Content Filter: --------------Default Default Enabled

VOF: ---Default Enabled Enabled

Choose the operation you want to perform: - NEW - Create a new policy - EDIT - Edit an existing policy - DELETE - Remove a policy - PRINT - Print all policies - SEARCH - Search for an policy by member - MOVE - Move the position of a policy - FILTERS - Edit content filters - CLEAR - Clear all policies []> edit Name: ----1. sales_team 2. engineering 3. DEFAULT Anti-Spam: ---------Enabled Default Enabled Anti-Virus: Content Filter: VOF: ----------- --------------- ---Default Default Enabled Default Default Off Default Enabled Enabled

Enter the name or number of the entry you wish to edit: []> 2 Policy Summaries: Anti-Spam: Default Anti-Virus: Default Content Filters: Default Virus Outbreak Filter: Enabled. Bypass extensions: dwg Choose the operation you want to perform: - NAME - Change name of policy - NEW - Add a new member - DELETE - Remove a member - PRINT - Print policy members - ANTISPAM - Modify Anti-Spam policy - ANTIVIRUS - Modify Anti-Virus policy - VOF - Modify Virus Outbreak policy - FILTERS - Modify filters

188

POLICYCONFIG

Code Example 3-122 policyconfig 0 Enabling Content Filters for Specific Policies (Continued)

[]> filters

Choose the operation you want to perform: - DISABLE - Disable Content Filters policy (Disables all policy-related actions) - ENABLE - Enable Content Filters policy []> enable 1. 2. 3. Enter the []> 1 1. Active 2. 3. Enter the []> 3 1. Active 2. 3. Active Enter the []> scan_for_confidential no_mp3s ex_employee filter to toggle on/off, or press enter to finish:

scan_for_confidential no_mp3s ex_employee filter to toggle on/off, or press enter to finish:

scan_for_confidential no_mp3s ex_employee filter to toggle on/off, or press enter to finish:

Policy Summaries: Anti-Spam: Default Anti-Virus: Default Content Filters: Enabled. Filters: scan_for_confidential, ex_employee Virus Outbreak Filter: Enabled. Bypass extensions: dwg Choose the operation you want to perform: - NAME - Change name of policy - NEW - Add a new member - DELETE - Remove a member - PRINT - Print policy members - ANTISPAM - Modify Anti-Spam policy - ANTIVIRUS - Modify Anti-Virus policy - VOF - Modify Virus Outbreak policy - FILTERS - Modify filters []>

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 189

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-122 policyconfig 0 Enabling Content Filters for Specific Policies (Continued)

Incoming Mail Policy Configuration Name: Anti-Spam: Anti-Virus: -------------- ----------sales_team Enabled Default engineering Default Default DEFAULT Enabled Enabled

Content Filter: --------------Default Enabled Enabled

VOF: ---Default Enabled Enabled

Choose the operation you want to perform: - NEW - Create a new policy - EDIT - Edit an existing policy - DELETE - Remove a policy - PRINT - Print all policies - SEARCH - Search for an policy by member - MOVE - Move the position of a policy - FILTERS - Edit content filters - CLEAR - Clear all policies []>

Note The CLI does not contain the notion of adding a new content filter within an individual policy. Rather, the filters subcommand forces you to manage all content filters from within one subsection of the policyconfig command. For that reason, adding the drop_large_attachments has been omitted from this example.

quarantineconfig
Description

Configure system quarantines.


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
Code Example 3-123 quarantineconfig

mail3.example.com> quarantineconfig Currently configured quarantines: # 1 2 Quarantine Name Outbreak Policy Size (MB) 3,072 1,024 % full 0.0 0.1 Messages 1 497 Retention 12h 10d Policy Release Delete

190

QUARANTINECONFIG

Code Example 3-123 quarantineconfig (Continued)

Virus

2,048

empty

30d

Delete

2,048 MB available for quarantine allocation. Choose the operation you want to perform: - NEW - Create a new quarantine. - EDIT - Modify a quarantine. - DELETE - Remove a quarantine. - VOFMANAGE - Manage the Virus Outbreak Filters quarantine. []> new Please enter the name for this quarantine: []> HRQuarantine Please enter the maximum size for this quarantine in MB: []> 1024 Retention period for this quarantine. (Use 'd' for days or 'h' for hours.): []> 15 d 1. Delete 2. Release Enter default action for quarantine: [1]> 2 Do you want to modify the subject of messages that are released because "HRQuarantine" becomes full? [N]> Do you want to give any users in the Operators/Guests groups access to this quarantine? [N]> y No users in the Operators/Guests groups have access to "HRQuarantine" Choose the operation you want to perform: - NEW - Add a new user. []> new 1. hrquar Select a user name or number []> 1 Users in the Operators/Guests groups with access to "HRQuarantine": 1. hrquar Choose the operation you want to perform: - DELETE - Delete a user.

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 191

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-123 quarantineconfig (Continued)

[]> Currently configured quarantines: # Quarantine Name Size (MB) % full Messages Retention 1 HRQuarantine 1,024 N/A N/A 15d 2 Outbreak 3,072 0.0 1 12h 3 Policy 1,024 0.1 497 10d 4 Virus 2,048 empty 0 30d (N/A: Quarantine contents is not available at this time.) 1,024 MB available for quarantine allocation. Choose the operation you want to perform: - NEW - Create a new quarantine. - EDIT - Modify a quarantine. - DELETE - Remove a quarantine. - VOFMANAGE - Manage the Virus Outbreak Filters quarantine. []> mail3.example.com> commit Users and Quarantines Policy Release Release Delete Delete

Once you answer y or yes to the question about adding users, you begin user management, where you can manage the user list. This lets you add or remove multiple users to the quarantine without having to go through the other quarantine configuration questions. Press Return (Enter) at an empty prompt ([]>) to exit the user management section and continue with configuring the quarantine. Note You will only be prompted to give users access to the quarantine if guest or operator users have already been created on the system. A quarantine's user list only contains users belonging to the Operators or Guests groups. Users in the Administrators group always have full access to the quarantine. When managing the user list, the NEW command is suppressed if all the Operator/Guest users are already on the quarantine's user list. Similarly, DELETE is suppressed if there are no users to delete.

scanconfig
Description

Configure attachment scanning policy


Usage

Commit: This command requires a commit.

192

SCANCONFIG

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 scanconfig command sets these parameters: MIME types of video/*, audio/*, image/* are skipped (not scanned for content). Nested (recursive) archive attachments up to 10 levels are scanned. (The default is 5 levels.) The maximum size for attachments to be scanned is 10 megabytes; anything larger will be skipped. (The default is 5 megabytes.) The document metadata is scannned. Attachment scanning timeout is set at 180 seconds. Attachments that were not scanned are assumed to not match the search pattern. (This is the default behavior.) ASCII encoding is configured for use when none is specified for plain body text or anything with MIME type plain/text or plain/html. Note When setting the assume the attachment matches the search pattern to Y, messages that cannot be scanned will cause the message filter rule to evaluate to true. This could result in unexpected behavior, such as the quarantining of messages that do not match a dictionary, but were quarantined because their content could not be correctly scanned.
Code Example 3-124 Scan Config - Configuring Scan Behavior

mail3.example.com> scanconfig There are currently 5 attachment type mappings configured to be SKIPPED. Choose the operation you want to perform: - NEW - Add a new entry. - DELETE - Remove an entry. - SETUP - Configure scanning behavior. - IMPORT - Load mappings from a file. - EXPORT - Save mappings to a file. - PRINT - Display the list. - CLEAR - Remove all entries. []> setup 1. Scan only attachments with MIME types or fingerprints in the list. 2. Skip attachments with MIME types or fingerprints in the list. Choose one: [2]> 2 Enter the maximum depth of attachment recursion to scan:

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 193

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-124 Scan Config - Configuring Scan Behavior

[5]> 10 Enter the maximum size of attachment to scan: [5242880]> 10m Do you want to scan attachment metadata? [Y]> y Enter the attachment scanning timeout (in seconds): [30]> 180 If a message has attachments that were not scanned for any reason (e.g. because of size, depth limits, or scanning timeout), assume the attachment matches the search pattern? [N]> n If a message could not be deconstructed into its component parts in order to remove specified attachments, the system should: 1. Deliver 2. Bounce 3. Drop [1]> Configure encoding to use when none is specified for plain body text or anything with MIME type plain/text or plain/html. 1. US-ASCII 2. Unicode (UTF-8) 3. Unicode (UTF-16) 4. Western European/Latin-1 (ISO 8859-1) 5. Western European/Latin-1 (Windows CP1252) 6. Traditional Chinese (Big 5) 7. Simplified Chinese (GB 2312) 8. Simplified Chinese (HZ GB 2312) 9. Korean (ISO 2022-KR) 10. Korean (KS-C-5601/EUC-KR) 11. Japanese (Shift-JIS (X0123)) 12. Japanese (ISO-2022-JP) 13. Japanese (EUC) [1]> 1 Scan behavior changed. There are currently 5 attachment type mappings configured to be SKIPPED. Choose the operation you want to perform:

194

STRIPHEADERS

Code Example 3-124 Scan Config - Configuring Scan Behavior

NEW - Add a new entry. DELETE - Remove an entry. SETUP - Configure scanning behavior. IMPORT - Load mappings from a file. EXPORT - Save mappings to a file. PRINT - Display the list. CLEAR - Remove all entries.

[]> print 1. Fingerprint 2. Fingerprint 3. MIME Type 4. MIME Type 5. MIME Type >

Image Media audio/* image/* video/*

stripheaders
Description

Define a list of message headers to remove.


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.

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 195

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Example
Code Example 3-125 stripheaders

mail3.example.com> stripheaders Not currently stripping any headers. Choose the operation you want to perform: - SETUP - Set message headers to remove. []> setup Enter the list of headers you wish to strip from the messages before they are delivered. Separate multiple headers with commas. []> Delivered-To Currently stripping headers: Delivered-To

Choose the operation you want to perform: - SETUP - Set message headers to remove. []> mail3.example.com>

textconfig
Description

Configure text resources such as anti-virus alert templates, message footers, and notification templates.
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

Use textconfig -> NEW to create text resources, and textconfig > delete to remove them.
Code Example 3-126 textconfig - Create Text Resources

mail3.example.com> textconfig There are no text resources currently defined. Choose the operation you want to perform:

196

TEXTCONFIG

Code Example 3-126 textconfig - Create Text Resources (Continued)

- NEW - Create a new text resource. - IMPORT - Import a text resource from a file. []> new What kind of text resource would you like to create? 1. Antivirus Alert Template 2. Message Footer 3. Notification Template [1]> 2 Please create a name for the message footer: []> footer.1 Enter the encoding for the message footer: 1. US-ASCII 2. Unicode (UTF-8) 3. Unicode (UTF-16) 4. Western European/Latin-1 (ISO 8859-1) 5. Western European/Latin-1 (Windows CP1252) 6. Traditional Chinese (Big 5) 7. Simplified Chinese (GB 2312) 8. Simplified Chinese (HZ GB 2312) 9. Korean (ISO 2022-KR) 10. Korean (KS-C-5601/EUC-KR) 11. Japanese (Shift-JIS (X0123)) 12. Japanese (ISO-2022-JP) 13. Japanese (EUC) [1]> Enter or paste the message footer here. Enter '.' on a blank line to end. This message was sent from an IronPort(tm) Messaging Gateway(tm) appliance. . Message footer "footer.1" created. Current Text Resources: 1. footer.1 (Message Footer) Choose the operation you want to perform: - NEW - Create a new text resource. - IMPORT - Import a text resource from a file. - EXPORT - Export text resource to a file. - PRINT - Display the content of a resource.

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 197

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-126 textconfig - Create Text Resources (Continued)

- EDIT - Modify a resource. - DELETE - Remove a resource from the system. []> delete Please enter the name or number of the resource to delete: []> 1 Message footer "footer.1" has been deleted. There are no text resources currently defined. Choose the operation you want to perform: - NEW - Create a new text resource. - IMPORT - Import a text resource from a file. []>

Use textconfig -> EDIT to modify an existing text resource. You can change the encoding or replace the text of the selected text resource.
Importing Text Resources

Use textconfig -> IMPORT to import a text file as a text resource. The text file must be present in the configuration directory on the appliance.
Code Example 3-127 textconfig - Importing a text file as a Text Resource

mail3.example.com> textconfig Current Text Resources: 1. footer.2.message (Message Footer) Choose the operation you want to perform: - NEW - Create a new text resource. - IMPORT - Import a text resource from a file. - EXPORT - Export text resource to a file. - PRINT - Display the content of a resource. - EDIT - Modify a resource. - DELETE - Remove a resource from the system. []> import What kind of text resource would you like to create? 1. Antivirus Alert Template 2. Message Footer 3. Notification Template [1]> 3 Please create a name for the notification template: []> strip.mp3files Enter the name of the file to import:

198

TEXTCONFIG

Code Example 3-127 textconfig - Importing a text file as a Text Resource (Continued)

[]> strip.mp3.txt Enter the encoding to use for the imported file: 1. US-ASCII [ list of encodings ] [1]> Notification template "strip.mp3files" created. Current Text Resources: 1. footer.2.message (Message Footer) 2. strip.mp3files (Notification Template) Choose the operation you want to perform: - NEW - Create a new text resource. - IMPORT - Import a text resource from a file. - EXPORT - Export text resource to a file. - PRINT - Display the content of a resource. - EDIT - Modify a resource. - DELETE - Remove a resource from the system. []> Exporting Text Resources

Use textconfig -> EXPORT to export a text resource as a text file. The text file will be created in the configuration directory on the appliance.
Code Example 3-128 textconfig - Exporting a Text Resource as a Text File

mail3.example.com> textconfig Current Text Resources: 1. footer.2.message (Message Footer) 2. strip.mp3 (Notification Template) Choose the operation you want to perform: - NEW - Create a new text resource. - IMPORT - Import a text resource from a file. - EXPORT - Export text resource to a file. - PRINT - Display the content of a resource. - EDIT - Modify a resource. - DELETE - Remove a resource from the system. []> export Please enter the name or number of the resource to export: []> 2

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 199

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-128 textconfig - Exporting a Text Resource as a Text File (Continued)

Enter the name of the file to export: [strip.mp3]> strip.mp3.txt Enter the encoding to use for the exported file: 1. US-ASCII [ list of encoding types ] [1]> File written on machine "mail3.example.com" using us-ascii encoding. Current Text Resources: 1. footer.2.message (Message Footer) 2. strip.mp3 (Notification Template) Choose the operation you want to perform: - NEW - Create a new text resource. - IMPORT - Import a text resource from a file. - EXPORT - Export text resource to a file. - PRINT - Display the content of a resource. - EDIT - Modify a resource. - DELETE - Remove a resource from the system. []>

200

LOGGING AND ALERTS

L OG G IN G A N D A LE R TS
This section contains the following CLI commands: alertconfig grep logconfig rollovernow snmpconfig tail

alertconfig
Description

Configure email alerts.


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.
Creating a New Alert and Alert Recipient via the CLI

In this example, a new alert recipient ([email protected]) is created and set to receive critical system, hardware, and directory harvest attack alerts. The seconds to wait before sending a duplicate alert is set to 360 and the email From: address is set to [email protected].
Code Example 3-129 alertconfig - Creating a New Alert and Alert Recipient

mail3.example.com> alertconfig Sending alerts to: [email protected] Class: All - Severities: All Seconds to wait before sending a duplicate alert (seconds): 300 Alerts will be sent using the system-default From Address. IronPort AutoSupport: Enabled You will receive a copy of the weekly AutoSupport reports. Choose the operation you want to perform: - NEW - Add a new email address to send alerts.

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 201

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-129 alertconfig - Creating a New Alert and Alert Recipient (Continued)

- EDIT - Modify an email address. - DELETE - Remove an email address. - CLEAR - Remove all email addresses (disable alerts). - SETUP - Configure alert settings. - FROM - Configure the From Address of alert emails. []> new Please enter a new email address to send alerts. (Ex: "[email protected]") []> [email protected] Choose the Alert Classes. Separate multiple choices with commas. 1. All 2. System 3. Hardware 4. Virus Outbreak Filters 5. Anti-Virus 6. Anti-Spam 7. Directory Harvest Attack Prevention [1]> 2,3,7 Select a Severity Level. Separate multiple choices with commas. 1. All 2. Critical 3. Warning 4. Information [1]> 2 Sending alerts to: [email protected] Class: All - Severities: All [email protected] Class: Hardware - Severities: Critical Class: Directory Harvest Attack Prevention - Severities: Critical Class: System - Severities: Critical Seconds to wait before sending a duplicate alert (seconds): 300 Alerts will be sent using the system-default From Address. IronPort AutoSupport: Enabled You will receive a copy of the weekly AutoSupport reports. Choose the operation you want to perform: - NEW - Add a new email address to send alerts. - EDIT - Modify an email address.

202

ALERTCONFIG

Code Example 3-129 alertconfig - Creating a New Alert and Alert Recipient (Continued)

- DELETE - Remove an email address. - CLEAR - Remove all email addresses (disable alerts). - SETUP - Configure alert settings. - FROM - Configure the From Address of alert emails. []> setup Seconds to wait before sending a duplicate alert (seconds): [300]> 360 Would you like to enable IronPort AutoSupport, which automatically emails system alerts and weekly status reports directly to IronPort Customer Care? (Enabling AutoSupport is recommended.) [Y]> Would you like to receive a copy of the weekly AutoSupport reports? [Y]> Sending alerts to: [email protected] Class: All - Severities: All [email protected] Class: Hardware - Severities: Critical Class: Directory Harvest Attack Prevention - Severities: Critical Class: System - Severities: Critical Seconds to wait before sending a duplicate alert (seconds): 360 Alerts will be sent using the system-default From Address. IronPort AutoSupport: Enabled You will receive a copy of the weekly AutoSupport reports. Choose the operation you want to perform: - NEW - Add a new email address to send alerts. - EDIT - Modify an email address. - DELETE - Remove an email address. - CLEAR - Remove all email addresses (disable alerts). - SETUP - Configure alert settings. - FROM - Configure the From Address of alert emails. []> from Alerts will be sent using the system-default From Address. Choose the operation you want to perform: - EDIT - Edit the From Address. []> edit

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 203

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-129 alertconfig - Creating a New Alert and Alert Recipient (Continued)

Please enter the From Address to use for alerts. []> [email protected] Sending alerts to: [email protected] Class: All - Severities: All [email protected] Class: Hardware - Severities: Critical Class: Directory Harvest Attack Prevention - Severities: Critical Class: System - Severities: Critical Seconds to wait before sending a duplicate alert (seconds): 360 Alerts will be sent using this configured From Address: [email protected] IronPort AutoSupport: Enabled You will receive a copy of the weekly AutoSupport reports. Choose the operation you want to perform: - NEW - Add a new email address to send alerts. - EDIT - Modify an email address. - DELETE - Remove an email address. - CLEAR - Remove all email addresses (disable alerts). - SETUP - Configure alert settings. - FROM - Configure the From Address of alert emails. []> mail3.example.com>

grep
Description

Searches for text in a log file.


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. The grep command can be used to search for text strings within logs. Use the following syntax when you run the grep command:
grep [-C count] [-e regex] [-i] [-p] [-t] [regex] log_name

204

GREP

Note You must enter either -e regex or regex to return results. Use the following options when you run the grep command:
Table 3-7 grep Command Options

Option

Description
Provides lines of context around the grep pattern found. Enter a value to specify the number of lines to include. Enter a regular expression. Ignores case sensitivities. Paginates the output. Runs the grep command over the tail of the log file. Enter a regular expression.

-C -e -i -p
-t regex Example of grep

The following example shows a search for the text string clean or viral within the antivirus logs. The grep command includes a regex expression:
Code Example 3-130 grep-Search for Text in a Log File

mail3.example.com> grep "CLEAN\\|VIRAL" antivirus Fri Jun 9 21:50:25 Fri Jun 9 21:53:15 Fri Jun 9 22:47:41 Fri Jun 9 22:47:41 Fri Jun 9 22:47:41 Fri Jun 9 22:47:41 Fri Jun 9 22:47:42 Fri Jun 9 22:53:04 Fri Jun 9 22:53:05 Fri Jun 9 22:53:06 Fri Jun 9 22:53:07 Fri Jun 9 22:53:08 Fri Jun 9 22:53:08 mail3.example.com> 2006 2006 2006 2006 2006 2006 2006 2006 2006 2006 2006 2006 2006 Info: Info: Info: Info: Info: Info: Info: Info: Info: Info: Info: Info: Info: sophos sophos sophos sophos sophos sophos sophos sophos sophos sophos sophos sophos sophos antivirus antivirus antivirus antivirus antivirus antivirus antivirus antivirus antivirus antivirus antivirus antivirus antivirus MID MID MID MID MID MID MID MID MID MID MID MID MID 1 - Result 'CLEAN' () 2 - Result 'CLEAN' () 3 - Result 'CLEAN' () 4 - Result 'CLEAN' () 5 - Result 'CLEAN' () 6 - Result 'CLEAN' () 12 - Result 'CLEAN' () 18 - Result 'VIRAL' () 16 - Result 'VIRAL' () 19 - Result 'VIRAL' () 21 - Result 'VIRAL' () 20 - Result 'VIRAL' () 22 - Result 'VIRAL' ()

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 205

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

logconfig
Description

Configure access to log files.


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 of FTP Push Log Subscription

In the following example, the logconfig command is used to configure a new delivery log called myDeliveryLogs. The log is then configured to be pushed via FTP to a remote host.
Code Example 3-131 logconfig - Configuring a New Delivery Log

mail3.example.com> logconfig

Currently configured logs: 1. "antivirus" Type: "AntiVirus Logs" Retrieval: FTP Poll 2. "avarchive" Type: "AntiVirus Archive" Retrieval: FTP Poll 3. "bounces" Type: "Bounce Logs" Retrieval: FTP Poll 4. "brightmail" Type: "Brightmail Logs" Retrieval: FTP Poll 5. "cli_logs" Type: "CLI Audit Logs" Retrieval: FTP Poll 6. "delivery" Type: "Delivery Logs" Retrieval: FTP Poll 7. "error_logs" Type: "IronPort Text Mail Logs" Retrieval: FTP Poll 8. "ftpd_logs" Type: "FTP Server Logs" Retrieval: FTP Poll 9. "gui_logs" Type: "HTTP Logs" Retrieval: FTP Poll 10. "mail_logs" Type: "IronPort Text Mail Logs" Retrieval: FTP Poll 11. "rptd_logs" Type: "Mailflow Report Logs" Retrieval: FTP Poll 12. "sntpd_logs" Type: "NTP logs" Retrieval: FTP Poll 13. "status" Type: "Status Logs" Retrieval: FTP Poll 14. "system_logs" Type: "System Logs" Retrieval: FTP Poll Choose the operation you want to perform: - NEW - Create a new log. - EDIT - Modify a log subscription. - DELETE - Remove a log subscription. - SETUP - General settings. - LOGHEADERS - Configure headers to log. - HOSTKEYCONFIG - Configure SSH host keys. []> new Choose the log file type for this subscription:

206

LOGCONFIG

Code Example 3-131 logconfig - Configuring a New Delivery Log (Continued)

1. IronPort Text Mail Logs 2. qmail Format Mail Logs 3. Delivery Logs 4. Bounce Logs 5. Status Logs 6. Domain Debug Logs 7. Injection Debug Logs 8. System Logs 9. CLI Audit Logs 10. FTP Server Logs 11. HTTP Logs 12. NTP logs 13. LDAP Debug Logs 14. Context Adaptive Scanning Engine 15. Symantec Brightmail Anti-Spam Logs 16. Anti-Spam Archive 17. Anti-Virus Logs 18. Anti-Virus Archive 19. Scanning Logs [1]> 8 Please enter the name for the log: []> myDeliveryLogs Choose the method to retrieve the logs. 1. FTP Poll 2. FTP Push 3. SCP Push 4. Syslog Push [1]> 2

Hostname to deliver the logs: []> yourhost.example.com Username on the remote host: []> yourusername Password for youruser: []> thepassword Directory on remote host to place logs: []> /logs

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 207

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-131 logconfig - Configuring a New Delivery Log (Continued)

Filename to use for log files: [delivery.log]> Maximum time to wait before transferring: [3600]> Maximum filesize before transferring: [10485760]> Currently configured logs: 1. "antivirus" Type: "AntiVirus Logs" Retrieval: FTP Poll 2. "avarchive" Type: "AntiVirus Archive" Retrieval: FTP Poll 3. "bounces" Type: "Bounce Logs" Retrieval: FTP Poll 4. "brightmail" Type: "Brightmail Logs" Retrieval: FTP Poll 5. "cli_logs" Type: "CLI Audit Logs" Retrieval: FTP Poll 6. "delivery" Type: "Delivery Logs" Retrieval: FTP Poll 7. "error_logs" Type: "IronPort Text Mail Logs" Retrieval: FTP Poll 8. "ftpd_logs" Type: "FTP Server Logs" Retrieval: FTP Poll 9. "gui_logs" Type: "HTTP Logs" Retrieval: FTP Poll 10. "mail_logs" Type: "IronPort Text Mail Logs" Retrieval: FTP Poll 11. "myDeliveryLogs" Type: "Delivery Logs" Retrieval: FTP Push - Host yourhost.example.com 12. "rptd_logs" Type: "Mailflow Report Logs" Retrieval: FTP Poll 13. "sntpd_logs" Type: "NTP logs" Retrieval: FTP Poll 14. "status" Type: "Status Logs" Retrieval: FTP Poll 15. "system_logs" Type: "System Logs" Retrieval: FTP Poll

Example of SCP Push Log Subscription

In the following example, the logconfig command is used to configure a new delivery log called LogPush. The log is configured to be pushed via SCP to a remote host with the IP address of 10.1.1.1, as the user logger, and stored in the directory /tmp. Note that the sshconfig command is automatically called from within the logconfig command when the log retrieval method is SCP push. (See Configuring Host Keys in the IronPort AsyncOS Advanced User Guide for information about Host keys, and Managing Secure Shell (SSH) Keys in the IronPort AsyncOS User Guide for more information about User keys.) Also note that an IP address can be used at the hostname prompt.
Code Example 3-132 logconfig - Creating a SCP Push Delivery Log

mail3.example.com> logconfig Currently configured logs: 1. "antivirus" Type: "AntiVirus Logs" Retrieval: FTP Poll 2. "avarchive" Type: "AntiVirus Archive" Retrieval: FTP Poll 3. "bounces" Type: "Bounce Logs" Retrieval: FTP Poll

208

LOGCONFIG

Code Example 3-132 logconfig - Creating a SCP Push Delivery Log (Continued)

4. "brightmail" Type: "Brightmail Logs" Retrieval: FTP Poll 5. "cli_logs" Type: "CLI Audit Logs" Retrieval: FTP Poll 6. "delivery" Type: "Delivery Logs" Retrieval: FTP Poll 7. "error_logs" Type: "IronPort Text Mail Logs" Retrieval: FTP Poll 8. "ftpd_logs" Type: "FTP Server Logs" Retrieval: FTP Poll 9. "gui_logs" Type: "HTTP Logs" Retrieval: FTP Poll 10. "mail_logs" Type: "IronPort Text Mail Logs" Retrieval: FTP Poll 11. "rptd_logs" Type: "Mailflow Report Logs" Retrieval: FTP Poll 12. "sntpd_logs" Type: "NTP logs" Retrieval: FTP Poll 13. "status" Type: "Status Logs" Retrieval: FTP Poll 14. "system_logs" Type: "System Logs" Retrieval: FTP Poll Choose the operation you want to perform: - NEW - Create a new log. - EDIT - Modify a log subscription. - DELETE - Remove a log subscription. - SETUP - General settings. - LOGHEADERS - Configure headers to log. - HOSTKEYCONFIG - Configure SSH host keys. []> new Choose the log file type for this subscription: 1. IronPort Text Mail Logs 2. qmail Format Mail Logs 3. Delivery Logs 4. Bounce Logs 5. Status Logs 6. Domain Debug Logs 7. Injection Debug Logs 8. System Logs 9. CLI Audit Logs 10. FTP Server Logs 11. HTTP Logs 12. NTP logs 13. Mailflow Report Logs 14. Brightmail Logs 15. Brightmail Archive 16. AntiVirus Logs 17. AntiVirus Archive 18. LDAP Debug Logs [1]> 3 Please enter the name for the log: []> LogPush

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 209

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-132 logconfig - Creating a SCP Push Delivery Log (Continued)

Choose 1. FTP 2. FTP 3. SCP [1]> 3

the method to retrieve the logs. Poll Push Push

Hostname to deliver the logs: []> 10.1.1.1 Username on the remote host: []> logger Directory on remote host to place logs: []> /tmp Filename to use for log files: [delivery.log]> Maximum time to wait before transferring: [3600]> SSH2:dsa 10.1.1.1 ssh-dss AAAAB3NzaC1kc3MAAACBALwGi4IlWLDVndbIwEsArt9LVE2ts5yE9JBTSdUwLvoq0G3FRqifrce9 2zgyHtc/ ZWyXavUTIM3Xd1bpiEcscMp2XKpSnPPx21y8bqkpJsSCQcM8zZMDjnOPm8ghiwHXYh7oNEUJCCPn PxAy44rlJ5Yz4x9eIoALp0dHU0GR+j1NAAAAFQDQi5GY/ X9PlDM3fPMvEx7wc0edlwAAAIB9cgMTEFP1WTAGrlRtbowZP5zWZtVDTxLhdXzjlo4+bB4hBR7DK uc80+naAFnThyH/J8R3WlJVF79M5geKJbXzuJGDK3Zwl3UYefPqBqXp2O1zLRQSJYx1WhwYz/ rooopN1BnF4sh12mtq3tde1176bQgtwaQA4wKO15k3zOWsPwAAAIAicRYat3y+Blv/ V6wdE6BBk+oULv3eK38gafuip4WMBxkG9GO6EQi8nss82oznwWBy/ pITRQfh4MBmlxTF4VEY00sARrlZtuUJC1QGQvCgh7Nd3YNais2CSbEKBEaIOTF6+SX2RNpcUF3Wg 5ygw92xtqQPKMcZeLtK2ZJRkhC+Vw== Add the preceding host key(s) for 10.1.1.1? [Y]> y

Currently installed host keys: 1. 10.1.1.1 1024 35 12260642076447444117847407996206675325...3520565607 2. 10.1.1.1 ssh-dss AAAAB3NzaC1kc3MAAACBALwGi4IlWLDVndbIwE...JRkhC+Vw== Choose the operation you want to perform: - NEW - Add a new key. - EDIT - Modify a key. - DELETE - Remove a key.

210

LOGCONFIG

Code Example 3-132 logconfig - Creating a SCP Push Delivery Log (Continued)

- SCAN - Automatically download a host key. - PRINT - Display a key. - HOST - Display this machine's host keys. []> Maximum filesize before transferring: [10485760]> Protocol: 1. SSH1 2. SSH2 [2]> 2 Do you want to enable host key checking? Currently installed host keys: Choose the operation you want to perform: - NEW - Add a new key. - SCAN - Automatically download a host key. - HOST - Display this machine's host keys. []> scan Choose the ssh protocol type: 1. SSH1:rsa 2. SSH2:rsa 3. SSH2:dsa 4. All [4]> 4 [N]> y

SSH1:rsa 10.1.1.1 1024 35 1226064207644744411784740799620667532592786826489658706901294960654304244630 1345729479898062782982803379315222644869451431621827281445398693161250828232 8008815740072109975632356478532128816187806830746328234327778100131128176672 6662445111917837479658980008559470224846920794666977073739488715545751735205 65607

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 211

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Example of Syslog Push Log Subscription

In the following example, the logconfig command is used to configure a new delivery log called MailLogSyslogPush. The log is configured to be pushed to a remote syslog server with the IP address of 10.1.1.2, using UPD, with a mail facilityand stored in the directory.
Code Example 3-133 logconfig - Creating a SCP Push Delivery Log

mail3.example.com> logconfig Currently configured logs: 1. "antivirus" Type: "AntiVirus Logs" Retrieval: FTP Poll 2. "avarchive" Type: "AntiVirus Archive" Retrieval: FTP Poll 3. "bounces" Type: "Bounce Logs" Retrieval: FTP Poll 4. "brightmail" Type: "Brightmail Logs" Retrieval: FTP Poll 5. "cli_logs" Type: "CLI Audit Logs" Retrieval: FTP Poll 6. "delivery" Type: "Delivery Logs" Retrieval: FTP Poll 7. "error_logs" Type: "IronPort Text Mail Logs" Retrieval: FTP Poll 8. "ftpd_logs" Type: "FTP Server Logs" Retrieval: FTP Poll 9. "gui_logs" Type: "HTTP Logs" Retrieval: FTP Poll 10. "mail_logs" Type: "IronPort Text Mail Logs" Retrieval: FTP Poll 11. "rptd_logs" Type: "Mailflow Report Logs" Retrieval: FTP Poll 12. "sntpd_logs" Type: "NTP logs" Retrieval: FTP Poll 13. "status" Type: "Status Logs" Retrieval: FTP Poll 14. "system_logs" Type: "System Logs" Retrieval: FTP Poll Choose the operation you want to perform: - NEW - Create a new log. - EDIT - Modify a log subscription. - DELETE - Remove a log subscription. - SETUP - General settings. - LOGHEADERS - Configure headers to log. - HOSTKEYCONFIG - Configure SSH host keys.

212

LOGCONFIG

Code Example 3-133 logconfig - Creating a SCP Push Delivery Log (Continued)

[]> new Choose the log file type for this subscription: 1. IronPort Text Mail Logs 2. qmail Format Mail Logs 3. Delivery Logs 4. Bounce Logs 5. Status Logs 6. Domain Debug Logs 7. Injection Debug Logs 8. System Logs 9. CLI Audit Logs 10. FTP Server Logs 11. HTTP Logs 12. NTP logs 13. LDAP Debug Logs 14. Context Adaptive Scanning Engine 15. Symantec Brightmail Anti-Spam Logs 16. Anti-Spam Archive 17. Anti-Virus Logs 18. Anti-Virus Archive 19. Scanning Logs [1]> 1 Please enter the name for the log: []> MailLogSyslogPush Log level: 1. Critical 2. Warning 3. Information 4. Debug 5. Trace [3]> 2 Choose the method to retrieve the logs. 1. FTP Poll 2. FTP Push 3. SCP Push 4. Syslog Push [1]> 4 Hostname to deliver the logs: []> 10.1.1.2 Which protocol do you want to use to transfer the log data? 1. UDP 2. TCP [1]> 1
C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 213

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-133 logconfig - Creating a SCP Push Delivery Log (Continued)

Which facility do you want the log data to be sent as? 1. auth 2. authpriv 3. console 4. daemon 5. ftp 6. local0 7. local1 8. local2 9. local3 10. local4 11. local5 12. local6 13. local7 14. mail 15. ntp 16. security 17. user [14]> 14 Currently configured logs: 1. "MailLogSyslogPush" Type: "IronPort Text Mail Logs" Retrieval: Syslog Push Host 10.1.1.2

rollovernow
Description

Roll over a log file.


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.

214

SNMPCONFIG

Example
Code Example 3-134 rollovernow

mail3.example.com> rollovernow

Currently configured logs: 1. "LogPush" Module: mail Format: Delivery Logs Retrieval: SCP Push - Host 10.1.1.1 2. "antivirus" Module: thirdparty Format: AntiVirus Retrieval: FTP Poll 3. "avarchive" Module: mail Format: AntiVirus Archive Retrieval: FTP Poll 4. "bounces" Module: mail Format: Bounces Retrieval: FTP Poll 5. "brightmail" Module: thirdparty Format: Brightmail Retrieval: FTP Poll 6. "cli_logs" Module: system Format: CLI Audit Logs Retrieval: FTP Poll 7. "delivery" Module: mail Format: Delivery Logs Retrieval: FTP Poll 8. "error_logs" Module: mail Format: IronPort Text Retrieval: FTP Poll 9. "ftpd_logs" Module: ftpd Format: IronPort Text Retrieval: FTP Poll 10. "gui_logs" Module: gui Format: IronPort Text Retrieval: FTP Poll 11. "mail_logs" Module: mail Format: IronPort Text Retrieval: FTP Poll 12. "rptd_logs" Module: rptd Format: IronPort Text Retrieval: FTP Poll 13. "sntpd_logs" Module: sntpd Format: IronPort Text Retrieval: FTP Poll 14. "status" Module: mail Format: Status Logs Retrieval: FTP Poll 15. "system_logs" Module: system Format: IronPort Text Retrieval: FTP Poll 16. All Logs Which log would you like to roll over? []> 2 Log files successfully rolled over. mail3.example.com>

snmpconfig
Description

Configure SNMP.
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 snmpconfig command is used to enable SNMP on the PublicNet interface on port 161. A passphrase for version 3 is entered and then re-entered for confirmation. The system is configured to service version 1 and 2 requests, and the community string public is entered for GET requests from those versions 1 and 2. The trap

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 215

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

target of snmp-monitor.example.com is entered. Finally, system location and contact information is entered.
Code Example 3-135 snmpconfig

mail3.example.com> snmpconfig Current SNMP settings: SNMP Disabled. Choose the operation you want to perform: - SETUP - Configure SNMP. []> setup Do you want to enable SNMP? [N]> y Please choose an IP interface for SNMP requests. 1. Data 1 (192.168.1.1/24: buttercup.run) 2. Data 2 (192.168.2.1/24: buttercup.run) 3. Management (192.168.44.44/24: buttercup.run) [1]> Enter the SNMPv3 passphrase. > Please enter the SNMPv3 passphrase again to confirm. > Which port shall the SNMP daemon listen on? [161]> Service SNMP V1/V2c requests? [N]> y Enter the SNMP V1/V2c community string. []> public From which network shall SNMP V1/V2c requests be allowed? [192.168.2.0/24]> Enter the Trap target (IP address). Enter "None" to disable traps. [None]> snmp-monitor.example.com Enterprise Trap Status 1. RAIDStatusChange 2. fanFailure 3. highTemperature 4. keyExpiration 5. linkDown 6. linkUp 7. powerSupplyStatusChange

Enabled Enabled Enabled Enabled Enabled Enabled Enabled

216

TAIL

Code Example 3-135 snmpconfig (Continued)

8. resourceConservationMode Enabled 9. updateFailure Enabled Do you want to change any of these settings? [N]> y Do you want to disable any of these traps? [Y]> Enter number or numbers of traps to disable. Separate multiple numbers with commas. []> 1,8 Enterprise Trap Status 1. RAIDStatusChange Disabled 2. fanFailure Enabled 3. highTemperature Enabled 4. keyExpiration Enabled 5. linkDown Enabled 6. linkUp Enabled 7. powerSupplyStatusChange Enabled 8. resourceConservationMode Disabled 9. updateFailure Enabled Do you want to change any of these settings? [N]> Enter the System Location string. [Unknown: Not Yet Configured]> Network Operations Center - west; rack #31, position 2 Enter the System Contact string. [snmp@localhost]> Joe Administrator, x8888 Current SNMP settings: Listening on interface "Data 1" 192.168.2.1/24 port 161. SNMP v3: Enabled. SNMP v1/v2: Enabled, accepting requests from subnet 192.168.2.0/24. SNMP v1/v2 Community String: public Trap target: snmp-monitor.example.com Location: Network Operations Center - west; rack #31, position 2 System Contact: Joe Administrator, x8888 mail3.example.com>

tail
Description

Continuously display the end of a log file. The tail command also accepts the name or number of a log to view as a parameter: tail 9 or tail mail_logs.

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 217

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

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
Code Example 3-136 tail

mail3.example.com> tail Currently configured logs: 1. "antivirus" Module: thirdparty Format: AntiVirus 2. "avarchive" Module: mail Format: AntiVirus Archive 3. "bounces" Module: bounces Format: Bounces 4. "brightmail" Module: thirdparty Format: Brightmail 5. "cli_logs" Module: system Format: CLI Audit Logs 6. "error_logs" Module: mail Format: IronPort Text 7. "ftpd_logs" Module: ftpd Format: IronPort Text 8. "gui_logs" Module: gui Format: IronPort Text 9. "mail_logs" Module: mail Format: IronPort Text 10. "rptd_logs" Module: rptd Format: IronPort Text 11. "sntpd_logs" Module: sntpd Format: IronPort Text 12. "status" Module: mail Format: Status Logs 13. "system_logs" Module: system Format: IronPort Text Enter the number of the log you wish to tail. []> 11 Press Ctrl-C to stop. Sat May 15 12:25:10 2004 Info: PID 274: User system commit changes: Automated Update for Quarantine Delivery Host Sat May 15 23:18:10 2004 Info: PID 19626: User admin commit changes: Sat May 15 23:18:10 2004 Info: PID 274: User system commit changes: Updated filter logs config Sat May 15 23:46:06 2004 Info: PID 25696: User admin commit changes: Receiving suspended. Sat May 15 23:46:06 2004 Info: PID 25696: User admin commit changes: Suspended receiving. Sat May 15 23:46:35 2004 Info: PID 25696: User admin commit changes: Receiving resumed. Sat May 15 23:46:35 2004 Info: PID 25696: User admin commit changes: Receiving resumed. Sat May 15 23:48:17 2004 Info: PID 25696: User admin commit changes: Sun May 16 00:00:00 2004 Info: Generated report: name b, start time Sun May 16 00:00:00 2004, size 2154 bytes

218

TAIL

Code Example 3-136 tail (Continued)

^Cmail3.example.com>

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 219

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

SE ND ER BA SE
This section contains the following CLI commands: sbstatus senderbaseconfig

sbstatus
Description

Display status of SenderBase queries.


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
Code Example 3-137 sbstatus - Success

mail3.example.com> sbstatus SenderBase host status Status as of: Tue Oct 21 10:55:04 2003 Host up/down: up

If the IronPort appliance is unable to contact the SenderBase Reputation Service, or the service has never been contacted, the following is displayed:
Code Example 3-138 sbstatus - Failure

mail3.example.com> sbstatus SenderBase host status Host up/down: Unknown (never contacted)

senderbaseconfig
Description

Configure SenderBase connection settings.


Usage

Commit: This command requires a commit. Cluster Management: This command can be used in all three machine modes (cluster, group, machine).

220

SENDERBASECONFIG

Batch Command: This command does not support a batch format.


Example
Code Example 3-139 senderbaseconfig

ail3.example.com> senderbaseconfig Share statistics with SenderBase Information Service: Enabled Choose the operation you want to perform: - SETUP - Configure SenderBase Network Participation settings []> setup Do you want to share statistical data with the SenderBase Information Service (recommended)? [Y]> Share statistics with SenderBase Information Service: Enabled Choose the operation you want to perform: - SETUP - Configure SenderBase Network Participation settings []>

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 221

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

S M T P S E R VI C E S C O N F IG U R A T I O N
This section contains the following CLI commands: listenerconfig localeconfig smtpauthconfig

listenerconfig
Description

The listenerconfig command allows you to create, edit, and delete a listener. IronPort AsyncOS requires that you specify criteria that messages must meet in order to be accepted and then relayed to recipient hosts either internal to your network or to external recipients on the Internet. These qualifying criteria are defined in listeners; collectively, they define and enforce your mail flow policies. Listeners also define how the IronPort appliance communicates with the system that is injecting email.
Table 3-8 listenerconfig Commands

Name

Unique nickname you supply for the listener, for future reference. The names you define for listeners are case-sensitive. AsyncOS does not allow you to create two identical listener names. Listeners are assigned to IP interfaces. All IP interfaces must be configured using the systemstartup command or the interfaceconfig command before you create and assign a listener to it. The mail protocol is used for email receiving: either ESMTP or QMQP The specific IP port used for connections to the listener. by default SMTP uses port 25 and QMQP uses port 628.

IP Interface

Mail protocol IP Port

222

LISTENERCONFIG

Table 3-8 listenerconfig Commands

Listener Type:

Public Private

Public and private listeners are used for most configurations. By convention, private listeners are intended to be used for private (internal) networks, while public listeners contain default characteristics for receiving email from the Internet. Blackhole listeners can be used for testing or troubleshooting purposes. When you create a blackhole listener, you choose whether messages are written to disk or not before they are deleted. (See Chapter 9, Testing and Troubleshooting of the AsyncOS Advanced User Guide for more information.

Blackhole

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 - General listenerconfig

The batch format of the listenerconfig command can be used to add and delete listeners on a particular interface. The batch format of the listenerconfig command also allows you to configure a listeners HAT and RAT. Adding a new listener:
listenerconfig new <name> <public|private|blackhole|blackholequeueing> <interface_name> <smtp|qmqp>

Deleting a listener:
listenerconfig delete <name> Batch Format - HAT

The following examples demonstrate the use of the batch format of listenerconfig to perform various HAT-related tasks. For more information about arguments, consult Table 3-9, listenerconfig Argument Values -HAT, on page 225 Adding a new sendergroup to the HAT
listenerconfig edit <name> hostaccess new sendergroup <name> <host_list> <behavior> [options [--comments]

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 223

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Add a new policy to the HAT


listenerconfig edit <name> hostaccess new policy <name> <behavior> [options]

Add a new host list to a sendergroup


listenerconfig edit sendergroup <name> hostaccess edit sendergroup <name> new <host_list>

Delete a host from a sendergroup


listenerconfig edit sendergroup <name> hostaccess edit sendergroup <name> delete <host>

Move a host in a sendergroups list order


listenerconfig edit sendergroup <name> hostaccess edit sendergroup <name> move <host> <host-to-insert-before>

Modify a sendergroups policy


listenerconfig edit sendergroup <name> hostaccess edit sendergroup <name> policy <behavior> [options]

Print a sendergroup listing


listenerconfig edit <name> hostaccess edit sendergroup <name> print

Rename a sendergroup
listenerconfig edit sendergroup <name> hostaccess edit sendergroup <name> rename <name>

Editing a HATs policy


listenerconfig edit <name> hostaccess edit policy <name> <behavior> [options]

Deleting a sendergroup from a HAT


listenerconfig edit <name> hostaccess delete sendergroup <name>

Deleting a policy
listenerconfig edit <name> hostaccess delete policy <name>

224

LISTENERCONFIG

Moving a sendergroups position in the HAT


listenerconfig edit <name> hostaccess move <group> <group-toinsert-before>

Changing a HAT default option


listenerconfig edit <name> hostaccess default [options]

Printing the hostaccess table


listenerconfig edit <name> hostaccess print

Import a local copy of a HAT


listenerconfig edit <name> hostaccess import <filename>

Exporting a copy of the HAT from the IronPort appliance


listenerconfig edit <name> hostaccess export <filename>

Deleting all user defined sendergroups and policies from the HAT
listenerconfig edit <name> hostaccess clear
Table 3-9 listenerconfig Argument Values -HAT

Argument <behavior>

Description
Accept, Relay, Reject, TCP Refuse, or Continue. When selecting a behavior for use with a sendergroup, additional behaviors of the form Policy: FOO are available (where FOO is the name of policy). The filename to use with importing and exporting the hostaccess tables. A sendergroup <name>. A single entity of a <host_list>

<filename> <group> <host>

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 225

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Table 3-9 listenerconfig Argument Values -HAT

<host_list>

Enter the hosts to add. Hosts can be formatted as follows: CIDR addresses (10.1.1.0/24) IP address ranges (10.1.1.10-20) IP Subnets (10.2.3) Hostname (crm.example.com) Partial Hostname (.example.com) Sender Base Reputation Score range (7.5:10.0) Senderbase Network Owner IDS (SBO:12345) Remote blacklist queries (dnslist[query.blacklist.example] NOTE: Separate multiple hosts with commas

<name>

The name of the sendergroup or policy. HAT labels must start with a letter or underscore, followed by any number of letters, numbers, underscores or hyphens.

226

LISTENERCONFIG

Table 3-9 listenerconfig Argument Values -HAT

[options]

--max_size --max_conn --max_msgs --max_rcpt --override --cust_acc --acc_code --cust_rej --rej_code --rate_lim --cust_lim --lim_code --use_sb --as_scan --av_scan

Maximum message size. Add a trailing k for kilobytes, M for megabytes, or no letters for bytes. Maximum number of connections allowed from a single host. Maximum number of messages per connection. Maximum number of recipients per message. Override the hostname in the SMTP banner. No or SMTP banner string. Specify a custom SMTP acceptance response. No or SMTP acceptance response string. Custom SMTP acceptance response code. Default is 220. Specify a custom SMTP rejection response. No or SMTP rejection response string. Custom SMTP rejection response code. Default is 554. Enable rate limiting per host. No, default or maximum number of recipients per hour per host. Specify a custom SMTP limit exceeded response message. No or SMTP rejection response string. Default is No. Custom SMTP limit exceeded response code. Default is 452. Use SenderBase for flow control by default. Yes, No, or default. Enable anti-spam scanning. Yes, No, Default. Enable anti-virus scanning. Yes, No, Default.

--dhap

Directory Harvest Attack Prevention. No, default, or maximum number of invalid recipients per hour from a remote host. Not supported; use menuing system to configure TLS. Number of bits of IP address to treat as significant. From 0 to 32, No or default.

--tls --sig_bits

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 227

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Batch Format - RAT

The following examples demonstrate the use of the batch format of listenerconfig to perform various RAT-related tasks. For more information about arguments, consult Table 3-10, listenerconfig Argument Values - RAT, on page 228 Adding a new recipient to the RAT
listenerconfig edit <name> rcptacess new <rat_addr> [options]

Editing a recipient in the RAT


listenerconfig edit <name> rcptacess edit <rat_addr> [options]

Deleting a recipient from the RAT


listenerconfig edit <name> rcptacess delete <rat_addr>

Printing a copy of the RAT


listenerconfig edit <name> rcptacess print

Importing a local RAT to your IronPort appliance


listenerconfig edit <name> rcptacess import <filename>

Exporting a RAT
listenerconfig edit <name> rcptacess export <filename>

Clearing the default access


listenerconfig edit <name> rcptacess clear <default_access>
Table 3-10 listenerconfig Argument Values - RAT

Argument <rat_addr>

Description
Enter the hosts to add. Hosts can be formatted as follows: CIDR addresses (10.1.1.0/24) Hostname (crm.example.com) Partial Hostname (.example.com) Usernames (postmaster@) Full email addresses ([email protected], joe@[1.2.3.4] NOTE: Separate multiple hosts with commas

228

LISTENERCONFIG

Table 3-10 listenerconfig Argument Values - RAT

<options>

--action --cust_resp --resp_code --bypass_rc

Action to apply to address(es). Either Accept or Reject. Default is Accept. Specify a custom SMTP response. No or SMTP acceptance response string. Custom SMTP response code. Default is 250 for Accept actions, 550 for Reject. Bypass receiving control. Default is No.

Example - Adding a listener

In the following example, the listenerconfig command is used to create a new private listener called OutboundMail that can be used for the B listener needed in the Enterprise Gateway configuration. (Note: you also had the option to add this private listener during the GUIs System Setup Wizard CLI systemsetup command.) A private listener type is chosen and named OutboundMail. It is specified to run on the PrivateNet IP interface, using the SMTP protocol over port 25. The default values for the Host Access Policy for this listener are then accepted.
Code Example 3-140 listenerconfig - Adding a listener

mail3.example.com> listenerconfig Currently configured listeners: 1. InboundMail (on PublicNet, 192.168.2.1) SMTP TCP Port 25 Public Choose the operation you want to perform: - NEW - Create a new listener. - EDIT - Modify a listener. - DELETE - Remove a listener. - SETUP - Change global settings. []> new Please select the type of listener you want to create. 1. Private 2. Public 3. Blackhole [2]> 1 Please create a name for this listener (Ex: "OutboundMail"): []> OutboundMail Please choose an IP interface for this Listener. 1. Management (192.168.42.42/24: mail3.example.com) 2. PrivateNet (192.168.1.1/24: mail3.example.com)

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 229

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-140 listenerconfig - Adding a listener (Continued)

3. PublicNet (192.168.2.1/24: mail3.example.com) [1]> 2 Choose a protocol. 1. SMTP 2. QMQP [1]> 1 Please enter the TCP port for this listener. [25]> 25

Please specify the systems allowed to relay email through the IronPort C60. Hostnames such as "example.com" are allowed. Partial hostnames such as ".example.com" are allowed. IP addresses, IP address ranges, and partial IP addresses are allowed. Separate multiple entries with commas. []> .example.com Do you want to enable rate limiting for this listener? (Rate limiting defines the maximum number of recipients per hour you are willing to receive from a remote domain.) [N]> n Default Policy Parameters ========================== Maximum Message Size: 100M Maximum Number Of Connections From A Single IP: 600 Maximum Number Of Messages Per Connection: 10,000 Maximum Number Of Recipients Per Message: 100,000 Maximum Number Of Recipients Per Hour: Disabled Use SenderBase for Flow Control: No Spam Detection Enabled: No Virus Detection Enabled: Yes Allow TLS Connections: No Allow SMTP Authentication: No Require TLS To Offer SMTP authentication: No Would you like to change the default host access policy? [N]> n Listener OutboundMail created. Defaults have been set for a Private listener. Use the listenerconfig->EDIT command to customize the listener. Currently configured listeners: 1. InboundMail (on PublicNet, 192.168.2.1) SMTP TCP Port 25 Public 2. OutboundMail (on PrivateNet, 192.168.1.1) SMTP TCP Port 25 Private

230

LISTENERCONFIG

Code Example 3-140 listenerconfig - Adding a listener (Continued)

Choose the operation you want to perform: - NEW - Create a new listener. - EDIT - Modify a listener. - DELETE - Remove a listener. - SETUP - Change global settings. []> Example - Customizing the Host Acess Table (HAT ) for a listener via Export and Import

Many of the subcommands within the listenerconfig command allow you to import and export data in order to make large configuration changes without having to enter data piecemeal in the CLI. These steps use the CLI to modify the Host Access Table (HAT) of a listener by exporting, modifying, and importing a file. You can also use the HAT CLI editor or the GUI to customize the HAT for a listener. For more information, see the Configuring the Gateway to Receive Mail and Using Mail Flow Monitor chapters in the IronPort AsyncOS User Guide. To customize a HAT for a listener you have defined via export and import: 1. Use the hostaccess -> export subcommands of listenerconfig to export the default HAT to a file. In the following example, the HAT for the public listener InboundMail is printed, and then exported to a file named inbound.HAT.txt
Code Example 3-141 listenerconfig - Exporting the HAT

mail3.example.com> listenerconfig

Currently configured listeners: 1. InboundMail (on PublicNet, 192.168.2.1) SMTP TCP Port 25 Public 2. OutboundMail (on PrivateNet, 192.168.1.1) SMTP TCP 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. []> 1 Name: InboundMail Type: Public Interface: PublicNet (192.168.2.1/24) TCP Port 25 Protocol: SMTP Default Domain:

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 231

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-141 listenerconfig - Exporting the HAT

Max Concurrency: 1000 (TCP Queue: 50) Domain map: disabled TLS: No SMTP Authentication: Disabled Bounce Profile: Default Use SenderBase For Reputation Filters and IP Profiling: Yes 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. - 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 Default Policy Parameters ================= Allow TLS Connections: No Allow SMTP Authentication: No Require TLS To Offer SMTP authentication: No Maximum Concurrency Per IP: 1,000 Maximum Message Size: 100M Maximum Messages Per Connection: 1,000 Maximum Recipients Per Message: 1,000 Maximum Recipients Per Hour: Disabled Use SenderBase For Flow Control: Yes Spam Detection Enabled: Yes Virus Detection Enabled: Yes 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. - MOVE - Move an entry. - DEFAULT - Set the defaults.

232

LISTENERCONFIG

Code Example 3-141 listenerconfig - Exporting the HAT

- PRINT - Display the table. - IMPORT - Import a table from a file. - EXPORT - Export the table to a file. - CLEAR - Remove all entries. []> print $BLOCKED REJECT {} $TRUSTED ACCEPT { tls = "off" dhap_limit = 0 max_rcpts_per_hour = -1 virus_check = "on" max_msgs_per_session = 5000 spam_check = "off" use_sb = "off" max_message_size = 104857600 max_rcpts_per_msg = 5000 max_concurrency = 600 } $ACCEPTED ACCEPT {} $THROTTLED ACCEPT { tls = "off" dhap_limit = 0 max_rcpts_per_hour = 1 virus_check = "on" max_msgs_per_session = 10 spam_check = "on" use_sb = "on" max_message_size = 1048576 max_rcpts_per_msg = 25 max_concurrency = 10 } WHITELIST: $TRUSTED (My trusted senders have no Brightmail or rate limiting) BLACKLIST: $BLOCKED (Spammers are rejected) SUSPECTLIST: $THROTTLED (Suspicious senders are throttled)

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 233

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-141 listenerconfig - Exporting the HAT

UNKNOWNLIST: $ACCEPTED (Reviewed but undecided, continue normal acceptance) ALL $ACCEPTED (Everyone else) Default Policy Parameters ========================= Allow TLS Connections: No Allow SMTP Authentication: No Require TLS To Offer SMTP authentication: No Maximum Concurrency Per IP: 1,000 Maximum Message Size: 100M Maximum Messages Per Connection: 1,000 Maximum Recipients Per Message: 1,000 Maximum Recipients Per Hour: Disabled Use SenderBase For Flow Control: Yes Spam Detection Enabled: Yes Virus Detection Enabled: Yes 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. - 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. []> export Enter a name for the exported file: []> inbound.HAT.txt File written on machine "mail3.example.com".

2. Outside of the Command Line Interface (CLI), get the file inbound.HAT.txt. 3. With a text editor, create new HAT entries in the file.

234

LISTENERCONFIG

In this example, the following entries are added to the HAT above the ALL entry:
spamdomain.com .spamdomain.com 251.192.1. 169.254.10.10 REJECT REJECT TCPREFUSE RELAY

The first two entries reject all connections from the remote hosts in the domain spamdomain.com and any subdomain of spamdomain.com. The third line refuses connections from any host with an IP address of 251.192.1.x. The fourth line allows the remote host with the IP address of 169.254.10.10 to use the IronPort appliance as an SMTP relay for all of its outbound email to the Internet Note The order that rules appear in the HAT is important. The HAT is read from top to bottom for each host that attempts to connect to the listener. If a rule matches a connecting host, the action is taken for that connection immediately. You should place all custom entries in the HAT above an ALL host definition. You can also use the HAT CLI editor or the GUI to customize the HAT for a listener. For more information, see the Configuring the Gateway to Receive Mail and Using Mail Flow Monitor chapters in the IronPort AsyncOS User Guide. 4. Save the file and place it in the configuration directory for the interface so that it can be imported. (See Appendix B, Accessing the Appliance, for more information.) 5. Use the hostaccess -> import subcommand of listenerconfig to import the edited Host Access Table file. In the following example, the edited file named inbound.HAT.txt is imported into the HAT for the InboundMail listener. The new entries are printed using the print subcommand.
Code Example 3-142 listnerconfig - Importing the HAT

mail3.example.com> listenerconfig

Currently configured listeners: 1. InboundMail (on PublicNet, 192.168.2.1) SMTP TCP Port 25 Public 2. OutboundMail (on PrivateNet, 192.168.1.1) SMTP TCP 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

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 235

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-142 listnerconfig - Importing the HAT (Continued)

Enter the name or number of the listener you wish to edit. []> 1 Name: InboundMail Type: Public Interface: PublicNet (192.168.2.1/24) TCP Port 25 Protocol: SMTP Default Domain: Max Concurrency: 1000 (TCP Queue: 50) Domain Map: Disabled TLS: No SMTP Authentication: Disabled Bounce Profile: Default Use SenderBase For Reputation Filters and IP Profiling: Yes 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. - 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 Default Policy Parameters ========================= Allow TLS Connections: No Allow SMTP Authentication: No Require TLS To Offer SMTP authentication: No Maximum Concurrency Per IP: 1,000 Maximum Message Size: 100M Maximum Messages Per Connection: 1,000 Maximum Recipients Per Message: 1,000 Maximum Recipients Per Hour: Disabled Use SenderBase For Flow Control: Yes Spam Detection Enabled: Yes Virus Detection Enabled: Yes There are currently 4 policies defined.

236

LISTENERCONFIG

Code Example 3-142 listnerconfig - Importing the HAT (Continued)

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. - 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. []> import Enter the name of the file to import: []> inbound.HAT.txt 9 entries imported successfully. Default Policy Parameters ========================= Allow TLS Connections: No Allow SMTP Authentication: No Require TLS To Offer SMTP authentication: No Maximum Concurrency Per IP: 1,000 Maximum Message Size: 100M Maximum Messages Per Connection: 1,000 Maximum Recipients Per Message: 1,000 Maximum Recipients Per Hour: Disabled Use SenderBase For Flow Control: Yes Spam Detection Enabled: Yes Virus Detection Enabled: Yes 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. - 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.

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 237

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-142 listnerconfig - Importing the HAT (Continued)

- CLEAR - Remove all entries. []> print $ACCEPTED ACCEPT $THROTTLED ACCEPT { spam_check = "on" max_msgs_per_session = 10 max_concurrency = 10 max_rcpts_per_msg = 25 max_rcpts_per_hour = 1 dhap_limit = 0 virus_check = "on" max_message_size = 1048576 use_sb = "on" tls = "off" } $TRUSTED ACCEPT { spam_check = "off" max_msgs_per_session = 5000 max_concurrency = 600 max_rcpts_per_msg = 5000 max_rcpts_per_hour = -1 dhap_limit = 0 virus_check = "on" max_message_size = 104857600 use_sb = "off" tls = "off" } $BLOCKED REJECT WHITELIST: $TRUSTED (My trusted senders have no Brightmail or rate limiting) BLACKLIST: $BLOCKED (Spammers are rejected) SUSPECTLIST: $THROTTLED (Suspicious senders are throttled) UNKNOWNLIST: $ACCEPTED (Reviewed but undecided, continue normal acceptance)

238

LISTENERCONFIG

Code Example 3-142 listnerconfig - Importing the HAT (Continued)

spamdomain.com REJECT (reject the domain "spamdomain.com") .spamdomain.com REJECT (reject all subdomains of ".spamdomain.com") 251.192.1. TCPREFUSE (TCPREFUSE the IP addresses in "251.192.1") 169.254.10.10 RELAY (RELAY the address 169.254.10.10) ALL $ACCEPTED (Everyone else)

Default Policy Parameters ========================= Allow TLS Connections: No Allow SMTP Authentication: No Require TLS To Offer SMTP authentication: No Maximum Concurrency Per IP: 1,000 Maximum Message Size: 100M Maximum Messages Per Connection: 1,000 Maximum Recipients Per Message: 1,000 Maximum Recipients Per Hour: Disabled Use SenderBase For Flow Control: Yes Spam Detection Enabled: Yes Virus Detection Enabled: Yes 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. - 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.

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 239

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-142 listnerconfig - Importing the HAT (Continued)

[]>

Remember to issue the commit command after you import so that the configuration change takes effect.
Example

Table 3-11 defines the syntax of advanced HAT parameters. Note that for the values below which are numbers, you can add a trailing k to denote kilobytes or a trailing M to denote megabytes. Values with no letters are considered bytes. Parameters marked with an asterisk support the variable syntax shown in Table 3-11
Table 3-11 Advanced HAT Parameter Syntax

Parameter
Maximum messages per connection Maximum recipients per message Maximum message size Maximum concurrent connections allowed to this listener SMTP Banner Code SMTP Banner Text (*) SMTP Reject Banner Code SMTP Reject Banner Text (*) Override SMTP Banner Hostname

Syntax max_msgs_per_session max_rcpts_per_msg max_message_size max_concurrency

Values
Number Number Number Number

Example Values 1000 10000 1k 1048576 20M 1000

smtp_banner_code smtp_banner_text smtp_banner_code smtp_banner_text use_override_hostname

Number String Number String

220 Accepted 550 Rejected default

on | off | default
String

override_hostname
Use TLS Use Brightmail Use Sophos virus scanning Maximum Recipients per Hour

newhostname on off off 5k

tls spam_check virus_check max_rcpts_per_hour

on | off | required on | off on | off


Number

240

LOCALECONFIG

Table 3-11 Advanced HAT Parameter Syntax

Parameter
Maximum Recipients per Hour Error Code Maximum Recipients per Hour Text (*) Use SenderBase

Syntax max_rcpts_per_hour_code max_rcpts_per_hour_text use_sb sbrs[value1:value2]

Values
Number String

Example Values 452 Too many recipients on sbrs[-10:-7.5]

on | off -10.0- 10.0


Number

Define SenderBase Reputation Score


Directory Harvest Attack Prevention: Maximum Invalid Recipients Per Hour

dhap_limit

150

localeconfig
Description

Configure multi-lingual 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 does not support a batch format.

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 241

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Example
Code Example 3-143 localeconfig

mail3.example.com> localeconfig Behavior when modifying headers: Use encoding of message body Behavior for untagged non-ASCII headers: Impose encoding of message body Behavior for mismatched encodings bodies and footers: Use encoding of message footer Choose the operation you want to perform: - SETUP - Configure multi-lingual settings. []> setup If a header is modified, encode the new header in the same encoding as the message body? (Some MUAs incorrectly handle headers encoded in a different encoding than the body. However, encoding a modified header in the same encoding as the message body may cause certain characters in the modified header to be lost.) [Y]> If a non-ASCII header is not properly tagged with a character set, impose the encoding of the body on the header during processing and final representation of the message? (Many MUAs create non-RFC-compliant headers that are then handled in an undefined way. Imposing the encoding of the body on the header may encode the header more precisely.) [Y]> When there is an encoding mismatch between the message body and a footer, the system initially attempts to encode the entire message in the same encoding as the message body. If the system cannot combine the message body and the footer in the same encoding, do you want the system to failover and attempt to encode the entire message using the encoding of the message footer? (When this feature is enabled, the system will attempt to display the footer "in-line" rather than defaulting to adding it as an attachment.) [N]> y Behavior when modifying headers: Use encoding of message body Behavior for untagged non-ASCII headers: Impose encoding of message body Behavior for mismatched encodings bodies and footers: Use encoding of message body Choose the operation you want to perform: - SETUP - Configure multi-lingual settings. []>mail3.example.com>

smtpauthconfig
Description

Configure SMTP Auth outgoing and forwarding profiles.

242

SMTPAUTHCONFIG

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 smtpauthconfig command is used to create a new, forwarding-based profile for the server smtp2.example.com:
Code Example 3-144 smtpauthconfig

mail3.example.com> smtpauthconfig Choose the operation you want to perform: - NEW - Create a new SMTP Auth profile []> new Choose the type of profile you wish to create: - FORWARD - Create an SMTP Auth forwarding server group profile - OUTGOING - Create an outgoing SMTP Auth profile []> forward Enter a name for this profile: []> forwarding-based Please begin entering forwarding servers for this group profile. Enter a hostname or an IP address for the forwarding server: []> smtp2.example.com Enter a port: [25]> Choose the interface to use for forwarding requests: 1. Auto 2. Data 1 (192.168.1.1/24: mail3.example.com) 3. Data 2 (192.168.2.1/24: mail3.example.com) 4. Management (192.168.42.42/24: mail3.example.com) [1]> Require TLS? (issue STARTTLS) [Y]> y Enter the maximum number of simultaneous connections allowed: [10]> Use SASL PLAIN mechanism when contacting forwarding server? [Y]>

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 243

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-144 smtpauthconfig (Continued)

Use SASL LOGIN mechanism when contacting forwarding server? [Y]> Would you like to enter another forwarding server to this group? [N]> Choose the operation you want to perform: - NEW - Create a new SMTP Auth profile - EDIT - Edit an existing SMTP Auth profile - PRINT - List all profiles - DELETE - Delete a profile - CLEAR - Delete all profiles []> mail3.example.com> commit Please enter some comments describing your changes: []> created SMTP auth profile Changes committed: Tue Dec 21 12:51:56 2004 PST

Note An authenticated user is granted a RELAY HAT policy. Note You may specify more than one forwarding server in a profile. SASL mechanisms CRAM-MD5 and DIGEST-MD5 are not supported between the IronPort C-Series appliance and a forwarding server.

244

SYSTEM SETUP

SY S TE M S E T U P systemsetup
Description

First time system setup as well as re-installation of the 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
Code Example 3-145 systemsetup

mail3.example.com> systemsetup

WARNING: The system setup wizard will completely delete any existing 'listeners' and all associated settings including the 'Host Access Table' mail operations may be interrupted. Are you sure you wish to continue? [Y]> y

Before you begin, please reset the administrator password to a new value. Old password: New password: Retype new password: ***** You will now configure the network settings for the IronPort C60. Please create a fully qualified hostname for the IronPort C60 appliance (Ex: "ironport-C60.example.com"): []> ironport-C60.example.com

***** You will now assign an IP address for the "Management Interface". This is the default interface you will use for connecting to the system to configure it. Enter the IP address to use for the management interface. (Ex: "192.168.1.1") []> 192.168.1.1

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 245

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-145 systemsetup (Continued)

What is the netmask for this IP address? (Ex: "255.255.255.0" or "0xffffff00"): [255.255.255.0]> You have successfully configured the Management interface. ***** Would you like to use the Ethernet interface labeled Data 1? [Y]> y You will now assign an IP address for the "Data 1" interface. Please create a nickname for the "Data 1" interface (Ex: "Data 1"): []> Data 1 Enter the static IP address for "Data 1" on the "Data 1" interface? (Ex: "192.168.1.1"): []> 192.168.1.2 What is the netmask for this IP address? (Ex: "255.255.255.0" or "0xffffff00"): [255.255.255.0]> You have successfully configured IP Interface "Data 1". ***** Would you like to use the Ethernet interface labeled Data 2? [Y]> y You will now assign an IP address for the "Data 2" interface. Please create a nickname for the "Data 2" interface (Ex: "Data 2"): []> Data 2 Enter the static IP address for "Data 2" on the "Data 2" interface? (Ex: "192.168.1.1"): []> 192.168.1.3 What is the netmask for this IP address? (Ex: "255.255.255.0" or "0xffffff00"): [255.255.255.0]> You have successfully configured IP Interface "Data 2". ***** What is the IP address of the default router (gateway) on your network?: [172.19.2.1]> 192.168.2.1

246

SYSTEMSETUP

Code Example 3-145 systemsetup (Continued)

***** Do you want to join or create a cluster? 1. No, configure as standalone. 2. Create a new cluster. 3. Join an existing cluster over SSH. 4. Join an existing cluster over CCS. [1]> 1

***** Do you want to enable the web interface on the Management interface? [Y]> y Do you want to use secure HTTPS? [Y]> y Note: The system will use a demo certificate for HTTPS. Use the "certconfig" command to upload your own certificate. ***** Do you want the IronPort C60 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 my own DNS servers [2]> 2 Please enter the IP address of your DNS server. []> 192.168.0.3 Do you want to enter another DNS server? [N]> n You have successfully configured the DNS settings. ***** You are now going to configure how the IronPort C60 accepts mail by creating a "Listener". Please create a name for this listener (Ex: "InboundMail"): []> InboundMail Please choose an IP interface for this Listener. 1. Data 1 (172.19.1.11/24: elroy.run) 2. Data 2 (172.19.2.11/24: elroy.run) 3. Management (172.19.0.11/24: elroy.run) [1]> 1

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 247

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-145 systemsetup (Continued)

Enter the domain names or specific email addresses you want to accept mail for. Hostnames such as "example.com" are allowed. Partial hostnames such as ".example.com" are allowed. Usernames such as "postmaster@" are allowed. Full email addresses such as "[email protected]" or "joe@[1.2.3.4]" are allowed. Separate multiple addresses with commas. []> example.com, .example.com Would you like to configure SMTP routes for inboundmail.com? [Y]> n Do you want to enable filtering based on SenderBase Reputation Service (SBRS) Scores for this listener? (Your selection will be used to filter all incoming mail based on its SBRS Score.) [Y]> y 1. Conservative (Near zero false positives, better performance) 2. Moderate (Very few false positives, high performance) 3. Aggressive (Some false positives, maximum performance) [2]> 2 Do you want to enable rate limiting for this listener? (Rate limiting defines the maximum number of recipients per hour you are willing to receive from a remote domain.) [Y]> y Enter the maximum number of recipients per hour to accept from a remote domain. []> 1000 Default Policy Parameters ========================== Maximum Message Size: 100M Maximum Number Of Connections From A Single IP: 1,000 Maximum Number Of Messages Per Connection: 1,000 Maximum Number Of Recipients Per Message: 1,000 Maximum Number Of Recipients Per Hour: 1,000 Maximum Recipients Per Hour SMTP Response: 452 Too many recipients received this hour Use SenderBase for Flow Control: Yes Spam Detection Enabled: Yes Virus Detection Enabled: Yes Allow TLS Connections: No Allow SMTP Authentication: No Require TLS To Offer SMTP authentication: No DomainKeys Signing Enabled: No Envelope Sender DNS Verification Enabled: No

248

SYSTEMSETUP

Code Example 3-145 systemsetup (Continued)

Domain Exception Table Enabled: No Would you like to change the default host access policy? [N]> n Listener InboundMail created. Defaults have been set for a Public listener. Use the listenerconfig->EDIT command to customize the listener. ***** Do you want to configure the C60 to relay mail for internal hosts? [Y]> y Please create a name for this listener (Ex: "OutboundMail"): []> OutboundMail Please choose an IP interface for this Listener. 1. Data 1 (172.19.1.11/24: elroy.run) 2. Data 2 (172.19.2.11/24: elroy.run) 3. Management (172.19.0.11/24: elroy.run) [1]> 2 Please specify the systems allowed to relay email through the IronPort C60. Hostnames such as "example.com" are allowed. Partial hostnames such as ".example.com" are allowed. IP addresses, IP address ranges, and partial IP addresses are allowed. Separate multiple entries with commas. []> example.com Do you want to enable rate limiting for this listener? (Rate limiting defines the maximum number of recipients per hour you are willing to receive from a remote domain.) [N]> n Default Policy Parameters ========================== Maximum Message Size: 100M Maximum Number Of Connections From A Single IP: 600 Maximum Number Of Messages Per Connection: 10,000 Maximum Number Of Recipients Per Message: 100,000 Maximum Number Of Recipients Per Hour: Disabled Use SenderBase for Flow Control: No (N/A - SenderBase Reputation Filters and IP Profiling Disabled) Spam Detection Enabled: No Virus Detection Enabled: Yes Allow TLS Connections: No Allow SMTP Authentication: No Require TLS To Offer SMTP authentication: No DomainKeys Signing Enabled: No Envelope Sender DNS Verification Enabled: No

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 249

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-145 systemsetup (Continued)

Domain Exception Table Enabled: No Would you like to change the default host access policy? [N]> n Listener OutboundMail created. Defaults have been set for a Private listener. Use the listenerconfig->EDIT command to customize the listener. ***** Your IronPort C60 system contains a 30-day evaluation key for Symantec Brightmail Anti-Spam. Would you like to enable Symantec Brightmail Anti-Spam scanning for the IronPort C60 appliance? [Y]> y

The Brightmail Anti-Spam licence is displayed. Do you accept the above license agreement? []> y Symantec Brightmail Anti-Spam configured globally for the IronPort C60 appliance. Use the policyconfig command (CLI) or Mail Policies (GUI) to customize the Symantec Brightmail Anti-Spam settings for each listener. ***** Your IronPort C60 system contains a 30-day evaluation key for IronPort Anti-Spam. Would you like to enable IronPort Anti-Spam scanning for the IronPort C60 appliance? [Y]> y The IronPort Anti-Spam license is displayed. Do you accept the above license agreement? []> y IronPort Anti-Spam configured globally for the IronPort C60 appliance. Use the policyconfig command (CLI) or Mail Policies (GUI) to customize the IronPort settings for each listener. ***** 1. IronPort Anti-Spam 2. Symantec Brightmail Anti-Spam Which Anti-Spam service would you like to use for the default Incoming Mail policy? [1]> 1 IronPort Anti-Spam selected for DEFAULT policy *****

250

SYSTEMSETUP

Code Example 3-145 systemsetup (Continued)

Your IronPort C60 system contains a 30-day evaluation key for Sophos AntiVirus software. Would you like to enable Sophos Anti-Virus scanning for the IronPort C60 appliance? [Y]> y The Sophos Anti-Virus license is displayed. Do you accept the above license agreement? []> y Sophos Anti-Virus configured globally for the IronPort C60 appliance. Use the 'policyconfig' command (CLI) or Mail Policies (GUI) to customize the Sophos Anti-Virus settings. ***** Do you want to enable Virus Outbreak Filters? [Y]> n Allow the sharing of statistics with SenderBase? [Y]> y You have successfully configured Virus Outbreak Filters and SenderBase. ***** Do you want to enable Virus Outbreak Filters? [Y]> y The Virus Outbreak Filters license is displayed. Allow the sharing of statistics with SenderBase? [Y]> y You have successfully configured Virus Outbreak Filters and SenderBase. ***** You will now configure system alerts. Please enter the email address(es) to send alerts. (Ex: "[email protected]") Separate multiple addresses with commas. []> [email protected] Would you like to enable IronPort AutoSupport, which automatically emails system alerts and weekly status reports directly to IronPort Customer Care? You will receive a complete copy of each message sent to IronPort. (Recommended) [Y]> y *****

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 251

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-145 systemsetup (Continued)

You will now configure system time settings. Please choose your continent: 1. Africa 2. America ... 11. GMT Offset [11]> 2 Please choose your country: 1. Anguilla ... 45. United States 46. Uruguay 47. Venezuela 48. Virgin Islands (British) 49. Virgin Islands (U.S.) []> 45 Please choose your timezone: 1. Alaska Time (Anchorage) 2. Alaska Time - Alaska panhandle (Juneau) ... 21. Pacific Time (Los_Angeles) []> 21 Do you wish to use NTP to set system time? [Y]> y Please enter the fully qualified hostname or IP address of your NTP server, or press Enter to use time.ironport.com: [time.ironport.com]>

***** Would you like to commit these changes at this time? [Y]> y

Congratulations! System setup is complete. For advanced configuration, please refer to the User Guide.

252

USER MANAGEMENT

US E R M A N A G E M E N T
This section contains the following CLI commands: userconfig passord or passwd last who whoami

userconfig
Description

Add, edit, and remove users.


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.

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 253

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Example Code Example 3-146 userconfig

example.com> userconfig
Users: 1. admin - "Administrator" (admin) Choose the operation you want to perform: - NEW - Create a new account. - EDIT - Modify an account. - DELETE - Remove an account. - PASSWORD - Change the password for a user. []> new Enter the new username. []> ljohnson Enter the full name for ljohnson. []> lee johnson Choose the group for ljohnson. 1. Administrators - Administrators have full access to all settings of the system. 2. Operators - Operators are restricted from creating new user accounts. 3. Guests - Guest users may only view status information. [1]> 1 Enter the password for ljohnson. >****** Please enter the new password again. >******* Users: 1. admin - "Administrator" (admin) 2. ljohnson - "lee johnson" (admin)

passord or passwd
Description

Change your password.


Usage

Commit: This command requires a commit. Cluster Management: This command is restricted to cluster mode. Note The passwd command is a special case because it needs to be usable by guest users who can only ever be in machine mode. If a guest user issues the passwd command on a machine in a cluster, it will not print the warning message but will instead just silently operate on the cluster level data without changing the user's mode. All other users will get the above written behavior (consistent with the other restricted configuration commands).

254

LAST

Batch Command: This command does not support a batch format.


Example
Code Example 3-147 password

mail3.example.com> password

Old password: your_old_password New password: your_new_password Retype new password: your_new_password Password changed.

last
Description

The last command displays who has recently logged into the system. By default, it shows all users who have logged into the system
Usage

Commit: This command does not requires a commit. Cluster Management: This command is restricted to machine mode. Batch Command: This command does not support a batch format.
Example
Code Example 3-148 last

elroy.run> last Username ======== admin admin admin admin admin admin admin admin admin shutdown Remote Host ============= 10.251.23.186 10.251.23.186 10.251.16.231 10.251.23.186 10.251.23.142 10.251.23.142 10.251.23.142 10.251.60.37 10.251.16.231 Login Time ================ Thu Sep 01 09:14 Wed Aug 31 14:00 Wed Aug 31 13:36 Wed Aug 31 13:34 Wed Aug 31 11:26 Wed Aug 31 11:05 Wed Aug 31 10:52 Tue Aug 30 01:45 Mon Aug 29 10:29 Logout Time ================ still logged in Wed Aug 31 14:01 Wed Aug 31 13:37 Wed Aug 31 13:35 Wed Aug 31 11:38 Wed Aug 31 11:09 Wed Aug 31 10:53 Tue Aug 30 02:17 Mon Aug 29 10:41 Thu Aug 25 22:20 Total Time ========== 1h 5m 1m 0m 0m 11m 4m 1m 32m 11m

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 255

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

who
Description

The who command lists all users who are logged into the system via the CLI, the time of login, the idle time, and the remote host from which the user is logged in.
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
Code Example 3-149 who

mail3.example.com> who Username ======== admin Login Time ========== 03:27PM Idle Time ========= 0s Remote Host =========== 10.1.3.201 What ==== cli

whoami
Description

The whoami command displays the username and full name of the user currently logged in, and which groups the user belongs to.
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
Code Example 3-150 whoami

mail3.example.com> whoami Username: admin Full Name: Administrator Groups: admin, operators, config, log, guest

256

VIRUS OUTBREAK FILTERS

V IR U S O UT BR E A K F I L T E R S
This section contains the following CLI commands: vofconfig vofflush vofstatus vofstatus

vofconfig
Description

Use the vofconfig command to configure the Virus Outbreak Filters feature via the CLI. Configuration includes enabling the Virus Outbreak Filters feature, setting a threshold value, and selecting whether to receive email alerts for the Virus Outbreak Filters features.
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
Code Example 3-151

mail3.example.com> vofconfig VOF: enabled Choose the operation you want to perform: - SETUP - Change VOF settings. []> setup Do you want to enable the Virus Outbreak Filters? [Y]> y

Virus Outbreak Filters enabled. The current threshold is 4. Suspicious messages with a threat level that meet or exceed this threshold will be quarantined. Enter your threshold value. This is a number between 1 and 5, where 1 is a very low tolerance for risk, and 5 is extremely high: [4]> 2 Virus Outbreak Filters enabled. The current threshold is 2.

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 257

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

Code Example 3-151 (Continued) (Continued)

Suspicious messages with a threat level that meet or exceed this threshold will be quarantined. VOF Alerts are sent when filetypes cross the threshold (go above or back down below), meaning that new messages of certain types could be quarantined or will no longer be quarantined, respectively. Would you like to receive VOF alerts? [Y]> y

The Virus Outbreak Filters (VOF) feature is now globally enabled on the system. You must use the 'policyconfig' command in the CLI or the Email Security Manager in the GUI to enable VOF for the desired Incoming and Outgoing Mail Policies.

Choose the operation you want to perform: - SETUP - Change VOF settings. []> mail3.example.com> commit

vofflush
Description

Clear the cached Outbreak Rules.


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
Code Example 3-152 vofflush

mail3.example.com> vofflush Cached Outbreak Rules have been cleared. mail3.example.com>

258

VOFSTATUS

vofstatus
Description

The vofstatus command shows the current Virus Outbreak Filters feature settings, including whether the Virus Outbreak Filters feature is enabled, any Outbreak Rules, and the current threshold.
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
Code Example 3-153 vofstatus

mail3.example.com> vofstatus Virus Outbreak Filters: enabled Component Virus Outbreak Rules CASE - Core CASE - Tools Last Update Tue May 03 11:17:42 Never Tue May 03 13:33:30 Version 20050422_231148 1.0.0-017 1.0.0-013

Last download attempt made on Wed May 04 10:35:35 Threat Outbreak Outbreak Level Rule Name Rule Description --------------------------------------------------------------------5 OUTBREAK_0002187_03 A reported a MyDoom.BB outbreak. 5 OUTBREAK_0005678_00 This configuration file was generated by... 3 OUTBREAK_0000578_00 This virus is distributed in pictures of... Virus Outbreak Filter Rules with higher threat levels pose greater risks. (5 = highest threat, 1 = lowest threat) Last update: Tue May 3 11:17:46 2005

Current Virus Outbreak Filters threshold: 3 (use "vofconfig" to change) mail3.example.com>

vofupdate
Description

Requests an immediate update of CASE rules and engine core.

C H A P T E R 3 : T H E C O M M A N D S : R E F E R E N C E E X A M P L E S 259

IRONPORT ASYNCOS 5.1 CLI REFERENCE GUIDE

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
Code Example 3-154 vofupdate

elroy.run> vofupdate Requesting check for new CASE definitions

260

You might also like