hat's New in AsyncOS 14.2
Table 1: Whats New in AsyncOS 14.2
Feature Description
In this release, the legacy Sender Domain Reputation (SDR)
Domain Age functionality is replaced with Sender Maturity.
Sender Maturity is an important feature to establish sender
reputation. Sender Maturity is automatically generated for spam
classification based on multiple sources of information and can
differ from “Whois-based domain age.”
Sender Maturity represents the Cisco Talos view of how mature
a domain is as an email sender. The maturity value is tuned to
enable threat detection regarding emails and generally does not
reflect the domain age represented in “Whois-based domain age.”
Sender Maturity isset to a limit of 30 days, and beyond thislimit,
a domain is considered mature as an email sender, and no further
details are provided.
From this release onwards, the 'SDR Domain Age'
configured filters are automatically updated to the
'SDR Sender Maturity' filters. The filters with an
invalid value for Sender Maturity are marked as
'inactive' after the upgrade. Make sure you review and
modify the message and content filters accordingly.
Note
Sender Maturity is used to calculate the sender reputation.
Immature domains are assigned lower reputation. Cisco Talos
recommends you rely on sender reputation only for determining
policy actions.Sender Maturity is exposed to fine-tune filters for
specific, non-standard scenarios.
Cisco Talos does not manually adjust maturity for
domains but relies on automated systems and sensors
to determine the most appropriate value.
Note
For more information, see Sender Domain Reputation Filtering,
on page 319.
Sender Maturity
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
2
Getting Started with Cisco Secure Email Gateway
What's New in AsyncOS 14.2
Feature Description
From thisrelease onwards, theSender Domain Reputation verdicts
are updated to accurately reflect the intended meaning and
recommended usage.
During the upgrade, the system automatically updatestheSender
Domain Reputation message or content filter configurations to
reflect the new verdicts. Make sure you review and configure the
message or content filters accordingly.
For more information about the recommended actions, you can
take for each new SDR verdict, see the "SDR Verdicts" section
in Sender Domain Reputation Filtering, on page 319.
After you upgrade to AsyncOS 14.2.x release, the legacy SDR
verdicts in the content or message filters, reporting, and message
tracking are replaced with the new SDR verdicts as follows:
• Untrusted
• Questionable
• Neutral
• Favorable
• Trusted
• Unknown
The SDR Reporting and Tracking AsyncOS APIs are
updated to reflect the new SDR Threat Level and
Category structure.
Note
The SDR Mail and Tracking Logs are updated to
reflect the new SDR Threat Levels and Sender
Maturity details.
Note
For more information, see Sender Domain Reputation Filtering,
on page 319.
New Sender Domain Reputation Verdicts
In this release, the user experience and overall quality of theSDR
service is enhanced with performance improvements, increased
availability, and deployment of SDR.
Sender Domain Reputation (SDR)
Filtering Improvements
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
3
Getting Started with Cisco Secure Email Gateway
What's New in AsyncOS 14.2
Feature Description
The email gateway now uses the Smart Account ID to group
appliancesin your organization and to view the file analysisresult
of all appliances.
When Smart Licensing is enabled on your email gateway, and
you configure the appliance group for file analysis reporting, the
system automatically registersSmart Account ID asthe Appliance
Group ID. You can change the Appliance Group ID at any time,
and the change takes effect immediately without a Commit action.
For more information, see (Public Cloud File Analysis Services
Only) Configuring Appliance Groups , on page 493.
Enhancements on Grouping Appliances
for File Analysis Reporting
Following are the enhancements made to the Smart Software
Licensing feature:
• License Reservation: You can reserve licenses for features
enabled in your email gateway without connecting to the
Cisco Smart Software Manager (CSSM) portal. This is
mainly beneficial for covered users that deploy the email
gateway in a highly secured network environment with no
communication to the Internet or external devices.
For more information, see Overview, on page 1010 and
Reserving Feature Licenses, on page 1017.
• Device Led Conversion: After you register your email
gateway with smart licensing, all existing, valid classical
licenses are automatically converted to smart licenses using
the Device Led Conversion (DLC) process. These converted
licenses are updated in the virtual account of the CSSM
portal.
For more information, see Overview, on page 1010.
Smart Software Licensing Enhancements
You can now choose a different certificate other than the
certificate configured in the ‘Default' destination control entry
for specific domains.
You can choose a different certificate in any one of the following
ways:
• Edit the corresponding destination control entry and select
a different certificate using the TLS certificate option in the
web interface.
• Use the destconfig > new or edit sub commands in the
CLI to select a certificate when you create or edit a
destination control entry.
For more information, see Controlling TLS, on page 738.
TLS Certificate Enhancement for
Destination Control
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
4
Getting Started with Cisco Secure Email Gateway
What's New in AsyncOS 14.2
Feature Description
From thisrelease onwards, the existing ‘Expiration Date’ column
header in the web interface and CLI for classic licensing is
modified asfollows – “Expiration Date (including grace period”
to indicate that the grace period isincluded in the expiration date.
All alert messages and mail logs are modified to
display the expiration date, including the grace period
for a feature key.
Note
Modification of Classic Licensing -
Expiration Date in Web Interface and CLI
Comparison of Web Interfaces,New Web Interface with Legacy
Web Interface
The following table shows the comparison of the new web interface with the legacy interface:
Table 2: Comparison of New Web Interface with legacy interface
Web Interface Page or Element New Web Interface Legacy Web Interface
After you log in to the email
gateway, the My Dashboard page
is displayed.
After you log in to the email
gateway, the Mail Flow Summary
page is displayed.
Landing Page
You can view reports for your
email gateway from the Monitor
menu.
You can view reports for your
email gateways from the Reports
drop-down.
Reports Drop-down
You can view the My Reports page
from Monitor > My Dashboard.
Choose My Reports from the
Reports drop-down.
My Reports Page
The Incoming Mail includes
graphs and summary tables for the
incoming and outgoing messages.
The Mail Flow Summary page
includestrend graphs and summary
tables for incoming and outgoing
messages.
Mail Flow Summary Page
The email gateway has the
following Advanced Malware
Protection report pages under
Montior menu:
• Advanced MalwareProtection
• AMP File Analysis
• AMP Verdict Updates
• Mailbox Auto Remediation
The following sections are
available on the Advanced
Malware Protection report page
of the Reports menu:
• Summary
• AMP File Reputation
• File Analysis
• File Retrospection
• Mailbox Auto Remediation
Advanced Malware Protection
Report Pages
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
5
Getting Started with Cisco Secure Email Gateway
Comparison of Web Interfaces, New Web Interface with Legacy Web Interface
Web Interface Page or Element New Web Interface Legacy Web Interface
The Monitor > Outbreak Filters
page displays the Past Year Virus
Outbreaks and Past Year Virus
Outbreak Summary.
ThePast Year Virus Outbreaks and
Past Year Virus OutbreakSummary
are not available in the Outbreak
Filtering report page of the new
web interface.
Outbreak Filters Page
You can view spam quarantine
from the Monitor > Spam
Quarantine menu.
Click Quarantine > Spam
Quarantine > Search in the new
web interface.
The end users can access the spam
quarantine using the URL:
https://example.com:/euq-login
where example.com isthe appliance
hostname and
is the AsyncOS API HTTPS port
opened on the firewall.
Spam Quarantines(Administrative
and End Users)
You can view, configure and
modify the Policy, Virus and
Outbreak Quarantines on the email
gateway using the Monitor >
Policy, Virus and Outbreak
Quarantines.
Click Quarantine > Other
Quarantine in the new web
interface.
You can only view Policy, Virus
and Outbreak Quarantines in the
new web interface.
Policy, Virus and Outbreak
Quarantines
You cannot select multiple
messages to perform a message
action.
You can select multiple (or all)
messages and perform a message
action such as delete, delay, release,
move, etc.
Select All Action for Messages in
Quarantine
The maximum limit for -
downloading attachments of a
quarantined message is restricted
to 25 MB.
Maximum Download Limit for
Attachments
To search for rejected connections, -
click Tracking > Search >
Rejected Connection tab on the .
Rejected Connections
You can set the query timeout in
the Query Settings field of the
Message Tracking feature.
The Query Settings field of the
Message Tracking feature is not
available on the .
Query Settings
You can view the missing-data
intervals for your email gateway.
Click the gear icon on the upper
right side of the page the web
interface to access Message
Tracking Data Availability page.
Message Tracking Data
Availability
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
6
Getting Started with Cisco Secure Email Gateway
Comparison of Web Interfaces, New Web Interface with Legacy Web Interface
Web Interface Page or Element New Web Interface Legacy Web Interface
You can view additional details of -
a message such as Verdict Charts,
Last State, Sender Groups, Sender
IP, IP Reputation Score and Policy
Match details.
Show Additional Details of
Messages
Verdict Charts and Last State
Verdicts of the messages are not
available.
Verdict Chart displays information
of the various possible verdicts
triggered by each engine in your
email gateway.
Last State of the message
determines the final verdict
triggered after all the possible
verdicts of the engine.
Verdict Charts and Last State
Verdicts
Message attachments and host
names are displayed in the Message
Details section of the message.
Message attachments and host
names are not displayed in the
Message Details section of the
message on the email gateway.
Message Attachments and Host
Names in Message Details
Sender Groups, Sender IP, IP
ReputationScore, andPolicy Match
of the message is not available in
the Message Details section of the
message.
Sender Groups, Sender IP, IP
ReputationScore, andPolicy Match
details of the message is displayed
in the Message Details section, on
the email gateway.
Sender Groups, Sender IP, IP
ReputationScore andPolicy Match
in Message Details
Direction of the message (incoming
or outgoing) is not displayed in the
message tracking results page.
Direction of the message (incoming
or outgoing) is displayed in the
message tracking results page, on
the email gateway.
Direction of the Message
(Incoming or Outgoing)
Where to Find More Information
Cisco offers the following resources to learn more about your email gateway:
• Documentation , on page 8
• Training, on page 8
• Cisco Notification Service , on page 8
• Knowledge Base, on page 9
• Cisco Support Community, on page 9
• Cisco Customer Support, on page 9
• Third Party Contributors, on page 9
• Cisco Welcomes Your Comments, on page 10
• Registering for a Cisco Account , on page 10
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
7
Getting Started with Cisco Secure Email Gateway
Where to Find More Information
Documentation
You can access the online help version of this user guide directly from the appliance GUI by clicking Help
and Support in the upper-right corner.
The documentation set for the Cisco Secure Email Gateway includes the following documents and books:
• Release Notes
• Quick Start Guide for your Cisco Email Security Appliance model
• Hardware Installation or Hardware installation and maintenance guide for your model or series
• Cisco Content Security Virtual Appliance Installation Guide
• User Guide for AsyncOS for Cisco Secure Email Gateway (this book)
• CLI Reference Guide for AsyncOS for Cisco Secure Email Gateway
• AsyncOS API for Cisco Secure Email Gateway - Getting Started Guide
Documentation for all Cisco Content Security products is available from:
Documentation For Cisco Content Security Location
Products
Hardware and virtual appliances See the applicable product in this table.
http://www.cisco.com/c/en/us/support/security/
email-security-appliance/tsd- products-support-series-home.html
Cisco Email Security
http://www.cisco.com/c/en/us/support/security/
web-security-appliance/tsd-products-support-series-home.html
Cisco Web Security
http://www.cisco.com/c/en/us/support/
security/content-security-management- appliance/tsdproducts-support-series-home.html
Cisco Content Security Management
http://www.cisco.com/c/en/us/support/security/
email-security-appliance/products-command-reference-list.html
CLI reference guide for Cisco Content
Security appliances
http://www.cisco.com/c/en/us/support/security/
email-security-appliance/products-command-reference-list.html
Cisco IronPort Encryption
Training
More information about training is available from:
• http://www.cisco.com/c/en/us/training-events/training-certifications/supplementaltraining/email-and-web-security.html
• http://www.cisco.com/c/en/us/training-events/training-certifications/overview.html
Cisco Notification Service
Sign up to receive notificationsrelevant to your Cisco ContentSecurity Appliances,such asSecurity Advisories,
Field Notices, End ofSale and End ofSupport statements, and information about software updates and known
issues.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
8
Getting Started with Cisco Secure Email Gateway
Documentation
You can specify options such as notification frequency and types of information to receive. You should sign
up separately for notifications for each product that you use.
To sign up, visit http://www.cisco.com/cisco/support/notifications.html
A Cisco.com account is required. If you do not have one, see Registering for a Cisco Account , on page 10.
Knowledge Base
Procedure
Step 1 Go to the main product page (http://www.cisco.com/c/en/us/support/security/
email-security-appliance/tsd-products-support-series-home.html)
Step 2 Look for links with TechNotes in the name.
Cisco Support Community
The Cisco Support Community is an online forum for Cisco customers, partners, and employees. It provides
a place to discuss general email and web security issues, as well as technical information about specific Cisco
products. You can post topics to the forum to ask questions and share information with other Cisco users.
Access the Cisco Support Community on the Customer Support Portal at the following URLs:
• For email security and associated management:
https://supportforums.cisco.com/community/5756/email-security
• For web security and associated management:
https://supportforums.cisco.com/community/5786/web-security
Cisco Customer Support
Cisco TAC: http://www.cisco.com/c/en/us/support/web/tsd-cisco-worldwide-contacts.html
Support site for legacy IronPort: http://www.cisco.com/c/en/us/services/acquisitions/ironport.html
For non-critical issues, you can also access customer support from the email gateway. For instructions, see
the User Guide or online help.
Third Party Contributors
See Open Source licensing information for your release on this page:
http://www.cisco.com/c/en/us/support/security/email-security-appliance/products-release-notes-list.html .
Some software included within Cisco 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 Cisco license agreements.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
9
Getting Started with Cisco Secure Email Gateway
Knowledge Base
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 Cisco 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 Sophos Plc.
Cisco Welcomes Your Comments
The Cisco TechnicalPublications team is interested in improving the product documentation. Your comments
and suggestions are always welcome. You can send comments to the following email address:
contentsecuritydocs@cisco.com
Please include the product name, release number, and document publication date in the subject of your message.
Registering for a Cisco Account
Access to many resources on Cisco.com requires a Cisco account.
If you do not have a Cisco.com User ID, you can register for one here: https://idreg.cloudapps.cisco.com/
idreg/register.do
Related Topics
• Cisco Notification Service , on page 8
• Knowledge Base, on page 9
Cisco Secure Email Gateway Overview
The AsyncOS™ operating system includes the following features:
• Anti-Spam at the gateway, through the unique, multi-layer approach of SenderBase Reputation Filters
and Cisco Anti-Spam integration.
• Anti-Virus at the gateway with the Sophos and McAfee Anti-Virus scanning engines.
• Outbreak Filters™, Cisco’s unique, preventive protection against new virus,scam, and phishing outbreaks
that can quarantine dangerous messages until new updates are applied, reducing the window of
vulnerability to new message threats.
• Policy, Virus, and Outbreak Quarantines provide a safe place to store suspect messages for evaluation
by an administrator.
• Spam Quarantine either on-box or off, providing end user access to quarantined spam and suspected
spam.
• Email Authentication. Cisco AsyncOSsupports variousforms of email authentication, includingSender
Policy Framework (SPF), Sender ID Framework (SIDF), and DomainKeys Identified Mail (DKIM)
verification of incoming mail, as well as DomainKeys and DKIM signing of outgoing mail.
• Cisco Email Encryption. You can encrypt outgoing mail to address HIPAA, GLBA and similar regulatory
mandates. To do this, you configure an encryption policy on the email gateway and use a local key server
or hosted key service to encrypt the message.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
10
Getting Started with Cisco Secure Email Gateway
Cisco Welcomes Your Comments
• Email Security Manager, a single, comprehensive dashboard to manage all email security services and
applications on the email gateway. Email Security Manager can enforce email security based on user
groups, allowing you to manage Cisco Reputation Filters, Outbreak Filters, Anti-Spam, Anti-Virus, and
email content policies through distinct inbound and outbound policies.
• On-box message tracking. AsyncOSfor Email includes an on-box message tracking feature that makes
it easy to find the status of messages that the E email gateway processes.
• Mail Flow Monitoring of all inbound and outbound email that provides complete visibility into all email
traffic for your enterprise.
• Access control for inbound senders, based upon the sender’s IP address, IP address range, or domain.
• Extensive message and content filtering technology allows you to enforce corporate policy and act on
specific messages as they enter or leave your corporate infrastructure. Filter rules identify messages
based on message or attachment content, information about the network, message envelope, message
headers, or message body. Filter actions allow messages to be dropped, bounced, archived, blind carbon
copied, or altered, or to generate notifications.
• Message encryption via secure SMTP over Transport Layer Security ensures messages traveling
between your corporate infrastructure and other trusted hosts are encrypted.
• Virtual Gateway™ technology allows the email gateway to function as several email gateways within
a single server, which allows you to partition email from different sources or campaigns to be sent over
separate IPaddresses. This ensuresthat deliverability issues affecting one IPaddress do not impact others.
• Protectionagainst malicious attachments andlinks in email messages, provided by multiple services.
• Use Data Loss Prevention to control and monitor the information that leaves your organization.
AsyncOSsupports RFC 2821-compliantSimple Mail TransferProtocol (SMTP) to accept and deliver messages.
Most reporting, monitoring, and configuration commands are available through both the web-based GUI via
HTTP or HTTPS. In addition, an interactive Command Line Interface (CLI) which you access from a Secure
Shell (SSH) or direct serial connection is provided for the system.
You can also set up a CiscoSecure Email and Web Manager to consolidate reporting, tracking, and quarantine
management for multiple E email gateways.
Related Topics
• Supported Languages, on page 11
Supported Languages
AsyncOS can display its GUI and CLI in any of the following languages:
• English
• French
• Spanish
• German
• Italian
• Korean
• Japanese
• Portuguese (Brazil)
• Chinese (traditional and simplified)
• Russian
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
11
Getting Started with Cisco Secure Email Gateway
Supported Languages
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
12
Getting Started with Cisco Secure Email Gateway
Supported Languages
CHAPTER 2
Accessing the Email Gateway
This chapter contains the following sections:
• Web-based Graphical User Interface (GUI) , on page 13
• Changing Configuration Settings, on page 16
• Command Line Interface (CLI), on page 16
Web-based Graphical User Interface (GUI)
You can administer the email gateway using both the web-based Graphical User Interface (GUI) and Command
Line Interface (CLI). The GUI contains most of the functionality you need to configure and monitor the
system. However, not all CLI commands are available in the GUI; some features are only available through
the CLI.
• Browser Requirements, on page 13
• Accessing the GUI, on page 14
Browser Requirements
To access the web-based UI, your browser must support and be enabled to accept JavaScript and cookies, and
it must be able to render HTML pages containing Cascading Style Sheets (CSS).
Browser Operating System
Internet Explorer 11.0 Microsoft Windows 7 and 10
Safari 7.0 and later Mac OS X
Firefox 39.0 and later Microsoft Windows 7 and 10, Mac OS X
Chrome 44.0 and later Microsoft Windows 7 and 10, Mac OS X
Do not use multiple browser windows or tabs simultaneously to make changes to the email gateway. Do not
use concurrent GUI and CLI sessions. Doing so will cause unexpected behavior and is not supported.
You may need to configure your browser’s pop-up blocking settings in order to use the web interface because
some buttons or links in the interface will cause additional windows to open.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
13
Accessing the GUI
To access the GUI on a brand new system, access the following URL:
http://192.168.42.42/
When the login page is displayed, log in to the system using the default username and passphrase.
Related Topics
• Factory Default Username and Passphrase, on page 14
• Centralized Management, on page 14
Factory Default Username and Passphrase
• Username: admin
• Passphrase: ironport
On brand new (not upgraded from previousreleases of AsyncOS)systems, you will automatically be redirected
to the System Setup Wizard.
During the initialsystem setup, you choose IPaddressesfor interfaces and whether to run HTTPand/or HTTPS
services for those interfaces. When HTTP and/or HTTPS services have been enabled for an interface, you
can use any supporting browser to view the GUI by entering the IP address or hostname of the IP interface
as a URL in the location field (“address bar”) of the browser.
For example:
http://192.168.1.1 or
https://192.168.1.1 or
http://mail3.example.com or
https://mail3.example.com
If HTTPS has been enabled for an interface (and HTTP requests are not being redirected to the secure
service), remember to access the GUI using the “ https:// ” prefix.
Note
Related Topics
• Adding Users , on page 980
Centralized Management
If you have created a cluster, you can browse machines in the cluster, create, delete, copy, and move settings
among clusters, groups, and machines (that is, perform the equivalent of the clustermode and clusterset
commands) from within the GUI.
For more information, see Administering a Cluster from the GUI, on page 1244.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
14
Accessing the Email Gateway
Accessing the GUI
Enhanced User Experience using How-Tos Widget
The How-Tos is a contextual widget that provides in-app assistance to users in the form of walkthroughs to
accomplish complex tasks on your email gateway. To view a list of walkthroughs supported in this release,
see Lis of Walkthroughs.
You can accessthe walkthroughs by clicking the How-Tos widget on the web interface of your email gateway.
By default, the How-Tos widget is enabled on your email gateway. The contents of the How-Tos widget are
cloud-updateable.
For each walkthrough, there are recommended settingsforspecific configurable values categorized asfollows:
• Conservative Settings - Cautious, configuration of not excessive limits
• Moderate Settings - Average, configuration within reasonable limits
• Aggressive Settings- Forceful, configuration of assertive limits
• The currentset of walkthroughsislimited to the following users: admin, cloud-admin, and operator.
• If you are using Internet Explorer version 11 to access the web interface of your email gateway,
you may not be able to view the How-Tos widget. Go to System Administration > General
Settings page on your web interface and enable the Override IE Compatibility Mode option to
view the How-Tos widget.
Note
Disabling How-Tos Widget on the Email Gateway
Use the adminaccessconfig > how-tos sub command in the CLI if you want to disable the How-Tos widget
on your email gateway.
Example: Disabling How-Tos widget on the Email Gateway
mail.example.com> adminaccessconfig
Choose the operation you want to perform:
- BANNER - Configure login message (banner) for appliance administrator login.
- WELCOME - Configure welcome message (post login message) for appliance administrator
login.
- IPACCESS - Configure IP-based access for appliance administrative interface.
- CSRF - Configure web UI Cross-Site Request Forgeries protection.
- XSS - Configure Cross-Site Scripting Attack protection.
- HOSTHEADER - Configure option to use host header in HTTP requests.
- TIMEOUT - Configure GUI and CLI session inactivity timeout.
- MAXHTTPHEADERFIELDSIZE - Configure maximum HTTP header Field size.
- HOW-TOS - Configure How-Tos feature.
[]> how-tos
How-Tos consists of a list of generic walkthroughs to assist the users in completing
a particular task (for example, "enabling and configuring a service engine on the appliance").
Would you like to enable How-Tos? [Y]> no
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
15
Accessing the Email Gateway
Enhanced User Experience using How-Tos Widget
Changing Configuration Settings
• Configuration Changes, on page 16
• Commit or Abandoning Changes , on page 16
Configuration Changes
You can make configuration changes while email operations proceed normally.
Commit or Abandoning Changes
You must explicitly save most configuration changes.
When changes are pending a commit, the Commit Changes button turns orange.
To clear or commit these changes, click Commit Changes.
Command Line Interface (CLI)
The Command Line Interface is accessible via SSH on IP interfaces that have been configured with these
services enabled, or via terminal emulation software on the serial port. By factory default, SSH is configured
on the Management port. Use the interfaceconfig command to disable these services.
For more information about CLI commands and conventions, see the CLI Reference Guide for AsyncOS for
Cisco Secure Email Gateway.
The factory default username and passphrase for accessing CLI is same as that of the web interface. See
Factory Default Username and Passphrase, on page 14.
Note
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
16
Accessing the Email Gateway
Changing Configuration Settings
CHAPTER 3
Setup and Installation
This chapter contains the following sections:
• Installation Planning, on page 17
• Physically Connecting the Email Gateway to the Network, on page 20
• Preparing for System Setup, on page 24
• Using the System Setup Wizard , on page 30
• Verifying Your Configuration and Next Steps , on page 55
Installation Planning
• Review Information That Impacts Planning Decisions , on page 17
• Plan to Place the Email Gateway at the Perimeter of Your Network, on page 17
• Register the Email Security Appliance in DNS, on page 18
• Installation Scenarios, on page 19
Review Information That Impacts Planning Decisions
• If you are configuring a virtual email gateway, please see the Cisco Content Security Virtual Appliance
Installation Guide before continuing with this chapter.
• If you are configuring an M-Series Cisco Secure Email and Web Manager, please see Centralizing
Services on a Cisco Secure Email and Web Manager (M-Series), on page 1295.
• We recommend reviewing Understanding the Email Pipeline, on page 57 before installing, as some
features and functions may affect the placement of the email gateway within your infrastructure.
Plan to Place the Email Gateway at the Perimeter of Your Network
Your email gateway is designed to serve as your SMTP gateway, also known as a mail exchange (MX). For
best results, some features require the email gateway to be the first machine with an IP address that is directly
accessible to the Internet (that is, it is an external IP address) for sending and receiving email.
The per-recipient reputation filtering, anti-spam, anti-virus, and Virus Outbreak Filter features (see IronPort
Anti-Spam Filtering, on page 386, Sophos Anti-Virus Filtering, on page 366, and Outbreak Filters, on page
425) are designed to work with a direct flow of messages from the Internet and from your internal network.
You can configure the email gateway for policy enforcement (Overview of Defining Which Hosts Are Allowed
to Connect, on page 93) for all email traffic to and from your enterprise.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
17
Ensure that the email gateway is both accessible via the public Internet and is the “first hop” in your email
infrastructure. If you allow another MTA to sit at your network’s perimeter and handle all external connections,
then the email gateway will not be able to determine the sender’sIPaddress. The sender’sIPaddressis needed
to identify and distinguish senders in the Mail Flow Monitor, to query the IP Reputation Service for the
sender’s IP Reputation Score, and to improve the efficacy of the Anti-Spam and Outbreak Filters features.
If you cannot configure the email gateway as the first machine receiving email from the Internet, you
can still exercise some of the security services available on the email gateway. For more information,
see Determining Sender IP Address In Deployments with Incoming Relays , on page 411.
Note
When you use the email gateway as your SMTP gateway:
• The MailFlow Monitor feature (see Using EmailSecurity Monitor, on page 833) offers complete visibility
into all email traffic for your enterprise from both internal and external senders.
• LDAPqueries (see LDAP Queries, on page 775) for routing, aliasing, and masquerading can consolidate
your directory infrastructure and provide for simpler updates.
• Familiar tools like alias tables (see Creating Alias Tables, on page 703), domain-based routing (The
Domain Map Feature, on page 720), and masquerading (Configuring Masquerading, on page 710) make
the transition from Open-Source MTAs easier.
Register the Email Security Appliance in DNS
Malicious email senders actively search public DNS records to hunt for new victims. In order to utilize the
full capabilities of Anti-Spam, Outbreak Filters, McAfee Antivirus and Sophos Anti-Virus, ensure that the
email gatewayis registered in DNS.
To register the email gateway in DNS, create an A record that maps the email gateway's hostname to its IP
address, and an MX record that maps your public domain to the email gateway's hostname. You must specify
a priority for the MX record to advertise the email gateway as either a primary or backup MTA for your
domain.
In the following example, the email gateway (ironport.example.com) is a backup MTA for the domain
example.com, since its MX record has a higher priority value (20). In other words, the higher the numeric
value, the lower the priority of the MTA.
$ host -t mx example.com
example.com mail is handled (pri=10) by mail.example.com
example.com mail is handled (pri=20) by ironport.example.com
By registering the email gateway in DNS, you will attract spam attacks regardless of how you set the MX
record priority. However, virus attacks rarely target backup MTAs. Given this, if you want to evaluate an
anti-virus engine to its fullest potential, configure the email gateway to have an MX record priority of equal
or higher value than the rest of your MTAs.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
18
Setup and Installation
Register the Email Security Appliance in DNS
Installation Scenarios
You can install your email gateway into your existing network infrastructure in several ways.
Most customers’ network configurations are represented in the following scenarios. If your network
configuration varies significantly and you would like assistance planning an installation, please contact Cisco
Customer Support (see Cisco Customer Support, on page 9).
• Configuration Overview, on page 19
• Incoming, on page 19
• Outgoing, on page 19
• Ethernet Interfaces, on page 19
• Advanced Configurations, on page 20
• Firewall Settings (NAT, Ports) , on page 20
Configuration Overview
The following figure shows the typical placement of the email gateway in an enterprise network environment:
In some scenarios, the email gateway resides inside the network “DMZ,” in which case an additional firewall
sits between the email gateway and the groupware server.
The following network scenarios are described:
• Behind the Firewall: two listeners configuration (Figure - Behind the Firewall Scenario / 2 Listeners
Configuration)
Choose the configuration that best matches your infrastructure. Then proceed to the next section, Preparing
for System Setup, on page 24.
Incoming
• Incoming mail is accepted for the local domains you specify.
• All other domains are rejected.
• External systems connect directly to the email gateway to transmit email for the local domains, and the
email gateway relays the mail to the appropriate groupware servers (for example, Exchange™,
Groupwise™, Domino™) via SMTP routes. (See Routing Email for Local Domains, on page 697.)
Outgoing
• Outgoing mail sent by internal users is routed by the groupware server to the email gateway.
• The email gateway accepts outbound email based on settings in the Host Access Table for the private
listener. (For more information, see Working with Listeners, on page 70.)
Ethernet Interfaces
Only one of the available Ethernet interfaces on the email gateway isrequired in these configurations. However,
you can configure two Ethernet interfaces and segregate your internal network from your external Internet
network connection.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
19
Setup and Installation
Installation Scenarios
For more information about assigning multiple IP addresses to the available interfaces, see Configuring Mail
Gateways for all Hosted Domains Using Virtual Gateway™ Technology, on page 749 and Assigning Network
and IP Addresses, on page 1313.
Hardware Ports
The number and type of ports on your hardware appliance depend on the model:
Ports Type C190 C390 C690 C690F C195 C395 C695 C695F
Management Ethernet 0 1 1 1 0 1 1 1
Data Ethernet 2* 5 5 3 2* 5 5 3
Console Serial RJ-45 RJ-45 RJ-45 RJ-45 RJ-45 RJ-45 RJ-45 RJ-45
Remote Ethernet Y Y Y Y Y Y Y Y
Power
Management
(RPC)
* For appliances without a dedicated management port, use the Data1 port for management purposes.
For more information about ports, see the Hardware Installation Guide for your appliance model.
Related Topics
• Configuring Network Interfaces, on page 35
• Accessing the Email Gateway via a Serial Connection, on page 1311
• Enabling Remote Power Cycling , on page 1046
Advanced Configurations
In addition to the configurations shown in Figure - Behind the Firewall Scenario / 2 Listeners Configuration
and Figure One Listener Configuration, you can also configure:
• Multiple email gateways using the Centralized Management feature.See Centralized Management Using
Clusters, on page 1229
• Redundancy at the network interface card level by “teaming” two of the Ethernet interfaces on email
gateways using the NIC Pairing feature. See Advanced Network Configuration, on page 1135
Firewall Settings (NAT, Ports)
SMTPand DNSservices must have accessto the Internet. Otherservices may also require open firewall ports.
For details, see Firewall Information, on page 1335.
Physically Connecting the Email Gateway to the Network
• Configuration Scenarios, on page 21
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
20
Setup and Installation
Hardware Ports
Configuration Scenarios
The typical configuration scenario for the email gateway is as follows:
• Interfaces - Only one of the three available Ethernet interfaces on the email gateway is required for most
network environments. However, you can configure two Ethernet interfaces and segregate your internal
network from your external Internet network connection.
• Public Listener (incoming email) - The public listener receives connections from many external hosts
and directs messages to a limited number of internal groupware servers.
• Accepts connections from external mail hosts based on settings in the Host Access Table (HAT).
By default, the HAT is configured to ACCEPT connections from all external mail hosts.
• Accepts incoming mail only if it is addressed for the local domains specified in the Recipient Access
Table (RAT). All other domains are rejected.
• Relays mail to the appropriate internal groupware server, as defined by SMTP Routes.
• Private Listener (outgoing email) - The private listener receives connections from a limited number of
internal groupware servers and directs messages to many external mail hosts.
• Internal groupware servers are configured to route outgoing mail to the Cisco C- or X-Series email
gateway.
• The email gateway accepts connections from internal groupware servers based on settings in the
HAT. By default, the HAT is configured to RELAY connections from all internal mail hosts.
Related Topics
• Segregating Incoming and Outgoing Mail, on page 21
Segregating Incoming and Outgoing Mail
You can segregate incoming and outgoing email traffic over separate listeners and on separate IP addresses.
You can use Internet Protocol version 4 (IPv4) and version 6 (IPv6) addresses. However, the System Setup
Wizard on the email gateway supports initial configuration of the following configurations:
• 2 separate listeners on 2 logical IPv4 and 2 IPv6 addresses configured on separate physical interfaces
• segregates incoming and outgoing traffic
• you can assign an IPv4 and an IPv6 address to each listener
• 1 listener on 1 logical IPv4 address configured on one physical interface
• combines both incoming and outgoing traffic
• you can assign both an IPv4 and an IPv6 address to the listener
Configuration worksheets for both one and two listener configurations are included below (see Gathering the
Setup Information, on page 27). Most configuration scenarios are represented by one of the following three
figures.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
21
Setup and Installation
Configuration Scenarios
Figure 1: Behind the Firewall Scenario / 2 Listeners Configuration
Notes:
• 2 Listeners
• 2 IPv4 addresses
• 2 IPv6 addresses
• 1 or 2 Ethernet interfaces (only 1 interface shown)
• SMTP routes configured
Inbound Listener: “InboundMail” (public)
• IPv4 address: 1.2.3.4
• IPv6 address: 2001:0db8:85a3::8a2e:0370:7334
• Listener on the Data2 interface listens on port 25
• HAT (accept ALL)
• RAT (accept mail for local domains; reject ALL)
Outbound Listener: “OutboundMail” (private)
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
22
Setup and Installation
Segregating Incoming and Outgoing Mail
• IP address: 1.2.3.5
• IPv6 address: 2001:0db8:85a3::8a2e:0370:7335
• Listener on the Data2 interface listens on port 25
• HAT (relay for local domains; reject ALL)
DNS can be configured to use Internet Root servers or internal DNS servers
SMTP routes direct mail to proper groupware server
Firewall ports opened for appropriate services to and from the email gateway
Figure 2: One Listener Configuration
Notes:
• 1 Listener
• 1 IP addresses
• 1 Ethernet interface
• SMTP routes configured
Inbound Listener: “InboundMail” (public)
• IP address: 1.2.3.4
• Listener on the Data2 interface listens on port 25
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
23
Setup and Installation
Segregating Incoming and Outgoing Mail
• HAT (accept ALL) includes entries for Groupware servers in RELAYLIST
• RAT (accept mail for local domains; reject ALL)
DNS can be configured to use Internet Root servers or internal DNS servers
SMTP routes direct mail to proper groupware server
Firewall ports opened for appropriate services to and from the email gateway.
Preparing for System Setup
• Determine Method for Connecting to the Email Gateway, on page 25
• Determining Network and IP Address Assignments, on page 26
• Gathering the Setup Information, on page 27
Procedure
Command or Action Purpose
See Determine Method for Connecting to the
Email Gateway, on page 25
Determine how you will connect to the email
gateway.
Step 1
See
Determine Method for Connecting to the Email
Gateway, on page 25 and Determining Network
and IP Address Assignments, on page 26
Step 2 Determine network and IPaddress assignments.
• If you have already cabled your email
gateway to your network, ensure that the
default IP address for the email
gatewaydoes not conflict with other IP
addresses on your network.
See Gathering the Setup Information, on page
27.
Step 3 Gather information about your system setup.
Release notes are available from the link in
Documentation , on page 8.
Review the latest product release notesfor your
email gateway.
Step 4
See Quickstart Guide for your email gateway.
This guide is available from the link in
Documentation , on page 8.
Unpack the email gateway, physically install it
in a rack, and turn it on.
Step 5
See Running the Command Line Interface (CLI)
System Setup Wizard, on page 42)
If you will run the setup wizard using the
command line interface (CLI), access the CLI.
Step 6
If you will run the setup wizard using the web
interface:
Step 7 a. (Virtual appliances ONLY) Access the
command-line interface and enable HTTP
and/or HTTPSusing the interfaceconfig
command.
b. Launch a web browser and enter the IP
address of the email gateway.
Use the loadlicense command. For more
information, see the Cisco Content Security
If you are setting up a virtual email gateway,
load your virtual email gateway license.
Step 8
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
24
Setup and Installation
Preparing for System Setup
Command or Action Purpose
Virtual Appliance Installation Guide available
from the link in Documentation , on page 8.
See Using the System Setup Wizard , on page
30
Step 9 Configure basic settings for your system.
Determine Method for Connecting to the Email Gateway
To successfully set up the email gateway in your environment, you must gather important network information
from your network administrator about how you would like to connect the email gateway to your network.
Related Topics
• Connecting to the Email Gateway, on page 25
Connecting to the Email Gateway
During the initial setup, you can connect to the email gateway in one of two ways:
Table 3: Options for Connecting to the Email Gateway
An Ethernet connection between a PC and the network and between the network and
the Management port. The IPv4 address that has been assigned to the Management
port by the factory is 192.168.42.42 . This is the easiest way to connect if it works
with your network configuration.
Ethernet
A serial communications connection between the PC and the Serial Console port. If
you cannot use the Ethernet method, a straight serial-to- serial connection between
the computer and the email gateway will work until alternate network settings can be
applied to the Management port. For pinout information, see Accessing the Email
Gateway via a Serial Connection, on page 1311. The communications settings for the
serial port are:
Bits per second: 9600
Data bits: 8
Parity: None
Stop bits: 1
Flow control: Hardware
Serial
Keep in mind that the initial connection method is not final. This process applies only for the initial
configuration. You can change network settings at a later time to allow different connection methods.
(SeeFTP,SSH, andSCP Access, on page 1307 for more information.) You can also create multiple user
accounts with differing administrative privileges to access the email gateway. (For more information,
see Adding Users , on page 980.)
Note
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
25
Setup and Installation
Determine Method for Connecting to the Email Gateway
Determining Network and IP Address Assignments
You can use both IPv4 and IPv6 addresses.
• Default IP Addresses for Management and Data Ports , on page 26
• Choosing Network Connections to Receive and Deliver Email , on page 26
• Binding Logical IP Addresses to Physical Ethernet Ports, on page 26
• Choosing Network Settings for Your Connections, on page 26
Default IP Addresses for Management and Data Ports
The IP address that is pre-configured on the Management port (the Data 1 port on C170 and C190 email
gateways) is 192.168.42.42 .
Choosing Network Connections to Receive and Deliver Email
Most userstake advantage of the two Data Ethernet ports on the email gateway by connecting to two networks
from the email gateway:
• The private network accepts and delivers messages to your internal systems.
• The public network accepts and delivers messages to the Internet.
Other users may want to use only one Data port serving both functions. Although the Management Ethernet
port can support any function, it is preconfigured for access to the graphical user interface and the command
line interface.
Binding Logical IP Addresses to Physical Ethernet Ports
You can segregate incoming and outgoing email traffic over separate listeners and on separate IP addresses.
You can use Internet Protocol version 4 (IPv4) and version 6 (IPv6) addresses. However, the System Setup
Wizard on the email gateway supports initial configuration of the following configurations:
• 2 separate listeners on 2 logical IPv4 and 2 IPv6 addresses configured on separate physical interfaces
• segregates incoming and outgoing traffic
• you can assign an IPv4 and an IPv6 address to each listener
• 1 listener on 1 logical IPv4 address configured on one physical interface
• combines both incoming and outgoing traffic
• you can assign both an IPv4 and an IPv6 address to the listener
The email gateway can support both IPv4 and IPv6 addresses on single listener. The listener will accept mail
on both the addresses. All settings on a listener apply to both IPv4 and IPv6 addresses.
Choosing Network Settings for Your Connections
You will need the following network information about each Ethernet port that you choose to use:
• IP address (IPv4 or IPv6 or both)
• Netmask for IPv4 address in CIDR format
• Prefix for IPv6 address in CIDR format
In addition, you will need the following information about your overall network:
• IP address of the default router ( gateway) on your network
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
26
Setup and Installation
Determining Network and IP Address Assignments
• IP address and hostname of your DNS servers (not required if you want to use Internet root servers)
• Hostname or IP address of your NTP servers (not required if you want to use Cisco’s time servers)
See Assigning Network and IP Addresses, on page 1313 for more information.
If you are running a firewall on your network between the Internet and the email gateway, it may be
necessary to open specific ports for the email gateway to work properly. See Firewall Information, on
page 1335 for more information.
Note
Gathering the Setup Information
Now that you understand the requirements and strategies when making the necessary selections in theSystem
Setup Wizard, use the following tables to gather information about your system setup while reading this
section.
See Assigning Network and IP Addresses, on page 1313 for more detailed information on network and IP
addresses. See Centralizing Services on a Cisco Secure Email and Web Manager (M-Series), on page 1295 if
you are configuring a Cisco Secure Email and Web Manager.
Table 4: System Setup Worksheet: 2 Listeners for Segregating Email Traffic
System Settings
Default System Hostname:
Email System Alerts To:
Deliver Scheduled Reports To:
Time Zone Information:
NTP Server:
Admin Passphrase:
SenderBase NetworkParticipation: Enable / Disable
AutoSupport: Enable / Disable
Network Integration
Gateway:
DNS (Internet or Specify Own):
Interfaces
Data 1 Port
IPv4 Address / Netmask:
IPv6 Address / Prefix:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
27
Setup and Installation
Gathering the Setup Information
System Settings
Fully Qualified Hostname:
Accept Incoming Mail: Domain Destination
Relay Outgoing Mail: System
Data 2 Port
IPv4 Address / Netmask:
IPv6 Address / Prefix:
Fully Qualified Hostname:
Accept Incoming Mail: Domain Destination
Relay Outgoing Mail: System
Management Port
IP Address:
Network Mask:
IPv6 Address:
Prefix:
Fully Qualified Hostname:
Accept Incoming Mail: Domain Destination
Relay Outgoing Mail: System
Message Security
IP Reputation Filtering: Enable / Disable
Anti-Spam Scanning Engine None / IronPort
McAfee Anti-Virus Scanning Enable / Disable
Engine
Sophos Anti-Virus Scanning Enable / Disable
Engine
Outbreak Filters Enable / Disable
Table 5: System Setup Worksheet: 1 Listener for All Email Traffic
System Settings
Default System Hostname:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
28
Setup and Installation
Gathering the Setup Information
System Settings
Email System Alerts To:
Deliver Scheduled Reports To:
Time Zone:
NTP Server:
Admin Passphrase:
SenderBase NetworkParticipation: Enable / Disable
AutoSupport: Enable / Disable
Network Integration
Gateway:
DNS (Internet or Specify Own):
Interfaces
Data2 Port
IPv4 Address / Netmask:
IPv6 Address / Prefix:
Fully Qualified Hostname:
Accept Incoming Mail: Domain Destination
Relay Outgoing Mail: System
Data1 Port
IPv4 Address / Netmask:
IPv6 Address / Prefix:
Fully Qualified Hostname:
Message Security
IP Reputation Filtering: Enable / Disable
Anti-Spam Scanning Engine None / IronPort
McAfee Anti-Virus Scanning Enable / Disable
Engine
Sophos Anti-Virus Scanning Enable / Disable
Engine
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
29
Setup and Installation
Gathering the Setup Information
System Settings
Outbreak Filters Enable / Disable
Using the System Setup Wizard
• Accessing the Web-Based Graphical User Interface (GUI), on page 30
• Defining Basic Configuration Using the Web-Based System Setup Wizard , on page 32
• Setting up the Connection to Active Directory, on page 40
• Proceeding to the Next Steps, on page 41
• Accessing the Command Line Interface (CLI), on page 41
• Running the Command Line Interface (CLI) System Setup Wizard, on page 42
• Configuring your system as an Enterprise Gateway , on page 55
You must use the System Setup Wizard for the initial setup in order to ensure a complete configuration. Later,
you can configure custom options not available in the System Setup Wizard.
You can run the System Setup Wizard using a browser or the command line interface (CLI). For more
information, see Accessing the Web-Based Graphical User Interface (GUI), on page 30 or Running the
Command Line Interface (CLI) System Setup Wizard, on page 42
Before you begin, complete the prerequisites at Preparing for System Setup, on page 24.
If you are setting up a virtual email gateway, you will have to use the loadlicense command to load your
virtual email gateway license before running the System Setup Wizard. See the Cisco Content Security
Virtual Appliance Installation Guide for more information.
Caution
The System Setup Wizard will completely reconfigure your system. You should only use the System
Setup Wizard the very first time you install the email gateway, or if you want to completely overwrite
your existing configuration.
Caution
The email gateway ships with a default IP address of 192.168.42.42 on the Management port of all
hardware except C170 and C190 email gateways, which use the Data 1 port instead. Before connecting
the email gateway to your network, ensure that no other device’s IP address conflicts with this factory
default setting. If you are configuring a CiscoSecure Email and Web Manager, see CentralizingServices
on a Cisco Secure Email and Web Manager (M-Series), on page 1295.
Caution
If you are connecting multiple factory-configured content security appliances to your network, add them one
at a time, reconfiguring each appliance’s default IP address as you go.
Accessing the Web-Based Graphical User Interface (GUI)
The email gateway has a standard web-based graphical user interface, a new web-based interface for managing
the Email Security Monitor feature (Monitoring, Tracking, and Quarantine), and a command-line interface.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
30
Setup and Installation
Using the System Setup Wizard
To accessthe web-based Graphical User Interface (GUI), open your web browser and point it to 192.168.42.42.
[New Web Interface Only] You can access the new web interface in any one of the following ways:
The new web interface of your email gateway uses AsyncOS API HTTP/HTTPS ports (6080/6443) and
trailblazer HTTPS port (4431). You can use the trailblazerconfig command in the CLI to configure
the trailblazer HTTPS ports. Make sure that the trailblazer HTTPS port is opened on the firewall.
Note
• When trailblazerconfig CLI command is enabled, use the following URL -
https://example.com:/ng-login
where example.com is the email gateway host name and is the trailblazer
HTTPS port configured on the email gateway.
For more information on the trailblazerconfig CLI command, see the Cisco Secure Email Command
Reference Guide.
• Log in to the legacy web interface and click Secure Email Gateway is getting a new look. Try it!! link
to access the new web interface.
Important Notes
• Make sure that AsyncOS API is enabled on the email gateway.
• Make sure that AsyncOS HTTPS API port is not enabled on multiple interfaces.
• You must login to the legacy web interface of the email gateway.
• If trailblazerconfig is enabled, the configured HTTPSport must be opened on the firewall. The default
HTTPS port is 4431.
Also ensure that your DNS server can resolve the hostname that you specified for accessing the email
gateway.
Related Topics
• Factory Default Username and Passphrase, on page 31
• Accessing New Web Interface in Dusk Mode, on page 32
Factory Default Username and Passphrase
If you install a new virtual or hardware email gateway, you must change the default passphrase to get complete
access to set up the email gateway. When you log in to the email gateway for the first time, the web interface
prompts you to change the default passphrase, and the CLI limits the access to the following commands till
you change the default passphrase.
• Commit
• Interfaceconfig
• passphrase
• Loadconfig
• Systemsetup
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
31
Setup and Installation
Factory Default Username and Passphrase
• loadlicense (for virtual email gateways)
• feature key
• Ping
• Telnet
• netstat
• Username: admin
• Passphrase: ironport
For Example:
login: admin
passphrase: ironport
If your session times out, you will be asked to re-enter your username and passphrase. If your session
times out while you are running the System Setup Wizard, you will have to start over again.
Note
Accessing the Legacy Web Interface
To access the legacy web interface from the new web interface, click on the gear icon as shown in the
following figure:
Figure 3: Accessing the Legacy Web Interface from the
The legacy web interface opens in a new browser window. You must log in again to access it.
If you want to log out of the appliance completely, you need to log out of both the new and legacy web
interfaces of your email gateway.
Accessing New Web Interface in Dusk Mode
Dusk Mode is a reversed color scheme that utilizes light-colored typography, UI elements, and iconography
on dark backgrounds.
You can now access the new web interface of your email gateway using the dusk mode.
To switch to the dusk mode, click on the user icon on the top-right corner of the new web interface and select
Dusk Theme.
Defining Basic Configuration Using the Web-Based System Setup Wizard
Procedure
Step 1 Launch the System Setup Wizard
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
32
Setup and Installation
Accessing the Legacy Web Interface
• Log in to the graphical user interface as described in Accessing the Web-Based Graphical User Interface
(GUI), on page 30.
• On brand new (not upgraded from previousreleases of AsyncOS)systems, your browser will automatically
be redirected to the System Setup Wizard.
• Otherwise, on the System Administration tab, click System Setup Wizard in the list of links on the left.
Step 2 Start. See Step 1: Start, on page 33.
• Read and accept the license agreement
Step 3 System. See Step 2: System, on page 34.
• Setting the hostname of the email gateway
• Configuring alert settings, report delivery settings, and AutoSupport
• Setting the system time settings, and NTP server
• Resetting the admin passphrase
• Enabling Service Logs
Step 4 Network. See Step 3: Network, on page 35.
• Defining the default router and DNS settings
• Enabling and configuring network interfaces, including:Configuring incoming mail (inbound
listener)Defining SMTP routes (optional) Configuring outgoing mail (outbound listener) and defining
systems allowed to relay mail through the email gateway (optional)
Step 5 Security. Se Step 4: Security, on page 39.
• Enabling IP Reputation Filtering
• Enabling the Anti-Spam service
• Enabling the Spam Quarantine
• Enabling the Anti-Virus service
• Enabling Advanced Malware Protection (file reputation and analysis services.)
• Enabling the Outbreak Filters service
Step 6 Review. See Step 5: Review, on page 40.
• Reviewing your setup and installing the configuration
• At the end of the process, you are prompted to
Step 7 Commit the changes you have made.
Your changes will not take effect until they have been committed.
Step 1: Start
Begin by reading the license agreement. Once you have read and agreed to the license agreement, check the
box indicating that you agree and then click Begin Setup to proceed.
You can also view the text of the agreement here: https://support.ironport.com/license/eula.html
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
33
Setup and Installation
Step 1: Start
Step 2: System
• Setting the Hostname, on page 34
• Configuring System Alerts, on page 34
• Configuring Report Delivery, on page 34
• Setting the Time, on page 34
• Setting the Passphrase, on page 34
• Improving Phishing Detection Efficacy using Service Logs, on page 1129
• Enabling AutoSupport, on page 35
Setting the Hostname
Define the fully-qualified hostname for the email gateway. This name should be assigned by your network
administrator.
Configuring System Alerts
Cisco AsyncOS sends alert messages via email if there is a system error that requires the user’s intervention.
Enter the email address (or addresses) to which to send those alerts.
You must add at least one email address that receives System Alerts. Enter a single email address, or separate
multiple addresses with commas. The email recipients initially receive all types of alerts at all levels, except
for Directory Harvest Attack Prevention alerts. You can add more granularity to the alert configuration later.
For more information, see Alerts, on page 1051.
Configuring Report Delivery
Enter the address to which to send the default scheduled reports. If you leave this value blank, the scheduled
reports are still run. They will be archived on the email gateway rather than delivered.
Setting the Time
Set the time zone on the email gateway so that timestamps in message headers and log files are correct. Use
the drop-down menus to locate your time zone or to define the time zone via GMT offset (see Selecting a
GMT Offset, on page 1092 for more information).
You can set the system clock time manually later, or you can use the Network Time Protocol (NTP) to
synchronize time with otherservers on your network or the Internet. By default, one entry to the CiscoSystems
time servers( time.ironport.com ) to synchronize the time on your email gateway is already configured.
Setting the Passphrase
Set the passphrase for the admin account. This is a required step. When changing the passphrase for the Cisco
AsyncOS admin account, the new passphrase must be six characters or longer. Be sure to keep the passphrase
in a secure location.
In addition to creating a login passphrase manually, you can also create a system-generated passphrase to log
in to your email gateway.
Enabling Service Logs
The ‘Service Logs’ are sent to the Cisco Talos Cloud service to improve Phishing detection.
If you enable Service Logs, the Cisco Email Security gateway collects limited personal data from customer
emails and offers extensive useful threat detection capabilities that can be coupled with dedicated analysis
systems to collect, trend, and correlate observed threat activity. Cisco uses the personal data to improve your
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
34
Setup and Installation
Step 2: System
email gateway capabilitiesto analyze the threat landscape, provide threat classification solutions on malicious
emails, and to protect your email gateway from new threats such as spam, virus, and directory harvest attacks.
See Improving Phishing Detection Efficacy using Service Logs, on page 1129 for more information.
Enabling AutoSupport
The AutoSupport feature (enabled by default) keeps the Cisco Customer Support team aware of issues with
your email gateway so that we can provide better support to you. (For more information, see AutoSupport,
on page 1051.)
Click Next to continue.
Step 3: Network
In Step 3, you define the default router (gateway) and configure the DNS settings, and then set up the email
gateway to receive and or relay email by configuring the Data 1, Data 2, and Management interfaces.
• Configuring DNS and Default Gateway, on page 35
• Configuring Network Interfaces, on page 35
• Accepting Mail, on page 36
• Relaying Mail (Optional), on page 37
• C170 and C190 Installations, on page 38
Configuring DNS and Default Gateway
Type the IP address of the default router (gateway) on your network. You can use an IPv4 address, an IPv6
address, or both.
Next, configure the DNS (Domain Name Service) settings. Cisco AsyncOS contains a high-performance
internal DNS resolver/cache that can query the Internet’s root servers directly, or the system can use DNS
servers you specify. If you choose to use your own servers, you will need to supply the IPaddress and hostname
of each DNS server. You can enter up to four DNS servers via the System Setup Wizard. Please note that
DNSservers you enter will have an initial priority of 0.For more information, see Configuring Domain Name
System (DNS) Settings, on page 1074.
The email gateway requires access to a working DNS server in order to perform DNS lookups for
incoming connections. If you cannotspecify a working DNSserver that isreachable by the email gateway
while you are setting up the email gateway, a workaround is to either select “Use Internet Root DNS
Servers” or to specify, temporarily, the IPaddress of the Management interface so that you can complete
the System Setup Wizard.
Note
Configuring Network Interfaces
Your email gateway has network interfacesthat are associated with the physical Ethernet ports on the machine.
To use an interface, mark the “Enable” checkbox and then specify an IP address, network mask, and fully
qualified hostname. The IPaddress you entershould be the addressintended for your inbound mail asreflected
in your DNS records. Typically this address would have an MX record associated with it in DNS. You can
use an IPv4 address, an IPv6 address, or both. If you use both, the interface will accept both types of
connections.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
35
Setup and Installation
Enabling AutoSupport
Each interface can be configured to accept mail (incoming), relay email (outgoing), or appliance management.
During setup, you are limited to one of each. On most email gateways, you would typically use one interface
for incoming, one for outgoing, and one for appliance management. On the C170 and C190 email gateways,
you would typically use one interface for both incoming and outgoing mail, and the other interface for
management.
You must configure one interface to receive email.
Assign and configure a logical IP address to one of the physical Ethernet interfaces on the email gateway. If
you decide to use both the Data 1 Ethernet port and the Data 2 Ethernet port, you need this information for
both connections.
For C390, and C690 appliances: Cisco recommends using one of the physical Ethernet ports to connect
directly to the Internet for the purposes of receiving inbound email through public listeners, and using another
physical Ethernet port to connect directly to your internal network for the purposes of relaying outbound email
through private listeners.
For C190 appliances: Typically, the System Setup Wizard will configure only one physical Ethernet port
with one listener for both receiving inbound email and relaying outbound email.
See Binding Logical IP Addresses to Physical Ethernet Ports, on page 26.
The following information is required:
• The IP address assigned by your network administrator. This can be an IPv4 address, an IPv6 address,
or both.
• For IPv4 addresses: the netmask of the interface. AsyncOS only accepts a netmask in CIDR format. For
example, /24 for the 255.255.255.0 subnet.
For IPv6 addresses: the prefix in CIDR format. For example /64 for a 64-bit prefix.
• (optional) A fully-qualified hostname for the IP address.
IP addresses within the same subnet cannot be configured on separate physical Ethernet interfaces. See
Assigning Network and IP Addresses, on page 1313 for more detailed information on Network and IP
Address configuration.
Note
Accepting Mail
When configuring your interfaces to accept mail, you define:
• the domain for which to accept mail
• destination (SMTP Route) for each domain, this is optional
Mark the checkbox for Accept Incoming Mail to configure the interface to accept mail. Enter the name of the
domain for which to accept mail.
Enter the Destination. This is theSMTP Route or name of the machine(s) where you would like to route email
for the domains specified.
This is the first SMTP Routes entry. The SMTP Routes table allows you to redirect all email for each domain
(also known as a Recipient Access Table (RAT) entry) you enter to a specific mail exchange (MX) host. In
typical installations, theSMTP Routestable definesthe specific groupware (for example, Microsoft Exchange)
server or the “next hop” in the email delivery for your infrastructure.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
36
Setup and Installation
Accepting Mail
For example, you can define a route that specifies that mail accepted for the domain example.com and all of
its subdomains .example.com is routed the to the groupware server exchange.example.com .
You can enter multiple domains and destinations. Click Add Row to add another domain. Click the trash can
icon to remove a row.
Configuring SMTP Routes in this step is optional. If no SMTP routes are defined, the system will use
DNS to lookup and determine the delivery host for the incoming mail received by the listener. (See
Routing Email for Local Domains, on page 697.)
Note
You must add at least one domain to the Recipient Access Table. Enter a domain — example.com , for example.
To ensure that mail destined for any subdomain of example.net will match in the Recipient Access Table,
enter .example.net as well as the domain name. For more information, see Defining Recipient Addresses,
on page 128.
Relaying Mail (Optional)
When configuring your interfaces to relay mail, you define the systems allowed to relay email through the
email gateway.
These are entries in the RELAYLIST of the Host Access Table for a listener. See Sender Group Syntax, on
page 95 for more information.
Mark the check box for Relay Outgoing Mail to configure the interface to relay mail. Enter the hosts that may
relay mail through the email gateway.
When you configure an interface to relay outbound mail, the System Setup Wizard turns on SSH for the
interface as long as no public listeners are configured to use the interface.
In the following example, two interfaces with IPv4 addresses are created:
• 192.168.42.42 remains configured on the Management interface.
• 192.168.1.1 is enabled on the Data 1 Ethernet interface. It is configured to accept mail for domains ending
in .example.com and an SMTP route is defined for exchange.example.com.
• 192.168.2.1 is enabled on the Data 2 Ethernet interface. It is configured to relay mail from
exchange.example.com.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
37
Setup and Installation
Relaying Mail (Optional)
C390, and C690 Installations
Figure 4: Network Interfaces: 2 Interfaces in Addition to Management (Segregated Traffic)
C170 and C190 Installations
For C170 and C190 appliances, the Data 2 interface is typically configured for both incoming and outgoing
mail while the Data 1 interface is used for appliance management.
When configuring a single IP address for all email traffic (nonsegregated traffic), step 3 of the System Setup
Wizard will look like this:
Figure 5: Network Interfaces: 1 IP Address for Incoming and Outgoing (Nonsegregated) Traffic
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
38
Setup and Installation
C390, and C690 Installations
Click Next to continue.
Step 4: Security
In step 4, you configure anti-spam and anti-virussettings. The anti-spam optionsinclude IP ReputationFiltering
and selecting an anti-spam scanning engine. For anti-virus, you can enable Outbreak Filters and Sophos or
McAfee anti-virus scanning.
• Enabling IP Reputation Filtering, on page 39
• Enabling Anti-Spam Scanning, on page 39
• Enabling Anti-Virus Scanning, on page 39
• Enabling Advanced Malware Protection (File Reputation and Analysis Services) , on page 39
• Enabling Outbreak Filters, on page 40
Enabling IP Reputation Filtering
The IP Reputation Service can be used as a stand-alone anti-spam solution, but it is primarily designed to
improve the effectiveness of a content-based anti-spam system such as Anti-Spam.
The IP Reputation Service provides an accurate, flexible way for users to reject or throttle suspected spam
based on the connecting IP address of the remote host. The IP Reputation Service returns a score based on
the probability that a message from a given source is spam. The IP Reputation Service is unique in that it
provides a global view of email message volume and organizes the data in a way that makes it easy to identify
and group related sources of email. Cisco strongly suggests that you enable IP Reputation Filtering.
Once enabled, IP Reputation Filtering is applied on the incoming (accepting) listener.
Enabling Anti-Spam Scanning
Your email gateway may ship with a 30-day evaluation key for Anti-Spam software. During this portion of
the System Setup Wizard, you can choose to enable Anti-Spam globally on the email gateway. You can also
elect to not enable the service.
If you choose to enable the anti-spam service, you can configure AsyncOS to send spam and suspected spam
messages to the local Spam Quarantine. The Spam Quarantine serves as the end-user quarantine for the email
gateway. Only administrators can access the quarantine until end-user access is configured.
See Managing Spam and Graymail, on page 383 for all of the Anti-Spam configuration options available on
the email gateway. See Policy, Virus, and Outbreak Quarantines, on page 927.
Enabling Anti-Virus Scanning
Your email gateway may ship with a 30-day evaluation key for the Sophos Anti-Virus or McAfee Anti-Virus
scanning engines. During this portion of the System Setup Wizard, you can choose to enable an anti-virus
scanning engine globally on the email gateway.
If you choose to enable an anti-virus scanning engine, it is enabled for both the default incoming and default
outgoing mail policies. The email gateway scans mail for viruses, but it does not repair infected attachments.
The email gateway drops infected messages.
See Anti-Virus, on page 365 for all of the anti-virus configuration options available on the email gateway.
Enabling Advanced Malware Protection (File Reputation and Analysis Services)
Advanced MalwareProtection obtainsreputation information about attached filesfrom a cloud-based service.
For more information, see File Reputation Filtering and File Analysis, on page 481
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
39
Setup and Installation
Step 4: Security
Enabling Outbreak Filters
Your email gateway may ship with a 30-day evaluation key for Outbreak Filters. Outbreak Filters provide a
“first line of defense” against new virus outbreaks by quarantining suspicious messages until traditional
anti-virus security services can be updated with a new virus signature file.
See Outbreak Filters, on page 425 for more information.
Click Next to continue.
Step 5: Review
A summary of the configuration information is displayed. You can edit the System Settings, Network
Integration, and MessageSecurity information by clicking the Previous button or by clicking the corresponding
Edit link in the upper-right of each section. When you return to a step to make a change, you must proceed
through the remaining steps until you reach this review page again. All settings you previously entered will
be remembered.
Once you are satisfied with the information displayed click Install This Configuration.
A confirmation dialog is displayed. Click Install to install the new configuration.
Your email gateway is now ready to send email.
Clicking Install will cause the connection to the current URL (http://192.168.42.42) to be lost if you
changed the IP address of the interface you used to connect to the email gateway from the default.
However, your browser will be redirected to the new IP address.
Note
Once System Setup is complete, several alert messages are sent. See Immediate Alerts, on page 55 for more
information.
Setting up the Connection to Active Directory
If the System Setup Wizard properly installs the configuration on the email gateway, the Active Directory
Wizard appears. If you are running an Active Directory server on your network, use the Active Directory
Wizard to configure an LDAP server profile for the Active Directory server and assign a listener for recipient
validation. If you are not using Active Directory or want to configure it later, click Skip this Step. You can
run the Active Directory Wizard on the System Administration > Active Directory Wizard page. You can
also configure Active Directory and other LDAP profiles on the System Administration > LDAP page.
The Active Directory Wizard retrieves the system information needed to create an LDAP server profile, such
as the authentication method, the port, the base DN, and whether SSL is supported. The Active Directory
Wizard also creates LDAP accept and group queries for the LDAP server profile.
After the Active Directory Wizard creates the LDAPserver profile, use theSystem Administration > LDAP
page to view the new profile and make additional changes
Procedure
Step 1 On the Active Directory Wizard page, click Run Active Directory Wizard.
Step 2 Enter the host name for the Active Directory server.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
40
Setup and Installation
Enabling Outbreak Filters
Step 3 Enter a username and passphrase for the authentication request.
Step 4 Click Next to continue.
The Active Directory Wizard tests the connection to the Active Directory server. If successful, the Test
Directory Settings page is displayed.
Step 5 Test the directory settings by entering an email address that you know exists in the Active Directory and
clicking Test. The results appear in the connection status field.
Step 6 Click Done.
Proceeding to the Next Steps
After you successfully configure your email gateway to work with your Active Directory Wizard, or skip the
process, the System Setup Next Steps page appears.
Click the links on theSystem Setup NextSteps page to proceed with the configuration of your email gateway.
Accessing the Command Line Interface (CLI)
Access to the CLI varies depending on the management connection method you chose in Connecting to the
Email Gateway, on page 25. The factory default username and passphrase 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. (For information about
adding users, see Adding Users , on page 980.) The System Setup Wizard asks you to change the passphrase
for the admin account. The passphrase for the admin account can also be reset directly at any time using the
passphrase command.
To connect via Ethernet: Start an SSH session with the factory default IP address 192.168.42.42. SSH is
configured to use port 22. Enter the username and passphrase 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. Use the settings for serial port outlined in Connecting to the
Email Gateway, on page 25. Enter the username and passphrase below.
Log in to the email gateway by entering the username and passphrase.
Related Topics
• Factory Default Username and Passphrase, on page 31
Factory Default Username and Passphrase
If you install a new virtual or hardware email gateway, you must change the default passphrase to get complete
access to set up the email gateway. When you log in to the email gateway for the first time, the web interface
prompts you to change the default passphrase, and the CLI limits the access to the following commands till
you change the default passphrase.
• Commit
• Interfaceconfig
• passphrase
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
41
Setup and Installation
Proceeding to the Next Steps
• Loadconfig
• Systemsetup
• loadlicense (for virtual email gateways)
• feature key
• Ping
• Telnet
• netstat
• Username: admin
• Passphrase: ironport
For Example:
login: admin
passphrase: ironport
If your session times out, you will be asked to re-enter your username and passphrase. If your session
times out while you are running the System Setup Wizard, you will have to start over again.
Note
Running the Command Line Interface (CLI) System Setup Wizard
The CLI version of the System Setup Wizard basically mirrors the steps in the GUI version, with a few minor
exceptions:
• The CLI version includes prompts to enable the web interface.
• The CLI version allows you to edit the default Mail Flow Policy for each listener you create.
• The CLI version contains prompts for configuring the global Anti-Virus and Outbreak Filters security
settings.
• The CLI version does not prompt you to create an LDAP profile after the system setup is complete. Use
the ldapconfig command to create an LDAP profile.
To run the System Setup Wizard, type systemsetup at the command prompt.
IronPort> systemsetup
The System Setup Wizard warns you that you will reconfigure your system. If this is the very first time you
are installing the email gateway, or if you want to completely overwrite your existing configuration, answer
“Yes” to this question.
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
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
42
Setup and Installation
Running the Command Line Interface (CLI) System Setup Wizard
The remainder of the system setup steps are described below. Examples of the CLISystem Setup Wizard
dialogue will only be included for sections that deviate from the GUI System Setup Wizard described
above in Defining Basic Configuration Using the Web-Based System Setup Wizard , on page 32.
Note
Related Topics
• Change the Admin Passphrase, on page 43
• Accept the License Agreement, on page 43
• Set the Hostname , on page 43
• Assign and Configure Logical IP Interface(s), on page 44
• Specify the Default Gateway, on page 44
• Enable the Web Interface, on page 45
• Configure the DNS Settings, on page 45
• Create a Listener, on page 45
• Enable Anti-Spam, on page 52
• Select a Default Anti-Spam Scanning Engine, on page 53
• Enable the Spam Quarantine, on page 53
• Enable Anti-Virus Scanning, on page 53
• Enable Outbreak Filters , on page 53
• Configure the Alert Settings and AutoSupport, on page 54
• Configure Scheduled Reporting, on page 54
• Configure Time Settings, on page 54
• Commit Changes, on page 54
• Test the Configuration, on page 54
• Immediate Alerts, on page 55
Change the Admin Passphrase
First, you change the passphrase for the AsyncOS admin account. You must enter the old passphrase to
continue. The new passphrase must be six characters or longer. Be sure to keep the passphrase in a secure
location. Changes made to the passphrase are effective once the system setup process is finished.
In addition to creating a login passphrase manually, you can also create a system-generated passphrase to log
in to your email gateway.
Accept the License Agreement
Read and accept the software license agreement that is displayed.
Set the Hostname
Next, you define the fully-qualified hostname for the email gateway. This name should be assigned by your
network administrator.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
43
Setup and Installation
Change the Admin Passphrase
Assign and Configure Logical IP Interface(s)
The nextstep assigns and configures a logical IPinterface on the physical Ethernet interface named Management
(on C390, and C690 appliances) or Data 1 (on C190 appliances), and then prompts you to configure a logical
IP interface on any other physical Ethernet interfaces available on the email gateway.
Each Ethernet interface can have multiple IP interfaces assigned to it. An IP interface is a logical construct
that associates an IP address and hostname with a physical Ethernet interface. If you decided to use both the
Data 1 and Data 2 Ethernet ports, you need the IP addresses and hostnames for both connections.
For C390, and C690 appliances: Cisco recommends using one of the physical Ethernet ports to connect
directly to the Internet for the purposes of receiving inbound email through public listeners, and using another
physical Ethernet port to connect directly to your internal network for the purposes of relaying outbound email
through private listeners.
For C190 appliances: By default, the systemsetup command will configure only one physical Ethernet port
with one listener for receiving inbound email and relaying outbound email.
When you configure an interface to relay outbound mail, the system turns on SSH for the interface as
long as no public listeners are configured to use the interface.
Note
The following information is required:
• A name (nickname) created by you to refer to the IP interface later. For example, if you are using one
Ethernet port for your private network and the other for the public network, you may want to name them
PrivateNet and PublicNet, respectively.
The names you define for interfaces are case-sensitive. AsyncOS will not
allow you to create two identical interface names. For example, the names
Privatenet and PrivateNet are considered astwo different (unique) names.
Note
• The IP address assigned by your network administrator. This is can be an IPv4 or IPv6 address, You
can assign both types of IP addresses to a single IP interface.
• The netmask of the interface. The netmask must be in CIDR format. For example, use /24 for the
255.255.255.0 subnet.
IP addresses within the same subnet cannot be configured on separate
physical Ethernet interfaces. See Assigning Network and IP Addresses, on
page 1313 for more detailed information on Network and IP Address
configuration.
For C190 appliances, the Data 2 interface is configured first.
Note
Specify the Default Gateway
In the next portion of the systemsetup command, you type the IP address of the default router (gateway) on
your network.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
44
Setup and Installation
Assign and Configure Logical IP Interface(s)
Enable the Web Interface
In the next portion of the systemsetup command, you enable the web interface for the email gateway (for
the Management Ethernet interface). You can also choose to run the web interface over secure HTTP ( https
). If you choose to use HTTPS, the system will use a demonstration certificate until you upload your own
certificate.
Configure the DNS Settings
Next, you configure the DNS (Domain Name Service) settings. Cisco AsyncOS contains a high-performance
internal DNS resolver/cache that can query the Internet’s root servers directly, or the system can use your
own DNSservers. If you choose to use your own servers, you will need to supply the IPaddress and hostname
of each DNS server. You can enter as many DNS servers as you need (each server will have a priority of 0.).
By default, systemsetup prompts you to enter the addresses for your own DNS servers.
Create a Listener
A “listener” manages inbound email processing services that will be configured on a particular IP interface.
Listeners only apply to email entering the email gateway — either from your internal systems or from the
Internet. Cisco AsyncOS uses listeners to specify criteria that messages must meet in order to be accepted
and relayed to recipient hosts. You can think of a listener as an email listener (or even a “SMTP daemon”)
running for IP addresses you specified above.
For C390, and C690 appliances: By default, the systemsetup command configures two listeners — one
public and one private. (For more information on the types of listeners available,see Configuring the Gateway
to Receive Email, on page 69.)
For C190 appliances: By default, the systemsetup command configures one public listener for both receiving
mail from the Internet and for relaying email from your internal network. See Listener Example for C190
Appliances , on page 50.
When you define a listener, you specify the following attributes:
• A name (nickname) created by you to refer to the listener later. For example, the listener that accepts
email from your internal systems to be delivered to the Internet may be called OutboundMail.
• One of the IP interfaces (that you created earlier in the systemsetup command) on which to receive
email.
• The name of the machine(s) to which you want to route email (public listeners only). (This is the first
smtproutes entry. See Routing Email for Local Domains, on page 697.)
• Whether or not to enable filtering based on IP Reputation Scores for public listeners. If enabled, you are
also prompted to select between Conservative, Moderate, or Aggressive settings.
• Rate-limiting per host: the maximum number of recipients per hour you are willing to receive from a
remote host (public listeners only).
• The recipient domains or specific addresses you want to accept email for (public listeners) or the systems
allowed to relay email through the email gateway (private listeners). (These are the first Recipient Access
Table and Host Access Table entries for a listener. See Sender Group Syntax, on page 95 and Adding
Domains and Users For Which to Accept Messages, on page 127 for more information.)
Related Topics
• Public Listener, on page 46
• Private Listener, on page 48
• Listener Example for C190 Appliances , on page 50
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
45
Setup and Installation
Enable the Web Interface
Public Listener
The following examples of creating a public and private listener apply to C390, and C690 appliances
only. For C190 appliances, skip to the next section, Listener Example for C190 Appliances , on page
50.
Note
In this example portion of the systemsetup command, a public listener named InboundMail is configured to
run on the PublicNet IP interface. Then, it is configured to accept all email for the domain example.com . An
initial SMTP route to the mail exchange exchange.example.com is configured. Rate limiting is enabled, and
the maximum value of 4500 recipients per hour from a single host is specified for the public listener.
The value you enter for maximum recipients per hour you are willing to receive from a remote host is
a completely arbitrary value, one that is usually relative to the size of the enterprise for which you are
administering email. For example, a sender who sends 200 messages in an hour might be considered a
“spammer” (sender of unsolicited bulk email), but if you are configuring the email gateway to handle
all email for a 10,000 person company, 200 messages per hour from a remote host may be a reasonable
value. Conversely, in a 50-person company, someone sending 200 messages in an hour to you may be
an obvious spammer. You must choose an appropriate value when you enable rate-limiting on a public
listener (throttle) inbound email for your enterprise. For more information on Default Host Access
policies, see Sender Group Syntax, on page 95.
Note
The default host access policy for the listener is then accepted.
You are now going to configure how the appliance 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. Management (192.168.42.42/24: mail3.example.com)
2. PrivateNet (192.168.1.1/24: mail3.example.com)
3. PublicNet (192.168.2.1/24: mail3.example.com)
[1]> 3
Enter the domains or specific addresses you want to accept mail for.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
46
Setup and Installation
Public Listener
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 "joe@example.com" or "joe@[1.2.3.4]" are allowed.
Separate multiple addresses with commas.
[]> example.com
Would you like to configure SMTP routes for example.com? [Y]> y
Enter the destination mail server which you want mail for example.com to be delivered.
Separate multiple entries with commas.
[]> exchange.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.) [Y]> y
Enter the maximum number of recipients per hour to accept from a remote domain.
[]> 4500
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: 4,500
Maximum Recipients Per Hour SMTP Response:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
47
Setup and Installation
Public Listener
452 Too many recipients received this hour
Use SenderBase for Flow Control: Yes
Virus Detection Enabled: Yes
Allow TLS Connections: 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.
*****
Private Listener
In this example portion of the systemsetup command, a private listener named OutboundMail is configured
to run on the PrivateNet IP interface. Then, it is configured to relay all email for all hosts within the domain
example.com . (Note the dot at the beginning of the entry: .example.com )
The default value for rate limiting (not enabled) and the default host access policy for this listener are then
accepted.
Note that the default values for a private listener differ from the public listener created earlier. For more
information, see Working with Listeners, on page 70.
Do you want to configure the appliance 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. Management (192.168.42.42/24: mail3.example.com)
2. PrivateNet (192.168.1.1/24: mail3.example.com)
3. PublicNet (192.168.2.1/24: mail3.example.com)
[1]> 2
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
48
Setup and Installation
Private Listener
Please specify the systems allowed to relay email through the appliance.
Hostnames such as "example.com" are allowed.
Partial hostnames such as ".example.com" are allowed.
IP addresses, IP address ranges, and partial IP addressed 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
Virus Detection Enabled: Yes
Allow TLS Connections: 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.
*****
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
49
Setup and Installation
Private Listener
Listener Example for C190 Appliances
Note The following example of creating a listener applies to C170 and C190 appliances only.
In this example portion of the systemsetup command, a listener named MailInterface is configured to run on
the MailNet IP interface. Then, it is configured to accept all email for the domain example.com . An initial
SMTProute to the mail exchange exchange.example.com is configured. Then, the same listener is configured
to relay all email for all hosts within the domain example.com . (Note the dot at the beginning of the entry:
.example.com )
Rate limiting is enabled, and the maximum value of 450 recipients per hour from a single host is specified
for the public listener.
The value you enter for maximum recipients per hour you are willing to receive from a remote host is
a completely arbitrary value, one that is usually relative to the size of the enterprise for which you are
administering email. For example, a sender who sends 200 messages in an hour might be considered a
“spammer” (sender of unsolicited bulk email), but if you are configuring the email gateway to handle
all email for a 10,000 person company, 200 messages per hour from a remote host may be a reasonable
value. Conversely, in a 50-person company, someone sending 200 messages in an hour to you may be
an obvious spammer. You must choose an appropriate value when you enable rate-limiting on a public
listener (throttle) inbound email for your enterprise. For more information on Default Host Access
policies, see Sender Group Syntax, on page 95.
Note
The default host access policy for the listener is then accepted.
You are now going to configure how the appliance accepts mail by creating a "Listener".
Please create a name for this listener (Ex: "MailInterface"):
[]> MailInterface
Please choose an IP interface for this Listener.
1. MailNet (10.1.1.1/24: mail3.example.com)
2. Management (192.168.42.42/24: mail3.example.com)
[1]> 1
Enter the domain names or specific email addresses you want to accept mail for.
Hostnames such as "example.com" are allowed.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
50
Setup and Installation
Listener Example for C190 Appliances
Partial hostnames such as ".example.com" are allowed.
Usernames such as "postmaster@" are allowed.
Full email addresses such as "joe@example.com" or "joe@[1.2.3.4]" are allowed.
Separate multiple addresses with commas.
[]> example.com
Would you like to configure SMTP routes for example.com? [Y]> y
Enter the destination mail server where you want mail for example.com to be delivered.
Separate multiple entries with commas.
[]> exchange.example.com
Please specify the systems allowed to relay email through the appliance.
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.) [Y]> y
Enter the maximum number of recipients per hour to accept from a remote domain.
[]> 450
Default Policy Parameters
==========================
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
51
Setup and Installation
Listener Example for C190 Appliances
Maximum Message Size: 10M
Maximum Number Of Connections From A Single IP: 50
Maximum Number Of Messages Per Connection: 100
Maximum Number Of Recipients Per Message: 100
Maximum Number Of Recipients Per Hour: 450
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
Would you like to change the default host access policy? [N]>
Listener MailInterface created.
Defaults have been set for a Public listener.
Use the listenerconfig->EDIT command to customize the listener.
*****
Because the systemsetup command only configures one listener for both inbound and outbound mail
for C170 and C190 appliances, all outgoing mail will be calculated in the Mail Flow Monitor feature
(which is normally used for inbound messages). See Using Email Security Monitor, on page 833
Note
Enable Anti-Spam
Your email gateway ships with a 30-day evaluation key for the Anti-Spam software. During this portion of
the systemsetup command, you can choose to accept the license agreements and enable Anti-Spam globally
on the email gateway.
Anti-Spam scanning will then be enabled on the incoming mail policy.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
52
Setup and Installation
Enable Anti-Spam
Note If you do not accept the license agreement, Anti-Spam is not enabled on the email gateway.
See Managing Spam and Graymail, on page 383 for all of the Anti-Spam configuration options available on
the email gateway.
Select a Default Anti-Spam Scanning Engine
If you have enabled more than one anti-spam scanning engine, you are prompted to select which engine will
be enabled for use on the default incoming mail policy.
Enable the Spam Quarantine
If you choose to enable an anti-spam service, you can enable the incoming mail policy to send spam and
suspected spam messages to the local Spam Quarantine. Enabling the Spam Quarantine also enables the
end-user quarantine on the email gateway. Only administrators can access the end-user quarantine until
end-user access is configured.
See Setting Up the Local Spam Quarantine, on page 948 .
Enable Anti-Virus Scanning
Your email gateway ships with a 30-day evaluation key for virus scanning engines. During this portion of the
systemsetup command, you can choose to accept one or more license agreements and enable anti-virus
scanning on the email gateway. You must accept a license agreement for each anti-virus scanning engine you
want to enable on your email gateway.
After you accept the agreement, the anti-virus scanning engine you selected is enabled on the incoming mail
policy. The email gateway scans incoming mail for viruses, but it does not repair infected attachments. The
appliance drops infected messages.
See Anti-Virus, on page 365 for the anti-virus configuration options available on the email gateway.
Enable Outbreak Filters
This next step prompts you to enable Outbreak Filters. Your email gateway ships with a 30-day evaluation
key for Outbreak Filters.
Related Topics
• Outbreak Filters, on page 53
Outbreak Filters
Outbreak Filters provide a “first line of defense” against new virus outbreaks by quarantining suspicious
messages until traditional Anti-Virus security services can be updated with a new virus signature file. If
enabled, Outbreak Filters will be enabled on the default Incoming Mail Policy.
If you choose to enable Outbreak Filters, enter a threshold value and whether you would like to receive
OutbreakFilters alerts.For more information about OutbreakFilters and threshold values,see OutbreakFilters,
on page 425.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
53
Setup and Installation
Select a Default Anti-Spam Scanning Engine
Configure the Alert Settings and AutoSupport
Cisco AsyncOS sends alert messages to a user via email if there is a system error that requires the user’s
intervention. Add at least one email address that receives system alerts. Separate multiple addresses with
commas. The email addressesthat you enter initially receive all types of alerts at all levels, except for Directory
Harvest Attack Prevention alerts. You can add more granularity to the alert configuration later using the
alertconfig command in the CLI or the System Administration > Alerts page in the GUI. For more
information, see section Alerts of chapter Distributing Administrative Tasks of the Cisco Secure Email
Gateway Guide.
The AutoSupport feature keeps the Cisco Customer Support team aware of issues with your email gateway
so that Cisco can provide industry-leading support to you. Answer “Yes” to send Cisco support alerts and
weekly status updates. (For more information, see section AutoSupport of chapter Distributing Administrative
Tasks of the Cisco Secure Email Gateway Guide.)
Configure Scheduled Reporting
Enter an address to which to send the default scheduled reports. You can leave this value blank and the reports
will be archived on the email gateway instead of sent via email.
Configure Time Settings
Cisco AsyncOS allows you to use the Network Time Protocol (NTP) to synchronize time with other servers
on your network or the Internet, or to manually set the system clock. You must also set the time zone on the
email gateway so that timestamps in message headers and log files are correct. You can also use the Cisco
Systems time servers to synchronize the time on your email gateway.
Choose the Continent, Country, and Timezone and whether to use NTP including the name of the NTP server
to use.
Commit Changes
Finally, theSystem Setup Wizard will ask you to commit the configuration changes you have made throughout
the procedure. Answer “Yes” if you want to commit the changes.
When you have successfully completed the System Setup Wizard, the following message will appear and you
will be presented with the command prompt:
Congratulations! System setup is complete. For advanced configuration, please refer to the
User Guide.
mail3.example.com>
The email gateway is now ready to send email.
Test the Configuration
To test the Cisco 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:
mail3.example.com> mailconfig
Please enter the email address to which you want to send
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
54
Setup and Installation
Configure the Alert Settings and AutoSupport
the configuration file. Separate multiple addresses with commas.
[]> user@example.com
The configuration file has been sent to user@example.com.
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.
Immediate Alerts
The email gateway uses feature keys to enable features. The first time you create a listener in the systemsetup
command, enable Anti-Spam, enable Sophos or McAfee Anti-Virus, or enable Outbreak Filters, an alert is
generated and sent to the addresses you specified in Step 2: System, on page 34.
The alert notifies you periodically of the time remaining on the key. For example:
Your "Receiving" key will expire in under 30 day(s).
Please contact IronPort Customer Support.
Your "Sophos" key will expire in under 30 day(s).
Please contact IronPort Customer Support.
Your "Outbreak Filters" key will expire in under 30 day(s).
Please contact IronPort Customer Support.
For information on enabling a feature beyond the 30-day evaluation period, contact your Cisco sales
representative. You can see how much time remains on a key via the System Administration > Feature
Keys page or by issuing the featurekey command. (For more information, see Feature Keys, on page 1008.)
Configuring your system as an Enterprise Gateway
To configure your system as an Enterprise Gateway (accepting email from the Internet), complete this chapter
first, and then see Configuring the Gateway to Receive Email, on page 69 for more information.
Verifying Your Configuration and Next Steps
Now that system setup is complete, your email gateway should be sending and receiving email. If you have
enabled the anti-virus, anti-spam, and virus-outbreak filters security features, the system will also be scanning
incoming and outgoing mail for spam and viruses.
The nextstep isto understand how to customize your email gateway's configuration. Understanding the Email
Pipeline, on page 57 provides a detailed overview of how email is routed through the system. Each feature
is processed in order (from top to bottom) and is described in the remaining chapters of this guide.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
55
Setup and Installation
Immediate Alerts
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
56
Setup and Installation
Verifying Your Configuration and Next Steps
CHAPTER 4
Understanding the Email Pipeline
This chapter contains the following sections:
• Overview of the Email Pipeline, on page 57
• Email Pipeline Flows, on page 57
• Incoming / Receiving, on page 60
• Work Queue / Routing, on page 62
• Delivery, on page 66
Overview of the Email Pipeline
The Email Pipeline is the flow of email as it is processed by the email gateway. It has three phases:
• Receipt — As the email gateway connects to a remote host to receive incoming email, it adheres to
configured limits and other receipt policies. For example, verifying that the host can send your users
mail, enforcing incoming connection and message limits, and validating the message’s recipient.
• Work Queue — The email gateway processes incoming and outgoing mail, performing tasks such as
filtering,safelist/blocklistscanning, anti-spam and anti-virusscanning, OutbreakFilters, and quarantining.
• Delivery — As the email gateway connects to send outgoing email, it adheres to configured delivery
limits and policies. For example, enforcing outbound connection limits and processing undeliverable
messages as specified.
Email Pipeline Flows
The following figures provide an overview of how email is processed through the system, from receipt to
routing to delivery. Each feature is processed in order (from top to bottom). You can test most of the
configurations of features in this pipeline using the trace command.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
57
Figure 6: Email Pipeline — Receiving Email Connections
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
58
Understanding the Email Pipeline
Email Pipeline Flows
Figure 7: Email Pipeline — Work Queue
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
59
Understanding the Email Pipeline
Email Pipeline Flows
Figure 8: Email Pipeline — Delivering Email
Incoming / Receiving
The receiving phase of the EmailPipeline involvesthe initial connection from the sender’s host. Each message’s
domains can be set, the recipient is checked, and the message is handed off to the work queue.
Related Topics
• Host Access Table (HAT), Sender Groups, and Mail Flow Policies, on page 60
• Received: Header, on page 61
• Default Domain, on page 61
• Bounce Verification, on page 61
• Domain Map, on page 61
• Recipient Access Table (RAT), on page 61
• Alias Tables, on page 61
• LDAP Recipient Acceptance, on page 62
• SMTP Call-Ahead Recipient Validation, on page 62
Host Access Table (HAT), Sender Groups, and Mail Flow Policies
The HAT allows you to specify hosts that are allowed to connect to a listener (that is, which hosts you will
allow to send email).
Sender Groups are used to associate one or more senders into groups, upon which you can apply message
filters, and other Mail Flow Policies. Mail Flow Policies are a way of expressing a group of HAT parameters
(access rule, followed by rate limit parameters and custom SMTP codes and responses).
Together, sender groups and mail flow policies are defined in a listener’s HAT.
Host DNS verification settings for sender groups allow you to classify unverified senders prior to the SMTP
conversation and include different types of unverified senders in your various sender groups.
While the connecting host was subject to Host DNS verification in sender groups — prior to the SMTP
conversation — the domain portion of the envelope sender is DNS verified in mail flow policies, and the
verification takes place during the SMTP conversation. Messages with malformed envelope senders can be
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
60
Understanding the Email Pipeline
Incoming / Receiving
ignored. You can add entries to the Sender Verification Exception Table — a list of domains and email
addresses from which to accept or reject mail despite envelope sender DNS verification settings.
Sender reputation filtering allows you to classify email senders and restrict access to your email infrastructure
based on sender’s trustworthiness as determined by the IP Reputation Service.
For more information, see Understanding Predefined Sender Groups and Mail Flow Policies, on page 102.
Received: Header
Using the listenerconfig command, you can configure a listener to not include the Received: header
by default to all messages received by the listener.
For more information, see Working with Listeners, on page 70.
Default Domain
You can configure a listener to automatically append a default domain to sender addresses that do not contain
fully-qualified domain names; these are also known as “bare” addresses(such as “joe” vs. “joe@example.com”).
For more information, see Working with Listeners, on page 70.
Bounce Verification
Outgoing mail is tagged with a special key, and so if that mail is sent back as a bounce, the tag is recognized
and the mail is delivered. For more information, see Bounce Verification, on page 735.
Domain Map
For each listener you configure, you can construct a domain map table which rewrites the envelope recipient
for each recipient in a message that matches a domain in the domain map table. For example, joe@old.com
-> joe@new.com
For more information, see The Domain Map Feature, on page 720.
Recipient Access Table (RAT)
For inbound email only, the RAT allows you to specify a list of all local domains for which the email gateway
will accept mail.
For more information,see Overview of Accepting or Rejecting Connections Based on the Recipient’s Address,
on page 125.
Alias Tables
Alias tables provide a mechanism to redirect messages to one or more recipients. Aliases are stored in a
mapping table. When the envelope recipient (also known as the Envelope To, or RCPT TO ) of an email
matches an alias as defined in an alias table, the envelope recipient address of the email will be rewritten.
For more information about Alias Tables, see Creating Alias Tables, on page 703.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
61
Understanding the Email Pipeline
Received: Header
LDAP Recipient Acceptance
You can use your existing LDAPinfrastructure to define how the recipient email address of incoming messages
(on a public listener) should be handled during the SMTP conversation or within the workqueue. For more
informaiton, see Working with Listeners, on page 70. This allows the email gateway to combat directory
harvest attacks (DHAP) in a unique way: the system accepts the message and performs the LDAP acceptance
validation within theSMTPconversation or the work queue. If the recipient is not found in the LDAPdirectory,
you can configure the system to perform a delayed bounce or drop the message entirely.
For more information, see Working with LDAP Queries, on page 785.
SMTP Call-Ahead Recipient Validation
When you configure your email gateway forSMTPcall-ahead recipient validation, the email gateway suspends
theSMTPconversation with the sending MTA while it “calls ahead” to theSMTPserver to verify the recipient.
When the email gateway queriestheSMTPserver, it returnstheSMTPserver’sresponse to the email gateway.
The email gateway resumes the SMTP conversation and sends a response to the sending MTA, allowing the
conversation to continue or dropping the connection based on the SMTP server response (and settings you
configure in the SMTP Call-Ahead profile).
For more information, see Validating Recipients Using an SMTP Server, on page 667
Work Queue / Routing
The Work Queue is where the received message is processed before moving to the delivery phase. Processing
includes masquerading, routing, filtering, safelist/blocklist scanning, anti-spam and anti-virus scanning, file
reputation scanning and analysis, Outbreak Filters, and quarantining.
Data loss prevention (DLP) scanning is only available for outgoing messages.For information on where
DLP message scanning occurs in the Work Queue, see Message Splintering, on page 264.
Note
Related Topics
• Email Pipeline and Security Services, on page 62
• LDAP Recipient Acceptance, on page 62
• Masquerading or LDAP Masquerading, on page 63
• LDAP Routing, on page 63
• Message Filters, on page 63
• Email Security Manager (Per-Recipient Scanning), on page 64
• Quarantines, on page 65
Email Pipeline and Security Services
Note, as a general rule, changes to security services (anti-spam scanning, anti-virus scanning, and Outbreak
Filters) do not affect messages already in the work queue. As an example:
If a message bypasses anti-virus scanning when it first enters the pipeline because of any of these reasons:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
62
Understanding the Email Pipeline
LDAP Recipient Acceptance
• anti-virus scanning was not enabled globally for the appliance, or
• the HAT policy was to skip anti-virus scanning, or
• there was a message filter that caused the message to bypass anti-virus scanning,
then the message will not be anti-virus scanned upon release from the quarantine, regardless of whether
anti-virus scanning has been re-enabled. However, messages that bypass anti-virus scanning due to mail
policies may be anti-virus scanned upon release from a quarantine, as the mail policy's settings may have
changed while the message was in the quarantine. For example, if a message bypasses anti-virus scanning
due to a mail policy and is quarantined, then, prior to release from the quarantine, the mail policy is updated
to include anti-virus scanning, the message will be anti-virus scanned upon release from the quarantine.
Similarly, suppose you had inadvertently disabled anti-spam scanning globally (or within the HAT), and you
notice this after mail is in the work queue. Enabling anti-spam at that point will not cause the messages in the
work queue to be anti-spam scanned.
LDAP Recipient Acceptance
You can use your existing LDAPinfrastructure to define how the recipient email address of incoming messages
(on a public listener) should be handled during the SMTP conversation or within the workqueue. For more
informaiton, see Working with Listeners, on page 70. This allows the email gateway to combat directory
harvest attacks (DHAP) in a unique way: the system accepts the message and performs the LDAP acceptance
validation within theSMTPconversation or the work queue. If the recipient is not found in the LDAPdirectory,
you can configure the system to perform a delayed bounce or drop the message entirely.
For more information, see Working with LDAP Queries, on page 785.
Masquerading or LDAP Masquerading
Masquerading is a feature that rewrites the envelope sender (also known as the sender, or MAIL FROM ) and
the To:, From:, and/or CC: headers on email processed by a private or public listener according to a table you
construct. You can specify different masquerading parameters for each listener you create in one of two ways:
via a static mapping table, or via an LDAP query.
For more information about masquerading via a static mapping table, see Configuring Masquerading, on page
710.
For more information about masquerading via an LDAP query, see Working with LDAP Queries, on page
785.
LDAP Routing
You can configure your email gateway to route messages to the appropriate address and/or mail host based
upon the information available in LDAP directories on your network.
For more information, see Working with LDAP Queries, on page 785.
Message Filters
Message filters allow you to create special rules describing how to handle messages and attachments as they
are received. Filter rules identify messages based on message or attachment content, information about the
network, message envelope, message headers, or message body. Filter actions allow messages to be dropped,
bounced, archived, quarantined, blind carbon copied, or altered.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
63
Understanding the Email Pipeline
LDAP Recipient Acceptance
For more information, see Using Message Filters to Enforce Email Policies, on page 131.
Multi-recipient messages are “splintered” after this phase, prior to Email Security Manager. Splintering
messages refers to creating splinter copies of emails with single recipients, for processing via Email Security
Manager.
Email Security Manager (Per-Recipient Scanning)
• Safelist/Blocklist Scanning, on page 64
• Anti-Spam, on page 64
• Anti-Virus, on page 64
• Graymail Detection and Safe Unsubscribing, on page 65
• File Reputation Scanning and File Analysis , on page 65
• Content Filters, on page 65
• Outbreak Filters, on page 65
Safelist/Blocklist Scanning
End user safelists and blocklists are created by end users and stored in a database that is checked prior to
anti-spam scanning. Each end user can identify domains, sub domains or email addresses that they wish to
always treat as spam or never treat as spam. If a sender address is part of an end users safelist, anti-spam
scanning is skipped, and if the sender address is listed in the blocklist, the message may be quarantined or
dropped depending on administrator settings.For more information about configuring safelists and blocklists,
see Spam Quarantine, on page 947.
Anti-Spam
Anti-spam scanning offers complete, Internet-wide, server-side anti-spam protection. It actively identifies
and defuses spam attacks before they inconvenience your users and overwhelm or damage your network,
allowing you to remove unwanted mail before it reaches your users’ inboxes, without violating their privacy.
Anti-spam scanning can be configured to deliver mail to theSpam Quarantine (either on- or off-box). Messages
released from theSpam Quarantine proceed directly to the destination queue,skipping any further work queue
processing in the email pipeline.
For more information, see Managing Spam and Graymail, on page 383 .
Anti-Virus
Your email gateway includes integrated virus scanning engines. You can configure the email gateway to scan
messages and attachments for viruses on a per-“mail policy” basis. You can configure the email gateway to
take actions such as the following when a virus is found:
• attempt to repair the attachment
• drop the attachment
• modify the subject header
• add an additional X- header
• send the message to a different address or mailhost
• archive the message
• delete the message
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
64
Understanding the Email Pipeline
Email Security Manager (Per-Recipient Scanning)
Messages released from quarantines (see Quarantines, on page 65) are scanned for viruses. For more
information about Anti-Virus scanning, see Anti-Virus, on page 365 .
Graymail Detection and Safe Unsubscribing
You can configure the email gateway to detect graymail messages and perform secure unsubscribe on behalf
of the end user. Available actions are similar to those for anti-virus scanning.
For more information, see Managing Spam and Graymail, on page 383.
File Reputation Scanning and File Analysis
You can configure the email gateway to scan message attachmentsfor emerging and targeted threats. Available
actions are similar to those for anti-virus scanning.
For more information, see File Reputation Filtering and File Analysis, on page 481
Content Filters
You can create content filters to be applied to messages on a per-recipient or per-sender basis. Content filters
are similar to message filters, except that they are applied later in the email pipeline — after a message has
been “splintered” into a number of separate messages for each matching Email Security Manager policy. The
functionality of content filtersis applied after message filters processing and anti-spam and anti-virusscanning
have been performed on a message.
For more information about Content Filters, see Content Filters, on page 273.
Outbreak Filters
Cisco’s Outbreak Filters feature includes special filters that act proactively to provide a critical first layer of
defense against new outbreaks. Based on Outbreak Rules published by Cisco, messages with attachments of
specific filetypes can be sent to a quarantine named Outbreak.
Messagesin the Outbreak quarantine are processed like any other message in a quarantine.For more information
about quarantines and the Work Queue, see Quarantines, on page 65.
For more information, see Outbreak Filters, on page 425 .
Quarantines
You can filter incoming or outgoing messages and place them into quarantines. Quarantines are special queues
or repositories used to hold and process messages. Messages in quarantines can be delivered or deleted, based
on how you configure the quarantine.
The following Work Queue features can send messages to quarantines:
• Spam filters
• Message Filters
• Anti-Virus
• Outbreak Filters
• Content Filters
• File Analysis (Advanced Malware Protection)
Messages delivered from quarantines are re-scanned for threats.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
65
Understanding the Email Pipeline
Graymail Detection and Safe Unsubscribing
Related Topics
• Policy, Virus, and Outbreak Quarantines, on page 927
• Spam Quarantine, on page 947
Delivery
The delivery phase of the Email Pipeline focuses on the final phase of email processing, including limiting
connections, bounces, and recipients.
Related Topics
• Virtual gateways, on page 66
• Delivery Limits, on page 66
• Domain-Based Limits, on page 66
• Domain-Based Routing, on page 66
• Global Unsubscribe, on page 67
• Bounce Limits, on page 67
Virtual gateways
The Virtual Gateway technology enables users to separate the email gateway into multiple Virtual Gateway
addresses from which to send and receive email. Each Virtual Gateway address is given a distinct IP address,
hostname and domain, and email delivery queue.
For more information, see Configuring Mail Gateways for all Hosted Domains Using Virtual Gateway™
Technology, on page 749.
Delivery Limits
Use the deliveryconfig command to set limits on delivery, based on which IPinterface to use when delivering
and the maximum number of concurrent connectionsthe email gateway makesfor outbound message delivery.
For more information, see Set Email Delivery Parameters, on page 746.
Domain-Based Limits
For each domain, you can assign a maximum number of connections and recipientsthat will never be exceeded
by the system in a given time period. This “good neighbor” table is defined through the Mail Policies >
Destination Controls page (or the destconfig command).
For more information, see Controlling Email Delivery Using Destination Controls, on page 734.
Domain-Based Routing
Use the Network > SMTP Routes page (or the smtproutes command) to redirect all email for a particular
domain to a specific mail exchange (MX) host, without rewriting the envelope recipient.
For more information, see Routing Email for Local Domains, on page 697.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
66
Understanding the Email Pipeline
Delivery
Global Unsubscribe
Use Global Unsubscribe to ensure that specific recipients, recipient domains, or IP addresses never receive
messages from the email gateway. If Global Unsubscribe is enabled, the system will check all recipient
addresses against a list of “globally unsubscribed” users, domains, email addresses, and IP Addresses. Matching
emails are not sent.
For more information, see Using Global Unsubscribe, on page 758.
Bounce Limits
You use the Network > Bounce Profiles page (or the bounceconfig command) to configure how AsyncOS
handles hard and soft conversational bounces for each listener you create. You create bounce profiles and
then apply profiles to each listener using the Network > Listeners page (or the listenerconfig command).
You can also assign bounce profiles to specific messages using message filters.
For more information about bounce profiles, see Directing Bounced Email, on page 726.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
67
Understanding the Email Pipeline
Global Unsubscribe
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
68
Understanding the Email Pipeline
Bounce Limits
CHAPTER 5
Configuring the Gateway to Receive Email
This chapter contains the following sections:
• Overview of Configuring the Gateway to Receive Email, on page 69
• Working with Listeners, on page 70
• Configuring Global Settings for Listeners, on page 72
• Listening for Connection Requests by Creating a Listener Using Web Interface, on page 75
• Listening for Connection Requests by Creating a Listener Using CLI, on page 80
• Enterprise Gateway Configuration, on page 82
Overview of Configuring the Gateway to Receive Email
The email gateway functions as the gateway for your organization, servicing email connections, accepting
messages, and relaying them to the appropriate systems. The email gateway can service email connections
from the Internet to recipients hosts inside your network, and from systems inside your network to the Internet.
Typically, email connection requests use Simple Mail Transfer Protocol (SMTP). The appliance services
SMTP connections by default, and acts as the SMTP gateway, also known as a mail exchanger or “MX,” for
the network.
The email gateway uses listeners to service incoming SMTP connection requests, A listener describes an
email processing service that is configured on a particular IP interface. Listeners apply to email entering the
appliance, from either the Internet or from systems within your network trying to reach the Internet. Use
listeners to specify criteria that messages and connections must meet in order to be accepted and for messages
to be relayed to recipient hosts. You can think of a listener as an “SMTP daemon” running on a specific port
for each IP address specified. Also, listeners define how the email gateway communicates with systems that
try to send email to the email gateway.
You can create the following types of listeners:
• Public. Listens for and accepts email messages coming in from the Internet. Public listeners receive
connections from many hosts and direct messages to a limited number of recipients.
• Private. Listensfor and accepts email messages coming from systems within the network, typically from
internal groupware and email servers (POP/IMAP), intended for recipients outside the network in the
Internet.Private listenersreceive connectionsfrom a limited (known) number of hosts and direct messages
to many recipients.
When you create a listener, you also must specify the following information:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
69
• Listener properties. Define global properties that apply to all listeners, and properties specific to each
listener. For example, you can specify the IP interface and port to use for a listener, and whether it is a
public or private listener. For details on how to do this, see Working with Listeners, on page 70.
• Which hosts that are allowed to connect to the listener. Define a set of rules that control incoming
connections from remote hosts. For example, you can define remote hosts and whether or not they can
connect to the listener. For details on how to do this, see Defining Which Hosts Are Allowed to Connect
Using the Host Access Table , on page 93.
• (Public listeners only) The local domains for which the listener accepts messages. Define which
recipients are accepted by the public listener. For example, if your organization uses the domain
currentcompany.com and it previously used oldcompany.com , then you might accept messages for both
currentcompany.com and oldcompany.com . For details on how to do this, see Accepting or Rejecting
Connections Based on Domain Name or Recipient Address, on page 125.
The settings configured in the listener, including its Host Access Table and Recipient Access Table, affect
how the listener communicates with an SMTP server during the SMTP conversation. This allows the email
gateway to block a spamming host before the connection is closed.
Figure 9: Relationship between Listeners, IP Interfaces, and Physical Ethernet Interfaces
Working with Listeners
Configure listeners on the Network > Listeners page in the GUI, or using the listenerconfig command in the
CLI.
You can define globalsettingsthat apply to all listeners.For more information,see Configuring GlobalSettings
for Listeners, on page 72.
Consider the following rules and guidelines when working with and configuring listeners on the email gateway:
• You can define multiple listeners per configured IP interface, but each listener must use a different port.
• By default, listeners use SMTP as the mail protocol to service email connections. However, you can also
configure the appliance to service email connections using Quick Mail Queuing Protocol (QMQP). Do
this using the listenerconfig CLI command.
• Listeners support both Internet Protocol version 4 (IPv4) and version 6 (IPv6) addresses. You can use
either protocol version or both on a single listener. The listener uses the same protocol version for mail
delivery as the connecting host. For example, if the listener is configured for both IPv4 and IPv6 and
connects to a host that uses IPv6, the listener uses IPv6. However, if the listener is configured to only
use IPv6 addresses, it cannot connect to a host that is only using IPv4 addresses.
• At least one listener (with default values) is configured on the email gateway after running the System
Setup Wizard. However, when you create a listener manually, AsyncOS does not use these default IP
Reputation score values.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
70
Configuring the Gateway to Receive Email
Working with Listeners
• C170 and C190 appliances: By default, the System Setup Wizard walks you through configuring one
public listener for both receiving mail from the Internet and for relaying email from your internal network.
That is, one listener can perform both functions.
• To help test and troubleshoot the email gateway, you can create a “sinkhole” type listener instead of a
public or private listener. When you create a sinkhole listener, you choose whether messages are written
to disk or not before they are deleted. (See the “Testing and Troubleshooting” chapter for more
information.) Writing messages to disk before deleting them can help you measure the rate of receiving
and the speed of the queue. A listener that doesn’t write messages to disk can help you measure the pure
rate of receiving from your message generation systems. This listener type is only available through the
listenerconfig command in the CLI.
Figure - Public and Private Listeners on Email Gateway Models with More than Two Ethernet Interfaces
illustrates a typical email gateway configuration created by theSystem Setup Wizard on email gateway models
that have more than two Ethernet interfaces. Two listeners are created: a public listener to serve inbound
connections on one interface and a private listener to serve outbound connections on a second IP interface.
Figure - Public Listener on Email Gateway Models with Only Two Ethernet Interfaces illustrates a typical
email gateway configuration created by the System Setup Wizard on email gateway models that have only
two Ethernet interfaces. One public listener on a single IP interface is created to serve both inbound and
outbound connections.
Figure 10: Public and Private Listeners on Email Gateway Models with More than Two Ethernet Interfaces
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
71
Configuring the Gateway to Receive Email
Working with Listeners
Figure 11: Public Listener on Email Gateway Models with Only Two Ethernet Interfaces
This public listener uses SMTP protocol on Port 25 of the PublicNet IP interface on the Data2 Ethernet
interface to accept messages from the Internet and to relay messages from internal systems in the
.example.com domain. IP interface MailNet sends messages to destination hosts on the Internet and to
internal mail hosts
Note
Configuring Global Settings for Listeners
Global settings for the listeners affect all of the listeners that are configured on the email gateway. If the
listener uses an interface that has both Internet Protocol version 4 (IPv4) and version 6 (IPv6) addresses, the
listener settings apply to both IPv4 and IPv6 traffic
Procedure
Step 1 Choose Network > Listeners.
Step 2 Click Edit Global Settings.
Step 3 Make changes to the settings defined in the following table.
Table 6: Listener Global Settings
Global Setting Description
Set the maximum number of concurrent connectionsfor listeners. The default value
is 300 for the C3x0 and C6x0 models, and the default value is 50 for the C1x0
models.. If the listener accepts both IPv4 and IPv6 connections, the number of
connections is divided between the two. For example, if the maximum concurrent
connections is 300, then the sum of IPv4 and IPv6 connections cannot exceed 300.
Maximum Concurrent
Connections
Set the maximum concurrent TLS connections across all listeners combined. The
default value is 100. If the listener accepts both IPv4 and IPv6 TLS connections,
the number of connectionsis divided between the two.For example, if the maximum
concurrent connections is 100, then the sum of IPv4 and IPv6 TLS connections
cannot exceed 100.
Maximum Concurrent
TLS Connections
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
72
Configuring the Gateway to Receive Email
Configuring Global Settings for Listeners
Global Setting Description
Allows you to adjust when the injection control counters are reset. For very busy
systems maintaining counters for a very large number of different IP addresses,
configuring the countersto be reset more frequently (for example, every 15 minutes
instead of every 60 minutes) will ensure that the data does not grow to an
unmanageable size and impact system performance.
The current default value is 1 hour. You can specify periods ranging from as little
as 1 minute (60 seconds) to as long as 4 hours (14,400 seconds).
See Injection Control Periodicity , on page 116.
Injection Counters
Reset Period
Set the length of time AsyncOS will allow an unsuccessful inbound connection to
remain intact before closing it.
An unsuccessful connection can be an SMTP conversation in which SMTP or
ESMTP commands continue to be issued without a successful message injection
occurring. When the specified timeout is reached, the behavior is to send an error
and disconnect:
“421 Timed out waiting for successful message injection, disconnecting.”
A connection is considered unsuccessful until it successfully injects a message.
Only available for SMTP connections on public listeners. The default value is 5
minutes.
Timeout Period for
Unsuccessful Inbound
Connections
Set the length of time AsyncOS will allow an inbound connection to remain intact
before closing it.
This setting is intended to preserve system resources by enforcing a maximum
allowable connection time. Once about 80% of this maximum connection time is
reached the following message is issued:
“421 Exceeded allowable connection time, disconnecting.”
The email gateway will attempt to disconnect when the connection exceeds 80%
of the maximum connection time in order to prevent disconnecting mid-message.
It is likely that a problem is occurring with the inbound connection if it is open long
enough to reach 80% of the maximum connection time. Keep thisthreshold in mind
when specifying the time limit.
Only available for SMTP connections on public listeners. The default value is 15
minutes.
Total Time Limit for
All Inbound
Connections
Messages having subject size within the specified limit will be accepted and any
other messages will be rejected. If you set this value to 0, no limit is applied.
Maximum size of
subject
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
73
Configuring the Gateway to Receive Email
Configuring Global Settings for Listeners
Global Setting Description
Configure whether to perform HAT rejection at the message recipient level.By
default, HAT rejected connections will be closed with a banner message at the start
of the SMTP conversation.
When an email is rejected due to HAT “Reject” settings, AsyncOS can perform the
rejection at the message recipient level (RCPT TO), rather than at the start of the
SMTP conversation. Rejecting messages in this way delays the message rejection
and bounces the message, allowing AsyncOS to retain more detailed information
about the rejected messages. For example, you can see the mail from address and
each recipient address of the message which is blocked. Delaying HAT rejections
also makes it less likely that the sending MTA will perform multiple retries.
When you enable HAT delayed rejection, the following behavior occurs:
The MAIL FROM command is accepted, but no message object is created.
All RCPT TO commands are rejected with text explaining that accessto send e-mail
is refused.
If the sending MTA authenticates with SMTP AUTH, they are granted a RELAY
policy and are allowed to deliver mail as normal.
Only configurable from the CLI listenerconfig --> setup command.
HAT delayed rejections
Step 4 Submit and commit your changes.
What to do next
Related Topics
• Settings for Messages Containing Multiple Encodings, on page 74
Settings for Messages Containing Multiple Encodings
You can define the behavior of the email gateway while modifying the message encoding for the following
parameters:
• Headers
• Untagged non-ASCII headers
• Mismatched footer or heading encoding
To configure this behavior, use the localeconfig command in CLI.
Note This behavior cannot be configured using web interface.
For a sample CLI transcript, see Disclaimer Stamping and Multiple Encodings, on page 658.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
74
Configuring the Gateway to Receive Email
Settings for Messages Containing Multiple Encodings
Listening for Connection Requests by Creating a Listener Using
Web Interface
Procedure
Step 1 Choose Network > Listener.
Step 2 Click Add Listener.
Step 3 Configure the settings defined in the following table.
Table 7: Listener Settings
Unique nickname you supply for the listener, for future reference. The names you define
for listeners are case-sensitive. AsyncOS will not allow you to create two identical listener
names.
Name
Choose one of the following types of listeners:
• Public. Public listeners contain default characteristics for receiving email from the
Internet.
• Private. Private listeners are intended to be used for private (internal) networks.
Type of Listener
Choose a configured email gateway IP interface and TCP port on which to create the
listener. Depending on the version of the IP address used by the interface, the listener
accepts connectionsfrom IPv4 addresses, IPv6 addresses or from both versions. By default,
SMTP uses port 25 and QMQP uses port 628.
Interface
Select a bounce profile (bounce profiles created via the bounceconfig command in the
CLI are available in the list, see Creating a New Bounce Profile, on page 733).
Bounce Profile
Select a disclaimer to attach above or below emails (disclaimers created via the Mail
Policies > Text Resources page or the textconfig command in the CLI are available in
the list, see the “Text Resources” chapter.
Disclaimer
Above
Select a disclaimer to attach above or below emails (disclaimers created via the Mail
Policies > Text Resources page or the textconfig command in the CLI are available in
the list, see the “Text Resources” chapter).
Disclaimer
Below
SMTP Specify an SMTP Authentication profile.
Authentication
Profile
Specify a certificate for TLSconnections to the listener (certificates added via the Network
> Certificates page or the certconfig command in the CLI are available in the list, see
Overview of Encrypting Communication with Other MTAs, on page 675).
Certificate
Step 4 (Optional) Configure settings for controlling parsing in SMTP “MAIL FROM” and “RCPT TO” commands as
defined in the following table.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
75
Configuring the Gateway to Receive Email
Listening for Connection Requests by Creating a Listener Using Web Interface
Setting Description
Choose how strictly the email gateway adheres to the RFC2821 standard using one of
the following parser types:
Strict Mode:
• Strict mode tries to follow RFC 2821. In Strict mode, the address parser follows
RFC 2821 rules with the following exceptions/enhancements:
• Space is allowed after the colon, as in “MAIL FROM: ”.
• Underscores are allowed in the domain name.
• “MAIL FROM” and “RCPT TO” commands are case-insensitive.
• Periods are not treated specially (for example, RFC 2821 does not allow a username
of “J.D.”).
Some of the additional options below may be enabled which technically would violate
RFC 2821.
Loose Mode:
The loose parser is basically the existing behavior from previous versions of AsyncOS.
It does its best to “find” an email address and:
• Ignores comments. It supports nested comments (anything found in parenthesis)
and ignores them.
• Does not require angle brackets around email addresses provided in “RCPT TO”
and “MAIL FROM” commands.
• Allows multiple nested angle brackets (it searches for the email address in the
deepest nested level).
Address Parser
Type
Allow 8-bit User If enabled, allow 8-bit charactersin the username portion of the address without escaping.
Names
Allow 8-bit If enabled, allow 8-bit characters in the domain portion of the address.
Domain Names
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
76
Configuring the Gateway to Receive Email
Listening for Connection Requests by Creating a Listener Using Web Interface
Setting Description
If enabled, will allow partial domains. Partial domains can be no domain at all, or a
domain with no dots.
The following addresses are examples of partial domains:
• foo
• foo@
• foo@bar
This option must be enabled in order for the Default Domain feature to work properly.
Add Default Domain: A default domain to use for email addresses without a fully
qualified domain name. This option is disabled unless Allow Partial Domainsis enabled
in SMTP Address Parsing options. This affects how a listener modifies email that it
relays by adding the “default sender domain” to sender and recipient addresses that do
not contain fully-qualified domain names. (In other words, you can customize how a
listener handles “bare” addresses).
If you have a legacy system thatsends email without adding (appending) your company’s
domain to the sender address, use this to add the default sender domain. For example,
a legacy system may automatically create email that only enters the string “ joe ” as
the sender of the email. Changing the default sender domain would append “
@yourdomain.com ” to “ joe ” to create a fully-qualified sender name of
joe@yourdomain.com .
Allow Partial
Domains
Determines behavior if source routing is detected in the “MAIL FROM” and “RCPT
TO” addresses. Source routing is a special form of an email address using multiple ‘@’
characters to specify routing (for example: @one.dom@two.dom:joe@three.dom). If
set to “reject,” the address will be rejected. If “strip,” the source routing portion of the
address will be deleted, and the message will be injected normally.
Source Routing
Determines behavior for when an address literal is received that the system cannot
handle. Currently, this is everything except for IPv4. Thus, for example, for an IPv6
address literal, you can either reject it at the protocol level, or accept it and immediately
hard bounce it.
Recipient addresses containing literals will cause an immediate hard bounce. Sender
addresses may get delivered. If the message cannot be delivered, then the hard bounce
will hard bounce (double hard bounce).
In the case of reject, both sender and recipient addresses will be rejected immediately
at the protocol level.
Unknown Address
Literals
Usernames that include characters (such as % or !, for example) entered here will be
rejected.
Reject These
Characters in User
Names
Step 5 (Optional) Configure advanced settings for customizing the behavior of the listener as defined in the following
table.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
77
Configuring the Gateway to Receive Email
Listening for Connection Requests by Creating a Listener Using Web Interface
Setting Description
Maximum The maximum number of connections allowed.
Concurrent
Connections
The backlog of connectionsthat AsyncOS will manage before theSMTPserver accepts
them.
TCP Listen Queue
Size
Choose how to handle messages that contain bare CR (carriage return) and LF (line
feed) characters.
• Clean. Allows the message, but converts bare CR and LF characters to CRLF
characters.
• Reject. Rejects the message.
• Allow. Allows the message.
CR and LF
Handling
Add a received header to all received email. A listener also modifies email that it relays
by adding a Received: header on each message. If you do not want to include the
Received: header, you can disable it using this option.
The Received: header is not added to the message within the work queue
processing. Rather, it is added when the message is enqueued for delivery
Note
Disabling the received header is a way to ensure that your network’s topology is not
exposed by revealing the IPaddresses or hostnames of internalservers on any messages
traveling outside your infrastructure. Please use caution when disabling the received
header.
Add Received
Header
Choose whether or not to enable SenderBase IP Profiling and configure the following
setting:
• SenderBase Timeout per Connection. Define how long the appliance caches
SenderBase information per SMTP connection.
Use SenderBase IP
Profiling
Step 6 (Optional) Configure settings for controlling LDAP queries associated with this listener as defined in the
following table.
Use these settings to enable LDAPqueries on the listener. You must create the LDAPquery first, before using
this option. Each type of query has a separate subsection to configure. Click the type of query to expand the
subsection.
For more information about creating LDAP queries, see LDAP Queries, on page 775.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
78
Configuring the Gateway to Receive Email
Listening for Connection Requests by Creating a Listener Using Web Interface
Query Type Description
For Accept queries, select the query to use from the list. You can specify whether the
LDAP Accept occurs during the work queue processing or during the SMTP
conversation.
For LDAP Accept during the work queue processing, specify the behavior for
non-matching recipients: bounce or drop.
For LDAP Accept during the SMTP conversation, specify how to handle mail if the
LDAP server is unreachable. You can elect to allow messages or drop the connection
with a code and custom response. Finally, select whether or not to drop connections if
the Directory Harvest AttackPrevention (DHAP) threshold isreached during anSMTP
conversation.
Performing recipient validation in the SMTP conversation can potentially reduce the
latency between multiple LDAPqueries. Therefore, you might notice an increased load
on your directory server when you enable conversational LDAP Accept.
See Overview of LDAP Queries, on page 775for more information.
Accept Queries
For routing queries, select the query from the list. See Overview of LDAP Queries, on
page 775 for more information.
Routing Queries
For masquerade queries, select a query from the list, and select which address to
masquerade, such as the From or CC header addresses.
See Overview of LDAP Queries, on page 775 for more information.
Masquerade
Queries
For group queries, select the query from the list. See Overview of LDAP Queries, on
page 775 for more information.
Group Queries
Step 7 Submit and commit your changes.
What to do next
Related Topics
Partial Domains, Default Domains, and Malformed MAIL FROMs, on page 79
Partial Domains, Default Domains, and Malformed MAIL FROMs
If you enable envelope sender verification or disable allowing partial domains in SMTP Address Parsing
options for a listener, the default domain settings for that listener will no longer be used.
These features are mutually exclusive.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
79
Configuring the Gateway to Receive Email
Partial Domains, Default Domains, and Malformed MAIL FROMs
Listening for Connection Requests by Creating a Listener Using
CLI
The following table lists some of the listenerconfig subcommands used in the tasks involved in creating and
editing listeners.
Table 8: Tasks for Creating Listeners
Tasks for Creating Listeners Command(s) and Subcommands
listenerconfig -> new
Create a new listener
listenerconfig -> setup
Edit global settings for listeners
bounceconfig, listenerconfig-> edit -> bounceconfig
Specify a bounce profile for the listener
textconfig, listenerconfig -> edit -> setup -> footer
Associate a disclaimer with the listener
smtpauthconfig, listenerconfig -> smtpauth
Configure an SMTP Authentication
textconfig, listenerconfig -> edit -> setup -> address
Configure SMTP address parsing
listenerconfig -> edit -> setup -> defaultdomain
Configure a default domain for the listener
listenerconfig -> edit -> setup -> received
Add a received header to email
listenerconfig -> edit -> setup -> cleansmtp
Change bare CR and LF characters to CRLF
listenerconfig -> edit -> hostaccess
Modify the Host Access Table
listenerconfig -> edit -> rcptaccess
Accept email for local domains or specific
users (RAT) (public listeners only)
certconfig, listenerconfig -> edit
Encrypt conversations on listeners (TLS)
listenerconfig -> edit -> certificate
Choose the certificate (TLS)
For more information about listenerconfig command,see CLI Reference Guide for AsyncOSfor CiscoSecure
Email Gateway.
For information about email routing and delivery configurations, see Configuring Routing and Delivery
Features, on page 697.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
80
Configuring the Gateway to Receive Email
Listening for Connection Requests by Creating a Listener Using CLI
Related Topics
Advanced HAT Parameters, on page 81
Advanced HAT Parameters
The following table defines the syntax of advanced HAT parameters. Note that for the numeric values below,
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 the following
table.
Table 9: Advanced HAT Parameter Syntax
Parameter Syntax Values Example Values
1000
Number
max_msgs_per_session
Maximum messages per
connection
10000
1k
Number
max_rcpts_per_msg
Maximum recipients per
message
1048576
20M
Number
max_message_size
Maximum message size
1000
Number
max_concurrency
Maximum concurrent
connections allowed to this
listener
220
Number
smtp_banner_code
SMTP Banner Code
Accepted
String
smtp_banner_text
SMTP Banner Text (*)
550
Number
smtp_banner_code
SMTP Reject Banner Code
Rejected
String
smtp_banner_text
SMTP Reject Banner Text (*)
default
on | off | default
use_override_hostname
Override SMTP Banner
Hostname
newhostname
String
override_hostname
on
on | off | required
tls
Use TLS
off
on | off
spam_check
Use anti-spam scanning
off
on | off
virus_check
Use virus scanning
5k
Number
max_rcpts_per_hour
Maximum Recipients per Hour
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
81
Configuring the Gateway to Receive Email
Advanced HAT Parameters
Parameter Syntax Values Example Values
452
Number
max_rcpts_per_hour_code
Maximum Recipients per Hour
Error Code
Too manyrecipients
String
max_rcpts_per_hour_text
Maximum Recipients per Hour
Text (*)
on
on | off
use_sb
Use SenderBase
sbrs[-10:-7.5]
-10.0- 10.0
sbrs[value1
:value2
]
Define IP Reputation Score
150
Number
dhap_limit
Directory Harvest Attack
Prevention: Maximum Invalid
Recipients Per Hour
Enterprise Gateway Configuration
In this configuration, the Enterprise Gateway configuration accepts email from the Internet and relays email
to groupware servers, POP/IMAP servers, or other MTAs. At the same time, the enterprise gateway accepts
SMTP messages from groupware servers and other email servers for relay to recipients on the Internet.
Figure 12: Public and Private Listeners for an Enterprise Gateway
In this configuration, at least two listeners are required:
• One listener configured specifically to accept mail from the Internet
• One listener configured specifically to accept mail from your internal groupware and email servers
(POP/IMAP)
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
82
Configuring the Gateway to Receive Email
Enterprise Gateway Configuration
By creating distinct public and private listeners for different public and private networks, you can distinguish
among email for security, policy enforcement, reporting, and management. For example, email received on
public listeners is scanned by your configured anti-spam engine and the anti-virus scanning engine by default,
while email received on private listeners is not scanned.
Figure - Public and PrivateListenersfor an Enterprise Gateway shows one public listener (A) and one private
listener (B) configured on the email gateway in this Enterprise Gateway configuration.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
83
Configuring the Gateway to Receive Email
Enterprise Gateway Configuration
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
84
Configuring the Gateway to Receive Email
Enterprise Gateway Configuration
CHAPTER 6
IP Reputation Filtering
This chapter contains the following sections:
• Overview of Sender IP Reputation Filtering, on page 85
• IP Reputation Service, on page 85
• Editing IP Reputation Filtering Score Thresholds for a Listener , on page 88
• Entering Low IP Reputation Scores in the Message Subject, on page 90
Overview of Sender IP Reputation Filtering
Sender IP reputation filtering is the first layer of spam protection, allowing you to control the messages that
come through the email gateway based on senders’ trustworthiness as determined by theSender IP Reputation
Service.
The email gateway can accept messages from known or highly reputable senders — such as customers and
partners — and deliver them directly to the end user without any content scanning. Messages from unknown
or less reputable senders can be subjected to content scanning, such as anti-spam and anti-virus scanning, and
you can also throttle the number of messages you are willing to accept from each sender. Email senders with
the worst reputation can have their connectionsrejected or their messages bounced based on your preferences.
File reputation filtering is a separate service. For information, see File Reputation Filtering and File
Analysis, on page 481
Note
IP Reputation Service
The IP Reputation Service, using global data from the Talos Affiliate network, assigns a IP Reputation Score
(IPRS) to email senders based on complaint rates, message volume statistics, and data from public blocked
lists and open proxy lists. The IP ReputationScore helps to differentiate legitimate senders from spam sources.
You can determine the threshold for blocking messages from senders with low reputation scores.
The Talos Security Network website ( https://talosintelligence.com) provides a global overview of the latest
email and web-based threats, displays current email traffic volume by country, and allows you to look up
reputation scores based on IP address, URI or Domain.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
85
Related Topics
• IP Reputation Score , on page 86
• How Sender IP Reputation Filters Work , on page 87
• Recommended Settings for Different Sender IP Reputation Filtering Approaches , on page 87
• Outbreak Filters, on page 425
• Using Email Security Monitor, on page 833
IP Reputation Score
The IP Reputation Score is a numeric value assigned to an IP address based on information from the IP
Reputation Service. The IP Reputation Service aggregates data from over 25 public blocked lists and open
proxy lists, and combines this data with global data from Talos to assign a score from -10.0 to +10.0, as
follows:
Score Meaning
-10.0 Most likely to be a source of spam
0 Neutral, or not enough information to make a recommendation
+10.0 Most likely to be a trustworthy sender
The lower (more negative) the score, the more likely that a message is spam. A score of -10.0 means that this
message is “guaranteed” to be spam, while a score of 10.0 means that the message is “guaranteed” to be
legitimate.
Using the IP Reputation Score, you configure the email gateway to apply mail flow policies to senders based
on their trustworthiness. (You can also create message filters to specify “thresholds” for IP Reputation Scores
to further act upon messages processed by the system. For more information, refer to “IP Reputation Rule,
on page 168” and “Bypass Anti-Spam System Action, on page 212.”)
Figure 13: The IP Reputation Service
1. Talos affiliates send real-time, global data
2. Sending MTA opens connection with the email gateway
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
86
IP Reputation Filtering
IP Reputation Score
3. Email gateway checks global data for the connecting IP address
4. IP Reputation Service calculates the probability that this message is spam and assigns an IP Reputations
Score
5. Cisco returns the response based on the IP Reputation Score
How Sender IP Reputation Filters Work
Sender IP Reputation filter technology aims to shunt as much mail as possible from the remaining security
services processing that is available on the email gateway. (See Understanding the Email Pipeline, on page
57.)
When sender reputation filtering is enabled, mail from known bad senders is simply refused. Known good
mail from global 2000 companies is automatically routed around the spam filters, reducing the chance of false
positives. Unknown, or “grey” email is routed to the anti-spam scanning engine. Using this approach, Sender
IP Reputation filters can reduce the load on the content filters by as much as 50%.
Figure 14: Sender IP Reputation Filtering Example
RecommendedSettingsforDifferentSenderIPReputationFilteringApproaches
Depending on the objectives of your enterprise, you can implement a conservative, moderate, or aggressive
approach.
Approach Characteristics Allowed _List Blocked_ List Suspectlist Unknownlist
Sender IP Reputation Score range:
Near zero false 7 to 10 -10 to -4 -4 to -2 -2 to 7
positives, better
performance
Conservative
Sender -10 to -3 -3 to -1 -1 to +10
IPReputation
Scores are not
used.
Very few false
positives, high
performance
Moderate
(Installation
default)
Some false positives, 4 to 10 -10 to -2 -2 to -1 -1 to 4
maximum
performance.
This option shunts the
most mail away from
Anti-Spam processing.
Aggressive
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
87
IP Reputation Filtering
How Sender IP Reputation Filters Work
Approach Characteristics Allowed _List Blocked_ List Suspectlist Unknownlist
All approaches Mail Flow Policy:
Trusted Blocked Throttled Accepted
Editing IP Reputation Filtering Score Thresholds for a Listener
Use this procedure if you want to change the default IP Reputation Service score thresholds or add a sender
group for reputation filtering.
Other settings related to IP Reputation Score thresholds, and Mail Flow Policy settings, are described
in Defining Which Hosts Are Allowed to Connect Using the Host Access Table , on page 93
Note
Before You Begin
• If your email gateway is set to receive mail from a local MX/MTA, identify upstream hosts that may
mask the sender'sIPaddress.See DeterminingSender IP AddressIn Deployments with Incoming Relays
, on page 411 for more information.
• Understand IP Reputation Scores. See Defining Sender Groups by IP Reputation Score, on page 98.
• Choose a filtering approach for your organization and note the recommended settings for that approach.
See Recommended Settings for Different Sender IP Reputation Filtering Approaches , on page 87.
Procedure
Step 1 Select Mail Policies > HAT Overview.
Step 2 Select the public listener from the Sender Groups (Listener) menu.
Step 3 Click the link for a sender group.
For example, click the “SUSPECTLIST” link.
Step 4 Click Edit Settings.
Step 5 Enter the range of IP Reputation Scores for this sender group.
For example, for “ALLOWED_LIST,” enter the range 7.0 to 10.
Step 6 Click Submit.
Step 7 Repeat as needed for each sender group for this listener.
Step 8 Commit changes.
What to do next
Related Topics
• Testing IP Reputation Filtering Using the IP Reputation Scores, on page 89
• Defining Which Hosts Are Allowed to Connect Using the Host Access Table , on page 93
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
88
IP Reputation Filtering
Editing IP Reputation Filtering Score Thresholds for a Listener
• How to Configure the Email Gateway to Scan Messages for Spam, on page 384
Testing IP Reputation Filtering Using the IP Reputation Scores
Unless you regularly receive a large portion of spam, or you have set up “dummy” accounts to specifically
receive spam for your organization, it may be difficult to immediately test the IP Reputation policies you
have implemented. However, if you add entries for reputation filtering with IP Reputation Scores into a
listener’s HAT as indicated in the following table, you will notice that a smaller percentage of inbound mail
will be “unclassified.”
Test the policies using the trace command with an arbitrary IP Reputation scores. See Debugging Mail Flow
Using Test Messages: Trace, on page 1259. The trace command is available in the CLI as well as the GUI.
Table 10: Suggested Mail Flow Policies for Implementing the IP Reputation Scores
Primary Behavior (Access Parameters Value
Rule)
Policy Name
$BLOCKED REJECT None
10
20
1 MB
10
ON
OFF
20 (recommended)
ON
Maximum messages / session:
Maximum recipients / message:
Maximum message size:
Maximum concurrent connections:
Use Spam Detection:
Use TLS:
Maximum recipients / hour:
Use SenderBase:
$THROTTLED ACCEPT
1,000
1,000
100 MB
1,000
ON
OFF
ON
Maximum messages / session:
Maximum recipients / message:
Maximum message size:
Maximum concurrent connections:
Use Spam Detection:
Use TLS:
Use SenderBase:
$ACCEPTED ACCEPT
(Public Listener)
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
89
IP Reputation Filtering
Testing IP Reputation Filtering Using the IP Reputation Scores
Primary Behavior (Access Parameters Value
Rule)
Policy Name
1,000
1,000
100 MB
1,000
OFF
OFF
-1 (disabled)
OFF
Maximum messages / session:
Maximum recipients / message:
Maximum message size:
Maximum concurrent connections:
Use Spam Detection:
Use TLS:
Maximum recipients / hour:
Use SenderBase:
$TRUSTED ACCEPT
In the $THROTTLED policy, the maximum recipients per hour from the remote host isset to 20 recipients
per hour, by default. Note that this setting controls the maximum throttling available. You can increase
the number of recipients to receive per hour if this parameter is too aggressive. For more information
on Default Host Access policies, see Understanding Predefined Sender Groups and Mail Flow Policies,
on page 102.
Note
Entering Low IP Reputation Scores in the Message Subject
Although Cisco recommends throttling, an alternate way to use the IP Reputation Service is to modify the
subject line of suspected spam messages. To do this, use the message filter shown in the following table. This
filter uses the reputation filter rule and the strip-header and insert-header filter actions to replace the subject
line of messages having a IP Reputation Score lower than -2.0 with a subject line that includes the actual IP
Reputation Score represented as: {Spam IP Reputation Score}. Replace listener_name in this example with
the name of your public listener. (The period on its own line is included so that you can cut and paste this text
directly into the command line interface of the filters command.)
Table: Message Filter to Modify Subject Header with IP Reputation: Example 1
iprs_filter:
if ((recv-inj == "listener_name
" AND subject != "\\{Spam -?[0-9.]+\\}"))
{
insert-header("X-IPRS", "$REPUTATION");
if (reputation <= -2.0)
{
strip-header("Subject");
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
90
IP Reputation Filtering
Entering Low IP Reputation Scores in the Message Subject
insert-header("Subject", "$Subject \\{Spam $REPUTATION\\}");
}
}
.
Related Topic
• Using Message Filters to Enforce Email Policies, on page 131
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
91
IP Reputation Filtering
Entering Low IP Reputation Scores in the Message Subject
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
92
IP Reputation Filtering
Entering Low IP Reputation Scores in the Message Subject
CHAPTER 7
Defining Which Hosts Are Allowed to Connect
Using the Host Access Table
This chapter contains the following sections:
• Overview of Defining Which Hosts Are Allowed to Connect, on page 93
• Defining Remote Hosts into Sender Groups, on page 94
• Defining Access Rules for Email Senders Using Mail Flow Policies, on page 99
• Understanding Predefined Sender Groups and Mail Flow Policies, on page 102
• Handling Messages from a Group of Senders in the Same Manner, on page 104
• Working with the Host Access Table Configuration, on page 113
• Using a List of Sender Addresses for Incoming Connection Rules, on page 114
• SenderBase Settings and Mail Flow Policies, on page 115
• Verifying Senders, on page 117
Overview of Defining Which Hosts Are Allowed to Connect
For every configured listener, you must define a set of rules that control incoming connections from remote
hosts.For example, you can define remote hosts and whether or not they can connect to the listener. AsyncOS
allows you to define which hosts are allowed to connect to the listener using the Host Access Table (HAT).
The HAT maintains a set of rules that control incoming connections from remote hosts for a listener. Every
configured listener has its own HAT. You configure HATs for both public and private listeners.
To control incoming connections from remote hosts, you define the following information:
• Remote hosts. Define the way in which a remote host attempts to connect to the listener. You group
remote host definitions into sender groups . For example, you can define multiple remote hosts in a
sender group by IPaddress and partial hostname. You can also define remote hosts by their IP Reputation
score. For more information, see Defining Remote Hosts into Sender Groups, on page 94.
• Access rules. You can define whether the defined remote hostsin the sender group are allowed to connect
to the listener and under what conditions. You define access rules using mail flow policies . For example,
you can define that a particular sender group is allowed to connect to the listener, but only allow a
maximum number of messages per connection. For more information, see Defining Access Rules for
Email Senders Using Mail Flow Policies, on page 99
Define which hosts are allowed to connect to the listener on the Mail Policies > HAT Overview page.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
93
When a listener receives a TCP connection, it compares the source IP address against the configured sender
groups. It evaluates the sender groups in the order listed on the HAT Overview page. When it finds a match,
it appliesthe configured mail flow policy to the connection. If you have configured multiple conditions within
a sender group, that sender group is matched if any of the conditions match.
When you create a listener, AsyncOS creates predefined sender groups and mail flow polices for the listener.
You can edit the predefined sender groups and mail flow policies, and create new sender groups and mail
flow policies. For more information, see Understanding Predefined Sender Groups and Mail Flow Policies,
on page 102.
You can export all information stored in a Host Access Table to a file, and you can import Host Access Table
information stored in a file into the email gateway for a listener, overriding all configured Host Access Table
information. For more information, see Working with the Host Access Table Configuration, on page 113.
Related Topics
• Default HAT Entries, on page 94
Default HAT Entries
By default, the HAT is defined to take different actions depending on the listener type:
• Public listeners. The HAT is set to accept email from all hosts.
• Private listeners. The HAT is set up to relay email from the host(s) you specify, and reject all other
hosts.
In the HAT Overview, the default entry is named “ALL.” You can edit the default entry by clicking the mail
flow policy for the ALL sender group on the Mail Policies > HAT Overview page.
By rejecting all hosts other than the ones you specify, the listenerconfig and systemsetup commands
prevent you from unintentionally configuring yoursystem as an “open relay.” An open relay (sometimes
called an “insecure relay” or a “third party” relay) is an SMTP email server that allows third-party relay
of email messages. By processing email that is neither for nor from a local user, an open relay makes it
possible for an unscrupulous sender to route large volumes of spam through your gateway.
Note
Defining Remote Hosts into Sender Groups
You can define the way in which remote hosts attempt to connect to a listener. You group remote host
definitions into sender groups. A sender group is a list of remote hosts defined for the purpose of handling
email from those senders in the same way.
A sender group is a list of senders identified by:
• IP address (IPv4 or IPv6)
• IP range
• Specific host or domain name
• IP Reputation Service “organization” classification
• IP Reputation Score (IPRS) range (or lack of score)
• DNS List query response
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
94
Defining Which Hosts Are Allowed to Connect Using the Host Access Table
Default HAT Entries
For more information on the list of acceptable addresses in sender groups, see Sender Group Syntax, on page
95.
When anSMTPserver attempts anSMTPconnection with the email gateway, the listener evaluatesthe sender
groups in order and assigns the connection to a sender group when it matches any criterion in the sender group,
such as IP reputation score, domain, or IP address.
The system acquires and verifies the validity of the remote host’s IP address by performing a double
DNS lookup. This consists of a reverse DNS (PTR) lookup on the IP address of the connecting host,
followed by a forward DNS (A) lookup on the results of the PTR lookup. The system then checks that
the results of the A lookup match the results of the PTR lookup. If the results do not match, or if an A
record does not exist, the system only uses the IP address to match entries in the HAT.
Note
Define sender groups on the Mail Policies > HAT Overview page.
Related Topics
• Sender Group Syntax, on page 95
• Sender Groups Defined by Network Owners, Domains, and IP Addresses, on page 96
• Defining Sender Groups by IP Reputation Score, on page 98
• Sender Groups Defined by Querying DNS Lists, on page 99
Sender Group Syntax
Table 11: Defining Remote Hosts in the HAT: Sender Group Syntax
Syntax Meaning
n:n:n:n:n:n:n:n IPv6 address; does not need to include leading zeroes.
n:n:n:n:n:n:n:n-n:n:n:n:n:n:n:n Range of IPv6 addresses; does not need to include leading zeroes.
n:n:n-n:n:n:n:n:n
n.n.n.n Full (complete) IPv4 Address
n.n.n. Partial IPv4 address
n.n.n.
n.n.
n.n.
n.
n.n.n.n-n. Range of IPv4 addresses
n.n.n.n-n.
n.n.n-n.
n.n-n.
n.n-n
n-n.
n-n
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
95
Defining Which Hosts Are Allowed to Connect Using the Host Access Table
Sender Group Syntax
Syntax Meaning
yourhost.example.com A fully-qualified domain name
.partialhost Everything within the partialhost domain
n/c IPv4 CIDR address block
n.n/c
n.n.n/c
n.n.n.n/c
n:n:n:n:n:n:n:n/c IPv6 CIDR address block; does not need to include leading zeroes
IP Reputation Score. For more information, see Defining Sender Groups by
IP Reputation Score, on page 98.
SBRS[n:n]SBRS[none]
Network Owner Identification Number. For more information, see Defining
Sender Groups by IP Reputation Score, on page 98.
SBO:n
DNS List query. For more information, see Sender Groups Defined by
Querying DNS Lists, on page 99.
dnslist[dnsserver.domain]
Special keyword that matches ALL addresses. This applies only to the ALL
sender group, and is always included (but not listed).
ALL
Sender Groups Defined by Network Owners, Domains, and IP Addresses
Since the SMTP protocol has no built-in method for authenticating senders of email, senders of unsolicited
bulk email have been successful at employing a number of tactics for hiding their identity. Examples include
spoofing the EnvelopeSender address on a message, using a forged HELO address, orsimply rotating through
different domain names. This leaves many mail administrators asking themselves the fundamental question,
“Who is sending me all of this email?” To answer this question, the IP Reputation Service has developed a
unique hierarchy for aggregating identity-based information based on the IP address of the connecting host
— the one thing that is almost impossible for a sender to forge in a message.
An IP Addressis defined asthe IPaddress of the sending mail host. The email gateway supports both Internet
Protocol version 4 (IPv4) and version 6 (IPv6) addresses.
A Domain is defined as an entity that uses hostnames with a given second-level domain name (for example,
yahoo.com), as determined by a reverse (PTR) lookup on the IP address.
A Network Owner is defined as an entity (usually a company) that controls a block of IP addresses, as
determined based on IPaddressspace assignmentsfrom global registriessuch as ARIN (the American Registry
for Internet Numbers) and other sources.
An Organization is defined as an entity that most closely controls a particular group of mail gateways within
a network owner’s IP block, as determined by SenderBase. An Organization may be the same as the Network
Owner, a division within that Network Owner, or a customer of that Network Owner.
Related Topics
• Setting Policies Based on the HAT, on page 97
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
96
Defining Which Hosts Are Allowed to Connect Using the Host Access Table
Sender Groups Defined by Network Owners, Domains, and IP Addresses
Setting Policies Based on the HAT
The following table lists some examples of network owners and organizations.
Table 12: Example of Network Owners and Organizations
Example Type Network Owner Organization
Macromedia Inc.
AllOutDeals.com
GreatOffers.com
Network Service Provider Level 3 Communications
GE Appliances
GE Capital
GE Mortgage
Email Service Provider GE
Commercial Sender The Motley Fool The Motley Fool
As network owners can range dramatically in size, the appropriate entity to base your mail flow policy on is
the organization. The IP Reputation Service has a unique understanding of the source of the email down to
the organization level, which the email gateway leverages to automatically apply policies based on the
organization. In the example above, if a user specified “Level 3 Communications” as a sender group in the
Host Access Table (HAT), SenderBase will enforce policies based on the individual organizations controlled
by that network owner.
For example, in the table above, if a user enters a limit of 10 recipients per hour for Level 3, the email gateway
will allow up to 10 recipients per hour for Macromedia Inc., Alloutdeals.com and Greatoffers.com (a total of
30 recipients per hour for the Level 3 network owner). The advantage of this approach is that if one of these
organizations begins spamming, the other organizations controlled by Level 3 will not be impacted. Contrast
this to the example of “The Motley Fool” network owner. If a user sets rate limiting to 10 recipients per hour,
the Motley Fool network owner will receive a total limit of 10 recipients per hour.
The Mail Flow Monitor feature is a way of defining the sender and providing you with monitoring tools to
create mail flow policy decisions about the sender. To create mail flow policy decisions about a given sender,
ask these questions:
• Which IP addresses are controlled by this sender?
The first piece of information that the Mail Flow Monitor feature uses to control the inbound email
processing is the answer to this question. The answer is derived by querying the IP Reputation Service.
The IP Reputation Service provides information about the relative size of the sender (either the network
owner or the SenderBase organization). Answering this question assumes the following:
• Larger organizations tend to control more IP addresses, and send more legitimate email.
• Depending on its size, how should the overall number of connections be allotted for this sender?
• Larger organizations tend to control more IP addresses, and send more legitimate email. Therefore,
they should be allotted more connections to your email gateway.
• The sources of high-volume email are often ISPs, NSPs, companies that manage outsourced email
delivery, or sources of unsolicited bulk email. ISPs, NSPS, and companies that manage outsourced
email delivery are examples of organizations that control many IP addresses, and should be allotted
more connections to your email gateway. Senders of unsolicited bulk email usually do not control
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
97
Defining Which Hosts Are Allowed to Connect Using the Host Access Table
Setting Policies Based on the HAT
many IP addresses; rather, they send large volumes of mail through a few number of IP addresses.
They should be allotted fewer connections to your email gateway.
The MailFlow Monitor feature usesits differentiation between network owners andSenderBase organizations
to determine how to allot connections persender, based on logic inSenderBase.See the “Using EmailSecurity
Monitor” chapter for more information on using the Mail Flow Monitor feature.
Defining Sender Groups by IP Reputation Score
The email gateway can query the IPReputation Service to determine a IP reputation score. The IP Reputation
Score is a numeric value assigned to an IP address, domain, or organization based on information from the
IP Reputation Service. The scale of the score ranges from -10.0 to +10.0, as described in the following table.
Table 13: Definition of the IP Reputation Score
Score Meaning
-10.0 Most likely to be a source of spam
0 Neutral, or not enough information to make a recommendation
+10.0 Most likely to be a trustworthy sender
none No data available for this sender (typically a source of spam)
Using the IP Reputation Score, you configure the email gateway to apply mail flow policies to senders based
on their trustworthiness. For example, all senders with a score less than -7.5 could be rejected. This is most
easily accomplished via the GUI;see Creating aSender Group for Message Handling , on page 105. However,
if you are modifying an exported HAT in a text file, the syntax for including IP ReputationScores is described
in the following table.
Table 14: Syntax for IP Reputation Scores
IP ReputationScore.Senders are identified by querying the IP ReputationService, and
the scores are defined between the ranges.
SBRS[ n n
SBRS[none] Specify no IP (very new domains may not have IP Reputation Scores yet).
Network owners added to a HAT via the GUI use the syntax SBO:n, where n is the network owner’s
unique identification number in the IP Reputation Service.
Note
Use the Network > Listeners page or listenerconfig -> setup command in the CLI to enable a listener
to query the IP Reputation Service. You can also define the timeout value that the email gateway should wait
when querying the IP Reputation Service. Then, you can configure different policies to use look ups to the
IP Reputation Service by using the values in the Mail Policies Pages in the GUI or the listenerconfig ->
edit -> hostaccess commands in the CLI.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
98
Defining Which Hosts Are Allowed to Connect Using the Host Access Table
Defining Sender Groups by IP Reputation Score
You can also create message filters to specify “thresholds” for IP Reputation Scores to further act upon
messages processed by the system.For more information,see “IP Reputation Rule,” “Bypass Anti-Spam
System Action,” and “Bypass Anti-Virus System Action” in the anti-spam and anti-virus chapters.
Note
Sender Groups Defined by Querying DNS Lists
You also have the ability in a listener’s HAT to define a sender group as matching a query to a specific DNS
List sever. The query is performed via DNS at the time of the remote client’s connection. The ability to query
a remote list also exists currently as a message filter rule (see “DNS List Rule” in the chapter on “Using
Message Filters to Enforce Email Policies”), but only once the message content has been received in full.
This mechanism allows you to configure a sender within a group that queries a DNS List so that you can
adjust your mail flow policies accordingly. For example, you could reject connections or limit the behavior
of the connecting domain.
Some DNS Lists use variable responses(for example, “127.0.0.1” versus “127.0.0.2” versus “127.0.0.3”)
to indicate various facts about the IP address being queried against. If you use the message filter DNS
List rule (see “DNS List Rule” in the chapter on “Using Message Filters to Enforce Email Policies”),
you can compare the result of the query against different values. However, specifying a DNS List server
to be queried in the HAT only supports a Boolean operation for simplicity (that is, does the IP address
appear in the list or not)
Note
Be sure to include brackets in the query in the CLI. Brackets are not necessary when specifying a DNS
List query in the GUI. Use the dnslistconfig command in the CLI to test a query, configure general
settings for DNL queries, or flush the current DNS list cache.
Note
Note that this mechanism can be used to identify “good” connections as well as “bad” connections. For
example, a query to query.bondedsender.org will match on connecting hosts who have posted a financial bond
with Cisco Systems’ Bonded Sender™ program to ensure the integrity of their email campaign. You could
modify the default ALLOWED_LIST sender group to query the Bonded Sender program’s DNS servers
(which lists these legitimate email senders who have willingly posted bonds) and adjust the mail flow policy
accordingly.
Defining Access Rules for Email Senders Using Mail Flow
Policies
Mail flow policies allow you to control or limit the flow of email messages from a sender to the listener during
the SMTP conversation. You control SMTP conversations by defining the following types of parameters in
the mail flow policy:
• Connection parameters, such as maximum number of messages per connection.
• Rate limiting parameters, such as maximum number of recipients per hour.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
99
Defining Which Hosts Are Allowed to Connect Using the Host Access Table
Sender Groups Defined by Querying DNS Lists
• Modify custom SMTP codes and responses communicated during the SMTP conversation.
• Enable spam detection.
• Enable virus protection.
• Encryption, such as using TLS to encrypt the SMTP connection.
• Authentication parameters, such as using DKIM to verify incoming mail.
Ultimately, mail flow policies perform one of the following actions on connections from remote hosts:
• ACCEPT. Connection is accepted, and email acceptance is then further restricted by listener settings,
including the Recipient Access Table (for public listeners).
• REJECT. Connection is initially accepted, but the client attempting to connect gets a 4XX or 5XX
SMTP status code. No email is accepted.
You can also configure AsyncOS to perform this rejection at the message
recipient level (RCPT TO), rather than at the start of theSMTPconversation.
Rejecting messages in this way delays the message rejection and bounces
the message, allowing AsyncOS to retain more detailed information about
the rejected messages. This setting is configured from the CLI
listenerconfig > setup command.For more information, see Listening
for Connection Requests by Creating a Listener Using CLI, on page 80.
Note
• TCPREFUSE. Connection is refused at the TCP level.
• RELAY. Connection is accepted. Receiving for any recipient is allowed and is not constrained by the
Recipient Access Table.
• CONTINUE. The mapping in the HAT is ignored, and processing of the HAT continues. If the incoming
connection matches a later entry that is not CONTINUE, that entry is used instead. The CONTINUE
rule is used to facilitate the editing of the HAT in the GUI. For more information, see Creating a Sender
Group for Message Handling , on page 105.
Related Topics
• HAT Variable Syntax, on page 100
HAT Variable Syntax
The following table defines a set of variables that can also be used in conjunction with the custom SMTP and
Rate Limiting banners defined for a mail flow policy. Variable names are case-insensitive. (That is, $group
is equivalent to $Group .)
Table 15: HAT Variable Syntax
Variable Definition
Replaced by the name of the sender group that was matched in the HAT. If the
sender group has no name, “None” is displayed.
$Group
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
100
Defining Which Hosts Are Allowed to Connect Using the Host Access Table
HAT Variable Syntax
Variable Definition
Replaced by the remote hostname if and only if is has been validated by the
email gateway. If the reverse DNS lookup of the IP address is successful but
returns no hostname, then “None” is displayed. If the reverse DNS lookup fails
(for example, if the DNS server cannot be reached, or no DNS server has been
configured) then “Unknown” is displayed.
$Hostname
Replaced by the SenderBase Organization ID (an integer value).
If the email gateway cannot obtain a SenderBase Organization ID, or if the IP
Reputation Service did not return a value, “None” is displayed.
$OrgID
$RemoteIP Replaced by the IP address of the remote client.
$HATEntry Replaced by the entry in the HAT that the remote client matched.
Related Topics
• Using HAT Variables, on page 101
• Testing HAT Variables, on page 102
Using HAT Variables
These variables can be used with the smtp_banner_text and max_rcpts_per_hour_text advanced HAT
parameters described in the “Configuring the Gateway to Receive Email” chapter.
Note
Using these variables, you could edit the custom SMTP banner response text for accepted connections in the
$TRUSTED policy in the GUI:
Figure 15: Using HAT Variables
Or like this, in the CLI:
Would you like to specify a custom SMTP response? [Y]> y
Enter the SMTP code to use in the response. 220 is the standard code.
[220]> 200
Enter your custom SMTP response. Press Enter on a blank line to finish.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
101
Defining Which Hosts Are Allowed to Connect Using the Host Access Table
Using HAT Variables
You've connected from the hostname: $Hostname, IP address of: $RemoteIP, matched the group:
$Group,
$HATEntry and the SenderBase Organization: $OrgID.
Testing HAT Variables
To test these variables, add the IP address of a known, trusted machine to the $ALLOWED_LIST sender
group of a listener on the email gateway. Then, connect from that machine via telnet. You can see the variable
substitution in the SMTP response. For example:
# telnet
IP_address_of_Email_Security_Appliance port
220 hostname
ESMTP
200 You've connected from the hostname: hostname
, IP address of: IP-address_of_connecting_machine
, matched the group: ALLOWED_LIST, 10.1.1.1 the SenderBase Organization: OrgID
.
Understanding Predefined Sender Groups and Mail Flow
Policies
The following table lists the predefined sender groups and mail flow policies that are configured when a public
listener is created.
Table 16: Predefined Sender Groups and Mail Flow Policies for Public Listeners
Default Configured Mail Flow
Policy
PredefinedSenderGroup Description
Add senders you trust to the Allowed_listsender $TRUSTED
group. The $TRUSTED mail flow policy is
configured so that email from senders you trust
has no rate limiting enabled, and the content
from those senders is not scanned by the
Anti-Spam or Anti-Virus software.
ALLOWED_LIST
Senders in the Blocked_list sender group are $BLOCKED
rejected (by the parameters set in the
$BLOCKED mail flow policy). Adding senders
to this group rejects connectionsfrom those hosts
by returning a 5XX SMTPresponse in theSMTP
HELO command.
BLOCKED_LIST
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
102
Defining Which Hosts Are Allowed to Connect Using the Host Access Table
Testing HAT Variables
Default Configured Mail Flow
Policy
PredefinedSenderGroup Description
The Suspectlist sender group contains a mail $THROTTLED
flow policy that throttles, or slows, the rate of
incoming mail. If senders are suspicious, you
can add them to the Suspectlist sender group,
where the mail flow policy dictates that:
• Rate limiting limits the maximum number
of messages per session, the maximum
number of recipients per message, the
maximum message size, and the maximum
number of concurrent connections you are
willing to accept from a remote host.
• The maximum recipients per hour from the
remote host is set to 20 recipients per hour.
Note that this setting is the maximum
throttling available. You can increase the
number of recipients to receive per hour if
this parameter is too aggressive.
• The content of messages will be scanned
by the anti-spam scanning engine and the
anti-virus scanning engine (if you have
these feature enabled for the system).
• The SenderBase Reputation Service will
be queried for more information about the
sender.
SUSPECTLIST
The Unknownlist sender group may be useful if $ACCEPTED
you are undecided about the mail flow policy
you should use for a given sender. The mail flow
policy for this group dictates that mail is
accepted for senders in this group, but the
Anti-Spam software (if enabled for the system),
the anti-virus scanning engine, and the IP
Reputation Service should all be used to gain
more information about the sender and the
message content. Rate limits for senders in this
group are also enabled with default values. For
more information on virusscanning engines,see
Virus Scanning, on page 367. For more
information on the IP Reputation Service, see
IP Reputation Service, on page 85.
UNKNOWNLIST
Default sender group that applies to all other $ACCEPTED
senders.For more information,see Default HAT
Entries, on page 94.
ALL
The following table lists the predefined sender groups and mail flow policies that are configured when a
private listener is created.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
103
Defining Which Hosts Are Allowed to Connect Using the Host Access Table
Understanding Predefined Sender Groups and Mail Flow Policies
Table 17: Predefined Sender Groups and Mail Flow Policies for Private Listeners
Default Configured Mail Flow
Policy
Predefined Sender Group Description
Add senders you know should be allowed to $RELAYED
relay to the Relaylist sender group. The
$RELAYED mail flow policy is configured so
that email from senders you are allowing to
relay has no rate limiting, and the content from
those senders is not scanned by the anti-spam
scanning engine or anti-virus software.
The RELAYLIST sender group
includesthe systems allowed to relay
email when the System Setup
Wizard was run.
Note
RELAYLIST
Default sender group that applies to all other $BLOCKED
senders. For more information, see Default
HAT Entries, on page 94.
ALL
When you run the System Setup Wizard on an email gateway model that has only two Ethernet ports,
you are prompted to create only one listener. It creates a public listener that also includes a $RELAYED
mail flow policy that is used to relay mail for internal systems. For email gateway models that have
more than two Ethernet ports, the RELAYLIST sender group and $RELAYED mail flow policy only
appear on private listeners.
Note
Handling Messages from a Group of Senders in the Same
Manner
Use the Mail Policies > HAT Overview and Mail Flow Policy pages to configure how the listener handles
messages from senders. Do this by creating, editing, and deleting sender groups and mail flow policies.
Related Topics
• Creating a Sender Group for Message Handling , on page 105
• Adding a Sender to an Existing Sender Group, on page 106
• Rearranging the Order of the Rules to Perform for Incoming Connections, on page 106
• Searching for Senders, on page 107
• Defining Access Rules for Email Senders Using Mail Flow Policies, on page 99
• Defining Default Values for Mail Flow Policies, on page 112
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
104
Defining Which Hosts Are Allowed to Connect Using the Host Access Table
Handling Messages from a Group of Senders in the Same Manner
Creating a Sender Group for Message Handling
Procedure
Step 1 Navigate to the Mail Policies > HAT Overview page.
Step 2 Choose the listener to edit in the Listener field.
Step 3 Click Add Sender Group.
Step 4 Type the name of the sender group.
Step 5 Select the order in which to place it in the list of sender groups.
Step 6 (Optional) Enter a comment, for example information about this sender group or its settings.
Step 7 Select a mail flow policy to which to apply this sender group.
If you do not know the mail flow policy you would like to apply to this group (or if no mail flow
policies exist yet), then use the default “CONTINUE (no policy)” mail flow policy.
Note
Step 8 (Optional) Select a DNS list.
Step 9 (Optional) Include senders for which IP Reputation Score has no information. This is referred to as “none”
and generally denotes a suspect.
Step 10 (Optional) Enter a DNS list.
Step 11 (Optional) Configure host DNS verification settings.
For more information, see Implementing More Stringent Throttling Settings for Unverified Senders, on page
121 .
Step 12 Click Submit to create the sender group.
Step 13 Click on the newly created sender group.
Step 14 Click Add Sender to add senders to the sender group.
• Add sender IP address .Select IP Addresses, add an IPv4 address, IPv6 address, or a hostname, and
submit the changes.
A sender can include a range of IP addresses and partial hostnames.
• Add sender's country of origin. Select Geolocation, select the country, and submit the changes.
Step 15 Submit and commit your changes.
What to do next
Related Topics
• Editing IP Reputation Filtering Score Thresholds for a Listener , on page 88
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
105
Defining Which Hosts Are Allowed to Connect Using the Host Access Table
Creating a Sender Group for Message Handling
Adding a Sender to an Existing Sender Group
Procedure
Step 1 From a domain, IP, or network owner profile page, click the Add to Sender Group link.
Step 2 Choose the sender group from the list defined for each listener.
Step 3 Submit and commit your changes.
When you add a domain to a sender group, two actual domains are listed in the GUI. For example,
if you were adding the domain example.net , on the Add to Sender Group page, both example.net
and .example.net are added. The second entry ensures that any host in the subdomain of
example.net will be added to the sender group. For more information, see Sender Group Syntax,
on page 95.
If one or more of the senders you are adding to a sender group is a duplicate of a sender that is
already present in that sender group, the duplicate senders will not be added and you will see a
confirmation message.
Note
Step 4 Click Save to add the sender and return to the Incoming Mail Overview page.
What to do next
Related Topics
• Protecting Email Gateway-Generated Messages From the Spam Filter, on page 405
• How to Configure the Email Gateway to Scan Messages for Spam, on page 384
Rearranging the Order of the Rules to Perform for Incoming Connections
If you add a sender group to a listener, you may need to edit the sender group order.
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.
Procedure
Step 1 Navigate to the Mail Policies > HAT Overview page.
Step 2 Choose the listener to edit in the Listener field.
Step 3 Click Edit Order.
Step 4 Type the new order for existing rows of sender groups in the HAT.
Cisco recommends maintaining the default order: RELAYLIST (certain hardware models only), followed by
ALLOWED_LIST, BLOCKED_LIST, SUSPECTLIST, and UNKNOWNLIST.
Step 5 Submit and commit your changes.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
106
Defining Which Hosts Are Allowed to Connect Using the Host Access Table
Adding a Sender to an Existing Sender Group
Searching for Senders
You can find senders by entering text in the Find Senders field at the top of the HAT Overview page. Enter
the text to search with and click Find.
Defining Rules for Incoming Messages Using a Mail Flow Policy
Consider the following rules and guidelines before creating a mail flow policy:
• Defaults for the policy are “greyed out” while the “Use Default” radio button is selected. To overwrite
the default values, enable the feature or setting by selecting the “On” radio button and making changes
to the now accessible values. To define default values,see Defining Default Valuesfor MailFlow Policies,
on page 112.
• Some parameters depend on certain pre-configurations. (For example, the Directory Harvest Attack
prevention setting requires that you have configured an LDAP Acceptance Query.)
Procedure
Step 1 Navigate to the Mail Policies > Mail Flow Policies page.
Step 2 Click Add Policy.
Step 3 Enter the information described in the following table.
Table 18: Mail Flow Policy Parameters
Parameter Description
Connections
The maximum size of a message that will be accepted by this listener. The smallest
possible maximum message size is 1 kilobyte.
Maximum message
size
The maximum number of concurrent connections allowed to connect to this listener
from a single IP address.
Maximum concurrent
connections from a
single IP
The maximum number of messages that can be sent through this listener per
connection from a remote host.
Maximum messages
per connection
That maximum number of recipients per message that will be accepted from this
host.
Maximum recipients
per message
SMTP Banner
Custom SMTPBanner The SMTP code returned when a connection is established with this listener.
Code
The SMTP banner text returned when a connection is established with this listener.
You can use some variables in this field. For more information, see HAT
Variable Syntax, on page 100.
Note
Custom SMTPBanner
Text
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
107
Defining Which Hosts Are Allowed to Connect Using the Host Access Table
Searching for Senders
Parameter Description
Custom SMTP Reject The SMTP code returned when a connection is rejected by this listener.
Banner Code
Custom SMTP Reject The SMTP banner text returned when a connection is rejected by this listener.
Banner Text
By default, the email gateway will include the hostname associated with the interface
of the listener when displaying the SMTP banner to remote hosts (for example: 220-
hostname ESMTP ). You may choose to override this banner by entering a different
hostname here. Additionally, you may leave the hostname field blank to choose not
to display a hostname in the banner.
Override SMTP
Banner Host Name
Rate Limit for Hosts
The maximum number of recipients per hour this listener will receive from a remote
host. The number of recipients persender IPaddressistracked globally. Each listener
tracks its own rate limiting threshold; however, because all listeners validate against
a single counter, it is more likely that the rate limit will be exceeded if the same IP
address (sender) is connecting to multiple listeners.
You can use some variables in this field. For more information, see HAT
Variable Syntax, on page 100.
Note
Max. Recipients per
Hour
The SMTP code returned when a host exceeds the maximum number of recipients
per hour defined for this listener.
Max. Recipients per
Hour Code
The SMTP banner text returned when a host exceeds the maximum number of
recipients per hour defined for this listener.
Max. Recipients Per
Hour Exceeded Text
Rate Limit for Sender
The maximum number of recipients during a specified time period that this listener
will receive from a unique envelope sender, based on the mail-from address. The
number of recipientsis not tracked globally. Each listener tracksits own rate limiting
threshold; however, because all listeners validate against a single counter, it is more
likely that the rate limit will be exceeded if messages from the same mail-from
address are received by multiple listeners.
Select whether to use the default maximum recipients, accept unlimited recipients,
or specify another maximum number of recipients.
Use the Default Mail Flow Policy settings to specify the maximum number of
recipients and the time interval that will be used by the other mail flow policies by
default. The time interval can only be specified using the Default Mail Flow Policy.
Max. Recipients per
Time Interval
The SMTP code returned when an envelope exceeds the maximum number of
recipients for the time interval defined for this listener.
Sender Rate Limit
Exceeded Error Code
The SMTP banner text returned when an envelope sender exceeds the maximum
number of recipients for the time interval defined for this listener.
Sender Rate Limit
Exceeded Error Text
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
108
Defining Which Hosts Are Allowed to Connect Using the Host Access Table
Defining Rules for Incoming Messages Using a Mail Flow Policy
Parameter Description
If you want certain envelope senders to be exempt from the defined rate limit, select
an address list that contains the envelope senders. See Using a List of Sender
Addresses for Incoming Connection Rules, on page 114for more information.
Exceptions
Flow Control
Use SenderBase for Enable “look ups” to the IP Reputation Service for this listener.
Flow Control
Used to track and rate limit incoming mail on a per-IP address basis while managing
entries in a listener’s Host Access Table (HAT) in large CIDR blocks. You define a
range of significant bits (from 0 to 32) by which to group similar IP addresses for
the purposes of rate limiting, while still maintaining an individual counter for each
IP address within that range. Requires “Use SenderBase” to be disabled. For more
information about HAT significant bits, see Configuring Routing and Delivery
Features, on page 697.
Group bySimilarity of
IP Addresses:
(significant bits 0-32)
Directory Harvest Attack Prevention (DHAP)
The maximum number of invalid recipients per hour this listener will receive from
a remote host. This threshold represents the total number of RAT rejections and
SMTP call-ahead server rejections combined with the total number of messages to
invalid LDAP recipients dropped in the SMTP conversation or bounced in the work
queue (as configured in the LDAP accept settings on the associated listener). For
more information on configuring DHAPfor LDAPaccept queries,see Working with
LDAP Queries, on page 785.
Directory Harvest
Attack Prevention:
Maximum Invalid
Recipients Per Hour
The email gateway will drop a connection to a host if the threshold of invalid
recipients is reached.
Directory Harvest
Attack Prevention:
Drop Connection if
DHAP threshold is
Reached within an
SMTP Conversation
Max. Invalid Specify the code to use when dropping connections. The default code is 550.
Recipients Per Hour
Code:
Specify the text to use for dropped connections. The default text is “Too many invalid
recipients.”
Max. Invalid
Recipients Per Hour
Text:
Enable to drop connections if the DHAP threshold is reached within an SMTP
conversation.
Drop Connection if
DHAP threshold is
reached within an
SMTP Conversation
Specify the code to use when dropping connections due to DHAP within an SMTP
conversation. The default code is 550.
Max. Invalid
Recipients Per Hour
Code
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
109
Defining Which Hosts Are Allowed to Connect Using the Host Access Table
Defining Rules for Incoming Messages Using a Mail Flow Policy
Parameter Description
Specify the text to use when dropping connections due to DHAP within an SMTP
conversation.
Max. Invalid
Recipients Per Hour
Text:
Spam Detection
Anti-spam scanning Enable anti-spam scanning on this listener.
Virus Detection
Anti-virus scanning Enable the anti-virus scanning on this listener.
Sender Domain Reputation Verification
Sender Domain Enable sender domain reputation verification.
Reputation
Verification
Encryption and Authentication
Deny, Prefer, or Require Transport Layer Security (TLS) in SMTP conversations
for this listener.
If you select Preferred, you can make TLS mandatory for envelope senders from a
specific domain or with a specific email address by selecting an Address List that
specifies those domains and email addresses. When an envelope sender matching a
domain or address in this list tries to send a message over a connection that does not
use TLS, the email gateway rejects the connection and the sender will have to try
again using TLS.
The Verify Client Certificate option directs the email gateway to establish a TLS
connection to the user’s mail application if the client certificate is valid. If you select
this option for the TLS Preferred setting, the email gateway still allows a non-TLS
connection if the user doesn’t have a certificate, but rejects a connection if the user
has an invalid certificate.For the TLS Required setting, selecting this option requires
the user to have a valid certificate in order for the email gateway to allow the
connection.
For information on creating an address list, see Using a List of Sender Addresses for
Incoming Connection Rules, on page 114.
For information on using client certificates for TLS connections, see Establishing a
TLS Connection from the Email Gateway, on page 827.
TLS
Allows, disallow, or requires SMTP Authentication from remote hosts connecting
to the listener. SMTP Authentication is described in detail in the “LDAP Queries”
chapter.
SMTP Authentication
If Both TLS and Require TLS to offer SMTP Authentication.
SMTP Authentication
are enabled:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
110
Defining Which Hosts Are Allowed to Connect Using the Host Access Table
Defining Rules for Incoming Messages Using a Mail Flow Policy
Parameter Description
Domain Key/ DKIM Enable Domain Keys or DKIM signing on thislistener (ACCEPT and RELAY only).
Signing
DKIM Verification Enable DKIM verification.
S/MIME Decryption and Verification
• Enable S/MIME decryption or verification.
• Choose whether to retain or remove the digital signature from the messages
afterS/MIME verification.For triple wrapped messages, only the innersignature
is retained or removed.
S/MIME
Decryption/Verification
S/MIME Public Key Harvesting
S/MIME Public Key Enable S/MIME public key harvesting.
Harvesting
Choose whether to harvest public keys if the verification of the incoming signed
messages fail.
Harvest Certificates
on VerificationFailure
Store Updated Choose whether to harvest updated public keys.
Certificate
SPF/SIDF Verification
Enable SPF/SIDF signing on this listener. For more information, see Email
Authentication, on page 601.
Enable SPF/SIDF
Verification
Set the SPF/SIDF conformance level. You can choose from SPF, SIDF or SIDF
Compatible. For details, see Email Authentication, on page 601.
Conformance Level
If you choose a conformance level of SIDF compatible, configure whether you want
to downgrade Pass result of the PRA Identity verification to None if there are
Resent-Sender: or Resent-From: headers present in the message. You may choose
this option for security purposes.
Downgrade PRA
verification result if
'Resent-Sender:' or
'Resent-From:' were
used:
Configure whether you want to perform a test against the HELO identity (Use this
for SPF and SIDF Compatible conformance levels).
HELO Test
DMARC Verification
Enable DMARC verification on this listener. For more information, see DMARC
Verification, on page 632.
Enable DMARC
Verification
Use DMARC Select the DMARC verification profile that you want to use on this listener.
Verification Profile
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
111
Defining Which Hosts Are Allowed to Connect Using the Host Access Table
Defining Rules for Incoming Messages Using a Mail Flow Policy
Parameter Description
Enable sending of DMARC aggregate feedback reports.
For more information about DMARC aggregate feedback report, see DMARC
Aggregate Reports, on page 639.
DMARC specification requires the feedback report messages to be
DMARC compliant. Make sure that these messages are DKIM signed or
you must publish appropriate SPF records.
Note
DMARC Feedback
Reports
Untagged Bounces
Applies only if bounce verification tagging (discussed in the “Configuring Routing
and Delivery Features” chapter) is enabled. By default, the appliance considers
untagged bounces invalid and either rejects the bounce or adds a custom header,
depending on the Bounce Verification settings. If you choose to consider untagged
bounces to be valid, the email gateway accepts the bounce message.
Consider Untagged
Bounces to be Valid
Envelope Sender DNS Verification
See Verifying Senders, on page 117.
Exception Table
Use the sender verification domain exception table. You can only have one exception
table, but you can enable it per mail flow policy. See Sender Verification Exception
Table, on page 119 for more information.
Use Exception Table
If anti-spam or anti-virusscanning is enabled globally in the HAT, messages are flagged for anti-spam
or anti-virusscanning asthey are accepted by the email gateway. If anti-spam or anti-virusscanning
is disabled after the message is accepted, the message will still be subject to scanning when it leaves
the work queue.
Note
Step 4 Submit and commit your changes.
Defining Default Values for Mail Flow Policies
Procedure
Step 1 Click Mail Policies > Mail Flow Policies.
Step 2 Choose the listener to edit in the Listener field.
Step 3 Click the Default Policy Parameters link below the configured mail flow policies.
Step 4 Define the default values that all mail flow policies for this listener use.
For more information on the properties,see Defining Rulesfor Incoming Messages Using a MailFlow Policy,
on page 107.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
112
Defining Which Hosts Are Allowed to Connect Using the Host Access Table
Defining Default Values for Mail Flow Policies
Step 5 Submit and commit your changes.
Working with the Host Access Table Configuration
You can export all information stored in a Host Access Table to a file, and you can import Host Access Table
information stored in a file into the email gateway for a listener, overwriting all existing Host Access Table
information.
Related Topics
• Exporting the Host Access Table Configuration to an External File, on page 113
• Importing the Host Access Table Configuration from an External File, on page 113
Exporting the Host Access Table Configuration to an External File
Procedure
Step 1 Navigate to the Mail Policies > HAT Overview page.
Step 2 Choose the listener to edit in the Listener menu.
Step 3 Click Export HAT.
Step 4 Enter a file name for the exported HAT. This is the name of the file that will be created in the configuration
directory on the email gateway.
Step 5 Submit and commit your changes.
Importing the Host Access Table Configuration from an External File
When you import a HAT, all of the existing HAT entries are removed from the current HAT.
Procedure
Step 1 Navigate to the Mail Policies > HAT Overview page.
Step 2 Choose the listener to edit in the Listener menu.
Step 3 Click Import HAT.
Step 4 Select a file from the list.
Note The file to import must be in the configuration directory on the email gateway.
Step 5 Click Submit. You will see a warning message, asking you to confirm that you wish to remove all of the
existing HAT entries.
Step 6 Click Import.
Step 7 Commit your changes.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
113
Defining Which Hosts Are Allowed to Connect Using the Host Access Table
Working with the Host Access Table Configuration
You can place “comments” in the file. Lines that begin with a ‘#’ character are considered comments and are
ignored by AsyncOS. For example:
# File exported by the GUI at 20060530T215438
$BLOCKED
REJECT {}
[ ... ]
Using a List of Sender Addresses forIncoming Connection Rules
Mail flow policies allow you to use of an address list for certain settings that apply to a group of envelope
senders, such as rate limiting exemptions and mandatory TLS connections. An address list can consist of
email addresses, domains, partial domains, and IP addresses. You can use the Mail Policies > Address Lists
page in the GUI or the addresslistconfig command in the CLI to create an address list. The Address Lists
page displays all address lists on the email gateway, along with any mail flow policies that use an address list.
Procedure
Step 1 Select Mail Policies > Address Lists.
Step 2 Click Add Address List.
Step 3 Enter a name for the address list.
Step 4 Enter a description of the address list.
Step 5 (Optional) To enforce using full email addresses in the address list, select Full Email Addresses only.
Step 6 Choose any one of the following options to create an address list:
• Select Full Email Addresses only if you want to enforce using full email addresses in the address list.
• Select Domains only if you want to enforce using domains in the address list.
• Select IP Addresses only if you want to enforce using IP addresses in the address list.
Step 7 Enter the addresses you want to include. You can use the following formats:
• Full email address: user@example.com
• Partial email address: user@
Note If you have selected Allow only full Email Addresses, you cannot use partial email addresses.
• IP address in their email address: @[1.2.3.4]
• All users in a domain: @example.com
• All users in a partial domain: @.example.com
Note that domains and IP addresses must start with a @ character.
Separate email addresses with a comma. If you separate the addresses using a new line, AsyncOSautomatically
converts your entries into a comma-separated list.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
114
Defining Which Hosts Are Allowed to Connect Using the Host Access Table
Using a List of Sender Addresses for Incoming Connection Rules
Step 8 Submit and commit your changes.
SenderBase Settings and Mail Flow Policies
In order to classify connections to the email gateway and apply mail flow policies (which may or may not
contain rate limiting), a listener uses the following methodology:
Classification -> Sender Group -> Mail Flow Policy -> Rate Limiting
For more information, see Sender Groups Defined by Network Owners, Domains, and IP Addresses, on page
96.
The “Classification” stage uses the sending host’s IP address to classify an inbound SMTP session (received
on a public listener) into a Sender Group. The Mail Flow Policy associated with that Sender Group may have
parameters for rate limiting enabled. (Rate limiting limits the maximum number of messages per session, the
maximum number of recipients per message, the maximum message size, and/or the maximum number of
concurrent connections you are willing to accept from a remote host.)
Normally, in this process, recipients are counted against each sender in the corresponding named sender group.
If mail isreceived from severalsenders in the same hour, the total recipientsfor all sendersis compared against
the limit.
There are some exceptions to this counting methodology:
• If the classification is done by Network Owner, then the IP Reputation Service will automatically divide
a large block of addresses into smaller blocks.
Counting of recipients and recipient rate limiting is done separately for each of these smaller blocks (usually,
but not always, the equivalent of a /24 CIDR block).
• If the HAT Significant Bits feature is used. In this case, a large block of addresses may be divided into
smaller blocks by applying the significant bits parameter associated with the policy.
Note that this parameter relates to the Mail Flow Policy -> Rate Limiting phase. It is not the same as the
“bits” field in the “network/bits” CIDR notation that may be used to classify IP addresses in a Sender Group.
By default, IP Reputation Service and IP Profiling support are enabled for public listeners and disabled for
private listeners.
Related Topics
• HAT Significant Bits Feature, on page 115
HAT Significant Bits Feature
Beginning with the 3.8.3 release of AsyncOS, you can track and rate limit incoming mail on a per-IP address
basis while managing sender group entries in a listener’s Host Access Table (HAT) in large CIDR blocks.
For example, if an incoming connection matched against the host “10.1.1.0/24,” a counter could still be
generated for each individual address within that range, rather than aggregating all traffic into one large
counter.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
115
Defining Which Hosts Are Allowed to Connect Using the Host Access Table
SenderBase Settings and Mail Flow Policies
In order for the significant bits HAT policy option to take effect, you must not enable “UserSenderBase”
in the Flow Control options for the HAT (or, for the CLI, answer no to the question for enabling the
SenderBase InformationService in the listenerconfig -> setup command: “Would you like to enable
Reputation Filters and IP Profiling support?”). That is, the Hat Significant Bits feature and enabling
SenderBase IP Profiling support are mutually exclusive.
Note
In most cases, you can use this feature to define sender groups broadly — that is, large groups of IP addresses
such as “10.1.1.0/24” or “10.1.0.0/16” — while applying mail flow rate limiting narrowly to smaller groups
of IP addresses.
The HAT Significant Bits feature corresponds to these components of the system:
• HAT Configuration , on page 116
• Significant Bits HAT Policy Option , on page 116
• Injection Control Periodicity , on page 116
HAT Configuration
There are two parts of HAT configuration: sender groups and mail flow policies. Sender group configuration
defines how a sender'sIPaddressis “classified” (put in a sender group). Mail flow policy configuration defines
how the SMTP session from that IP address is controlled. When using this feature, an IP address may be
“classified in a CIDR block” (e.g. 10.1.1.0/24)sender group while being controlled as an individual host (/32).
This is done via the “signficant_bits” policy configuration setting.
Significant Bits HAT Policy Option
The HAT syntax allows for the signficant_bits configuration option. This feature appears in the GUI in the
Mail Policies > Mail Flow Policies page.
When the option to use SenderBase for flow control is set to “OFF” or Directory Harvest Attack Prevention
is enabled, the “significant bits” value is applied to the connecting sender’sIPaddress, and the resulting CIDR
notation is used as the token for matching defined sender groups within the HAT. Any rightmost bits that are
covered by the CIDR block are “zeroed out” when constructing the string. Thus, if a connection from the IP
address 1.2.3.4 is made and matches on a policy with the significant_bits option set to 24, the resultant CIDR
block would be 1.2.3.0/24. So by using this feature, the HAT sender group entry (for example, 10.1.1.0/24)
can have a different number of network significant bits (24) from the significant bits entry in the policy
assigned to that group (32, in the example).
For more information on listenerconfig command, see the CLI Reference Guide for AsyncOS for Cisco
Secure Email Gateway.
Injection Control Periodicity
A global configuration option exists to allow you to adjust when the injection control counters are reset. For
very busy systems maintaining counters for a very large number of different IP addresses, configuring the
counters to be reset more frequently (for example, every 15 minutes instead of every 60 minutes) will ensure
that the data does not grow to an unmanageable size and impact system performance.
The current default value is 3600 seconds (1 hour).You can specify periods ranging from as little as 1 minute
(60 seconds) to as long as 4 hours (14,400 seconds).
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
116
Defining Which Hosts Are Allowed to Connect Using the Host Access Table
HAT Configuration
Adjust this period via the GUI, using the globalsettings(for more information,see Configuring GlobalSettings
for Listeners, on page 72).
You can also adjust this period using the listenerconfig -> setup command in the CLI.For more information
on listenerconfig command, see the CLI Reference Guide for AsyncOS for Cisco Secure Email Gateway.
Verifying Senders
Spam and unwanted mail is frequently sent by senders whose domains or IP addresses cannot be resolved by
DNS. DNSverification meansthat you can get reliable information aboutsenders and process mail accordingly.
Sender verification prior to theSMTPconversation (connection filtering based on DNSlookups of the sender’s
IP address) also helps reduce the amount of junk email processed through the mail pipeline on the email
gateway.
Mail from unverified senders is not automatically discarded. Instead, AsyncOS provides sender verification
settings that allow you to determine how the email gateway handles mail from unverified senders: you can
configure your email gateway to automatically block all mail from unverified senders prior to the SMTP
conversation or throttle unverified senders, for example.
The sender verification feature consists of the following components:
• Verificationof the connectinghost. This occurs prior to theSMTPconversation.For more information,
see Sender Verification: Host, on page 117.
• Verificationof thedomainportionof the envelope sender. This occurs during theSMTPconversation.
For more information, see Sender Verification: Envelope Sender, on page 118.
Related Topics
• Sender Verification: Host, on page 117
• Sender Verification: Envelope Sender, on page 118
• Implementing Sender Verification — Example Settings, on page 120
• Testing Your Settings for Messages from Unverified Senders, on page 123
• Sender Verification and Logging, on page 124
Sender Verification: Host
Senders can be unverified for different reasons. For example, the DNS server could be “down” or not
responding, or the domain may not exist. Host DNSverification settingsforsender groups allow you to classify
unverified senders prior to the SMTP conversation and include different types of unverified senders in your
various sender groups.
The email gateway attempts to verify the sending domain of the connecting host via DNS for incoming mail.
This verification is performed prior to the SMTP conversation. The system acquires and verifies the validity
of the remote host’s IP address (that is, the domain) by performing a double DNS lookup . A double DNS
lookup is defined as a reverse DNS (PTR) lookup on the IP address of the connecting host, followed by a
forward DNS (A) lookup on the results of the PTR lookup. The email gateway then checks that the results of
the A lookup match the results of the PTR lookup. If the PTR or A lookups fail, or the results do not match,
the system uses only the IP address to match entries in the HAT and the sender is considered as not verified.
Unverified senders are classified into the following categories:
• Connecting host PTR record does not exist in the DNS.
• Connecting host PTR record lookup fails due to temporary DNS failure.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
117
Defining Which Hosts Are Allowed to Connect Using the Host Access Table
Verifying Senders
• Connecting host reverse DNS lookup (PTR) does not match the forward DNS lookup (A).
Using the sender group “Connecting Host DNS Verification” settings, you can specify a behavior for unverified
senders (see Throttling Messages from Unverified Senders Using the SUSPECTLIST Sender Group, on page
121).
You can enable host DNS verification in the sender group settings for any sender group; however, keep in
mind that adding host DNS verification settings to a sender group means including unverified senders in that
group. That means that spam and other unwanted mail will be included. Therefore, you should only enable
these settings on sender groups that are used to reject or throttle senders. Enabling host DNS verification on
the ALLOWED_LIST sender group, for example, would mean that mail from unverified senders would receive
the same treatment as mail from your trusted senders in your ALLOWED_LIST (including bypassing
anti-spam/anti-virus checking, rate limiting, etc., depending on how the mail flow policy is configured).
Sender Verification: Envelope Sender
With envelope sender verification, the domain portion of the envelope sender is DNS verified. (Does the
envelope sender domain resolve? Is there an A or MX record in DNS for the envelope sender domain?) A
domain does not resolve if an attempt to look it up in the DNS encounters a temporary error condition such
as a timeout or DNS server failure. On the other hand, a domain does not exist if an attempt to look it up
returns a definitive “domain does not exist” status. This verification takes place during theSMTPconversation
whereas host DNS verification occurs before the conversation begins — it applies to the IP address of
connecting SMTP server.
In more detail: AsyncOS performs an MX record query for the domain of the sender address. AsyncOS then
performs an A record lookup based on the result of the MX record lookup. If the DNS server returns
“NXDOMAIN” (there is no record for this domain), AsyncOS treats that domain as non-existent. This falls
into the category of “Envelope Senders whose domain does not exist.” NXDOMAIN can mean that the root
name servers are not providing any authoritative name servers for this domain.
Note Sender verification rejects a domain with no MX record if the DNS response is “NOERROR.”
However, if the DNSserver returns “SERVFAIL,” it is categorized as “EnvelopeSenders whose domain does
not resolve.” SERVFAIL means that the domain does exist but DNS is having transient problems looking up
the record.
A common technique for spammers or other illegitimate senders of mail is to forge the MAIL FROM
information (in the envelope sender) so that mail from unverified senders that is accepted will be processed.
This can lead to problems as bounce messages sent to the MAIL FROM address are undeliverable. Using
envelope sender verification, you can configure your email gateway to reject mail with malformed (but not
blank) MAIL FROMs.
For each mail flow policy, you can:
• Enable envelope sender DNS verification.
• Offer custom SMTP code and response for malformed envelope sender. Malformed envelope senders
are blocked if you have enabled envelope sender DNS verification.
• Offer custom response for envelope sender domains which do not resolve.
• Offer custom response for envelope sender domains which do not exist in DNS.
You can use the sender verification exception table to storeSender Verification Exception Table, on page 119
a list of domains or addresses from which mail will be automatically allowed or rejected (see ). The sender
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
118
Defining Which Hosts Are Allowed to Connect Using the Host Access Table
Sender Verification: Envelope Sender
verification exception table can be enabled independently of Envelope Sender verification. So, for example,
you can still reject special addresses or domains specified in the exception table without enabling envelope
sender verification. You can also always allow mail from internal or test domains, even if they would not
otherwise be verified.
Though most spam is from unverifiable senders, there are reasons why you might want to accept mail from
an unverified sender.For example, not all legitimate email can be verified through DNSlookups — a temporary
DNS server problem can stop a sender from being verified.
When mail from unverified senders is attempted, the sender verification exception table and mail flow policy
envelope sender DNSverification settings are used to classify envelope senders during theSMTPconversation.
For example, you may accept and throttle mail from sending domains that are not verified because they do
not exist in DNS. Once that mail is accepted, messages with malformed MAIL FROMs are rejected with a
customizable SMTP code and response. This occurs during the SMTP conversation.
You can enable envelope sender DNS verification (including the domain exception table) in the mail flow
policy settings for any mail flow policy via the GUI or the CLI ( listenerconfig -> edit -> hostaccess
-> < policy > ).
Related Topics
• Partial Domains, Default Domains, and Malformed MAIL FROMs, on page 119
• Custom SMTP Code and Response, on page 119
• Sender Verification: Envelope Sender, on page 118
Partial Domains, Default Domains, and Malformed MAIL FROMs
If you enable envelope sender verification or disable allowing partial domains in SMTP Address Parsing
options for a listener (see the SMTP Address Parsing Options section in the “Configuring the Gateway to
Receive Email” chapter), the default domain settings for that listener will no longer be used.
These features are mutually exclusive.
Custom SMTP Code and Response
You can specify the SMTP code and response message for messages with malformed envelope senders, for
envelope senders which do not exist in DNS, and for envelope senders which do not resolve via DNS queries
(DNS server might be down, etc.).
In the SMTP response, you can include a variable, $EnvelopeSender , which is expanded to the value of the
envelope sender when the custom response is sent.
While typically a “Domain does not exist” result is permanent, it is possible for thisto be a transient condition.
To handle such cases, “conservative” users may wish to change the error code from the default 5XX to a 4XX
code.
Sender Verification Exception Table
The sender verification exception table is a list of domains or email addresses that will either be automatically
allowed or rejected during the SMTP conversation. You can also specify an optional SMTP code and reject
response for rejected domains. There is only one sender verification exception table per email gateway and
it is enabled per mail flow policy.
The sender verification exception table can be used to list obviously fake but correctly formatted domains or
email addresses from which you want to reject mail. For example, the correctly formatted MAIL FROM:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
119
Defining Which Hosts Are Allowed to Connect Using the Host Access Table
Partial Domains, Default Domains, and Malformed MAIL FROMs
pres@whitehouse.gov could be listed in the sender verification exception table and set to be automatically
rejected. You can also list domains that you want to automatically allow, such as internal or test domains.
This is similar to envelope recipient (SMTP RCPT TO command) processing which occurs in the Recipient
Access Table (RAT).
The sender verification exception table is defined in the GUI via the Mail Policies > Exception Table page
(or the CLI, via the exceptionconfig command) and then is enabled on a per-policy basis via the GUI (see
Defining Messages to Send to Unverified Senders Using the ACCEPTED Mail Flow Policy, on page 122) or
the CLI (see the CLI Reference Guide for AsyncOS for Cisco Secure Email Gateway.
Entries in the sender verification exception table have the following syntax:
See Excluding UnverifiedSenders from Sender Verification Rules Based onSender’s Email Address, on page
122 for more information about modifying the exception table.
Implementing Sender Verification — Example Settings
This section provides an example of a typical conservative implementation of host and envelope sender
verification.
For this example, when implementing host sender verification, mail from connecting hosts for which reverse
DNS lookup does not match is throttled via the existing SUSPECTLIST sender group and THROTTLED
mail flow policy.
A new sender group (UNVERIFIED) and a new mail flow policy (THROTTLEMORE) are created. Mail
from connecting hosts which are not verified will be throttled (using the UNVERIFIED sender group and the
more aggressive THROTTLEMORE mail flow policy) prior to the SMTP conversation.
Envelope sender verification is enabled for the ACCEPTED mail flow policy.
The following table shows the suggested settings for implementing sender verification:
Table 19: Sender Verification: Suggested Settings
Sender Group Policy Include
Prior to SMTP conversation:
Connecting host PTR record does not exist in the DNS.
Connecting host reverse DNS lookup (PTR) does not match the forward
DNS lookup (A).
THROTTLEMORE
THROTTLED
UNVERIFIED
SUSPECTLIST
Envelope Sender Verification during SMTP conversation:
- Malformed MAIL FROM:
- Envelope sender does not exist in DNS.
- Envelope sender DNS does not resolve.
ACCEPTED
Related Topics
• Throttling Messages from Unverified Senders Using the SUSPECTLIST Sender Group, on page 121
• Implementing More Stringent Throttling Settings for Unverified Senders, on page 121
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
120
Defining Which Hosts Are Allowed to Connect Using the Host Access Table
Implementing Sender Verification — Example Settings
• Defining Messages to Send to Unverified Senders Using the ACCEPTED Mail Flow Policy, on page
122
• Excluding Unverified Senders from Sender Verification Rules Based on Sender’s Email Address, on
page 122
• Searching for Addresses within the Sender Verification Exception Table, on page 122
Throttling Messages from Unverified Senders Using the SUSPECTLIST Sender Group
Procedure
Step 1 Select Mail Policies > HAT Overview.
Step 2 Click SUSPECTLIST in the list of sender groups.
Step 3 Click Edit Settings.
Step 4 Select the THROTTLED policy from the list.
Step 5 Check the “Connecting host reverse DNSlookup (PTR) does not match the forward DNSlookup (A)” checkbox
under Connecting Host DNS Verification.
Step 6 Submit and commit your changes.
Now,sendersfor which reverse DNSlookupsfail will match theSUSPECTLIST sender group and will receive
the default action from the THROTTLED mail flow policy.
Implementing More Stringent Throttling Settings for Unverified Senders
Procedure
Step 1 Create a new mail flow policy (for this example, it is named THROTTLEMORE) and configure it with more
stringent throttling settings.
a) On the Mail Flow Policies page, click Add Policy
b) Enter a name for the mail flow policy, and select Accept as the Connection Behavior.
c) Configure the policy to throttle mail.
d) Submit and commit your changes.
Step 2 Create a new sender group (for this example, it is named UNVERIFIED) and configure it to use the
THROTTLEMORE policy:
a) On the HAT Overview page, click Add Sender Group
b) Select the THROTTLEMORE policy from the list.
c) Check the “Connecting host PTR record does not exist in DNS” checkbox under Connecting Host DNS
Verification.
d) Submit and commit your changes.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
121
Defining Which Hosts Are Allowed to Connect Using the Host Access Table
Throttling Messages from Unverified Senders Using the SUSPECTLIST Sender Group
Defining Messages to Send to Unverified Senders Using the ACCEPTED Mail Flow Policy
Procedure
Step 1 Select Mail Policies > Mail Flow Policies.
Step 2 On the Mail Flow Policies page, click on the ACCEPTED mail flow policy.
Step 3 Scroll down to the Sender Verification section.
Step 4 In the Envelope Sender DNS Verification section, do the following:
• Select On to enable envelope sender DNS verification for this mail flow policy.
• You may also define custom SMTP code and responses.
Step 5 In the Use Domain Exception Table section, select On to enable the domain exception table.
Step 6 Submit and commit your changes.
Excluding Unverified Senders from Sender Verification Rules Based on Sender’s Email Address
Procedure
Step 1 Select Mail Policies > Exception Table.
Note The exception table applies globally to all mail flow policies with “Use Exception Table” enabled.
Step 2 Click Add Domain Exception on the Mail Policies > Exception Table page.
Step 3 Enter an email address. You can enter a specific address (pres@whitehouse.gov), a name (user@), a domain
(@example.com or @.example.com), or an address with a bracketed IP address (user@[192.168.23.1]).
Step 4 Specify whether to allow or reject messages from the address. When rejecting mail, you can also specify an
SMTP code and custom response.
Step 5 Submit and commit your changes.
Searching for Addresses within the Sender Verification Exception Table
Procedure
Step 1 Enter the email address in the Find Domain Exception section of the Exception Table page.
Step 2 Click Find.
If the address matches any of the entries in the table, the first matching entry is displayed.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
122
Defining Which Hosts Are Allowed to Connect Using the Host Access Table
Defining Messages to Send to Unverified Senders Using the ACCEPTED Mail Flow Policy
Testing Your Settings for Messages from Unverified Senders
Now that you have configured sender verification settings, you can verify the behavior of your email gateway.
Note that testing DNS-related settings is beyond the scope of this document.
Related Topics
• Sending a Test Message with a Malformed MAIL FROM Sender Address, on page 123
• Sending a Message from an Address That is Excluded from Sender Verification Rules, on page 123
Sending a Test Message with a Malformed MAIL FROM Sender Address
While it may be difficult to test the various DNS-related settings for your THROTTLED policy, you can test
the malformed MAIL FROM setting.
Procedure
Step 1 Open a Telnet session to your email gateway.
Step 2 Use SMTP commands to send a test message with a malformed MAIL FROM (something like “admin”
without a domain).
If you have configured your email gateway to use a default domain or to specifically allow partial
domains when sending or receiving email or if you have enabled address parsing (see the
“Configuring the Gateway to Receive Email” chapter) you may not be able to create, send, and
receive an email with a missing or malformed domain.
Note
Step 3 Verify that the message is rejected.
# telnet IP_address_of_Email_Security_Appliance port
220 hostname ESMTP
helo example.com
250 hostname
mail from: admin
553 #5.5.4 Domain required for sender address
Note that the SMTP code and response is the one you configured for the envelope sender verification settings
for the THROTTLED mail flow policy.
Sending a Message from an Address That is Excluded from Sender Verification Rules
To confirm that mail from the email address listed in the sender verification exception table is not subject to
envelope sender verification:
Procedure
Step 1 Add the following address to the exception table with an “Allow” behavior: admin@zzzaaazzz.com
Step 2 Commit your changes.
Step 3 Open a Telnet session to your email gateway.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
123
Defining Which Hosts Are Allowed to Connect Using the Host Access Table
Testing Your Settings for Messages from Unverified Senders
Step 4 Use SMTP commands to send a test message from the email address you entered in the sender verification
exception table (admin@zzzaaazzz.com).
Step 5 Verify that the message is accepted.
# telnet IP_address_of_Email_Security_Appliance port
220 hostname ESMTP
helo example.com
250 hostname
mail from: admin@zzzaaazzz.com
250 sender ok
If you remove that email address from the sender verification exception table, mail from that sender will be
rejected because the domain portion of the envelope sender is not DNS verified.
Sender Verification and Logging
The following log entries provide an example of Sender Verification verdicts.
Related Topics
• Envelope Sender Verification, on page 124
Envelope Sender Verification
Malformed Envelope Senders:
Thu Aug 10 10:14:10 2006 Info: ICID 3248 Address: sender rejected, envelope sender
domain missing
Domain does not exist (NXDOMAIN):
Wed Aug 9 15:39:47 2006 Info: ICID 1424 Address: sender rejected, envelope
sender domain does not exist
Domain does not resolve (SERVFAIL):
Wed Aug 9 15:44:27 2006 Info: ICID 1425 Address: sender rejected, envelope
sender domain could not be resolved
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
124
Defining Which Hosts Are Allowed to Connect Using the Host Access Table
Sender Verification and Logging
CHAPTER 8
Accepting or Rejecting Connections Based on
Domain Name or Recipient Address
This chapter contains the following sections:
• Overview of Accepting or Rejecting Connections Based on the Recipient’s Address, on page 125
• Overview of the Recipient Access Table (RAT), on page 126
• Accessing the RAT using the GUI, on page 126
• Accessing the RAT using the CLI, on page 126
• Editing the Default RAT Entry, on page 126
• Domains and Users, on page 127
Overview of Accepting or Rejecting Connections Based on the
Recipient’s Address
AsyncOS uses a Recipient Access Table (RAT) for each public listener to manage accept and reject actions
for recipient addresses. Recipient addresses include these:
• Domains
• Email addresses
• Groups of email addresses
The System Setup Wizard guides the administrator in configuring at least one public listener (with default
values) on the email gateway. Configuring a public listener during setup involves specifying default local
domains or specific addresses to accept mail. These local domains or specific addresses are the first entries
in the RAT for that public listener.
For each public listener, the default entry, “All Other Recipients”, rejects email from all recipients. The
administrator defines all local domains for which the email gateway accepts messages. Optionally, you can
also define specific users for whom the email gateway will accept or reject messages. AsyncOS allows you
to define acceptable local domains and specific users using the Recipient Access Table (RAT).
You might need to configure a listener to accept messages for multiple domains. For example, if your
organization uses the domain currentcompanyname.com and it previously used oldcompanyname.com , then
you might accept messagesfor both currentcompanyname.com and oldcompanyname.com . In this case, include
both local domains in the RAT for your public listener.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
125
(Note: the Domain Map feature can map messages from one domain to another. See the Domain Map feature
section of the “Configuring Routing and Delivery Features” chapter.)
Overview of the Recipient Access Table (RAT)
The Recipient Access Table defines which recipients are accepted by a public listener. At a minimum, the
table specifies the address and whether to accept or reject it.
The Recipient Access Table (RAT) page shows a listing of the entries in the RAT including the order, default
action, and whether or not the entry has been configured to bypass LDAP accept queries.
Accessing the RAT using the GUI
GUI
Procedure
Navigate to Mail Policies > Recipient Access Table (RAT).
Accessing the RAT using the CLI
CLI
Procedure
Use the listenerconfig command with the edit > rcptaccess > new subcommands.
Editing the Default RAT Entry
Before you begin
• Set up a public listener.
• Plan edits with caution, ensuring you do not create an open relay on the Internet. An open relay (sometimes
called an “insecure relay” or a “third-party” relay) is an SMTP email server that allows third-party relay
of email messages. By processing mail that is neither for — nor from — a local user, an open relay makes
it possible for an unscrupulous sender to route large volumes of spam through your gateway. By default,
the RAT rejects all recipients to prevent creation of an open relay.
• Note that you cannot delete the default entry from the RAT.
Procedure
Step 1 Navigate to Mail Policies > Recipient Access Table (RAT).
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
126
Accepting or Rejecting Connections Based on Domain Name or Recipient Address
Overview of the Recipient Access Table (RAT)
Step 2 Click All Other Recipients.
Domains and Users
Modifying the Domains For Which to Accept Messages using the RAT
Use the Mail Policies > Recipient Access Table (RAT) page to configure the local domains and specific users
for which the email gateway accepts messages. On this page, you can perform the following tasks:
• Add, delete, and modify entries in the RAT.
• Change the order of the entries.
• Export RAT entries to a text file.
• Import RAT entries from a text file. Importing from a text file overwrites the existing entries.
Related Topics
• Adding Domains and Users For Which to Accept Messages, on page 127
• Rearranging the Order of Domains and Users in the Recipient Access Table, on page 129
• Exporting the Recipient Access Table to an External File, on page 130
• Importing the Recipient Access Table from an External File, on page 130
Adding Domains and Users For Which to Accept Messages
Procedure
Step 1 Navigate to the Mail Policies > Recipient Access Table (RAT) page.
Step 2 Choose the listener to edit in the Overview for Listener field.
Step 3 Click Add Recipient.
Step 4 Select an order for the entry.
Step 5 Enter the recipient address.
Step 6 Choose to accept or reject the recipient.
Step 7 (Optional) Choose to bypass LDAP acceptance queries for the recipient.
Step 8 (Optional) Use a custom SMTP response for this entry.
a) Select Yes for Custom SMTP Response.
b) Enter an SMTP response code and text. Include the SMTP response to the RCPT TO command for the
recipient.
Step 9 (Optional) Choose to bypass throttling by selecting Yes for Bypass Receiving Control.
Step 10 Submit and commit your changes.
What to do next
Related Topics
• Defining Recipient Addresses, on page 128
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
127
Accepting or Rejecting Connections Based on Domain Name or Recipient Address
Domains and Users
• Bypassing LDAP Accept for Special Recipients, on page 128
• Bypassing Throttling for Special Recipients, on page 129
Defining Recipient Addresses
The RAT allows you to define a recipient or group of recipients. Recipients can be defined by full email
address, domain, partial domain, username, or IP address:
Specific Internet Protocol version 4 (IPv4) address of the host. Note that the
IP address must be between the “ [] ” characters.
[IPv4 address]
Specific Internet Protocol version 6 (IPv6) address of the host. Note that the
IP address must be between the “ [] ” characters.
[IPv6 address]
division.example.com Fully-qualified domain name.
.partialhost Everything within the “partialhost” domain.
user@domain Complete email address.
user@ Anything with the given username.
Username at a specific IPv4 or IPv6 address. Note that the IP address must
be between the “ [] ” characters.
Note that “ user@IP_address ” (without the bracket characters) is not a valid
address. The system will append the brackets when it receives the message
to create a valid address, which could affect whether a recipient is matched
in the RAT.
user@[IP_address ]
When you add a domain to the Recipient Access Table in step 4 of the System Setup Wizard in the GUI
(see Step 3: Network, on page 35), you might want to consider adding a second entry to specify
subdomains. For example, if you type the domain example.net , you might also want to enter
.example.net . The second entry ensures that mail destined for any subdomain of example.net will
match in the Recipient Access Table. Note that only specifying .example.com in the RAT will accept
for all subdomains of .example.com but will not accept mail for complete email address recipients
without a subdomain (for example joe@example.com).
Note
Bypassing LDAP Accept for Special Recipients
If you configure LDAPacceptance queries, you may wish to bypassthe acceptance query for certain recipients.
This feature can be useful if there are recipients for whom you receive email which you do not want to be
delayed or queued during LDAP queries, such as customercare@example.com .
If you configure the recipient address to be rewritten in the work queue prior to the LDAP acceptance query,
(such as aliasing or using a domain map), the rewritten address will not bypass LDAP acceptance queries.
For example you use an alias table to map customercare@example.com to bob@example.com and
sue@example.com . If you configure bypassing LDAPacceptance for customercare@example.com , an LDAP
acceptance query is still run for bob@example.com and sue@example.com after the aliasing takes place.
To configure bypassing LDAP acceptance via the GUI, select Bypass LDAP Accept Queries for this
Recipient when you add or edit the RAT entry.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
128
Accepting or Rejecting Connections Based on Domain Name or Recipient Address
Defining Recipient Addresses
To configure bypassing LDAP acceptance queries via the CLI, answer yes to the following question when
you enter recipients using the listenerconfig -> edit -> rcptaccess command:
Would you like to bypass LDAP ACCEPT for this entry? [Y]> y
When you configure a RAT entry to bypass LDAP acceptance, be aware that the order of RAT entries affects
how recipient addresses are matched. The RAT matches the recipient address with the first RAT entry that
qualifies. For example, you have the following RAT entries: postmaster@ironport.com and ironport.com.
You configure the entry for postmaster@ironport.com to bypass LDAPacceptance queries, and you configure
the entry for ironport.com for ACCEPT. When you receive mail for postmaster@ironport.com, the LDAP
acceptance bypass will occur only if the entry for postmaster@ironport.com is before the entry for ironport.com.
If the entry for ironport.com is before the postmaster@ironport.com entry, the RAT matches the recipient
address to this entry and applies the ACCEPT action.
Bypassing Throttling for Special Recipients
For recipient entries, you can specify that the recipient bypasses throttling control mechanisms enabled on
the listener.
This feature is useful if there are certain recipients for whom you do not want to limit messages. For example,
many users will want to receive email for the address “ postmaster@domain ” on a listener, even if the sending
domain is being throttled based on the receiving control defined in mail flow policies.Specifying this recipient
to bypass receiving control in a listener’s RAT allows the listener to receive unlimited messages for the
recipient “ postmaster@domain ” while retaining mail flow policies for other recipients in the same domain.
Recipients will avoid being counted against the recipients-per-hour counter maintained by the system if the
sending domain is being limited.
To specify certain recipients to bypass receiving control via the GUI, select Yes for the “Bypass Receiving
Control” setting when adding or editing a RAT entry:
To specify certain recipients to bypass receiving control via the CLI, answer yes to the following question
when you enter recipients using the listenerconfig > edit > rcptaccess command:
Would you like to bypass receiving control for this entry? [N]> y
Rearranging the Order of Domains and Users in the Recipient Access Table
Procedure
Step 1 Navigate to the Mail Policies > Recipient Access Table (RAT) page.
Step 2 Choose the listener to edit in the Overview for Listener field.
Step 3 Click Edit Order.
Step 4 Change the order by arranging the values in the Order column.
Step 5 Submit and commit your changes.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
129
Accepting or Rejecting Connections Based on Domain Name or Recipient Address
Bypassing Throttling for Special Recipients
Exporting the Recipient Access Table to an External File
Procedure
Step 1 Navigate to the Mail Policies > Recipient Access Table (RAT) page.
Step 2 Choose the listener to edit in the Overview for Listener field.
Step 3 Click Export RAT.
Step 4 Enter a file name for the exported entries.
This is the name of the file that will be created in the configuration directory on the email gateway.
Step 5 Submit and commit your changes.
Importing the Recipient Access Table from an External File
When you import Recipient Access Table entries from a text file, all of the existing entries are removed from
the Recipient Access Table.
Procedure
Step 1 Navigate to the Mail Policies > Recipient Access Table (RAT) page.
Step 2 Choose the listener to edit in the Overview for Listener field.
Step 3 Click Import RAT.
Step 4 Select a file from the list.
AsyncOS lists all text files in the configuration directory on the email gateway.
Step 5 Click Submit.
A warning message displays asking you to confirm that you want to remove all of the existing Recipient
Access Table entries.
Step 6 Click Import.
Step 7 Commit your changes.
You can place “comments” in the file. Lines that begin with a ‘#’ character are considered comments and are
ignored by AsyncOS. For example:
Example:
# File exported by the GUI at 20060530T220526
.example.com ACCEPT
ALL REJECT
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
130
Accepting or Rejecting Connections Based on Domain Name or Recipient Address
Exporting the Recipient Access Table to an External File
CHAPTER 9
Using Message Filters to Enforce Email Policies
The email gatewaycontains extensive content scanning and message filtering technology that allows you to
enforce corporate policies and act on specific messages as they enter or leave your corporate networks.
This chapter containsinformation about the powerful combinations of features available for policy enforcement:
a content scanning engine, message filters, attachment filters, and content dictionaries.
This chapter contains the following sections:
• Overview, on page 131
• Components of a Message Filter, on page 132
• Message Filter Processing, on page 134
• Message Filter Rules, on page 139
• Message Filter Actions, on page 187
• Attachment Scanning, on page 218
• Detecting Malicious Files in Messages Attachments Using Message Filter , on page 228
• Using the CLI to Manage Message Filters, on page 229
• Message Filter Examples, on page 244
• Configuring Scan Behavior, on page 251
Overview
Message filters allow you to create special rules describing how to handle messages as they are received by
the email gateway. A message filter specifies that a certain kind of email message should be given special
treatment. Cisco message filters also allow you to enforce corporate email policy by scanning the content of
messages for words you specify. This chapter contains the following sections:
• Components of a message filter. Message filters allow you to create special rules describing how to
handle messages as they are received. Filter rules identify messages based on message or attachment
content, information about the network, message envelope, message headers, or message body. Filter
actions generate notifications or allow messages to be dropped, bounced, archived, blind carbon copied,
or altered. For more information, see Components of a Message Filter, on page 132.
• Processing Message Filters. When AsyncOSprocesses message filters, the content that AsyncOSscans,
the order of the processing, and the actions taken are based on several factors, including the message
filter order, any prior processing that may have altered the message content, the MIME structure of the
message, the threshold score configured for content matching, and structure of the query. For more
information, see Message Filter Processing, on page 134.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
131
• Message Filter Rules. Each filter has a rule that defines the collection of messages that the filter can act
upon. You define those rules when you create a message filter. For more information, see Message Filter
Rules, on page 132.
• Message Filter Actions. Each filter has an action that is performed on a message if the rule evaluates
to true . There are two types of actions that can be performed: final actions (such as delivering, dropping,
or bouncing a message), or non-final actions (such as stripping or inserting a header) which permit the
message to be further processed. For more information, see Message Filter Actions, on page 132.
• Attachment Scanning Message Filters. Attachment scanning message filters allow you to strip
attachments from messages that are inconsistent with your corporate policies, while still retaining the
ability to deliver the original message. You can filter attachments based on their specific file type,
fingerprint, or content. You can also scan image attachments using an image analyzer. The image analyzer
uses algorithmsthat measure image attributesto determine the likelihood of inappropriate content. These
algorithms can detect, for example, the shapes and color palette in an image. The analyzer can identify
the type of shapes in an image and the percentage of any flesh-tone colors relative to the other colors in
the image to help identify inappropriate content. Images with a high percentage of flesh-tone colors are
more likely to be inappropriate. The algorithms do not discriminate in any way. For more information,
see Attachment Scanning, on page 218.
• Using the CLI to Manage Message Filters. The CLI accepts commands for working with message
filters. For example, you might want to display, reorder, import or export a list of message filters. For
more information, see Using the CLI to Manage Message Filters, on page 229.
• Message Filter Examples. Thissection containssome real world examples of filters with a brief discussion
of each. For more information, see Message Filter Examples, on page 244.
Components of a Message Filter
Message filters allow you to create special rules describing how to handle messages as they are received. A
message filter is comprised of message filter rules and message filter actions.
Related Topics
• Message Filter Rules, on page 132
• Message Filter Actions, on page 132
• Message Filter Example Syntax, on page 133
Message Filter Rules
Message filter rules determine the messages that a filter will act on. Rules may be combined using the logical
connectors AND, OR, and NOT to create more complex tests. Rule expressions may also be grouped using
parentheses.
Message Filter Actions
The purpose of message filters is to perform actions on selected messages.
The two types of actions are:
• Final actions — such as deliver , drop , and bounce — end the processing of a message, and permit no
further processing through subsequent filters.
• Non-final actions perform an action which permits the message to be processed further.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
132
Using Message Filters to Enforce Email Policies
Components of a Message Filter
Non-final message filter actions are cumulative. If a message matches multiple filters where each filter
specifies a different action, then all actions are accumulated and enforced. However, if a message matches
multiple filters specifying the same action, the prior actions are overridden and the final filter action is
enforced.
Note
Related Topics
• Filter Actions Summary Table, on page 187
• Action Variables, on page 196
• Matched Content Visibility, on page 198
• Description and Examples of Message Filter Actions, on page 199
Message Filter Example Syntax
The intuitive meaning of a filter specification is:
if the message matches the rule, then apply the actions in sequence. If the else clause is present, the actions
within the else clause are executed in the event the message does not match the rule.
The name of the filter you specify makes it easier to manage filters when you are activating, deactivating, or
deleting them.
Message filters use the following syntax:
Example Syntax Purpose
expedite: filter name
if (recv-listener == 'InboundMail' or recv-int == 'notmain') rule specification
action specification
{
alt-src-host('outbound1');
skip-filters();
}
optional alternative action specification
else
{
alt-src-host('outbound2');
}
Note that you can omit any alternative actions:
Example Syntax Purpose
expedite2: filter name
rule specification
if ((not (recv-listener == 'InboundMail')) and
(not (recv-int == 'notmain')))
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
133
Using Message Filters to Enforce Email Policies
Message Filter Example Syntax
Example Syntax Purpose
action specification
{
alt-src-host('outbound2');
skip-filters();
}
You can combine several filters in sequence within a single text file, one following the other.
You must enclose the values in filters in either single or double quotation marks. Single or double quotation
marks must be equally paired on each side of the value; for example, the expressions
notify('customercare@example.com') and notify("customercare@example.com") are both legal, but the
expression notify("customercare@example.com') causes a syntax error.
Lines beginning with a ‘ # ’ character are considered comments and are ignored; however, they are not
preserved by AsyncOS as can be verified by viewing a filter via filters -> detail .
Message Filter Processing
When AsyncOS processes message filters, the content that AsyncOS scans, the order of the processing, and
the actions taken are based on several factors:
• Message filter order. Message filters are maintained in an ordered list. When a message is processed,
AsyncOS applies each message filter in the order it appears in the list. If a final action occurs, no further
action is taken on the message. For more information, see Message Filter Order, on page 135.
• Prior processing. Actions performed on AsyncOS messages may add or remove headers before the
message filter is evaluated. AsyncOSprocesses the message filter process on the headers that are present
in the message at the time of processing.For more information,see Message Header Rules and Evaluation,
on page 135.
• The MIME structure of the message. The MIME structure of the message determines which part of
the message is treated as “body,” and which part of the message is treated as an “attachment”. Many
message filters are configured to act on just the body or just the attachment part of the message.For more
information, see Message Bodies vs. Message Attachments, on page 135.
• The threshold score configured for the regular expression. When you match a regular expression,
you configure a “score” to tally up the number of times a match must occur before a filter action is taken.
This allows you to “weight” the responses to different terms. For more information, see Thresholds for
Matches in Content Scanning, on page 136 .
• The structure of the query. When evaluating AND or OR tests within message filters, AsyncOS does
not evaluate unneeded tests. In addition, it is important to note that the system does not evaluate the tests
from left to right. Instead, when AND and OR tests are evaluated, the least expensive test is evaluated
first. For more information, see AND Test and OR Tests in Message Filters, on page 139.
Related Topics
• Message Filter Order, on page 135
• Message Header Rules and Evaluation, on page 135
• Message Bodies vs. Message Attachments, on page 135
• Thresholds for Matches in Content Scanning, on page 136
• AND Test and OR Tests in Message Filters, on page 139
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
134
Using Message Filters to Enforce Email Policies
Message Filter Processing
Message Filter Order
Message filters are kept in an ordered list and numbered by their position in the list. When a message is
processed, the message filters are applied in the associated numeric order. Therefore, filter number 30 will
not have a chance to alter the source host of a message if filter number 9 has already executed a final action
on (for example, bounced) the message. The position of a filter in the list can be changed via the system user
interfaces. Filters imported via a file are ordered based on their relative order in the imported file.
After a final action, no further actions may be taken on the message.
Although a message may match a filter rule, the filter may not act upon that message for any of the following
reasons:
• The filter is inactive.
• The filter is invalid.
• The filter has been superseded by an earlier filter that executed a final action for the message.
Message Header Rules and Evaluation
Filters evaluate “processed” headers rather than the original message headers when applying header rules.
Thus:
• If a header was added by a previous processing action, it can now be matched by any subsequent header
rule.
• If a header was stripped by a previous processing action, it can no longer be matched by any subsequent
header rule.
• If a header was modified by a previous processing action, any subsequent header rule will evaluate the
modified header and not the original message header.
This behavior is common to both message filters and content filters.
Message Bodies vs. Message Attachments
An email message is composed of multiple parts. Although RFCs define everything that comes after a message’s
headers as a multipart “message body,” many usersstill conceptualize a message’s “body” and its “attachment”
differently. When you use any of the Cisco message filters named body- variable or attachment-variable ,
the email gateway attempts to distinguish the parts that most users consider to be the “body” and the
“attachment” in the same way that many MUAs attempt to render these parts differently.
For the purposes of writing body - variable or attachment-variable message filter rules, everything after the
message headers is considered the message body , whose content is considered the first text part of the MIME
parts that are within the body. Anything after the content, (that is, any additional MIME parts) is considered
an attachment . AsyncOS evaluates the different MIME parts of the message, and identifies the parts of the
file that is treated as an attachment.
For example, The following figure shows a message in the Microsoft Outlook MUA where the words “
Document attached below. ” appear as a plain text message body and the document “ This is a Microsoft
Word document.doc ” appears as an attachment . Because many users conceptualize email this way (rather
than as a multipart message whose first part is plain text and whose second part is a binary file), the Cisco
uses the term “attachment” in message filters to create rules to differentiate and act on the .doc file part (in
essence, the second MIME part) as opposed to the “body” of the message (the first, plain text part) — although,
according to the language used in RFCSs 1521 and 1522, a message’s body is comprised of all MIME parts.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
135
Using Message Filters to Enforce Email Policies
Message Filter Order
Figure 16: Message with “Attachment"
Because the email gateway makesthis distinction between the body and the attachmentin multipart messages,
there are several cases you should be aware of when using the body - variable or attachment-variable message
filter rules in order to achieve the expected behavior:
• If you have a message with a single text part—that is, a message containing a header of “Content-Type:
text/plain” or “Content-Type: text/html” — the email gateway will consider the entire message as the
body. If the content type is anything different, the email gateway considers it to be a single attachment.
• Some encoded files (uuencoded, for example) are included in the body of the email message. When this
occurs, the encoded file is treated as an attachment, and it is extracted and scanned, while the remaining
text is considered to be the body of the text.
• A single, non-text part is always considered an attachment . For example, a message consisting of only
a.zip file is considered an attachment.
Thresholds for Matches in Content Scanning
When you add filter rules that search for patterns in the message body or attachments, you can specify the
minimum threshold for the number of times the pattern must be found. When AsyncOS scans the message,
it totals the “score” for the number of matches it finds in the message and attachments. If the minimum
threshold is not met, the regular expression does not evaluate to true. You can specify this threshold for the
following filter rules:
• body-contains
• only-body-contains
• attachment-contains
• every-attachment-contains
• dictionary-match
• attachment-dictionary-match
You can also specify a threshold value for the drop-attachments-where-contains action.
Note You cannot specify thresholds for filter rules that scan headers or envelope recipients and senders.
Related Topics
• Threshold Syntax, on page 137
• Threshold Scoring for Message Bodies and Attachments, on page 137
• Threshold Scoring Multipart/Alternative MIME Parts, on page 137
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
136
Using Message Filters to Enforce Email Policies
Thresholds for Matches in Content Scanning
• Threshold Scoring for Content Dictionaries, on page 138
Threshold Syntax
To specify a threshold for the minimum number of occurrences, specify the pattern and the minimum number
of matches required to evaluate to true:
if(('',)){
For example, to specify that the body-contains filter rule must find the value “Company Confidential” at least
two times, use the following syntax:
if(body-contains('Company Confidential',2)){
By default, when AsyncOS saves a content scanning filter, it compiles the filter and assigns a threshold value
of 1, if you have not assigned a value.
You can also specify a minimum number of pattern matches for values in a content dictionary. For more
information about content dictionaries, see the “Text Resources” chapter.
Threshold Scoring for Message Bodies and Attachments
An email message may be composed of multiple parts. When you specify threshold values for filter rules that
search for patternsin the message body or attachments, AsyncOScountsthe number of matchesin the message
parts and attachments to determine the threshold “score.” Unless the message filter specifies a specific MIME
part (such as the attachment-contains filter rule), AsyncOS will total the matches found in all parts of the
message to determine if the matchestotal the threshold value.For example, you have a body-contains message
filter with a threshold of 2. You receive a message in which the body contains one match, and the attachment
contains one match. When AsyncOS scores this message, it totals the two matches and determines that the
threshold score has been met.
Similarly, if you have multiple attachments, AsyncOS totals the scores for each attachment to determine the
score for matches. For example, you have an attachment-contains filter rule with a threshold of 3. You
receive a message with two attachments, and each attachment contains two matches. AsyncOS would score
this message with four matches and determine that the threshold score has been met.
Threshold Scoring Multipart/Alternative MIME Parts
To avoid duplicate counting, if there are two representatives of the same content (plain text and HTML),
AsyncOS does not total the matches from the duplicate parts. Instead, it compares the matches in each part
and selectsthe highest value. AsyncOS would then add this value to the scoresfrom other parts of the multipart
message to create a total score.
For example, you configure a body-contains filter rule and set the threshold to 4. You then receive a message
that contains both plain text, HTML and two attachments. The message would use the following structure:
multipart/mixed
multipart/alternative
text/plain
text/html
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
137
Using Message Filters to Enforce Email Policies
Threshold Syntax
application/octet-stream
application/octet-stream
The body-contains filter rule would determine the score for this message by first scoring the text/plain and
text/html parts of the message. It would then compare the results of these scores and select the highest score
from the results. Next, it would add this result to the score from each of the attachments to determine the final
score. Suppose the message has the following number of matches:
multipart/mixed
multipart/alternative
text/plain (2 matches)
text/html (2 matches)
application/octet-stream (1 match)
application/octet-stream
Because AsyncOS compares the matches for the text/plain and text/html parts, it returns a score of 3, which
does not meet the minimum threshold to trigger the filter rule.
Threshold Scoring for Content Dictionaries
When you use a content dictionary, you can “weight” terms so that certain terms trigger filter actions more
easily. For example, you may want not want to trigger a message filter for the term, “bank.” However, if the
term, “bank” is combined with the term, “account,” and accompanied with an ABA routing number, you may
want to trigger a filter action. To accomplish this, you can use a weighted dictionary to give increased
importance to certain terms or a combination of terms. When a message filter that uses a content dictionary
scores the matches for filter rule, it uses these weights to determine the final score. For example, suppose you
create a content dictionary with the following contents and weights:
Table 20: Sample Content Dictionary
Term/Smart Identifier Weight
ABA Routing Number 3
Account 2
Bank 1
When you associate this content dictionary with a dictionary-match or attachment-dictionary-match
message filter rule, AsyncOS would add the weight for the term to the total “score” for each instance of the
matching term found in the message.For example, if the message containsthree instances of the term, “account”
in the message body, AsyncOS would add a value of 6 to the total score. If you set the threshold value for the
message filter to 6, AsyncOS would determine that the threshold score has been met. Or, if the message
contained one instance of each term, the total value would be 6, and this score would trigger the filter action.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
138
Using Message Filters to Enforce Email Policies
Threshold Scoring for Content Dictionaries
AND Test and OR Tests in Message Filters
When evaluating AND or OR tests within message filters, AsyncOS does not evaluate unneeded tests. So,
for example, if one side of an AND test is false, the system will not evaluate the other side. It is important to
note that the system does not evaluate the testsfrom left to right. Instead, when AND and OR tests are evaluated,
the least expensive test is evaluated first. For example, in the following filter, the remote-ip test will always
be processed first because it has a lower cost than the rcpt-to-group test (generally LDAP tests are more
expensive):
andTestFilter:
if (remote-ip == "192.168.100.100" AND rcpt-to-group == "GROUP")
{ ... }
Because the least expensive test is performed first, switching the order of the items in the test will have no
effect. If you want to guarantee the order in which tests are performed, use nested if statements. This is also
the best way to ensure that an expensive test is avoided whenever possible:
expensiveAvoid:
if ()
{ if ()
{ }
}
In a somewhat more complicated example, consider:
if (test1 AND test2 AND test3) { ... }
The system groups the expression from left to right, so this becomes:
if ((test1 AND test2) AND test3) { ... }
This meansthe first thing the system doesis compare the cost of (test1 AND test2) against the cost of test3
, evaluating the second AND first. If all three tests have the same cost, then test3 will be performed first
because (test1 AND test2) would be twice as expensive.
Message Filter Rules
Each message filter contains a rule that definesthe collection of messagesthat a filter can act upon. You define
the filter rules, and then you define a filter action for messages that return true .
Related Topics
• Filter Rules Summary Table, on page 140
• Regular Expressions in Rules, on page 150
• Smart Identifiers, on page 154
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
139
Using Message Filters to Enforce Email Policies
AND Test and OR Tests in Message Filters
• Description and Examples of Message Filter Actions, on page 199
Filter Rules Summary Table
The following table summarizes the rules you can use in message filters.
Table 21: Message Filter Rules
Rule Syntax Description
Does the subject header match a
certain pattern? See Subject Rule,
on page 158.
Subject Header subject
Isthe body size within some range?
See Body Size Rule, on page 160.
Body Size body-size
Doesthe EnvelopeSender (i.e., the
Envelope From, )
match a given pattern? See
EnvelopeSender Rule, on page 159.
Envelope Sender mail-from
Is the Envelope Sender (i.e., the
Envelope From, )
in a given LDAP group? See
EnvelopeSender in Group Rule, on
page 160.
Envelope Sender in Group mail-from-group
Which sender group was matched
in a listener's Host Access Table
(HAT)? See Sender Group Rule,
on page 160.
Sender Group sendergroup
Does the Envelope Recipient, (i.e.
the Envelope To, )
match a given pattern? See
Envelope Recipient Rule, on page
159.
The rcpt-to rule is
message-based. If a
message has multiple
recipients, only one
recipient has to match
the rule for the specified
action to affect the
message to all
recipients.
Note
Envelope Recipient rcpt-to
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
140
Using Message Filters to Enforce Email Policies
Filter Rules Summary Table
Rule Syntax Description
Is the Envelope Recipient, (i.e. the
Envelope To, ) in a
given LDAP group? See Envelope
Recipient in Group Rule, on page
159.
The rcpt-to-group rule
is message-based. If a
message has multiple
recipients, only one
recipient hasto be found
in a group for The
rcptthe specified action
to affect the message to
all recipients.
Note
Envelope Recipient in Group rcpt-to-group
Was the message sent from a
remote host that matches a given
IPaddress or IPblock?See Remote
IP Rule, on page 161.
Remote IP remote-ip
Did the message arrive via the
named receiving interface? See
.Receiving IP Interface Rule, on
page 162
Receiving Interface recv-int
Did the message arrive via the
named listener? See Receiving
Listener Rule, on page 162.
Receiving Listener recv-listener
Is current time before or after a
specific time and date? See Date
Rule, on page 162.
Date date
Doesthe message contain a specific
header? Does the value of that
header match a certain pattern?See
Header Rule, on page 163.
Header header()
Is a random number in some range?
See Random Rule, on page 163.
Random random()
How many recipients is this email
going to? See Recipient Count
Rule, on page 164.
Recipient Count rcpt-count
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
141
Using Message Filters to Enforce Email Policies
Filter Rules Summary Table
Rule Syntax Description
What is the cumulative number of
recipients?
This filter differs from the
rcpt-count filter rule in that it
operates on the message body
headers instead of the envelope
recipients.See Address Count Rule,
on page 164.
Address Count addr-count()
What was the SPF verification
status? This filter rule allows you
to query for different SPF
verification results. You can enter
a different action for each valid
SPF/SIDF return value. See
SPF-Status Rule, on page 170.
SPF Status spf-status
Did the SPF/SIDF verification
pass? Thisfilter rule generalizesthe
SPF/SIDF results as a Boolean
value. See SPF-Passed Rule, on
page 172.
SPF Passed spf-passed
Is the message S/MIME signed,
encrypted, orsigned and encrypted?
See S/MIME Gateway Message
Rule, on page 172
S/MIME Gateway Message smime-gateway
Is the S/MIME message
successfully verified, decrypted, or
decrypted and verified? See
S/MIME Gateway Verified Rule,
on page 172.
S/MIME Gateway Verified smime-gateway-verified
What was the image scanning
verdict? This filter rule allows you
to query for different image
analysis verdicts. See Image
Analysis, on page 221.
Image verdict image-verdict
Is the work queue count equal to,
less than, or greater than the
specified value? See
Workqueue-count Rule, on page
172.
Workqueue count workqueue-count
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
142
Using Message Filters to Enforce Email Policies
Filter Rules Summary Table
Rule Syntax Description
Does the message contain text or
an attachment that matches a
specified pattern? Does the pattern
occur the minimum number of
times you specified for the
threshold value?
The engine scans delivery-status
parts and associated attachments.
See Body Scanning , on page 165.
body-contains(
)
Body Scanning
Doesthe message body contain text
that matches a specified pattern?
Does the pattern occur the
minimum number of times you
specified for the threshold value?
Attachments are not scanned. See
Body Scanning Rule, on page 164.
only-body-contains
()
Body Scanning
Is the message encrypted? See
Encryption Detection Rule, on page
165.
Encryption Detection encrypted
Does the message contain an
attachment with a filename that
matches a specific pattern? See
AttachmentFilename Rule, on page
166.
Attachment Filename attachment-filename
Does the message contain an
attachment of a particular MIME
type? See Attachment Type Rule,
on page 166.
Attachment Type attachment-type
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
143
Using Message Filters to Enforce Email Policies
Filter Rules Summary Table
Rule Syntax Description
Does the message contain an
attachment of a file type that
matches a specific pattern based on
its fingerprint (similar to a UNIX
file command)? If the attachment
is an Excel or Word document, you
can also search for the following
embedded file types: .exe , .dll,
.bmp, .tiff, .pcx, .gif, .jpeg, png, and
Photoshop images.
You must enclose the file type in
quotes to create a valid filter. You
can use single or double quotes.For
example, to search for .exe
attachments, use the following
syntax:
if (attachment-filetype ==
"exe")
For more information, see
Attachment Filenames and Single
Compressed Files within Archive
Files, on page 167.
Attachment File Type attachment-filetype
Does the message contain an
attachment of a specific MIME
type? This rule is similar to the
attachment-type rule, except only
the MIME type given by the MIME
attachment is evaluated. (The email
gateway does not try to “guess” the
type of the file by its extension if
there is no explicit type given.)See
Examples of Attachment Scanning
Message Filters, on page 225.
Attachment MIME Type attachment-mimetype
Does the message contain an
attachment that matchesthe specific
file SHA-256 value in the file hash
list? See Drop Message
Attachments that match File
SHA-256 Filter, on page 251 and
Drop Messages if Attachment
matches File SHA-256 Filter, on
page 251.
Attachment File Hash List attachment-hashlist-match
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
144
Using Message Filters to Enforce Email Policies
Filter Rules Summary Table
Rule Syntax Description
Does the message contain an
attachment that is password
protected? See Quarantining
Protected Attachments, on page 228.
Attachment Protected attachment-protected
The attachment-unprotected filter
condition returns true if the
scanning engine detects an
attachment that is unprotected. A
file is considered unprotected if the
scanning engine was able to read
the attachment. A zip file is
considered to be unprotected if any
of its members is unprotected.
Note — The
attachment-unprotected filter
condition is not mutually exclusive
of the attachment-protected filter
condition. It is possible for both
filter conditionsto return true when
scanning the same attachment. This
can occur, for example, if a zip file
contains both protected and
unprotected members.
See Detecting Unprotected
Attachments, on page 228.
Attachment Unprotected attachment-unprotected
Does the message contain an
attachment that contains text or
another attachment that matches a
specific pattern? Does the pattern
occur the minimum number of
times you specified for the
threshold value?
This rule is similar to the
body-contains() rule, but it
attempts to avoid scanning the
entire “body” of the message. That
is, it attempts to scan only that
which the user would view as being
an attachment. See Examples of
Attachment Scanning Message
Filters, on page 225.
attachment-contains
()
Attachment Scanning
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
145
Using Message Filters to Enforce Email Policies
Filter Rules Summary Table
Rule Syntax Description
Does the message contain an
attachment with binary data that
matches a specific pattern?
This rule is like the
attachment-contains () rule, but
it searches specifically for patterns
in the binary data.
attachment-binary-contains
()
Attachment Scanning
Do all of the attachments in this
message contain text that matches
a specific pattern? The text must
exist in all attachments and the
action performed is, in effect, a
logical AND operation of an '
attachment-contains() ' for each
attachment. The body is not
scanned. Doesthe pattern occur the
minimum number of times you
specified for the threshold value?
See Examples of Attachment
Scanning Message Filters, on page
225.
every-attachment-contains
()
Attachment Scanning
Does the message contain an
attachment whose size is within
some range? This rule is similar to
the body-size rule, but it attempts
to avoid scanning the entire “body”
of the message. That is, it attempts
to scan only that which the user
would view as being an attachment.
The size is evaluated prior to any
decoding. See Examples of
Attachment Scanning Message
Filters, on page 225.
Attachment Size attachment-size
Doesthe sender’sIPaddress appear
on a public blocked list server
(RBL)? See DNS List Rule, on
page 167.
Public Blocked lists dnslist()
What is the sender’s IP Reputation
Score? See IP Reputation Rule, on
page 168.
IP Reputation reputation
Used to test if IP Reputation Score
is “None.”See IP Reputation Rule,
on page 168.
No IP Reputation no-reputation
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
146
Using Message Filters to Enforce Email Policies
Filter Rules Summary Table
Rule Syntax Description
Doesthe message body contain any
of the regular expressions or terms
in the content dictionary named
dictionary_name ? Doesthe pattern
occur the minimum number of
times you specified for the
threshold value? See Dictionary
Rules, on page 169.
dictionary-match
()
Dictionary
Doesthe attachment contain any of
the regular expressions in the
content dictionary named
dictionary_name ? Doesthe pattern
occur the minimum number of
times you specified for the
threshold value? See Dictionary
Rules, on page 169.
attachment-dictionary-match
()
Attachment Dictionary Match
Does the Subject header contain
any of the regular expressions or
terms in the content dictionary
named dictionary name ? See
Dictionary Rules, on page 169.
subject-dictionary-match
()
Subject Dictionary Match
Does the specified header (case
insensitive) contain any of the
regular expressions or terms in the
content dictionary named
dictionary name ? See Dictionary
Rules, on page 169.
header-dictionary-match
(,
)
Header Dictionary Match
This filter condition returns true if
the dictionary term matches content
in the body of the message only.
The filter searches for terms within
the MIME parts not considered to
be an attachment. and it returnstrue
if the user-defined threshold is met
(the default threshold value is one).
See Dictionary Rules, on page 169.
body-dictionary-match
()
Body Dictionary Match
Doesthe envelope recipient contain
any of the regular expressions or
terms in the content dictionary
named dictionary name ? See
Dictionary Rules, on page 169.
rcpt-to-dictionary-match
()
Envelope Recipient Dictionary
Match
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
147
Using Message Filters to Enforce Email Policies
Filter Rules Summary Table
Rule Syntax Description
Does the envelope sender contain
any of the regular expressions or
terms in the content dictionary
named dictionary name ? See
Dictionary Rules, on page 169.
mail-from-dictionary-match
()
EnvelopeSender Dictionary Match
Does the address of the Envelope
Sender and the address in message
header match the authenticated
SMTP user ID of the sender? See
SMTP Authenticated User Match
Rule, on page 173.
smtp-auth-id-matches
([, ])
SMTP Authenticated User Match
Matches all messages. See True
Rule, on page 157.
True true
Returns false if the message
contains unparsable/invalid MIME
parts and true otherwise. See Valid
Rule, on page 158.
Valid valid
Is the message is signed? See
Signed Rule, on page 175.
Signed signed
Does the message signer or X.509
certificate issuer match a certain
pattern? See Signed Certificate
Rule, on page 175.
signed-certificate
( [
])
Signed Certificate
Returns true if at a given point in
time, a specified number of
messages:
• With same subject header are
detected in last one hour.
• From same envelope-sender
are detected in last one hour.
See Header Repeats Rule, on page
177.
header-repeats (,
[, ])
Header Repeats
Is the reputation score of any URL
in the message within the specified
range?
Is a reputation score for a URL
unavailable?
See URL Reputation Rules , on
page 179 and Configuring Email
Gateway to Consume External
Threat Feeds, on page 297.
url-reputation
url-no-reputation
URL Reputation
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
148
Using Message Filters to Enforce Email Policies
Filter Rules Summary Table
Rule Syntax Description
Does the category of any URL in
the message match the specified
categories?
See URL Category Rule , on page
180.
URL Category url-category
Does this message have an
attachment that is corrupt?
See Corrupt Attachment Rule, on
page 180.
Corrupt Attachment attachment-corrupt
Is the message (subject and body)
in one of the selected languages?
See Message Language Rule, on
page 181.
Message Language message-language
Does the incoming or outgoing
message contain macro-enabled
attachments?
See Macro Detection Rule, on page
182
macro-detection-rule
([‘file_type-1',
'file_type-2',
…,'file_type-n'])
Macro Detection
Isthe sender address of the message
forged? The rule checks if the
From: header in the message is
similar to any of the users in the
content dictionary.
See Forged Email Detection Rule,
on page 182.
forged-email-detection
("",
)
Forged Email Detection
Doesthe message contain duplicate
MIME boundaries?
See Duplicate Boundaries
Verification Rule, on page 183.
Duplicate Boundaries Verification duplicate_boundaries
Does the message contain
malformed MIME headers?
See Malformed MIME Header
Detection Rule, on page 184.
Malformed MIME Header malformed-header
Detection
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
149
Using Message Filters to Enforce Email Policies
Filter Rules Summary Table
Rule Syntax Description
Does the incoming message
originate from the selected
countries?
Enable the Anti-Spam
engine on your
appliance before you use
the Geolocation
message filter rule.
Note
See Geolocation Rule, on page 184.
geolocation-rule
(['country_name-1',
'country_name-2',
'country_name-n'])
Geolocation
Does the sender domain match the
specified criteria?
• Sender Domain Reputation
• External Threat Feeds
See Domain Reputation Rule for
ETF, on page 184 or Domain
Reputation Rule for SDR, on page
185.
For more information, see the
Configuring Email Gateway to
Consume External Threat Feeds,
on page 297 or Sender Domain
Reputation Filtering, on page 319.
Sender Domain Reputation:
- sdr-reputation
(<‘sdr_verdict_range'>,
<‘domain_exception
_list'>)
- sdr-age (<‘unit'>,
<‘operator'>
<‘actual value’>)
- sdr-unscannable
(<'domain_exception
_list'>)
External Threat Feeds:
domain-externalthreat-feeds
(<'external_threat_
feed_source_name'>,
<'header'> , <'domain
_exception_list'>)
Domain Reputation
Each message injected into the email gateway is processed through all message filters in order, unless you
specify a final action, which stops the message from being processed further. (See Message Filter Actions,
on page 132.)Filters may also apply to all messages, and rules may also be combined using logical connectors
(AND, OR, NOT).
Regular Expressions in Rules
Several of the atomic tests used to define rules use regular expression matching . Regular expressions can
become complex. Use the following table as a guide for the applying of regular expressions within message
filter rules:
Table 22: Regular Expression in Rules
Regular expressions in filter rules match a string if the sequence of directives
in the regular expression match any part of the string.
For example, the regular expression Georg matches the string George Of The
Jungle , the string Georgy Porgy , the string La Meson Georgette as well
as Georg .
Regular expression ( abc )
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
150
Using Message Filters to Enforce Email Policies
Regular Expressions in Rules
Rules containing the dollar sign character ($) only match the end of the string,
and rules containing the caret symbol ( ^ ) only match the beginning of the
string.
For example, the regular expression ^Georg$ only matches the string Georg .
Searching for an empty header would look like this: "^$"
Carat ( ^ )
Dollar sign ( $ )
Rules containing characters, white space, and the at sign character ( @ ) only
match themselves explicitly.
For example, the regular expression ^George@admin$ only matches the string
George@admin .
Letters, white space and the
at sign ( @ ) character
Rules containing a period character ( . ) match any character (except a new
line).
For example, the regular expression ^...admin$ matches the string macadmin
as well as the string sunadmin but not win32admin .
Period character ( . )
Rules containing an asterisk ( * ) match “zero or more matches of the previous
directive.” In particular, the sequence of a period and an asterisk ( .* ) matches
any sequence of characters (not containing a new line).
For example, the regular expression ^P.*Piper$ matches all of these strings:
PPiper , Peter Piper , P.Piper , and Penelope Penny Piper .
Asterisk ( * ) directive
The backslash character escapesspecial characters. Thusthe sequence \. only
matches a literal period, the sequence \$ only matches a literal dollar sign, and
the sequence \^ only matches a literal caret symbol. For example, the regular
expression ^ik\.ac\.uk$ only matches the string ik.ac.uk .
Important Note: The backslash is also a special escape character for the parser.
As a result, if you want to include backslash in your regular expression, you
must use two backslashes — so that after parsing, only one “real” backslash
remains, which is then passed to the regular expression system. So, if you
wanted to match the example domain above, you would enter ^ik\\.ac\\.uk$
.
Backslash special characters
( \ )
The token (?i) that indicates the rest of the regular expression should be treated
in case-insensitive mode.Placing this token at the beginning of a case-sensitive
regular expression results in a completely insensitive match.
For example, the regular expression “ (?i)viagra ” matches Viagra , vIaGrA
, and VIAGRA .
Case-insensitivity ( (?i)
)
The regular expression notation that indicates the number of repetitions of the
previous token is supported.
For example, the expression “ fo{2,3} ” matches foo and fooo but not fo or
fofo .
This statement: if(header('To') == "^.{500,}") looks for a “To” header
that has 500 or more characters in it.
Number of repetitions
{min,max}
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
151
Using Message Filters to Enforce Email Policies
Regular Expressions in Rules
Alternation, or the “or” operator. If A and B are regular expressions, the
expression “ A|B ” will match any string that matches either “A” or “B.”
For example, the expression “ foo|bar ” will match either foo or bar , but
not foobar .
Or ( | )
Related Topics
• Using Regular Expressions to Filter Messages, on page 152
• Guidelines for Using Regular Expressions, on page 152
• Regular Expression and Non-ASCII Character Sets, on page 153
• n Tests, on page 153
• Case-sensitivity, on page 153
• Writing Efficient Filters, on page 153
• PDFs and Regular Expressions, on page 154
Using Regular Expressions to Filter Messages
You can use filters to search for strings and patterns in non-ASCII encoded message content (both headers
and bodies). Specifically, the system supports regular expression (regex) searching for non-ASCII character
sets within:
• Message headers
• MIME attachment filename strings
• Message body:
• Bodies without MIME headers (i.e. traditional email)
• Bodies with MIME headers indicating encoding but no MIME parts
• Multi-part MIME messages with encoding indicated
• All of the above without the encoding specified in a MIME header
You can use regular expressions (regexes) to match on any part of the message or body, including matching
attachments. The various attachment types include text, HTML, MS Word, Excel, and others. Examples of
character sets of interest include gb2312, HZ, EUC, JIS, Shift-JIS, Big5, and Unicode. Message filter rules
with regular expressions can be created through the content filter GUI, or using a text editor to generate a file
that is then imported into the system. For more information, see Using the CLI to Manage Message Filters,
on page 229 and Configuring Scan Behavior, on page 251.
Guidelines for Using Regular Expressions
It is important to begin a regular expression with a caret ( ^ ) and end it with a dollar sign ( $ ) whenever you
want to exactly match a string and not a prefix.
When matching an empty string, do not use “” as that actually matches all strings. Instead use “^$” .
For an example, see the second example in Subject Rule, on page 158.
Note
It is also important to remember that if you want to match a literal period, you must use an escaped period in
the regular expression. For example, the regular expression sun.com matches the string thegodsunocommando
, but the regular expression ^sun\.com$ only matched the string sun.com.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
152
Using Message Filters to Enforce Email Policies
Using Regular Expressions to Filter Messages
Technically, the style of regular expressions used are Pythonre Module style regular expressions.For a more
detailed discussion of Python style regular expressions, consult the Python Regular Expression HOWTO,
accessible from: http://www.python.org/doc/howto/
Regular Expression and Non-ASCII Character Sets
In some languages, the concepts of a word or word boundary, or case do not exist.
Complex regular expressions that depend on concepts like what is or is not a character that would compose
a word (represented as “ \w ” in regex syntax) cause problems when the locale is unknown or if the encoding
is not known for certain.
n Tests
Regular expressions can be tested for matching using the sequence == and for non-matching using the sequence
!= . For example:
rcpt-to ==
"^goober@dev\\.null\\....$" (matching)
rcpt-to != "^goober@dev\\.null\\....$" (non-matching)
Case-sensitivity
Unless otherwise noted, regular expressions are case-sensitive. Thus, if your regular expression is searching
for foo , it does not match the pattern FOO or even Foo .
Writing Efficient Filters
This example shows two filters that do the same thing, but the first one takes much more CPU. The second
filter uses a regular expression that is more efficient.
attachment-filter: if ((recv-listener == "Inbound") AND
((((((((((((((((((((((((((((((((((((((((((((((attachment-filename ==
"\\.386$") OR (attachment-filename == "\\.exe$")) OR (attachment-filename == "\\.ad$")) OR
(attachment-filename == "\\.ade$")) OR (attachment-filename == "\\.adp$")) OR
(attachment-filename == "\\.asp$")) OR (attachment-filename == "\\.bas$")) OR
(attachment-filename == "\\.bat$")) OR (attachment-filename == "\\.chm$")) OR
(attachment-filename == "\\.cmd$")) OR (attachment-filename == "\\.com$")) OR
(attachment-filename == "\\.cpl$")) OR (attachment-filename == "\\.crt$")) OR
(attachment-filename == "\\.exe$")) OR (attachment-filename == "\\.hlp$")) OR
(attachment-filename == "\\.hta$")) OR (attachment-filename == "\\.inf$")) OR
(attachment-filename == "\\.ins$")) OR (attachment- filename == "\\.isp$")) OR
(attachment-filename == "\\.js$")) OR (attachment-filename == "\\.jse$")) OR
(attachment- filename == "\\.lnk$")) OR (attachment-filename == "\\.mdb$")) OR
(attachment-filename == "\\.mde$")) OR (attachment-filename == "\\.msc$")) OR
(attachment-filename == "\\.msi$")) OR (attachment-filename == "\\.msp$")) OR
(attachment-filename == "\\.mst$")) OR (attachment-filename == "\\.pcd$")) OR
(attachment-filename == "\\.pif$")) OR (attachment-filename == "\\.reg$")) OR
(attachment-filename == "\\.scr$")) OR (attachment-filename == "\\.sct$")) OR
(attachment-filename == "\\.shb$")) OR (attachment-filename == "\\.shs$")) OR
(attachment-filename == "\\.url$")) OR (attachment-filename == "\\.vb$")) OR
(attachment-filename == "\\.vbe$")) OR (attachment-filename == "\\.vbs$")) OR
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
153
Using Message Filters to Enforce Email Policies
Regular Expression and Non-ASCII Character Sets
(attachment-filename == "\\.vss$")) OR (attachment-filename == "\\.vst$")) OR
(attachment-filename == "\\.vsw$")) OR (attachment-filename == "\\.ws$")) OR
(attachment-filename == "\\.wsc$")) OR (attachment-filename == "\\.wsf$")) OR
(attachment-filename == "\\.wsh$"))) { bounce(); }
In this instance, AsyncOS will have to start the regular expression engine 30 times, once for each attachment
type and the recv-listener.
Instead, write the filter to look like this:
attachment-filter: if (recv-listener == "Inbound") AND (attachment-filename == "\\.
(386|exe|ad|ade|adp|asp|bas|bat|chm|cmd|com|cpl|crt|exe|hlp|hta|inf|ins|isp|js|jse|l
nk|mdb|mde|msc|msi|msp|mst|pcd|pif|reg|scr|sct|shb|shs|
url|vb|vbe|vbs|vss|vst|vsw|ws|wsc|wsf|wsh)$") {
The regular expression engine only has to start twice and the filter is arguably easier to maintain as you do
not have to worry about adding “()”, spelling errors. In contrast to the above, this should show a decrease in
CPU overhead.
PDFs and Regular Expressions
Depending on how aPDFis generated, it may contain no spaces or line breaks. When this occurs, the scanning
engine attempts to insert logical spaces and line breaks based on the location of the words on the page. For
example, when a word is constructed using multiple fonts or font sizes, the PDF code is rendered in a way
that makes it difficult for the scanning engine to determine word and line breaks. When you attempt to match
a regular expression against a PDF file constructed in this way, the scanning engine may return unexpected
results.
For example, you enter a word in a PowerPoint document that uses different fonts and different font sizes for
each letter in the word. When a scanning engine reads a PDF generated from this application, it inserts logical
spaces and line breaks. Because of the construction of the PDF, it may interpret the word “callout” as “call
out” or “c a l lout.” Attempting to match either of these renderings against the regular expression, “callout,”
would result in no matches.
Smart Identifiers
When you use message rulesthatscan message content, you can use smart identifiersto detect certain patterns
in the data.
Smart identifiers can detect the following patterns in data:
• Credit card numbers
• U.S. Social Security numbers
• Committee on Uniform Security Identification Procedures (CUSIP) numbers
• American Banking Association (ABA) routing numbers
To use smart identifiers in a filter, enter the following keywords in a filter rule that scans body or attachment
content:
Table 23: Smart Identifiers in Message Filters
KeyWord Smart Identifier Description
Identifies 14-, 15-, and 16- digit credit card numbers.
NOTE: The smart identifier does not identify enRoute cards.
*credit Credit card number
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
154
Using Message Filters to Enforce Email Policies
PDFs and Regular Expressions
KeyWord Smart Identifier Description
*aba ABA routing number Identifies ABA routing numbers.
Identifies U.S. social security numbers. The *ssn smart identifier
identifies social security numbers with dashes, periods and spaces.
*ssn Social security number
*cusip CUSIP number Identifies CUSIP numbers.
Related Topics
• Smart Identifier Syntax, on page 155
Smart Identifier Syntax
When you use a smart identifier in a filter rule, enter the smart-identifier keyword in quotes within a filter
rule that scans the body or attachment file, as in the example below:
ID_Credit_Cards:
if(body-contains("*credit")){
notify("legaldept@example.com");
}
.
You can also use smart identifiers in content filters and as a part of content dictionaries.
You cannot combine a smart identifier key word with a normal regular expression or another key word.
For example the pattern *credit|*ssn would not be valid.
Note
To minimize on false positives using the *SSN smart identifier, it may be helpful to use the *ssn smart
identifier along with other filter criteria. One example filter that can be used is the “only-body-contains”
filter condition. This will only evaluate the expression to be true if the search string is present in all of
the message body mime parts. For example, you could create the following filter:
Note
SSN-nohtml: if only-body-contains(“*ssn”) { duplicate-quarantine(“Policy”);}
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
155
Using Message Filters to Enforce Email Policies
Smart Identifier Syntax
The email gateway detects a smart identifier with or without the keyword ('credit,' 'ssn,' 'cusip,' or 'aba')
added as prefix in the message content.
For example: If a message contains a Social Security number in any of the following formats, the email
gateway detects the Social Security number as a smart identifier:
(‘XXX-XX-XXXX’ ‘ssn XXX-XX-XXXX,’ ‘ssn: XXX-XX-XXXX,’ and so on.)
Example: Smart Identifier without Prefix
Create the following filter to detect a smart identifier without the keyword present before the smart
identifier.
ID_Credit_Cards:
if(body-contains("*credit", 1))
{
notify("legaldept@example.com");
}
Where
“credit” indicates the credit card number smart identifier,
“1” indicates the minimum number of matches required for the rule to evaluate to true.
Example: Smart Identifier with Prefix
Create the following filter to detect a smart identifier only if the keyword ((‘credit,’ ‘ssn,’ ‘cusip,’or
‘aba’) is present before the smart identifier.
ID_Credit_Cards:
if(body-contains("*credit", 1, “prefix”))
{
notify("legaldept@example.com");
}
Where
“credit” indicates the credit card number smart identifier,
“1” indicates the minimum number of matches required for the rule to evaluate to true,
“prefix” indicates the rule is true only if the smart identifier has a keyword prefixed to the smart
identifier.
Note
Description and Examples of Message Filter Rules
The following section describes the various message filter rules in use and their examples.
Related Topics
• True Rule, on page 157
• Valid Rule, on page 158
• Subject Rule, on page 158
• Envelope Recipient Rule, on page 159
• Envelope Recipient in Group Rule, on page 159
• Envelope Sender Rule, on page 159
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
156
Using Message Filters to Enforce Email Policies
Description and Examples of Message Filter Rules
• Envelope Sender in Group Rule, on page 160
• Sender Group Rule, on page 160
• Body Size Rule, on page 160
• Remote IP Rule, on page 161
• Receiving Listener Rule, on page 162
• Receiving IP Interface Rule, on page 162
• Date Rule, on page 162
• Header Rule, on page 163
• Random Rule, on page 163
• Recipient Count Rule, on page 164
• Address Count Rule, on page 164
• Body Scanning Rule, on page 164
• Body Scanning , on page 165
• Encryption Detection Rule, on page 165
• Attachment Type Rule, on page 166
• Attachment Filename Rule, on page 166
• DNS List Rule, on page 167
• IP Reputation Rule, on page 168
• Dictionary Rules, on page 169
• SPF-Status Rule, on page 170
• SPF-Passed Rule, on page 172
• S/MIME Gateway Message Rule, on page 172
• S/MIME Gateway Verified Rule, on page 172
• Workqueue-count Rule, on page 172
• SMTP Authenticated User Match Rule, on page 173
• Signed Rule, on page 175
• Header Repeats Rule, on page 177
• URL Reputation Rules , on page 179
• URL Category Rule , on page 180
• Corrupt Attachment Rule, on page 180
• Message Language Rule, on page 181
• Macro Detection Rule, on page 182
• Forged Email Detection Rule, on page 182
• Duplicate Boundaries Verification Rule, on page 183
• Malformed MIME Header Detection Rule, on page 184
• Geolocation Rule, on page 184
• Domain Reputation Rule for ETF, on page 184
• Domain Reputation Rule for SDR, on page 185
True Rule
The true rule matches all messages. For example, the following rule changes the IP interface to external for
all messages it tests.
externalFilter:
if (true)
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
157
Using Message Filters to Enforce Email Policies
True Rule
{
alt-src-host('external');
}
Valid Rule
The valid rule returns false if the message contains unparsable/invalid MIME parts and true otherwise. For
example, the following rule drops all unparsable messages it tests.
not-valid-mime:
if not valid
{
drop();
}
Subject Rule
The subject rule selects those messages where the value of the subject header matches the given regular
expression.
For example, the following filter discards all messages with subjects that start with the phrase Make Money...
not-valid-mime:
if not valid
{
drop();
}
You can specify non-ASCII characters to search for in the value of the header.
When working with headers, remember that the current value of the header includes changes made during
processing (such as with filter actions that add, remove, or modify message headings). See Message Header
Rules and Evaluation, on page 135 for more information.
The following filter returns true if the headers are empty or if the headers are missing from the message:
EmptySubject_To_filter:
if (header('Subject') != ".") OR
(header('To') != ".") {
drop();
}
This filter returns true for empty Subject and To headers, but it also returns true for missing headers. If
the message does not contain the specified headers, the filter still returns true.
Note
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
158
Using Message Filters to Enforce Email Policies
Valid Rule
Envelope Recipient Rule
The rcpt-to rule selectsthose messages where any Envelope Recipient matchesthe given regular expression.
For example, the following filter drops all messagessent with an email address containing the string “scarface.”
Note The regular expression for the rcpt-to rule is case insensitive .
scarfaceFilter:
if (rcpt-to == 'scarface')
{
drop();
}
The rcpt-to rule is message-based. If a message has multiple recipients, only one recipient hasto match
the rule for the specified action to affect the message to all recipients.
Note
Envelope Recipient in Group Rule
The rcpt-to-group rule selects those messages where any Envelope Recipient is found to be a member of
the LDAPgroup given.For example, the following filter drops all messages sent with an email address within
the LDAP group “ExpiredAccounts.”
expiredFilter:
if (rcpt-to-group == 'ExpiredAccounts')
{
drop();
}
The rcpt-to-group rule is message-based. If a message has multiple recipients, only one recipient has
to match the rule for the specified action to affect the message to all recipients.
Note
Envelope Sender Rule
The mail-from rule selects those messages where the Envelope Sender matches the given regular expression.
For example, the following filter immediately delivers any message sent by admin@yourdomain.com .
The regular expression for the mail-from rule is case insensitive . Note that the period character is escaped
in the following example.
Note
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
159
Using Message Filters to Enforce Email Policies
Envelope Recipient Rule
kremFilter:
if (mail-from == '^admin@yourdomain\\.com$')
{
skip-filters();
}
Envelope Sender in Group Rule
The mail-from-group rule selects those messages where the Envelope Sender is found to be in an LDAP
group given on the right side of the operator (or, in the case of inequality, where the sender’s email address
is not in the given LDAP group). For example, the following filter immediately delivers any message sent by
someone whose email address is in the LDAP group “KnownSenders.”
SenderLDAPGroupFilter:
if (mail-from-group == 'KnownSenders')
{
skip-filters();
}
Sender Group Rule
The sendergroup message filter selects a message based on which sender group was matched in a listener's
Host Access Table (HAT). This rule uses '==' (for matching) or '!=' (for not matching) to test for matching a
given regular expression (the right side of the expression). For example, the following message filter rule
evaluates to true if the sender group of the message matches the regular expression Internal, and, if so, sends
the message to an alternate mail host.
senderGroupFilter:
if (sendergroup == "Internal")
{
alt-mailhost("[172.17.0.1]");
}
Body Size Rule
Body size refers to the size of the message, including both headers and attachments. The body-size rule
selectsthose messages where the body size compares as directed to a given number.For example, the following
filter bounces any message where the body size is greater than 5 megabytes.
BigFilter:
if (body-size > 5M)
{
bounce();
}
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
160
Using Message Filters to Enforce Email Policies
Envelope Sender in Group Rule
The body-size can be compared in the following ways:
Example Comparison Type
Less than
body-size < 10M
Less than or equal
body-size <= 10M
Greater than
body-size > 10M
Greater than or equal
body-size >= 10M
Equal
body-size == 10M
Not equal
body-size != 10M
As a convenience, the size measurement may be specified with a suffix:
Quantity Description
ten bytes (same as 10)
10b
thirteen kilobytes
13k
five megabytes
5M
40 gigabytes (Note: The email gateway cannot accept messages larger than 100
megabytes.) 40G
Remote IP Rule
The remote-ip rule tests to see if the IP address of the host that sent that message matches a certain pattern.
The IP address can be either Internet Protocol version 4 (IPv4) or Internet Protocol version 6 (IPv6). The IP
address pattern is specified using the allowed hosts notation described in “Sender Group Syntax”, except for
the SBO , IPR , dnslist notations and the special keyword ALL .
The allowed hosts notation can only identify sequences and numeric ranges of IP addresses (not hostnames).
For example, the following filter bounces any message not injected from IP addresses of form 10.1.1. x
where X is 50 , 51 , 52 , 53 , 54 , or 55 .
notMineFilter:
if (remote-ip != '10.1.1.50-55')
{
bounce();
}
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
161
Using Message Filters to Enforce Email Policies
Remote IP Rule
Receiving Listener Rule
The recv-listener rule selects those messages received on the named listener. The listener name must be
the nickname of one of the listeners currently configured on the system. For example, the following filter
immediately delivers any message arriving from the listener named expedite .
expediteFilter:
if (recv-listener == 'expedite')
{
skip-filters();
}
Receiving IP Interface Rule
The recv-int rule selects those messages received via the named interface. The interface name must be the
nickname of one of the interfaces currently configured for the system.For example, the following filter bounces
any message arriving from the interface named outside .
outsideFilter:
if (recv-int == 'outside')
{
bounce();
}
Date Rule
The date rule checks the current time and date against a time and date you specify. The date rule is compares
against a string containing a timestamp of the format MM/DD/YYYY hh:mm:ss . This is useful to specify
actions to be performed before or after certain times in US format. (Note that there may be an issue if you are
searching messages with non-US date formats.) the following filter bounces all messages from
campaign1@yourdomain.com that are injected after 1:00pm on July 28th, 2003:
TimeOutFilter:
if ((date > '07/28/2003 13:00:00') and (mail-from ==
'campaign1@yourdomain\\.com'))
{
bounce();
}
Note Do not confuse the date rule with the $Date message filter action variable.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
162
Using Message Filters to Enforce Email Policies
Receiving Listener Rule
Header Rule
The header() rule checks the message headers for a specific header, which must be specified quoted in
parentheses (“header name ”). This rule may be compared to a regular expression, much like the subject rule,
or may be used without any comparison, in which case it will be “true” if the header is found in the message,
and “false” if it is not found. For example, the following example checks to see if the header X-Sample is
found, and if its value contains the string “ sample text ”. If a match is made, the message is bounced.
FooHeaderFilter:
if (header('X-Sample') == 'sample text')
{
bounce();
}
You can specify non-ASCII characters to search for in the value of the header.
The following example demonstrates the header rule without a comparison. In this case, if the header
X-DeleteMe is found, it is removed from the message.
DeleteMeHeaderFilter:
if header('X-DeleteMe')
{
strip-header('X-DeleteMe');
}
When working with headers, remember that the current value of the header includes changes made during
processing (such as with filter actions that add, remove, or modify message headings). See Message Header
Rules and Evaluation, on page 135 for more information.
Random Rule
The random rule generates a random number from zero to N-1, where N is the integer value supplied in
parenthesis after the rule. Like the header() rule, this rule may be used in a comparison, or may be used
alone in a “unary” form. The rule evaluates to true in the unary form if the random number generated is
non-zero. For example, both of the following filters are effectively equal, choosing Virtual Gateway address
A half the time, and Virtual Gateway address B the other half of the time:
load_balance_a:
if (random(10) < 5)
{
alt-src-host('interface_a');
}
else
{
alt-src-host('interface_b');
}
load_balance_b:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
163
Using Message Filters to Enforce Email Policies
Header Rule
if (random(2))
{
alt-src-host('interface_a');
}
else
{
alt-src-host('interface_b');
}
Recipient Count Rule
The rcpt-count rule compares the number of recipients of a message against an integer value, in a similar
way to the body-size rule. This can be useful for preventing users from sending email to large numbers of
recipients at once, or for ensuring that such large mailing campaigns go out over a certain Virtual Gateway
address. The following example sends any email with more than 100 recipients over a specific Virtual Gateway
address:
large_list_filter:
if (rcpt-count > 100) {
alt-src-host('mass_mailing_interface');
}
Address Count Rule
The addr-count() message filter rule takes one or more header strings, counts the number of recipients in
each line and reports the cumulative number of recipients. This filter differs from the rcpt-count filter rule
in that it operates on the message body headers instead of the envelope recipients. The following example
shows the filter rule used to replace a long list of recipients with the alias, “undisclosed-recipients”:
count: if (addr-count("To", "Cc") > 30)
{
strip-header("To");
strip-header("Cc");
insert-header("To", "undisclosed-recipients");
}
Body Scanning Rule
The body-contains() rule scans the incoming email and all its attachments for a particular pattern defined
by its parameter. This includes delivery-status parts and associated attachments. The body-contains() rule
does not perform multi-line matching. The scanning logic can be modified on theScan Behavior page or using
the scanconfig command in the CLI to define which MIME types should or should not be scanned. You can
also specify a minimum number of matchesthat the scanning engine must find in order for the scan to evaluate
to true.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
164
Using Message Filters to Enforce Email Policies
Recipient Count Rule
By default, the system scans all attachments except for those with a MIME type of video/* , audio/* ,
image/* . The system scans archive attachments — .zip , .bzip , .compress , .tar , or .gzip
attachments containing multiple files. You can set the number of “nested” archived attachments to scan (for
example, a .zip contained within a .zip ).
For more information, see Configuring Scan Behavior, on page 251.
Body Scanning
When AsyncOS performs body scanning, it scans the body text and attachments for the regular expression.
You can assign a minimum threshold value for the expression, and if the scanning engine encounters the
regular expression the minimum number of times, the expression evaluates to true .
AsyncOS evaluates the different MIME parts of the message, and it scans any MIME part that is textual.
AsyncOS identifies the text parts if the MIME type specifies text in the first part. AsyncOS determines the
encoding based on the encoding specified in the message, and it converts the text to Unicode. It then searches
for the regular expression in Unicode space. If no encoding is specified in the message, AsyncOS uses the
encoding you specify on the Scan Behavior page or using the scanconfig command.
For more information about how AsyncOS evaluates MIME parts when scanning messages, see Message
Bodies vs. Message Attachments, on page 135.
If the MIME part is not textual, AsyncOS extract files from a .zip or .tar archive or decompresses compressed
files. After extracting the data, a scanning engine identifies the encoding for the file and returns the data from
the file in Unicode. AsyncOS then searches for the regular expression in Unicode space.
The following example searches the body text and attachment for the phrase “Company Confidential.” The
example specifies a minimum threshold of two instances,so if the scanning engine findstwo or more instances
of the phrase, it bounces any matching messages, and notifies the legal department of the attempt:
ConfidentialFilter:
if (body-contains('Company Confidential',2)) {
notify ('legaldept@example.domain');
bounce();
}
To scan only the body of the message, use only-body-contains :
disclaimer:
if (not only-body-contains('[dD]isclaimer',1) ) {
notify('hresource@example.com');
}
Encryption Detection Rule
The encrypted rule examines the contents of a message for encrypted data. It does not attempt to decode the
encrypted data, but merely examines the contents of the message for the existence of encrypted data. This can
be useful for preventing users from sending encrypted email.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
165
Using Message Filters to Enforce Email Policies
Body Scanning
The encrypted rule can only detect encrypted data in the content of messages. It does not detect encrypted
attachments.
Note
The encrypted rule is similar to the true rule in that it takes no parameters and cannot be compared. This rule
returns true if encrypted data is found and false if no encrypted data is found. Because this function requires
the message to be scanned, it uses the scanning settings you define on the Scan Behavior page or using the
scanconfig command.For more information about configuring these options,see ConfiguringScan Behavior,
on page 251.
The following filter checks all email sent through the listener, and if a message contains encrypted data, the
message is blind-carbon-copied to the legal department and then bounced:
prevent_encrypted_data:
if (encrypted) {
bcc ('legaldept@example.domain');
bounce();
}
Attachment Type Rule
The attachment-type rule checks the MIME types of each attachment in a message to see if it matches the
given pattern. The pattern must be of the same form used in the Scan Behavior page or the scanconfig
command, as described in Configuring Scan Behavior, on page 251, and so may have either side of the slash
( / ) replaced by an asterisk as a wildcard. If the message contains an attachment that matches this specified
MIME type, this rule returns “true.”
Because this function requires the message to be scanned, it obeys all of the options described in Configuring
Scan Behavior, on page 251.
See AttachmentScanning, on page 218 for more information on message filter rules you can use to manipulate
attachments to messages.
The following filter checks all email sent through the listener, and if a message contains an attachment with
a MIME type of video/* , the message is bounced:
bounce_video_clips:
if (attachment-type == 'video/*') {
bounce();
}
Attachment Filename Rule
The attachment-filename rule checks the filenames of each attachment in a message to see if it matches the
given regular expression. This comparison is case-sensitive. The comparison is, howeversensitive to whitespace
so if the filename has encoded whitespace at the end, the filter willskip the attachment. If one of the message’s
attachments matches the filename, this rule returns “true.”
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
166
Using Message Filters to Enforce Email Policies
Attachment Type Rule
Please note the following points:
• Each attachment’s filename is captured from the MIME headers. The filename in the MIME header may
contain trailing spaces.
• If an attachment is an archive, the email gateway will harvest the filenames from inside the archive, and
apply scan configuration rules (see Configuring Scan Behavior, on page 251) accordingly.
• If the attachment is a single compressed file (despite the file extension), it is not considered an
archive and the filename of the compressed file is not harvested. This means that the file is not
processed by the attachment-filename rule. An example of this type of file is an executable file
(.exe) compressed with gzip .
• For attachments consisting of a single compressed file, such as foo.exe.gz, use regular expression
to search for specific file types within compressed files. See Attachment Filenames and Single
Compressed Files within Archive Files, on page 167.
See AttachmentScanning, on page 218 for more information on message filter rules you can use to manipulate
attachments to messages.
The following filter checks all email sent through the listener, and if a message contains an attachment with
a filename *.mp3 , the message is bounced:
block_mp3s:
if (attachment-filename == '(?i)\\.mp3$') {
bounce();
}
Related Topics
• Attachment Filenames and Single Compressed Files within Archive Files, on page 167
Attachment Filenames and Single Compressed Files within Archive Files
This example shows how to match single compressed files in archives such as those created by gzip :
quarantine_gzipped_exe_or_pif:
if (attachment-filename == '(?i)\\.(exe|pif)($|.gz$)') {
quarantine("Policy");
}
DNS List Rule
The dnslist() rule queries a public DNS List server that uses the DNSBL method (sometimes called “ip4r
lookups”) of querying. The IP address of the incoming connection is reversed (so an IP of 1.2.3.4 becomes
4.3.2.1) and then added as a prefix to the server name in the parenthesis (a period to separate the two is added
if the server name does not start with one). A DNS query is made, and the system is returned with either a
DNSfailure response (indicating the connection's IPaddress was not found in the server's list) or an IPaddress
(indicating that the address was found). The IP address returned is usually of the form 127.0.0. x where x
can be almost any number from 0 to 255 (IP address ranges are not allowed). Some servers actually return
different numbers based on the reason for the listing, while others return the same result for all matches.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
167
Using Message Filters to Enforce Email Policies
Attachment Filenames and Single Compressed Files within Archive Files
Like the header() rule, dnslist() can be used in either a unary or binary comparison. By itself, it simply
evaluatesto true if a response isreceived and false if no response isreceived (for example, if the DNSserver
is unreachable).
The following filter immediately delivers a message if the sender has been bonded with the Cisco Bonded
Sender information services program:
allowedlist_bondedsender:
if (dnslist('query.bondedsender.org')) {
skip-filters();
}
Optionally, you can compare the result to a string using the equality ( == ) or inequality ( != ) expressions.
The following filter drops a message that results in a “ 127.0.0.2 ” response from the server. If the response
is anything else, the rule returns “false” and the filter is ignored.
blockedlist:
if (dnslist('dnsbl.example.domain') == '127.0.0.2') {
drop();
}
IP Reputation Rule
The reputation rule checks the IP Reputation Score against another value. All the comparison operators are
allowed, such as > , == , <=, and so forth. If the message does not have a IP Reputation Score at all (because
one was never checked for it, or because the system failed to get a response from the IP Reputation Service
query server), any comparison against a reputation fails (the number will not be greater than, less than, equal
to, or not equal to any value). You can check for a IP Reputation score of “none” using the no-reputation
rule described below. The following example adjusts the “Subject:” line of a message to be prefixed by “ ***
BadRep *** ” if the reputation score returned from the IP Reputation Service is below a threshold of -7.5..
note_bad_reps:
if (reputation < -7.5) {
strip-header ('Subject');
insert-header ('Subject', '*** BadRep $Reputation *** $Subject');
}
For more information, see the “Sender Reputation Filtering” chapter. See also Bypass Anti-Spam System
Action, on page 212
Values for the IP Reputation rule are -10 through 10, but the value NONE may also be returned. To check
specifically for the value NONE , use the no-reputation rule.
none_rep:
if (no-reputation) {
strip-header ('Subject');
insert-header ('Subject', '*** Reputation = NONE *** $Subject');
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
168
Using Message Filters to Enforce Email Policies
IP Reputation Rule
}
Dictionary Rules
The dictionary-match(< dictonary_name >) rule evaluates to true if the message body contains any of
the regular expressions or terms in the content dictionary named “dictonary_name .” If the dictionary does
not exist, the rule evaluates to false . For more information on defining dictionaries (including their case
sensitivity and word boundary settings), see the “Text Resources” chapter.
The following filter blind carbon copies the administrator when the Cisco scans a message that contains any
words within the dictionary named “secret_words.”
copy_codenames:
if (dictionary-match ('secret_words')) {
bcc('administrator@example.com');
}
The following example sends the message to the Policy quarantine if the message body contains any words
within the dictionary named “secret_words.” Unlike the only-body-contains condition, the
body-dictionary-match condition does not require that all the content partsindividually match the dictionary.
The scores of each content part (taking into account multipart/alternative parts) are added together.
quarantine_data_loss_prevention:
if (body-dictionary-match ('secret_words'))
{
quarantine('Policy');
}
In the following filter, a subject that matches a term in the specified dictionary is quarantined:
quarantine_policy_subject:
if (subject-dictionary-match ('gTest'))
{
quarantine('Policy');
}
This example matches an email address in the “to” header and blind copies an administrator:
headerTest:
if (header-dictionary-match ('competitorsList', 'to'))
{
bcc('administrator@example.com');
}
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
169
Using Message Filters to Enforce Email Policies
Dictionary Rules
The attachment-dictionary-match() rule workslike the dictionary-match rule above,
except that it looks for matches in the attachment.
The following filter sends the message to the Policy quarantine if the message attachment contains any words
found within the dictionary named “secret_words.”
quarantine_codenames_attachment:
if (attachment-dictionary-match ('secret_words'))
{
quarantine('Policy');
}
The header-dictionary-match(, ) rule works like the dictionary-match rule
above, except that it looksfor matchesin the headerspecified in . The header name is case insensitive,
so, for example, “subject” and “Subject” both work.
The following filter sends the message to the Policy quarantine if the message’s “cc” header contains any
words found within the dictionary named “ex_employees.”
quarantine_codenames_attachment:
if (header-dictionary-match ('ex_employees', 'cc'))
{
quarantine('Policy');
}
You can use wild cards within the dictionary terms. You do not have to escape the period in email addresses.
SPF-Status Rule
When you receive SPF/SIDF verified mail, you may want to take different actions depending on the results
of the SPF/SIDF verification. The spf-status rule checks against different SPF verification results. For more
information, see Verification Results, on page 629.
If you have configured an SPF verification message filter rule without an SPF identity and if a message
contains different SPF identities with different verdicts, the rule is triggered if one of the verdicts in the
message matches the rule.
Note
You can check against the SPF/SIDF verification results using the following syntax:
if (spf-status == "Pass")
If you want a single condition to check against multiple status verdicts, you can use the following syntax:
if (spf-status == "PermError, TempError")
You can also check the verification results against the HELO, MAIL FROM, and PRA identities using the
following syntax:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
170
Using Message Filters to Enforce Email Policies
SPF-Status Rule
if (spf-status("pra") == "Fail")
The following example shows the spf-status filter in use:
skip-spam-check-for-verified-senders:
if (sendergroup == "TRUSTED" and spf-status == "Pass"){
skip-spamcheck();
}
quarantine-spf-failed-mail:
if (spf-status("pra") == "Fail") {
if (spf-status("mailfrom") == "Fail"){
# completely malicious mail
quarantine("Policy");
} else {
if(spf-status("mailfrom") == "SoftFail") {
# malicious mail, but tempting
quarantine("Policy");
}
}
} else {
if(spf-status("pra") == "SoftFail"){
if (spf-status("mailfrom") == "Fail"
or spf-status("mailfrom") == "SoftFail"){
# malicious mail, but tempting
quarantine("Policy");
}
}
}
stamp-mail-with-spf-verification-error:
if (spf-status("pra") == "PermError, TempError"
or spf-status("mailfrom") == "PermError, TempError"
or spf-status("helo") == "PermError, TempError"){
# permanent error - stamp message subject
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
171
Using Message Filters to Enforce Email Policies
SPF-Status Rule
strip-header("Subject");
insert-header("Subject", "[POTENTIAL PHISHING] $Subject"); }
.
SPF-Passed Rule
The following example shows an spf-passed rule used to quarantine emailsthat are not marked asspf-passed:
quarantine-spf-unauthorized-mail:
if (not spf-passed) {
quarantine("Policy");
}
Unlike the spf-status rule, the spf-passed rule reduces the SPF/SIDF verification values to a simple
Boolean. The following verification results are treated as not passed in the spf-passed rule: None,
Neutral, Softfail, TempError, PermError, and Fail. To perform actions on messages based on more
granular results, use the spf-status rule.
Note
S/MIME Gateway Message Rule
TheS/MIME Gateway Message rule checksif a message isS/MIME signed, encrypted, orsigned and encrypted.
The following message filter checksif the message is anS/MIME message and quarantinesit if the verification
or decryption using S/MIME fails.
quarantine_smime_messages:
if (smime-gateway-message and not smime-gateway-verified) {
quarantine("Policy");
}
For more information, see S/MIME Security Services, on page 553.
S/MIME Gateway Verified Rule
The S/MIME Gateway Message Verified rule checks if a message is successfully verified, decrypted, or
decrypted and verified. The following message filter checks if the message is an S/MIME message and
quarantines it if the verification or decryption using S/MIME fails.
quarantine_smime_messages:
if (smime-gateway-message and not smime-gateway-verified) {
quarantine("Policy");
}
For more information, see S/MIME Security Services, on page 553
Workqueue-count Rule
The workqueue-count rule checksthe workqueue-count against a specified value. All the comparison operators
are allowed, such as > , == , <=, and so forth.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
172
Using Message Filters to Enforce Email Policies
SPF-Passed Rule
The following filter checksthe workqueue count, and skipsspam check if the queue is greater than the specified
number.
wqfull:
if (workqueue-count > 1000) {
skip-spamcheck();
}
For more information on SPF/SIDF, see Overview of SPF and SIDF Verification, on page 622.
SMTP Authenticated User Match Rule
If your email gateway uses SMTP authentication to send messages, the smtp-auth-id-matches ( [,
] )rule can check a message’s headers and Envelope Sender against the sender’s SMTP
authenticated user ID to identify outgoing messages with spoofed headers. This filter allows the system to
quarantine or block potentially spoofed messages.
The smtp-auth-id-matches rule compares the SMTP authenticated ID against the following targets:
Target Description
Compares the address of the Envelope Sender (also known as MAIL FROM) in the
SMTP conversation
*EnvelopeFrom
Compares the addresses parsed out of the From header. Since multiple addresses are
permitted in the From: header, only one has to match.
*FromAddress
*Sender Compares the address specified in the Sender header.
Matches messages that were created during an authenticated SMTP session regardless
of identity.
*Any
Matches messages that were not created during an authenticated SMTP session. This
is useful when authentication is optional (preferred).
*None
The filter performs matches loosely. It is not case-sensitive. If the optional sieve-char parameter is supplied,
the last portion of an addressthat followsthe specified character will be ignored for the purposes of comparison.
For example, if the + character is included as a parameter, the filter ignores the portion of the address
joe+folder@example.com that follows the + character. If the address was joe+smith+folder@example.com
, only the +folder portion is ignored. If the SMTP authenticated user ID string is a simple username and not
a fully-qualified e-mail address, only the username portion of the target will be examined to determine a
match. The domain must be verified in a separate rule.
Also, you can use the $SMTPAuthID variable to insert the STMP authenticated user ID into headers.
The following table shows examples of comparisons between theSMTPauthenticated ID and email addresses
and whether they would match using the smtp-auth-id-matches filter rule:
SMTP Auth ID Sieve Char Comparison Address Matches?
someuser otheruser@example.com No
someuser someuser@example.com Yes
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
173
Using Message Filters to Enforce Email Policies
SMTP Authenticated User Match Rule
SMTP Auth ID Sieve Char Comparison Address Matches?
someuser someuser@another.com Yes
SomeUser someuser@example.com Yes
someuser someuser+folder@example.com No
someuser + someuser+folder@example.com Yes
someuser@example.com someuser@forged.com No
someuser@example.com someuser@example.com Yes
SomeUser@example.com someuser@example.com Yes
The following filter checks all messages created during an authenticated SMTP session to verify that the
addressesin theFrom header and the EnvelopeSender match theSMTPauthenticated user ID. If the addresses
and the ID match, the filter verifies the domain. If they do not match, the email gateway quarantines the
message.
Msg_Authentication:
if (smtp-auth-id-matches("*Any"))
{
# Always include the original authentication credentials in a
# special header.
insert-header("X-Auth-ID","$SMTPAuthID");
if (smtp-auth-id-matches("*FromAddress", "+") and
smtp-auth-id-matches("*EnvelopeFrom", "+"))
{
# Username matches. Verify the domain
if header('from') != "(?i)@(?:example\\.com|alternate\\.com)" or
mail-from != "(?i)@(?:example\\.com|alternate\\.com)"
{
# User has specified a domain which cannot be authenticated
quarantine("forged");
}
} else {
# User claims to be an completely different user
quarantine("forged");
}
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
174
Using Message Filters to Enforce Email Policies
SMTP Authenticated User Match Rule
}
Signed Rule
The signed rule checks messages for a signature. The rule returns a boolean value to indicate if the message
is signed or not. This rule evaluates whether the signature is encoded according to ASN.1 DER encoding rules
and that it conforms to the CMS SignedData Type structure (RFC 3852, Section 5.1.). It does not aim to
validate whether the signature matches the content, nor does it check the validity of the certificate.
The following example shows a signed rule used to insert headers into a signed message:
signedcheck: if signed { insert-header("X-Signed", "True"); }
The following example shows a signed rule used to drop attachments from unsigned messages from a certain
sender group:
Signed: if ((sendergroup == "NOTTRUSTED") AND NOT signed) {
html-convert();
if (attachment_size > 0)
{
drop_attachments("");
}
}
Signed Certificate Rule
The signed-certificate rule selects those S/MIME messages where the X.509 certificate issuer or message
signer matches the given regular expression. This rule only supports X.509 certificates.
The rule’s syntax is signed-certificate ( [ ]) , where:
• is either the quoted string “issuer” or “signer” ,
• is either == or != ,
• and is the value for matching the “issuer” or “signer.”
If the message is signed using multiple signatures, the rule returns true if any of the issuers or signers match
the regular expression. The short form of this rule, signed-certificate(“issuer”) and signed-certificate(“signer”)
, returns true if the S/MIME message contains an issuer or signer.
Related Topics
• Signer, on page 176
• Issuer, on page 176
• Escaping in Regular Expressions, on page 176
• $CertificateSigners Action Variable, on page 176
• Examples 1, on page 177
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
175
Using Message Filters to Enforce Email Policies
Signed Rule
Signer
For message signers, the rule extracts the sequence of rfc822Name names from the X.509 certificate’s
subjectAltName extension. If there is no subjectAltName field in the signing certificate, or this field does not
have any rfc822Name names, the signed-certificate(“signer”) rule evaluates to false. In the rare cases of
multiple rfc822Name names, the rule tries to match all of the names to the regular expression and evaluates
as true on the first match.
Issuer
The issuer is a non-empty distinguished name in the X.509 certificate. AsyncOS extracts the issuer from the
certificate and converts it to an LDAP-UTF8 Unicode string. For example:
• C=US,S=CA,O=IronPort
• C=US,CN=Bob Smith
Since X.509 certificates require the issuer field, signed-certificate(“issuer”) evaluates whether the S/MIME
message contains an X.509 certificate.
Escaping in Regular Expressions
LDAP-UTF8 defines a mechanism for escaping that you can use in your regular expressions. For a detailed
discussion on escaping characters in LDAP-UTF8, consult Lightweight Directory Access Protocol (LDAP):
String Representation of Distinguished Names, accessible from http://www.ietf.org/rfc/rfc4514.txt .
The escaping rules for the signed-certificate rule’s regular expressions differ from the escaping rules defined
in LDAP-UTF8 by limiting escaping to only the charactersthat require escaping. LDAP-UTF8 allows optional
escaping for characters that can be represented without escaping. For example, the following two strings are
considered correct for “Example, Inc.” using the LDAP-UTF8 escaping rules:
• Example\, Inc.
• Example\,\ Inc\.
However, the signed-certificate rule only matches Example\, Inc. The regular expression does not allow
escaping the space and period for matching because these characters do not require escaping, even though it
is permitted in LDAP-UTF8. When creating a regular expression for the signed-certificate rule, do not escape
a character if it can be represented without escaping.
$CertificateSigners Action Variable
The action variable $CertificateSigners is a comma separated list of signers obtained from the
subjectAltName element of the signing certificate. Multiple email addresses of a single signer will be included
in the list with duplicates removed.
For example, Alice signs a message with her two certificates. Bob signs the message with his single certificate.
All certificates are issued by a single corporate authority. After the message passes the S/MIME scan, the
extracted data contain three items:
[
{
'issuer': 'CN=Auth,O=Example\, Inc.',
'signer': ['alice@example.com', 'al@private.example.com']
},
{
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
176
Using Message Filters to Enforce Email Policies
Signer
'issuer': 'CN=Auth,O=Example\, Inc.',
'signer': ['alice@example.com', 'al@private.example.com']
},
{
'issuer': 'CN=Auth,O=Example\, Inc.',
'signer': ['bob@example.com', 'bob@private.example.com']
}
]
The $CertificateSigners variable expands to:
"alice@example.com, al@private.example.com, bob@example.com, bob@private.example.com"
Examples 1
The following example inserts a new header if the certificate issuer is from the US:
Issuer: if signed-certificate("issuer") == "(?i)C=US" {
insert-header("X-Test", "US issuer");
}
The following example notifies an administrator if the signer is not from example.com:
NotOurSigners: if signed-certificate("signer") AND
signed-certificate("signer") != "example\\.com$" {
notify("admin@example.com");
}
The following example adds a header if the message has an X.509 certificate:
AnyX509: if signed-certificate ("issuer") {
insert-header("X-Test", "X.509 present");
}
The following example adds a header if the message’s certificate does not have a signer:
NoSigner: if not signed-certificate ("signer") {
insert-header("X-Test", "Old X.509?");
}
Header Repeats Rule
The Header Repeats rule evaluates to true if at a given point in time, a specified number of messages:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
177
Using Message Filters to Enforce Email Policies
Examples 1
• With same subject are detected in the last one hour.
• From same envelope sender are detected in the last one hour.
You can use this rule to detect high volume emails.For example, political campaigns through certain websites
may send out emails to organizations in high volumes. Anti-spam engines treat such emails as clean, and do
not stop the delivery of these emails.
The syntax of this rule is header-repeats (, [, ]) , where:
• is subject or mail-from . AsyncOS counts the repetition of values of the target.
• is the number of messages with identical values for a given target, received in the last one
hour, beyond which the rule evaluates to true.
• is incoming , outgoing , or both. If direction is not specified in this rule, incoming or outgoing
messages are counted for rule evaluation.
Every time when a Header Repeats rule evaluates to true , a System Alert is sent. SeeSystem Alerts, on page
1059.
If the header field includes comma or semi-colon separated values, the rule considers the complete string
for tracking. This rule ignores messages with empty subject header.
Note
The Header Repeats rule maintains a moving sum of messages with up to one minute’s precision. As a result,
after the set threshold has reached, there can be a delay of one minute before this rule is triggered.
Related Topics
• Using Header Repeats Rule with Other Rules, on page 178
• Examples, on page 179
Using Header Repeats Rule with Other Rules
You can use the Header Repeats rule with other rules using AND or OR operators. For example, you can
categorize an allowed list for a subset of messages using the following filter:
F1: if (recv_listener == 'Gray') AND (header-repeats('subject', X, 'incoming') { drop();}
When you use a Header Repeats rule with another rule using AND or OR operators, the Header Repeats rule
is evaluated last, and only if needed. If a Header Repeats rule is not evaluated for a given message, subject
or mail-from is not counted to compare with the supplied threshold.
As Header Repeats rule is evaluated last and only if needed, the behavior of this rule may vary when used
with other rules using an OR operator. The following sample filter uses an OR condition ofSigned and Header
Repeats rule.
f1: if signed OR (header-repeats('subject', 10)) { drop();}
In this example, if the first nine messages processed by this filter are signed messages with identical subject,
the Header Repeats rule will not process these messages. If the tenth message is an unsigned message with
identical subject header as the previous nine messages, the filter will not perform the configured action, even
though the threshold has reached.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
178
Using Message Filters to Enforce Email Policies
Using Header Repeats Rule with Other Rules
Examples
In the following example, at any given point in time, if the filter detects X or more incoming messages with
identical subject in the last one hour, the subsequent messages with identical subject are sent to Policy
quarantine.
f1 : if header-repeats('subject', X, 'incoming') { quarantine('Policy');}
In the following example, at any given point in time, if the filter detects X or more outgoing messages from
same envelope sender in the last one hour, the subsequent messagesfrom the same envelope sender are dropped
and discarded.
f2 : if header-repeats('mail-from', X, 'outgoing') {drop();}
In the following example, at any given point in time, if the filter detects X or more incoming or outgoing
messages with identicalsubject in the last one hour, the administrator is notified for every subsequent message
with identical subject.
f3: if header-repeats('subject', X) {notify('admin@xyz.com');}
URL Reputation Rules
Use a URL reputation rule to define message actions based on the reputation score of any URL in the message.
For important details, seeFiltering by URL Reputation or URL Category: Conditions and Rules , on page 455
in Protecting Against Malicious or Undesirable URLs, on page 447
For these rules:
• msg_filter_name : is the name of this message filter.
• allowedlist is the name of a defined URL list (via the urllistconfig command.) Specifying an allowed
list is optional.
To take action when the reputation service provides a score:
Use the url-reputation rule.
Filter syntax when using a url-reputation rule is:
:
if url-reputation(', <'max_score'>, '',
'','')
{}
Where:
• min_score and max_score are the minimum and maximum scoresin the range for which the action should
apply. The values that you specify are included in the range.
Minimum and maximum scores must be between -10.0 and 10.0 .
• include_attachments to scan for URLs in the message attachments. A value of '1' indicates that URL
scanning for message attachments is enabled and a value of '0' indicates that URL scanning for message
attachments is not enabled.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
179
Using Message Filters to Enforce Email Policies
Examples
• include_message_body_subject to scan for URLs in the message body and subject. A value of '1'
indicates that URL scanning for message body and subject is enabled and a value of '0' indicates that
URL scanning for message body and subject is not enabled.
To take action when the reputation service does not provide a score:
Use the url-no-reputation rule.
Filter syntax when using a url-no-reputation rule is:
:
if url_no_reputation('',
'','')
{}
URL Category Rule
Use URL categories to define message actions based on the category of URLs in the message. For important
details, see Filtering by URL Reputation or URL Category: Conditions and Rules , on page 455 in Protecting
Against Malicious or Undesirable URLs, on page 447.
Filter syntax when using a url-category rule is:
: if url-category ([‘’,’’,...,
‘’],’’,'','')
Where:
• msg_filter_name is the name of this message filter.
• action is any message filter action.
• category-name is the URL category. Separate multiple categories with commas. To obtain correct
category names, look at a URL Category condition or action in a Content Filter. For descriptions and
examples of the categories, see About URL Categories, on page 466.
• url_allowed_list is the name of a defined URL list (via the urllistconfig command.)
• include_attachments to scan for URLs in message attachments. A value of '1' indicates that URL
scanning for message attachments is enabled and a value of '0' indicates that URL scanning for message
attachments is not enabled.
• include_message_body_subject to scan for URLs in the message body and subject. A value of '1'
indicates that URL scanning for the message body and subject is enabled and a value of '0' indicates that
URL scanning for the message body and subjects is not enabled.
Corrupt Attachment Rule
The Corrupt Attachment rule evaluates to true if a message contains corrupt attachment. A corrupt attachment
is an attachment that the scanning engine cannot scan and identified as corrupt.
Related Topics
• Example, on page 181
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
180
Using Message Filters to Enforce Email Policies
URL Category Rule
Example
In the following example, if the filter detects a corrupt attachment in a message, the message is quarantined
to Policy Quarantine.
quar_corrupt_attach: if (attachment-corrupt) { quarantine("Policy"); }
Message Language Rule
You may want to take different message actions based on the message language. For example, you may want
to:
• Add a disclaimer in Russian to the messages that are in Russian
• Drop the messages whose language could not be determined
Use the message-language rule to take message actions depending on the language of the message subject
and body.
Note This rule will not check for the language in attachments and headers.
How Does Language Detection Work
The email gateway uses the built-in language detection engine to detect the language in a message. The email
gateway extracts the subject and the message body and passes it to the language detection engine.
The language detection engine determines the probability of each language in the extracted text and passes it
back to the email gateway. The email gateway considers the language with the highest probability as the
language of the message. The email gateway considers the language of the message as ‘undetermined’ in one
of the following scenarios:
• If the detected language is not supported by the email gateway
• If the email gateway is unable to detect the language of the message
• If the total size of the extracted text sent to the language detection engine is less than 50 bytes.
Message Filter Syntax
: if (message-language ", ,..., ") {}
Where:
• msg_filter_name is the name of this message filter.
• operator is == or != .
• language is the value of message language that you want to specify in this message filter. Separate
multiple entries with commas.For a list of supported message languages and values, look at the Message
Language condition in a content filter. Values are enclosed with brackets ([ and ]).
• action is any message filter action.
Examples
The following example shows how to drop the messages whose language could not be determined:
DropMessagesWithUndeterminedLanguage: if (message-language == "unknown") { drop(); }
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
181
Using Message Filters to Enforce Email Policies
Example
The following example shows how to add a disclaimer in Russian to the messages in Russian:
ussianDisclaimerRule: if (message-language == "ru") { add-heading("RussianDisclaimer");
Macro Detection Rule
You can use the Macro Detection rule to detect macro-enabled attachments in messages for the specified file
types.
Note If an archive or embedded file contains macros, the parent file is dropped from the message.
Macro Detection Syntax
: if (macro-detection-rule (['file_type-1', 'file_type-2',...
,’file_type-n'])) {}
Where:
• msg_filter_name is the name of this message filter.
• file_type can be any one of the following supported file types:
• Adobe Portable Document Format
• Microsoft Office Files
• OLE File types
• action is any message filter action.
Examples
The following example shows how to drop a message that contains a macro-enabled Microsoft Office
attachment:
Drop_Messages_With_Macro-enabled_Office_Files: if (macro-detection-rule (['Microsoft Office
Files'])) { drop(); }
In the following example, if a message containing a macro-enabled attachment in a PDF format is sent to a
specific user, the message is dropped:
Strip_Macro_enabled_PDF: if (rcpt-to == "joe@example.com") {
drop-macro-enabled-attachments(['Adobe Portable Document Format']); }
Forged Email Detection Rule
You may want to detect fraudulent messages with forged sender address (From: header) and perform actions
on such messages.
Use the forged-email-detection rule to detect such messages. While configuring this rule, you must specify a
content dictionary and the threshold value (1 through 100) for considering a message as potentially forged.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
182
Using Message Filters to Enforce Email Policies
Macro Detection Rule
The forged-email-detection rule compares the From: header with the users in the content dictionary. During
this process, depending on the similarity, the email gateway assigns similarity score to each of the users in
the dictionary. The following are some examples:
• If the From: header is and the content dictionary contains a user ‘John
Simons,’ the email gateway assigns a similarity score of 82 to the user.
• If theFrom: header is and the content dictionary contains a user ‘John
Simons,’ the email gateway assigns a similarity score of 100 to the user.
The higher the similarity score, the higher the probability that the message is forged. If the similarity score is
greater than or equal to the specified threshold value, the filter action is triggered.
For more information, see Forged Email Detection, on page 640.
Message Filter Syntax
: if (forged-email-detection(“”, threshold)) {;}
Where:
• filter_name is the name of the message filter
• content_dictionary is the name of content dictionary
• threshold is the threshold value (1 through 100) for considering a message as potentially forged
Example
The following message filter compares the From: header in the message with the terms in dictionary and if
the similarity score of a user in the content dictionary is greater than or equal to 70, the message filter strips
the From: header and replaces it with the Envelope Sender.
FED_CF: if (forged-email-detection("Execs", 70)) { fed("from", ""); }
Duplicate Boundaries Verification Rule
You can use the duplicate_boundaries rule to detect messages that contain duplicate MIME boundaries.
Attachment-based rules (for example, attachment-contains ) or actions (for example,
drop-attachments-where-contains ) will not work on malformed messages (with duplicate MIME
boundaries).
Note
Message Filter Syntax
: if (duplicate_boundaries){;}
Example
The following message filter will quarantine all the messages that contain duplicate MIME boundaries.
DuplicateBoundaries: if (duplicate_boundaries) { quarantine("Policy"); }
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
183
Using Message Filters to Enforce Email Policies
Duplicate Boundaries Verification Rule
Malformed MIME Header Detection Rule
You can use the malformed-header rule to detect messages that contain malformed MIME headers.
Message Filter Syntax
: if (malformed-header){;}
Example
The following example shows how to quarantine all the messages with malformed MIME headers:
quarantine_malformed_headers: if (malformed-header)
{
quarantine("Policy");
}
Geolocation Rule
You can use the Geolocation rule to handle incoming messages from particular countries that you select.
Geolocation Syntax
: if (geolocation-rule (['country_name-1', 'country_name-2',...
,’country_name-n'])) {}
Where:
• msg_filter_name is the name of this message filter.
• country_name can be name of any country that you select.
• action is any message filter action.
Example
The following example shows how to quarantine an incoming message from Country1 and Country2:
Quarantine_Incoming_Messages_from_Country1_and_Country2: if (geolocation-rule
(['Country1', 'Country2'])) {quarantine("Policy");}
Domain Reputation Rule for ETF
As an example, use the following message filter rule syntax to detect malicious domains in messages using
the ETF engine, and take appropriate actions on such messages.
Syntax:
quarantine_msg_based_on_ETF: if (domain-external-threat-feeds (['etf_source1'],
['mail-from', 'from'], <'domain_exception_list'>)) { quarantine("Policy"); }
Where
• ‘domain-external-threat-feeds' is the Domain reputation message filter rule.
• ‘etf_source1' is the ETF source(s) used to detect malicious domain(s) in the header(s) of a message.
• ‘mail-from','from' are the required header(s) used to check for the reputation of the domain.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
184
Using Message Filters to Enforce Email Policies
Malformed MIME Header Detection Rule
• 'domain_exception_list' is the name of a domain exception list. If a domain exception list is not
present it is displayed as "".
Example
In the following example, if the domain in the ‘Errors To:’ custom header is detected as malicious by the ETF
engine, the message is quarantined.
Quaranting_Messages_with_Malicious_Domains: if domain-external-threat-feeds
(['threat_feed_source'], ['Errors-To'], "")) {quarantine("Policy");}
Domain Reputation Rule for SDR
You can use the Domain Reputation rule to filter messages based on SDR, and take appropriate actions on
such messages:
• Sender Domain Verdict
• Sender Domain Age
• Sender Domain Unscannable
Filtering Messages based on Sender Domain Verdict
The recommended blocking threshold is "Poor." For more information about SDR, contact Cisco Talos
at https://www.talosintelligence.com.
Note
Syntax:
drop_msg_based_on_sdr_verdict:
if sdr-reputation (['awful', 'poor'], "")
{drop();}
Where:
• 'drop_msg_based_on_sdr_verdict' is the name of the message filter.
• 'sdr-reputation'is the Domain Reputation message filter rule.
• 'awful','poor' is the range of the sender domain verdict used to filter messages based on SDR.
• 'domain_exception_list' is the name of a domain exception list. If a domain exception list is not
present it is displayed as "".
• 'drop' is the action applied on the message.
Example
In the following message, if the SDR verdict is 'Unknownr', the message is quarantined.
quarantine_unknown_sdr_verdicts:
if sdr-reputation (['unknown'], "")
{quarantine("Policy")}
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
185
Using Message Filters to Enforce Email Policies
Domain Reputation Rule for SDR
Filtering Messages based on Sender Domain Age
Note The Sender Domain Age option will be removed in the next AsyncOS release.
Syntax:
if sdr-age (<‘unit'>, <‘operator'> <‘actual value’>)
{}
Where:
• ‘sdr-reputation' is the Domain Reputation message filter rule.
• ‘sdr_age’ is the age of the sender domain used to filter messages based on SDR.
• ‘unit' is the number of ‘days,’ ‘years,’ ‘months,’ or 'weeks' option used to filter messages based on the
sender domain age.
• ‘operator' are the following comparison operators used to filter messages based on the sender domain
age:
• – > (Greater than)
• – >= (Greater than or equal to)
• – < (Lesser than)
• – <= (Lesser than or equal to)
• – == (Equal to)
• – != (Not equal to)
• – Unknown
• ‘actual value' is the number used to filter messages based on the sender domain age.
Examples
In the following message, if the age of the sender domain is unknown, the message is dropped.
Drop_Messages_Based_On_SDR_Age: if (sdr-age ("unknown", "")) {drop();}
In the following message, if the age of the sender domain is less than one month, the message is dropped.
Drop_Messages_Based_On_SDR_Age: if (sdr-age ("months", <, 1, "")) { drop(); }
Filtering Messages based on Sender Domain Unscannable
Syntax:
if sdr-unscannable (<'domain_exception_list'>)
{}
Where:
• 'sdr-unscannable' is the Domain Reputation message filter rule.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
186
Using Message Filters to Enforce Email Policies
Filtering Messages based on Sender Domain Age
'domain_exception_list' is the name of a domain exception list. If a domain exception list is not
present it is displayed as "".
Example
In the following message, if the message failed the SDR check, the message is quarantined.
Quarantine_Messages_Based_On_Sender_Domain_Unscannable: if (sdr-unscannable (""))
{quarantine("Policy");}
Message Filter Actions
The purpose of message filters is to perform actions on selected messages.
The two types of actions are:
• Final actions — such as deliver , drop , and bounce — end the processing of a message, and permit no
further processing through subsequent filters.
• Non-final actions perform an action which permits the message to be processed further.
Non-final message filter actions are cumulative. If a message matches multiple filters where each filter
specifies a different action, then all actions are accumulated and enforced. However, if a message matches
multiple filters specifying the same action, the prior actions are overridden and the final filter action is
enforced.
Note
Related Topics
• Filter Actions Summary Table, on page 187
• Action Variables, on page 196
• Matched Content Visibility, on page 198
• Description and Examples of Message Filter Actions, on page 199
Filter Actions Summary Table
Message filters can apply the following actions to an email message as shown in the following table:
Table 24: Message Filter Actions
Action Syntax Description
Change the source hostname and IPinterface
(Virtual Gateway address) to send the
message. See Alter Source Host (Virtual
Gateway address) Action, on page 208.
Alter source host alt-src-host
Change a recipient of the message.See Alter
Recipient Action, on page 207.
Alter recipient alt-rcpt-to
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
187
Using Message Filters to Enforce Email Policies
Message Filter Actions
Action Syntax Description
Change the destination mail host for the
message. See Alter Delivery Host Action,
on page 207.
Alter mailhost alt-mailhost
Report this message to another recipient.
See Notify and Notify-Copy Actions, on
page 202.
Notify notify
Perform just like the notify action, but also
sends a copy as with the bcc-scan action.
See Notify and Notify-Copy Actions, on
page 202.
Notify Copy notify-copy
Copy this message (message replication)
anonymously to another recipient.See Blind
Carbon Copy Actions, on page 204.
Blind carbon copy bcc
Copy this message anonymously to another
recipient, and process that message through
the work queue as if it were a new message.
See Blind Carbon Copy Actions, on page
204.
Blind carbon copy bcc-scan
with scan
Archive this message into an mbox-format
file. See Archive Action, on page 208.
Archive archive
Flag this message to be sent to the
quarantine named quarantine_name . See
Quarantine and Duplicate Actions, on page
206.
quarantine
(quarantine_name
Quarantine
Send a copy of the message to the specified
quarantine. See Quarantine and Duplicate
Actions, on page 206.
duplicate-quarantine
(quarantine_name
Duplicate
(Quarantine)
Remove specified headersfrom the message
before delivering. See Strip Header Action,
on page 209.
Remove headers strip-header
Insert a header and value pair into the
message before delivering. See Insert
Header Action , on page 209.
Insert headers insert-header
Replace specified header text with a text
string you specify in the filter condition.See
Edit Header Text Action, on page 210.
Edit header text edit-header-text
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
188
Using Message Filters to Enforce Email Policies
Filter Actions Summary Table
Action Syntax Description
Strip a regular expression from a message
body and replaces it with text that you
specify. You might want to use this filter if
you want to remove and replace specific
content, such as a URL within a message
body. See Edit Body Text Action, on page
210.
Edit body text edit-body-text()
Strip HTML tags from message bodies and
leaves the plain text content of the message.
You might want to use this filter if you want
to convert all HTML text in a message to
plain text. HTML Convert Action, on page
211.
Convert HTML html-convert()
Assign a specific bounce profile to the
message. See Bounce Profile Action, on
page 212.
Assign bounce bounce-profile
profile
Ensure that the anti-spam systems in the
Cisco system are not applied to this
message. See Bypass Anti-Spam System
Action, on page 212.
Bypass Anti-Spam skip-spamcheck
System
Bypass actions on marketing emails. See
Bypassing Graymail Actions, on page 213.
Bypass Graymail skip-marketingcheck
Actions
Bypass actions on social network emails.
See Bypassing Graymail Actions, on page
213.
skip-socialcheck
Bypass actions on bulk emails. See
Bypassing Graymail Actions, on page 213.
skip-bulkcheck
Ensure that the anti-virus systems in the
Cisco system are not applied to this
message. See Bypass Anti-Virus System
Action, on page 213.
Bypass Anti-Virus skip-viruscheck
System
Ensure that File Reputation Filtering and
File Analysis are not applied to this
message. See Bypass File Reputation
Filtering andFile AnalysisSystem Actions,
on page 214.
Bypass File skip-ampcheck
Reputation Filtering
and File Analysis
Ensure that this message is not processed
by the Outbreak Filters scanning. See
Bypass Anti-Virus System Action, on page
213.
Skip Outbreak Filter skip-vofcheck
Scanning
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
189
Using Message Filters to Enforce Email Policies
Filter Actions Summary Table
Action Syntax Description
Drop all attachments on messages that have
a filename that match the given regular
expression. Archive file attachments (zip,
tar), Microsoft Office attachments (doc,
docx), and Email attachments(winmail.dat)
will be dropped if they contain a file that
matches. See Examples of Attachment
Scanning Message Filters, on page 225.
Drop Attachments drop-attachments-by-name
by Name
Drop all attachments on messages that have
a MIME type, determined by either the
given MIME type or the file extension.
Archive file attachments (zip, tar) will be
dropped if they contain a file that matches.
See Examples of Attachment Scanning
Message Filters, on page 225.
Drop Attachments drop-attachments-by-type
by Type
Drop all attachments on messagesthat match
the given “fingerprint” of the file. Archive
file attachments (zip, tar) will be dropped if
they contain a file that matches. For more
information, see Examples of Attachment
Scanning Message Filters, on page 225.
Drop Attachments drop-attachments-by-filetype
by File Type
Drop all attachments on messages that have
a given MIME type. This action does not
attempt to ascertain the MIME type by file
extension and so it also does not examine
the contents of archives. See Examples of
Attachment Scanning Message Filters, on
page 225.
Drop Attachments drop-attachments-by-mimetype
by MIME Type
Drop all message attachments in messages
that match the specific file SHA-256 value
in the file hash list. See Drop Message
Attachmentsthat matchFileSHA-256Filter,
on page 251 and Drop Messages if
Attachment matches File SHA-256 Filter,
on page 251.
Drop Attachments drop-attachments-by-hash
based on File Hash
List
Drop all attachments on the message that,
in raw encoded form, are equal to or greater
than the size (in bytes) given. Note that for
archive or compressed files, this action does
not examine the uncompressed size, but
rather the size of the actual attachment prior
to any decoding. See Examples of
Attachment Scanning Message Filters, on
page 225.
drop-attachments-by-size
Drop Attachments
by Size
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
190
Using Message Filters to Enforce Email Policies
Filter Actions Summary Table
Action Syntax Description
Drop all attachments on message that
contain the regular expression. Does the
pattern occur the minimum number of times
you specified for the threshold value?
Archive files (zip, tar) will be dropped if
any of the files they contain match the
regular expression pattern.See Examples of
Attachment Scanning Message Filters, on
page 225.
The optional comment serves as the means
to modify the text used to replace the
attachment that was dropped. Attachment
footers simply append to the message.
Drop Attachments drop-attachments-where-contains
by Content
Drops all macro-enabled attachments of the
specified file type.
If an archive or embedded file
contains macros, the parent file
is dropped from the message.
Note
Syntax
drop-macro-enabled-attachments
([‘file_type-1', 'file_type-2',
…,'file_type-n'],
“custom_replacement_message”)
Where:
• file_type can be any one of the
following supported file types:
• Adobe Portable Document
Format
• Microsoft Office Files
• OLE File types
• custom replacement message is
an optional message to replace the
default system generated message
added to the bottom of the message
body when an attachment is dropped.
See Macro Detection Rule, on page 182
Drop Attachments drop-macro-enabled-attachments
with Macro
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
191
Using Message Filters to Enforce Email Policies
Filter Actions Summary Table
Action Syntax Description
Strip attachments based on matches to
dictionary terms. If the terms in the MIME
parts considered to be an attachment match
a dictionary term (and the user-defined
threshold is met), the attachment is stripped
from the email.See Examples of Attachment
Scanning Message Filters, on page 225.
Drop Attachments drop-attachments-where-dictionary-match
by Dictionary
Matches
Add disclaimer text as a footer to the
message. See “Message Disclaimer
Stamping” in the “Text Resources” chapter
for more information.
Add Footer add-footer(footer-name)
Add disclaimer text as a heading to the
message. See “Message Disclaimer
Stamping” in the “Text Resources” chapter
for more information.
Add Heading add-heading(heading-name)
Encrypt message on delivery, which means
that the message continues to the next stage
of processing, and when all processing is
complete, the message is encrypted and
delivered.
Encrypt on Delivery encrypt-deferred
Performs anS/MIME signing or encryption
of the message using the specified sending
profile during the delivery. See S/MIME
Sign or Encrypt on Delivery Action, on page
201.
smime-gateway-deferred
(“sending_profile”)
S/MIME
Sign/Encrypt on
Delivery
Performs anS/MIME signing or encryption
using the specified sending profile and
delivers the message, skipping any further
processing. See S/MIME Sign or Encrypt
Action, on page 201.
S/MIME smime-gateway(“sending_profile”)
Sign/Encrypt
Add a custom term into the message to use
with DLPpolicy filtering. You can configure
a DLP policy to limit scanning to messages
with the message tag. The message tag is
not visible to recipients. See Add Message
Tag Action, on page 214 and the “Data Loss
Prevention” chapter.
Add Message Tag tag-message(tag-name)
Adds customized text into the Text Mail
logs at the INFO level. The text can include
action variables. The log entry appears in
message tracking.For more information,see
Add Log Entry Action, on page 215.
Add Log Entry log-entry
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
192
Using Message Filters to Enforce Email Policies
Filter Actions Summary Table
Action Syntax Description
Modify URLs or their behavior based on the
reputation of the URL.
Use a separate action to handle the case in
which the reputation service does not
provide a score for a URL.
See URL Reputation Actions , on page 215.
• url-reputation-replace
• url-no-reputation-replace
Replace URL with
text, based on URL
reputation
• url-reputation-defang
• url-no-reputation-defang
Defang URL based
on URL reputation
• url-reputation-proxy-redirect
• url-no-reputation-proxy-redirect
Redirect URL to a
Cisco security proxy,
based on URL
reputation
Modify URLs or their behavior based on the
category of the URL.
See URL Category Actions , on page 217.
Replace URL with url-category-replace
text, based on URL
Category
Defang URL based url-category-defang
on URL category
Redirect URL to url-category-proxy-redirect
Cisco security proxy,
based on URL
category
Strips the From: header from the forged
message and replaces it with the Envelope
Sender.SeeForged Email Detection Action,
on page 218.
Forged Email fed
Detection
No action is performed. See No Operation,
on page 218.
No Operation no-op
Ensure that this message is not processed
by any other message filters and continues
through the email pipeline. See Skip
Remaining MessageFilters Action, on page
200.
*Skip Remaining skip-filters
Message Filters
Drop and discard the message. See Drop
Action, on page 200.
*Drop message drop
Send the message back to the sender. See
Bounce Action, on page 201.
*Bounce message bounce
Use Cisco Email Encryption to encrypt
outgoing messages. See Encrypt Action, on
page 201.
*Encrypt and encrypt
Deliver Now
* Final Actions
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
193
Using Message Filters to Enforce Email Policies
Filter Actions Summary Table
Related Topics
• Attachment Groups, on page 194
Attachment Groups
You can specify a particular file type (“exe” files for example) or common groups of attachments in the
attachment-filetype and drop-attachments-by-filetype rules . AsyncOS divides the attachments into
the groups listed in the following table.
If you create a message filter that uses the != operator to match a message that does not contain an attachment
with a specific file type, the filter will not perform any action on the message if there is at least one attachment
with the file type you want to filter out.For example, the following filter drops any message with an attachment
that is not an .exe file type:
exe_check: if (attachment-filetype != "exe") {
drop();
}
If a message has multiple attachments, the email gateway does not drop the message if at least one of the
attachments is an .exe file, even if the other attachments not .exe files.
Table 25: Attachment Groups
Attachment Group Name Scanned File Types
• doc
• docx
• mdb
• mpp
• ole
• pdf
• ppt
• pptx
• rtf
• wps
• x-wmf
• xls
• xlsx
Document
• exe
• java
• msi
• pif
Filtering the Executable group will also scan .dll and .scr files, but
you cannot filter these file types individually.
Note
Executable
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
194
Using Message Filters to Enforce Email Policies
Attachment Groups
Attachment Group Name Scanned File Types
• ace (ACE Archiver compressed file)
• arc (SQUASH Compressed archive)
• arj (Robert Jung ARJ compressed archive)
• binhex
• bz (Bzip compressed file)
• bz2 (Bzip compressed file)
• cab (Microsoft cabinet file)
• gzip* (Compressed file - UNIX gzip)
• lha (Compressed Archive [LHA/LHARC/LZH])
• rar (Compressed archive
• sit (Compressed archive - Macintosh file [Stuffit])
• tar* (Compressed archive)
• unix (UNIX compress file)
• zip* (Compressed archive - Windows)
• zoo (ZOO Compressed Archive File)
* These file types can be “body-scanned”
Compressed
• txt
• html
• xml
Text
• bmp
• cur
• gif
• ico
• jpeg
• pcx
• png
• psd
• psp
• tga
• tiff
Image
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
195
Using Message Filters to Enforce Email Policies
Attachment Groups
Attachment Group Name Scanned File Types
• aac
• aiff
• asf
• avi
• flash
• midi
• mov
• mp3
• mpeg
• ogg
• ram
• snd
• wav
• wma
• wmv
Media
Action Variables
The bcc() , bcc-scan() , notify() , notify-copy() , add-footer() , add-heading() , and insert-headers() actions
have parameters that may use certain variables that will be automatically replaced with information from the
original message when the action is executed. These special variables are called action variables. Your email
gatewaysupports the following set of action variables:
Table 26: Message Filter Action Variables
Variable Syntax Description
Returns the message headers.
$AllHeaders
All Headers
Returns the size, in bytes, of the message.
$BodySize
Body Size
Returns the signers from the subjectAltName element of a
signing certificate. See $CertificateSigners Action Variable,
on page 176 for more information.
$CertificateSigners
Certificate Signers
Returns the current date, using the format MM/DD/YYYY.
$Date
Date
Returns only the most recently dropped filename.
$dropped_filename
Dropped File Name
Displays list of dropped files (similar to $filenames .
$dropped_filenames
Dropped File Names
Displays list of dropped file types (similar to $filetypes) .
$dropped_filetypes
Dropped File Types
Returns the Envelope Sender (Envelope From, ) of the message. $EnvelopeFrom
Envelope Sender
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
196
Using Message Filters to Enforce Email Policies
Action Variables
Variable Syntax Description
Returns all Envelope Recipients (Envelope To, )
of the message. $EnvelopeRecipients
Envelope Recipients
Returns a comma-separated list of the message’s attachments’
filenames. $filenames
File Names
Returns a comma-separated list of the message’s attachments
file sizes. $filesizes
File Sizes
Returns a comma-separated list of the message's attachments'
file types. $filetypes
File Types
Returns the name of the filter being processed.
$FilterName
Filter Name
Returns the current time and date, as would be found in the
Received: line of an email message, using GMT.
$GMTimeStamp
GMTimeStamp
Returns the name of the sender group the sender matched on
when injecting the message. If the sender group had no name,
the string “ >Unknown< ” is inserted.
$Group
HAT Group Name
Returns the content that triggered a scanning filter rule
(including filter rules such as body-contains and content
dictionaries).
$MatchedContent
Matched Content
Returns the name of the HAT policy applied to the sender
when injecting the message. If no predefined policy name was
used, the string “ >Unknown< ” is inserted.
$Policy
Mail Flow Policy
Returnsthe value of the quoted header, if the original message
contains a matching header. Note that double quotes may also
be used.
$Header['string
']
Header
Returns the hostname of the email gateway.
$Hostname
Hostname
Returns the Message ID, or “MID” used internally to identify
the message. Not to be confused with the RFC822
“Message-Id” value (use $Header to retrieve that).
$MID
Internal Message ID
Replaced by the nickname of the listener that received the
message. $RecvListener
Receiving Listener
Returns the nickname of the interface that received the
message. $RecvInt
Receiving Interface
Returns the IP address of the system that sent the message to
the email gateway.
$RemoteIP
Remote IP Address
Returns the hostname of the system that sent the message to
the email gateway.
$remotehost
Remote Host Address
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
197
Using Message Filters to Enforce Email Policies
Action Variables
Variable Syntax Description
Returns the IP Reputation score of the sender. If there is no
reputation score, it is replaced with “ None ”. $Reputation
IP Reputation Score
Returns the subject of the message.
$Subject
Subject
Returns the current time, in the local time zone.
$Time
Time
Returns the current time and date, as would be found in the
Received: line of an email message, in the local time zone. $Timestamp
Timestamp
Related Topics
• Non-ASCII Character Sets and Message Filter Action Variables, on page 198
Non-ASCII Character Sets and Message Filter Action Variables
The system supportsthe expansion of action variablesthat contain ISO-2022 style character codings(the style
of encoding used in header values) and also supportsinternational text in the notification. These will be merged
together to generate a notification that will then be sent as a UTF-8, quoted printable message.
Matched Content Visibility
When you configure a quarantine action for messages that match Attachment Content conditions, Message
Body or Attachment conditions, Message body conditions, or the Attachment content conditions, you can
view the matched content in the quarantined message. When you display the message body, the matched
content is highlighted in yellow. You can also use the $MatchedContent action variable to include the matched
content in the message subject.
When you view messages in the local quarantine that have triggered message or content filter rules, the GUI
may display content that did not actually trigger the filter action (along with content that triggered the filter
action). The GUI display should be used as a guideline for locating content matches, but does not necessarily
reflect an exact list of content matches. This occurs because the GUI uses less strict content matching logic
than is used in the filters. This issue applies only to the highlighting in the message body. The table that lists
the matched strings in each part of the message along with the associated filter rule is correct.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
198
Using Message Filters to Enforce Email Policies
Non-ASCII Character Sets and Message Filter Action Variables
Figure 17: Matched Content Viewed in the Policy Quarantine
Description and Examples of Message Filter Actions
The following section describes the various message filter actions in use and their examples.
• Skip Remaining Message Filters Action, on page 200
• Drop Action, on page 200
• Bounce Action, on page 201
• Encrypt Action, on page 201
• Notify and Notify-Copy Actions, on page 202
• Blind Carbon Copy Actions, on page 204
• Quarantine and Duplicate Actions, on page 206
• Alter Recipient Action, on page 207
• Alter Delivery Host Action, on page 207
• Alter Source Host (Virtual Gateway address) Action, on page 208
• Archive Action, on page 208
• Strip Header Action, on page 209
• Insert Header Action , on page 209
• Edit Header Text Action, on page 210
• Edit Body Text Action, on page 210
• HTML Convert Action, on page 211
• Bounce Profile Action, on page 212
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
199
Using Message Filters to Enforce Email Policies
Description and Examples of Message Filter Actions
• Bypass Anti-Spam System Action, on page 212
• Bypassing Graymail Actions, on page 213
• Bypass Anti-Virus System Action, on page 213
• Bypass File Reputation Filtering and File Analysis System Actions, on page 214
• Bypass Anti-Virus System Action, on page 213
• Add Message Tag Action, on page 214
• Add Log Entry Action, on page 215
• URL Reputation Actions , on page 215
• URL Category Actions , on page 217
• No Operation, on page 218
• Forged Email Detection Action, on page 218
Skip Remaining Message Filters Action
The skip-filters action ensures that the message skips any further processing from message filters and
continues through the email pipeline. The message that incurs the skip-filters action will be subject to
anti-spam scanning and anti-virus scanning, if it is available on the email gateway. The skip-filters action
is the default final action for message filters.
The following filter notifies customercare@example.com and then immediately delivers any message addressed
to boss@admin .
bossFilter:
if(rcpt-to == 'boss@admin$')
{
notify('customercare@example.com');
skip-filters();
}
Drop Action
The drop action discards a message without any delivery. The message is not returned to the sender, not sent
to the intended recipient, nor processed further in any way.
The following filter first notifies george@whitehouse.gov and then discards any message where the subject
begins with SPAM .
spamFilter:
if(subject == '^SPAM.*')
{
notify('george@whitehouse.gov');
drop();
}
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
200
Using Message Filters to Enforce Email Policies
Skip Remaining Message Filters Action
Bounce Action
The bounce action sends the message back to the sender (Envelope Sender) without further processing.
The following filter returns (bounces) any message from an email address that ends in @yahoo\\.com .
yahooFilter:
if(mail-from == '@yahoo\\.com$')
{
bounce();
}
Encrypt Action
The encrypt action uses the configured encryption profile to deliver encrypted messages to email recipients.
The following filter encrypts messages if they contain the term [encrypt] in the subject:
Encrypt_Filter:
if ( subject == '\\[encrypt\\]' )
{
encrypt('My_Encryption_Profile');
}
You must have a Cisco Encryption Appliance in your network or a hosted key service configured to use
this filter action. You must also have configured an encryption profile to use this filter action.
Note
S/MIME Sign or Encrypt on Delivery Action
The smime-gateway-deferred action performs an S/MIME signing or encryption of the message using the
specified sending profile during the delivery. This means that the message continues to the next stage of
processing, and when all processing is complete, the message is signed or encrypted and delivered.
The following filter performs an S/MIME encryption on all the outgoing messages from a particular sender
during the delivery:
smime-deferred:if(mail-from == "user@example.com"){smime-gateway-deferred("smime-encrypt");}
S/MIME Sign or Encrypt Action
The smime-gateway action performs an S/MIME signing or encryption using the specified sending profile
and delivers the message, skipping any further processing.
The following filter performs an S/MIME signing on all the outgoing messages from a particular sender and
delivers them immediately:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
201
Using Message Filters to Enforce Email Policies
Bounce Action
smime-deliver-now:if(mail-from == "user@example.com"){smime-gateway("smime-sign");}
Notify and Notify-Copy Actions
The notify and notify-copy actions send an email summary of the message to the specified email address.
The notify-copy action also sends a copy of the original message, similar to the bcc-scan action. The
notification summary contains:
• The contents of the Envelope Sender and Envelope Recipient ( MAIL FROM and RCPT TO ) directives from
the mail transfer protocol conversation for the message.
• The message headers of the message.
• The name of the message filter that matched the message.
You can specify the recipient, subject line, from address, and notification template. the following filter selects
messages with sizes larger than 4 megabytes, sends a notification email of each matching message to
admin@example.com , and finally discards the message:
bigFilter:
if(body-size >= 4M)
{
notify('admin@example.com');
drop();
}
Or
bigFilterCopy:
if(body-size >= 4M)
{
notify-copy('admin@example.com');
drop();
}
The Envelope Recipient parameter may be any valid email address (for example, admin@example.com in the
example above), or alternatively, may be the action variable $EnvelopeRecipients (see Action Variables,
on page 196), which specifies all Envelope Recipients of the message:
bigFilter:
if(body-size >= 4M)
{
notify('$EnvelopeRecipients');
drop();
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
202
Using Message Filters to Enforce Email Policies
Notify and Notify-Copy Actions
}
The notify action also supports up to three additional, optional argumentsthat allow you to specify the subject
header, the Envelope Sender, and a pre-defined text resource to use for the notification message. These
parameters must appear in order, so a subject must be provided if the Envelope Sender is to be set or a
notification template specified.
The subject parameter may contain action variables (see Action Variables, on page 196) that will be replaced
with data from the original message. By default, the subject is set to Message Notification .
The Envelope Sender parameter may be any valid email address, or alternatively, may be the action variable
$EnvelopeFrom , which will set the return path of the message to the same as the original message
The notification template parameter is the name of an existing notification template. For more information,
see Notifications, on page 225.
This example extendsthe previous one, but changesthe subject to look like [bigFilter] Message too large
, sets the return path to be the original sender, and uses the “message.too.large” template:
bigFilter:
if (body-size >= 4M)
{
notify('admin@example.com', '[$FilterName] Message too large',
'$EnvelopeFrom', 'message.too.large');
drop();
}
You can also use the $MatchedContent action variable to notify senders or administrators that a content filter
was triggered. The $MatchedContent action variable displays the content that triggered the filter.For example,
the following filter sends a notification to an administrator if the email contains ABA account information.
ABA_filter:
if (body-contains ('*aba')){
notify('admin@example.com','[$MatchedContent]Account Information Displayed');
}
Related Topics
• Notification Template, on page 203
Notification Template
You can use the Text Resources page or the textconfig CLI command to configure custom notification
templates as text resources for use with the notify() and notify-copy() actions. If you do not create a
custom notification template, a default template is used. The default template includes message headers, but
the custom notification template does not include message headers by default. To include message headers
in the custom notification, include the $AllHeaders action variable.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
203
Using Message Filters to Enforce Email Policies
Notification Template
For more information, see the “Text Resources” chapter.
In the following example, when a large message triggersthe filtershown below, an email issent to the intended
recipients explaining that the message was too large:
bigFilter:
if (body-size >= 4M)
{
notify('$EnvelopeRecipients', '[$FilterName] Message too large',
'$EnvelopeFrom', 'message.too.large');
drop();
}
Blind Carbon Copy Actions
The bcc action sends an anonymous copy of the message to a specified recipient. This is sometimes referred
to as message replication. Because no mention of the copy is made in the original message and the anonymous
copy will never successfully bounce back to the recipient, the original sender and recipients of the message
will not necessarily know that the copy was sent.
The following filter sends a blind carbon copy to mom@home.org for each message addressed to sue from
johnny :
momFilter:
if ((mail-from == '^johnny$') and (rcpt-to == '^sue$'))
{
bcc('mom@home.org');
}
The bcc action also supports up to three additional, optional arguments that allow you to specify the subject
header and Envelope Sender to use on the copied message, as well as an alt-mailhost. These parameters must
appear in order, so a subject must be provided if the Envelope Sender is to be set.
The subject parameter may contain action variables (see Action Variables, on page 196) that will be replaced
with data from the original message. By default, thisisset to the subject of the original message (the equivalent
of $Subject ).
The Envelope Sender parameter may be any valid email address, or alternatively, may be the action variable
$EnvelopeFrom , which will set the return path of the message to the same as the original message.
This example expands the previous one by setting the subject to be [Bcc] , and the
return path set to badbounce@home.org :
momFilter:
if ((mail-from == '^johnny$') and (rcpt-to == '^sue$'))
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
204
Using Message Filters to Enforce Email Policies
Blind Carbon Copy Actions
{
bcc('mom@home.org', '[Bcc] $Subject', 'badbounce@home.org');
}
The alt-mailhost is the fourth parameter:
momFilterAltM:
if ((mail-from == '^johnny$') and (rcpt-to == '^sue$'))
{
bcc('mom@home.org', '[Bcc] $Subject', '$EnvelopeFrom',
'momaltmailserver.example.com');
}
The Bcc() , notify() , and bounce() filter actions can allow viruses through your network. The blind
carbon copy filter action creates a new message which is a full copy of the original message. The notify
filter action creates a new message that contains the headers of the original message. While it is rare,
headers can contain viruses. The bounce filter action creates a new message which contains the first 10k
of the original message. In all three cases, the new message will not be processed by anti-virus or
anti-spam scanning.
Caution
To send to multiple hosts, you can call the bcc() action multiple times:
multiplealthosts:
if (recv-listener == "IncomingMail")
{
insert-header('X-ORIGINAL-IP', '$remote_ip');
bcc ('$EnvelopeRecipients', '$Subject', '$EnvelopeFrom', '10.2.3.4');
bcc ('$EnvelopeRecipients', '$Subject', '$EnvelopeFrom', '10.2.3.5');
bcc ('$EnvelopeRecipients', '$Subject', '$EnvelopeFrom', '10.2.3.6');
}
Related Topics
• BCC and Scan Mail Sent to Competitors, on page 245
The bcc-scan() Action
The bcc-scan action functions similarly to the bcc action, except that the message that is sent is treated as a
brand new message and is therefore sent through the entire email pipeline.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
205
Using Message Filters to Enforce Email Policies
The bcc-scan() Action
momFilter:
if ((mail-from == '^johnny$') and (rcpt-to == '^sue$'))
{
bcc-scan('mom@home.org');
}
Quarantine and Duplicate Actions
The quarantine(‘quarantine_name’) action flags a message for inclusion into a queue called a quarantine.
For more information about quarantines, see the “Quarantines” chapter. The duplicate-quarantine (
‘quarantine_name’) action immediately places a copy of the message into the specified quarantine and the
original message continues through the email pipeline. The quarantine name is case sensitive.
When flagged for quarantine, the message continues through the rest of the email pipeline. When the message
reaches the end of the pipeline, if the message has been flagged for one or more quarantines then it enters
those queues. Otherwise, it is delivered. Note that if the message does not reach the end of the pipeline, it is
not placed in a quarantine.
Accordingly, if a message filter contains a quarantine() action followed by a bounce() or drop() action,
the message will not enter the quarantine, since the final action prevents the message from reaching the end
of the pipeline. The same is true if a message filter includes a quarantine action, but the message is later
dropped by anti-spam or anti-virusscanning, or a content filter. The skip-filters() action causesthe message
to skip any remaining message filters, but content filters may still apply. For example, if a message filter flags
a message for quarantine and also includes the skip-filters() action, the message skips all remaining
message filters and will be quarantined, unless another action in the email pipeline causes the message to be
dropped.
In the following example, the message is sent to the Policy quarantine if the message contains any words
within the dictionary named “secret_word.”
quarantine_codenames:
if (dictionary-match ('secret_words'))
{
quarantine('Policy');
}
In the following example, suppose a company has an official policy to drop all .mp3 file attachments. If an
inbound message has a .mp3 attachment, the attachment is stripped and the remaining message (original body
and remaining attachments) is sent to the original recipient. Another copy of the original message with all
attachments will be quarantined (sent to the Policy quarantine). If it is necessary to receive the blocked
attachment(s), the original recipient would then request that the message be released from the quarantine.
strip_all_mp3s:
if (attachment-filename == '(?i)\\.mp3$') {
duplicate-quarantine('Policy');
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
206
Using Message Filters to Enforce Email Policies
Quarantine and Duplicate Actions
drop-attachments-by-name('(?i)\\.mp3$');
}
Alter Recipient Action
The alt-rcpt-to action changes all recipients of the message to the specified recipient upon delivery.
The following filter sends all messages with an Envelope Recipient address that contain .freelist.com and
changes all recipients for the message to system-lists@myhost.com :
freelistFilter:
if(rcpt-to == '\\.freelist\\.com$')
{
alt-rcpt-to('system-lists@myhost.com');
}
Alter Delivery Host Action
The alt-mailhost action changes the IP address for all recipients of the selected message to the numeric IP
address or hostname given.
The alt-mailhost action prevents a message classified as spam by an anti-spam scanning engine from
being quarantined. The alt-mailhost action overridesthe quarantine action and sendsit to the specified
mail host.
Note
The following filter redirects recipient addresses to the host example.com for all messages.
localRedirectFilter:
if(true)
{
alt-mailhost('example.com');
}
Thus, a message directed to joe@anywhere.com is delivered to the mailhost at example.com with the Envelope
To address joe@anywhere.com . Note that any additional routing information specified by the smtproutes
command still affects the routing of the message. (See Routing Email for Local Domains, on page 697.)
The alt-mailhost action does not support specifying a port number. To do this, add an SMTP route
instead.
Note
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
207
Using Message Filters to Enforce Email Policies
Alter Recipient Action
The following filter redirects all messages to 192.168.12.5 :
local2Filter:
if(true)
{
alt-mailhost('192.168.12.5');
}
Alter Source Host (Virtual Gateway address) Action
The alt-src-host action changes the source host for the message to the source specified. The source host
consists of the IP interface or group of IP interfaces that the messages should be delivered from. If a group
of IP interfaces is selected, the system round-robins through all of the IP interfaces within the group as the
source interface when delivering email. In essence, this allows multiple Virtual Gateway addresses to be
created on a single email gateway. For more information, see Configuring Mail Gateways for all Hosted
Domains Using Virtual Gateway™ Technology, on page 749.
The IP interface may only be changed to an IP interface or interface group currently configured in the system.
the following filter creates a Virtual Gateway using the outbound (delivery) IP interface outbound2 for all
messages received from a remote host with the IP address 1.2.3.4 .
externalFilter:
if(remote-ip == '1.2.3.4')
{
alt-src-host('outbound2');
}
The following filter uses the IP interface group Group1 for all messages received from a remote host with the
IP address 1.2.3.4 .
groupFilter:
if(remote-ip == '1.2.3.4')
{
alt-src-host('Group1');
}
Archive Action
The archive action saves a copy of the original message, including all message headers and recipients into
an mbox-format file on the email gateway. The action takes a parameter that is the name of the log file in
which to save the message. The system automatically creates a log subscription with the specified filename
when you create the filter, or you can also specify an existing filter log file. After the filter and the filter log
file are created, the filter log options may then be edited with the filters -> logconfig subcommand.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
208
Using Message Filters to Enforce Email Policies
Alter Source Host (Virtual Gateway address) Action
The logconfig command is a subcommand of filters .See Using the CLI to Manage MessageFilters,
on page 229 for a full description of how to use this subcommand.
Note
The mbox format is a standard UNIX mailbox format, and there are many utilities available to make viewing
the messages easier. Most UNIX systems allow you to type “ mail -f mbox.filename ” to view the files. The
mbox format is in plain text, so you can use a simple text editor to view the contents of the messages.
In the following example, a copy of the message is saved to a log named joesmith if the Envelope Sender
matches joesmith@yourdomain.com :
logJoeSmithFilter:
if(mail-from == '^joesmith@yourdomain\\.com$')
{
archive('joesmith');
}
Strip Header Action
The strip-header action examines the message for a particular header and removes those lines from the
message before delivering it. When there are multiple headers, all instances of the header are removed (for
example, the “Received:” header.)
In the following example, all messages have the header X-DeleteMe removed before transmission:
stripXDeleteMeFilter:
if (true)
{
strip-header('X-DeleteMe');
}
When working with headers, remember that the current value of the header includes changes made during
processing (such as with filter actions that add, remove, or modify message headings). See Message Header
Rules and Evaluation, on page 135 for more information.
Insert Header Action
The insert-header action inserts a new header into a message. AsyncOS does not verify the compliance to
standards of the header you insert; you are responsible for ensuring that the resulting message complies with
Internet standards for email.
The following example inserts a header named X-Company with the value set to My Company Name if the header
is not already found in the message:
addXCompanyFilter:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
209
Using Message Filters to Enforce Email Policies
Strip Header Action
if (not header('X-Company'))
{
insert-header('X-Company', 'My Company Name');
}
The insert-header() action allowsthe use of non-ASCII charactersin the text of the header, while restricting
the header name to be ASCII (to comply with standards). The transport encoding will be quoted-printable to
maximize the readability.
The strip-headers and insert-header actions can be used in combination to rewrite any message
headers in the original message. In some case, it is valid to have multiple instances of the same header
(for example, Received: ) where in other cases, multiple instances of the same header could confuse
a MUA (for example, multiple Subject: headers.)
Note
When working with headers, remember that the current value of the header includes changes made during
processing (such as with filter actions that add, remove, or modify message headings). See Message Header
Rules and Evaluation, on page 135 for more information.
Edit Header Text Action
The edit-header-text action allows you to rewrite specified header text using the regular expression
substitution function. The filter matches the regular expression within the header and replaces it with a regular
expression you specify.
For example, an email contains the following subject header:
Subject: SCAN Marketing Messages
The following filter removes the “SCAN” text, and leaves the text, “Marketing Messages”, in the header:
Remove_SCAN: if true
{
edit-header-text (‘Subject’, ‘^SCAN\\s*’,’’);
}
After the filter processes the message, it returns the following header:
Subject: Marketing Messages
Edit Body Text Action
The edit-body-text() message filter is similar to the Edit-Header-Text() filter, but it operates across the
body of the message instead of one of the headers.
The edit-body-text() message filter uses the following syntax where the first parameter is the regular
expression to search for and the second parameter is the replacement text:
Example: if true {
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
210
Using Message Filters to Enforce Email Policies
Edit Header Text Action
edit-body-text("parameter 1","parameter 2");
}
The edit-body-text() message filter only works on the message body parts. For more information about
whether a given MIME part is considered a message “body” or a message “attachment”, see Message Bodies
vs. Message Attachments, on page 135.
The following example shows a URL removed from a message and replaced with the text, ‘URL REMOVED’:
URL_Replaced: if true {
edit-body-text("(?i)(?:https?|ftp)://[^\\s\">]+", "URL REMOVED");
}
The following example shows a social security number removed from the body of a message and replaced
with the text, “XXX-XX-XXXX’:
ssn: if true {
edit-body-text("(?!000)(?:[0-6]\\d{2}|7(?:[0-6]\\d|7[012]))([
-]?)(?!00)\\d\\d\\1(?!0000)\\d{4}",
"XXX-XX-XXXX");
}
Note You cannot use smart identifiers with the edit-body-text() filter at this time.
HTML Convert Action
While RFC 2822 defines a text format for email messages, there are extensions (such as MIME) to provide
the transport of other content within an RFC 2822 message. AsyncOS can now use the html-convert()
message filter to convert HTML to plain text using the following syntax:
Convert_HTML_Filter:
if (true)
{
html-convert();
}
The Cisco message filters make a determination on whether a given MIME part is considered a message
“body” or a message “attachment”. The html-convert() filter only works on the message body parts. For
more information about message bodies and attachments, see Message Bodies vs. Message Attachments, on
page 135.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
211
Using Message Filters to Enforce Email Policies
HTML Convert Action
Depending on the format, the html-convert() filter uses different methods to strip the HTML from within
the documents.
If the message is plain text (text/plain), the message passes through the filter unchanged. If the message is a
simple HTML message (text/html), all the HTML tags are stripped out of the message and the resulting body
replaces the HTML message. The lines are not reformatted, and the HTML is not rendered in plain text. If
the structure is MIME (with a multipart/alternative structure) and it contains both a text/plain part and text/html
part with the same content, the filter removes the text/html part of the message and leaves the text/plain part
of the message. For all other MIME types (such as multipart/mixed), all HTML body parts are stripped of
their tags and reinserted into the message.
When encountered in a message filter, the html-convert() filter action only tagsthe message to be processed
but does not immediately make a change to the message structure. The changesto the message only take effect
after all processing is complete. This allows the other filter actions to process the original message body prior
to modification.
Bounce Profile Action
The bounce-profile action assigns a previously-configured bounce profile to the message. (See Directing
Bounced Email, on page 726.) If the message is undeliverable, the bounce options configured via the bounce
profile are used. Using this feature overrides the bounce profile assigned to the message from the listener’s
configuration (if one is assigned).
The following filter example assigns the bounce profile “fastbounce” to all email sent with the header
X-Bounce-Profile: fastbounce :
fastbounce:
if (header ('X-Bounce-Profile') == 'fastbounce') {
bounce-profile ('fastbounce');
}
Bypass Anti-Spam System Action
The skip-spamcheck action instructs the system to allow the message to bypass any content-based anti-spam
filtering configured on the system. This action does nothing to the message if no content-based anti-spam
filtering is configured, or if the message was never flagged to be scanned for spam in the first place.
The following example allows messages that have a high IP Reputation Score to bypass the content-based
anti-spam filtering feature:
allowed_list_on_reputation:
if (reputation > 7.5)
{
skip-spamcheck();
}
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
212
Using Message Filters to Enforce Email Policies
Bounce Profile Action
Related Topics
• How Incoming Relays Affect Functionality , on page 418
• Protecting Email Gateway-Generated Messages From the Spam Filter, on page 405
Bypassing Graymail Actions
If you do not want to apply graymail actions on certain messages, you can bypass them using the following
message filter actions:
Message Filter Action Description
skip-marketingcheck Bypass actions on marketing emails
skip-socialcheck Bypass actions on social network emails
skip-bulkcheck Bypass actions on bulk emails
The following example specifiesthat messagesreceived on the listener “private_listener” must bypass graymail
actions on social network emails.
internal_mail_is_safe:
if (recv-listener == 'private_listener')
{
skip-socialcheck();
}
Bypass Anti-Virus System Action
The skip-viruscheck action instructs the system to allow the message to bypass any virus protection system
configured on the system. This action does nothing to the message if there is no anti-virus system configured,
or if the message was never flagged to be scanned for viruses in the first place.
The following example specifies that messages received on the listener “private_listener” should bypass the
anti-spam and the anti-virus systems.
internal_mail_is_safe:
if (recv-listener == 'private_listener')
{
skip-spamcheck();
skip-viruscheck();
}
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
213
Using Message Filters to Enforce Email Policies
Bypassing Graymail Actions
Bypass File Reputation Filtering and File Analysis System Actions
The skip-ampcheck action instructs the system to allow message to bypass File Reputation Filtering and File
Analysis configured on the system. This action does nothing to the message if File Reputation Filtering and
File Analysis is not configured, or if the message was never flagged to be scanned forFile ReputationFiltering
and File Analysis in the first place.
The following example specifiesthat messages withPDFattachmentsshould bypassFile ReputationFiltering
and File Analysis.
skip_amp_scan:
if (attachment-filetype == 'pdf')
{
skip-ampcheck();
}
Bypass Outbreak Filter Scanning Action
The skip-vofcheck action instructs the system to allow the message to bypass the Outbreak Filters scanning.
This action does nothing to the message if Outbreak Filters scanning is not enabled.
The following example specifies that messages received on the listener “private_listener” should bypass
Outbreak Filter scanning.
internal_mail_is_safe:
if (recv-listener == 'private_listener') Outbreak Filters
{
skip-vofcheck();
}
Add Message Tag Action
The tag-message action inserts a custom term into an outgoing message to use with DLP policy filtering.
You can configure a DLP policy to limit scanning to messages with the message tag. The message tag is not
visible to recipients. The tag name can contain any combination of characters from the set [a-zA-Z0-9_-.]
.
For information on configuring a DLP policy to filter messages, see the “Data Loss Prevention” chapter.
The following example inserts a message tag into a message with “[Encrypt]” in the subject. You can then
create a DLP policy that will encrypt messages with this message tag before delivering them if Cisco Email
Encryption is available:
Tag_Message:
if (subject == '^\\[Encrypt\\]')
{
tag-message('Encrypt-And-Deliver');
}
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
214
Using Message Filters to Enforce Email Policies
Bypass File Reputation Filtering and File Analysis System Actions
Add Log Entry Action
The log-entry action inserts customized text into the Text Mail logs at the INFO level. The text can include
action variables. You can use this action to insert useful text for debugging purposes and information on why
a message filter performed a certain action. The log entry also appears in message tracking.
The following example inserts a log entry explaining that message was bounced because it possibly contained
confidential company information:
CompanyConfidential:
if (body-contains('Company Confidential'))
{
log-entry('Message may have contained confidential information.');
bounce();
}
URL Reputation Actions
Use the reputation score of URLs in messages to modify the URLs or their behavior. For important details
and examples,see Modifying URLsin Messages: Using URL Reputation and URL Category ActionsinFilters
, on page 456 in Protecting Against Malicious or Undesirable URLs, on page 447
No rule is needed with these actions.
In URL Reputation actions:
• msg_filter_name : is the name of this message filter.
• min_score and max_score are the minimum and maximum scoresin the range for which the action should
apply. The applicable range includes the values that you specify.
Minimum and maximum scores must be between -10.0 and 10.0 .
• To specify an action when the reputation service does not provide a score, use the corresponding
"no-reputation" version of the action, as shown in the following subsections.
• allowedlist isthe name of a defined URL list (via the urllistconfig command.)Specifying an allowed
list is optional.
• In place of Preserve_signed , enter 0 or 1:
• 1 - Apply this action to unsigned messages only
• 0 - Apply this action to all messages
If you do not specify a preserve_signed value, the action is applied to unsigned messages only.
Related Topics
• Replace URL with Text, Based on URL Reputation, on page 216
• Defang URL, Based on URL Reputation, on page 216
• Redirect URL to Cisco Security Proxy, Based on URL Reputation , on page 216
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
215
Using Message Filters to Enforce Email Policies
Add Log Entry Action
Replace URL with Text, Based on URL Reputation
To take action when the reputation service provides a score:
Use the url-reputation-replace action.
The syntax of a filter using the url-reputation-replace action is:
:
if
{url-reputation-replace(, ,’’, '< allowedlist> ', <
Preserve_signed> );}
Where replace_text is the text with which to replace the URL.
To take action when the reputation service does not provide a score:
Use the url-no-reputation-replace action.
The syntax of a filter using the url-no-reputation-replace action is:
:
if
{url-no-reputation-replace ('', '', );}
Where replace_text is the text with which to replace the URL.
Defang URL, Based on URL Reputation
To take action when the reputation service provides a score:
Use the url-reputation-defang action.
The syntax of a filter using the url-reputation-defang action is:
:
if
{url-reputation-defang (, , '', );}
To take action when the reputation service does not provide a score:
Use the url-no-reputation-defang action.
The syntax of a filter using the url-no-reputation-defang action is:
:
if
{url-no-reputation-defang ('', );}
Redirect URL to Cisco Security Proxy, Based on URL Reputation
To take action when the reputation service provides a score:
Use the url-reputation-proxy-redirect action.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
216
Using Message Filters to Enforce Email Policies
Replace URL with Text, Based on URL Reputation
The syntax of a filter using the url-reputation-proxy-redirect action is:
:
if
{url-reputation-proxy-redirect (, , '',
);}
To take action when the reputation service does not provide a score:
Use the url-no-reputation-proxy-redirect action.
The syntax of a filter using the url-no-reputation-proxy-redirect action is:
:
if
{url-no-reputation-proxy-redirect ('', );}
URL Category Actions
Use the categories of URLs in messages to modify the URLs or their behavior. For important details, see
Modifying URLs in Messages: Using URL Reputation and URL Category Actions in Filters , on page 456 in
Protecting Against Malicious or Undesirable URLs, on page 447
No rule is needed with these actions.
In all URL Category actions:
• msg_filter_name : is the name of the message filter.
• category-name isthe URL category.Separate multiple categories with commas. To obtain correct category
names, look at a URL Category condition or action in a Content Filter. For descriptions and examples
of the categories, see About URL Categories, on page 466.
• url_allowed_list is the name of a defined URL list (via the urllistconfig command.)
• unsigned-only : Enter 0 or 1.
• 1 - Apply this action to unsigned messages only
• 0 - Apply this action to all messages
Related Topics
• Replace URL with Text, Based on URL Category , on page 217
• Defang URL, Based on URL Category , on page 218
• Redirect URL to Cisco Security Proxy, Based on URL Category , on page 218
Replace URL with Text, Based on URL Category
The syntax of a filter using the url-category-replace action is
:
if
url-category-replace([‘’,’’,...,
‘’],’’, ’’, );
Where replacement-text is the text that you want to use to replace the URL.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
217
Using Message Filters to Enforce Email Policies
URL Category Actions
Defang URL, Based on URL Category
The syntax of a filter using the url-category-defang action is:
:
if
url-category-defang([‘’,’’,..., ‘’],
’’, );
Redirect URL to Cisco Security Proxy, Based on URL Category
The syntax of a filter using the url-category-proxy-redirect action is:
:
if
url-category-proxy-redirect([‘’,’’,..., ‘’],
’’, );
No Operation
The No Operation action performs a no-op, or no operation. You can use this action in a message filter if you
do not want to use any of the other actions such as Notify, Quarantine, or Drop. For example, to understand
the behavior of a new message filter that you created, you can use the No Operation action. After the message
filter is operational, you can monitor the behavior of the new message filter using the Message Filters report
page, and fine-tune the filter to match your requirements.
The following example shows how to use No Operation action in a message filter.
new_filter_test: if header-repeats ('subject', X, 'incoming') {no-op();}
Forged Email Detection Action
Strips the From: header from the forged message and replaces it with the Envelope Sender.
The following message filter compares the From: header in the message with the terms in dictionary and if
the matching score of a term in the content dictionary is greater than or equal to 70, the message filter strips
the From: header and replaces it with the Envelope Sender.
FED_CF: if (forged-email-detection("Execs", 70)) { fed("from", ""); }
Attachment Scanning
The email gateway uses Content Scanner to strip attachments from messages that are inconsistent with your
corporate policies, while still retaining the ability to deliver the original message.
You can filter attachments based on their specific file type, fingerprint, or based on the content of the
attachment. Using the fingerprint to determine the exact type of attachment prevents users from renaming a
malicious attachment extension (for example, .exe ) to a more commonly used extension (for example, .doc
) in the hope that the renamed file would bypass attachment filters.
When you scan attachments for content, the Content Scanner extracts data from attachment files to search for
the regular expression. It examines both data and metadata in the attachment file. If you scan an Excel or
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
218
Using Message Filters to Enforce Email Policies
Defang URL, Based on URL Category
Word document, the attachment scanning engine can also detect the following types of embedded files: .exe,
.dll, .bmp, .tiff, .pcx, .gif, .jpeg, .png, and Photoshop images.
The Content Scanner in your email gateway can perform content scanning on the following archive file
formats:
• ACE Archive
• ALZ Archive
• Apple Disk Image
• ARJ Archive
• bzip2 Archive
• EGG Archive
• GNU Zip
• ISO Disk Image
• Java Archive
• LZH
• Microsoft Cabinet Archive
• RAR Multi-Part File
• RedHat Package Manager Archive
• Roshal Archive (RAR)
• Unix AR Archive
• UNIX Compress Archive
• UNIX cpio
• UNIX Tar
• XZ Archive
• Zip Archive
• 7-Zip
• ARC
You can view the details of the Content Scanner-related files using the Security Services > Scan
Behavior page in web interface or using the contentscannerstatus command in CLI. These files are
automatically updated using update server. If you want to manually update these files, see Configuring
Scan Behavior, on page 251.
Note
Related Topics
• Message Filters for Scanning Attachments, on page 220
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
219
Using Message Filters to Enforce Email Policies
Attachment Scanning
• Image Analysis, on page 221
• Configuring the Image Analysis Scanning Engine, on page 221
• Configuring the Message Filter to Perform Actions Based on Image Analysis Results, on page 223
• Notifications, on page 225
• Examples of Attachment Scanning Message Filters, on page 225
Message Filters for Scanning Attachments
The message filter actions described in the following table are non-final actions. (Attachments are dropped
and the message processing continues.)
The optional comment is text that is added to the message, much like a footer, and it can contain Message
Filter Action Variables (see Examples of Attachment Scanning Message Filters, on page 225).
Table 27: Message Filter Actions for Attachment Filtering
Action Syntax Description
Drops all attachments on messages that have a
filename that matches the given regular
expression. Archive file attachments (zip, tar)
will be dropped if they contain a file that
matches.See Examples of AttachmentScanning
Message Filters, on page 225.
drop-attachments-by-name
([, ])
Drop Attachments by
Name
Drops all attachments on messages that have a
MIME type, determined by either the given
MIME type or the file extension. Archive file
attachments (zip, tar) will be dropped if they
contain a file that matches.
drop-attachments-by-type
([, ])
Drop Attachments by
Type
Drops all attachments on messages that match
the given “fingerprint” of the file. Archive file
attachments (zip, tar) will be dropped if they
contain a file that matches.
drop-attachments-by-filetype
([, ])
Drop Attachments by File
Type
Drops all attachments on messages that have a
given MIME type. This action does not attempt
to ascertain the MIME type by file extension
and so it also does not examine the contents of
archives.
drop-attachments-by-mimetype
([, ])
Drop Attachments by
MIME Type
Drops all attachments on the message that, in
raw encoded form, are equal to or greater than
the size (in bytes) given. Note that for archive
or compressed files, this action does not
examine the uncompressed size, but rather the
size of the actual attachment itself.
drop-attachments-by-size
([, ])
Drop Attachments bySize
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
220
Using Message Filters to Enforce Email Policies
Message Filters for Scanning Attachments
Action Syntax Description
Drops all attachments on message that contain
the regular expression. Archive files (zip, tar)
will be dropped if any of the files they contain
match the regular expression pattern.
drop-attachments-where-contains
([, ])
Attachment Scanning
This filter action strips attachments based on
matches to dictionary terms. If the terms in the
MIME parts considered to be an attachment
match a dictionary term (and the user-defined
threshold is met), the attachment is stripped
from the email. See Examples of Attachment
Scanning Message Filters, on page 225.
drop-attachments-where-dictionary
-match()
Drop Attachments by
Dictionary Matches
Image Analysis
Some messages contain images that you may wish to scan for inappropriate content. Use the image analysis
engine to search for inappropriate content in email.
The image analyzer uses algorithmsthat measure image attributesto determine the likelihood of inappropriate
content. These algorithms can detect, for example, the shapes and color palette in an image. The analyzer can
identify the type of shapes in an image and the percentage of any flesh-tone colors relative to the other colors
in the image to help identify inappropriate content. Images with a high percentage of flesh-tone colors are
more likely to be inappropriate. The algorithms do not discriminate in any way.
Image analysis is not designed to supplement or replace your Anti-Virus and Anti-Spam scanning engines.
Its purpose is to enforce acceptable use by identifying inappropriate content in email. Use the image analysis
scanning engine to quarantine and analyze mail and to detect trends.
After you configure your email gateway for image analysis, you can use image analysis filter rules to perform
actions on suspect or inappropriate emails. Image scanning allows you to scan the following types of attached
files: BMP, JPG, TIF, PNG, GIF, TGA, and PCX.
When you scan image attachments, Cisco fingerprinting determines the file type, and the image analyzer uses
algorithms to analyze the image content. If the image is embedded in another file, the ContentScanner extracts
the file. The image analysis verdict is computed on the message as a whole. If the message does not include
any images, the message receives a score of “0” which mapsto a “clean” verdict. Therefore, a message without
any images will receive a "clean" verdict.
Configuring the Image Analysis Scanning Engine
To enable image analysis from the GUI:
Procedure
Step 1 Go to Security Services > IronPort Image Analysis.
Step 2 Click Enable.
A success message displays, and the verdict settings display.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
221
Using Message Filters to Enforce Email Policies
Image Analysis
The image analysis filter rule allows you to determine the actions to take based on the following verdicts:
• Clean: The image isfree of inappropriate content. The image analysis verdict is computed on the message
as a whole, so a message without any images will receive a "clean" verdict if scanned.
• Suspect: The image may contain inappropriate content.
• Inappropriate: The image contains inappropriate content.
These verdicts represent a numeric value assigned by the image analyzer algorithm to determine probability
of inappropriate content.
The following values are recommended:
• Clean: 0 to 49
• Suspect: 50 to 74
• Inappropriate: 75 to 100
What to do next
You can fine-tune image scanning by configuring the sensitivity setting, which helps reduce the number of
false positives. For example, if you find that you are getting false positives, you can decrease the sensitivity
setting. Or, conversely, if you find that the image scanning is missing inappropriate content, you may want
to set the sensitivity higher. The sensitivity setting is a value between 0 (no sensitivity) and 100 (highly
sensitive). The default sensitivity setting of 65 is recommended.
Related Topics
• Tuning Image Analysis Settings, on page 222
Tuning Image Analysis Settings
Procedure
Step 1 Go to Security Services > IronPort Image Analysis.
Step 2 Click Edit Settings.
Step 3 Configure the settings for image analysis sensitivity. The default sensitivity setting of 65 is recommended.
Step 4 Configure the settings for Clean, Suspect, and Inappropriate verdicts.
When you configure the value ranges, ensure that you do not overlap values and that you use whole integers.
Step 5 Optionally, configure AsyncOS to bypass scanning images that do not meet a minimum size requirement
(recommended). By default, this setting is configured for 100 pixels. Scanning images that are smaller than
100 pixels can sometimes result in false positives.
You can also enable image analysis settings from the CLI using the imageanalysisconfig command:
What to do next
Related Topics
• Viewing the Verdict Score of a Particular Message, on page 223
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
222
Using Message Filters to Enforce Email Policies
Tuning Image Analysis Settings
Viewing the Verdict Score of a Particular Message
To see the verdict score for a particular message, you can view the mail logs. The mail logs display the image
name or file name, the score for a particular message attachment. In addition, the log displays information
about whether the images in a file were scannable or unscannable. Note that information in the log describes
the result for each message attachment, rather than each image.For example, if the message had a zip attachment
that contained a JPEG image, the log entry would contain the name of the zip file rather than the name of the
JPEG. Also, if the zip file included multiple images then the log entry would include the maximum score of
all the images. The unscannable notation indicates whether any of the images were unscannable.
The log does not contain information about how the scores translate to a particular verdict (clean, suspect or
inappropriate). However, because you can use mail logs to track the delivery of specific messages, you can
determine by the actions performed on the messages whether the mail contained inappropriate or suspect
images.
For example, the following mail log shows attachments dropped by message filter rules as a result of Image
Analysis scanning:
Thu Apr 3 08:17:56 2009 Debug: MID 154 IronPort Image Analysis: image 'Unscannable.jpg'
is unscannable.
Thu Apr 3 08:17:56 2009 Info: MID 154 IronPort Image Analysis: attachment
'Unscannable.jpg' score 0 unscannable
Thu Apr 3 08:17:56 2009 Info: MID 6 rewritten to MID 7 by
drop-attachments-where-image-verdict filter 'f-001'
Thu Apr 3 08:17:56 2009 Info: Message finished MID 6 done
Configuring the Message Filter to Perform Actions Based on Image Analysis
Results
Once you enable image analysis, you must create a message filter to perform different actions for different
message verdicts.For example, you may wish to deliver messages with a clean verdict, but quarantine messages
that are determined to have inappropriate content.
Cisco recommends you do not drop or bounce messages with inappropriate or suspect verdicts. Instead,
send copies of violations to a quarantine for later review and better understanding of trend analysis.
Note
The following filter shows messages tagged if the content is inappropriate or suspect:
image_analysis: if image-verdict == "inappropriate" {
strip-header("Subject");
insert-header("Subject", "[inappropriate image] $Subject");
}
else {
if image-verdict == "suspect" {
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
223
Using Message Filters to Enforce Email Policies
Viewing the Verdict Score of a Particular Message
strip-header("Subject");
insert-header("Subject", "[suspect image] $Subject");
}
}
Related Topics
• Creating Content Filters to Strip Attachments Based on Image Analysis Verdicts , on page 224
Creating Content Filters to Strip Attachments Based on Image Analysis Verdicts
After you enable image analysis, you can create a content filter to strip attachments based on image analysis
verdicts, or you can configure a filter to perform different actions for different message verdicts.For example,
you might decide to quarantine messages that contain inappropriate content.
To strip attachments based on image analysis verdicts:
Procedure
Step 1 Click Mail Policies > Incoming Content Filters.
Step 2 Click Add Filter.
Step 3 Enter a name for the content filter.
Step 4 Under Actions, click Add Action.
Step 5 Under Strip Attachment by File Info, click Image Analysis Verdict is:
Step 6 Select from the following image analysis verdicts:
• Suspect
• Inappropriate
• Suspect or Inappropriate
• Unscannable
• Clean
Configuring an Action Based on Image Analysis Verdicts
To configure an action based on image analysis verdicts:
Procedure
Step 1 Click Mail Policies > Incoming Content Filters.
Step 2 Click Add Filter.
Step 3 Enter a name for the content filter.
Step 4 Under Conditions, click Add Condition.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
224
Using Message Filters to Enforce Email Policies
Creating Content Filters to Strip Attachments Based on Image Analysis Verdicts
Step 5 Under Attachment File Info, click Image Analysis Verdict.
Step 6 Choose from one of the following verdicts:
• Suspect
• Inappropriate
• Suspect or Inappropriate
• Unscannable
• Clean
Step 7 Click Add Action.
Step 8 Select an action to perform on messages based on the image analysis verdict.
Step 9 Submit and commit your changes.
Notifications
Using the Text Resources page in the GUI or the textconfig CLI command to configure custom notification
templates as text resources is another useful tool when used in conjunction with attachment filtering rules.
The notification template supports non-ASCII characters (you are prompted to choose an encoding while
creating the template).
In the following example, the textconfig command was first used to create a notification template named
strip.mp3 that will be inserted into to the body of the notification message. Then, an attachment filtering rule
is created so that when an .mp3 file has been stripped from a message, a notification email is sent to the
intended recipients explaining that the .mp3 file has been deleted.
drop-mp3s:
if (attachment-type == '*/mp3')
{ drop-attachments-by-filetype('Media');
notify ('$EnvelopeRecipients', 'Your mp3 has been removed', '$EnvelopeFrom',
'strip.mp3');
}
For more information, see Notify and Notify-Copy Actions, on page 202.
Examples of Attachment Scanning Message Filters
The following examples shows actions performed on attachments:
• Inserting Headers, on page 226
• Dropping Attachments by File Type, on page 226
• Dropping Attachments by Dictionary Matches, on page 227
• Quarantining Protected Attachments, on page 228
• Detecting Unprotected Attachments, on page 228
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
225
Using Message Filters to Enforce Email Policies
Notifications
Inserting Headers
In these examples, AsyncOS inserts headers when the attachments contain specified content.
In the following example, all of the attachments on the message are scanned for a keyword. If the keyword
is present in all of the attachments, a custom X-Header is inserted:
attach_disclaim:
if (every-attachment-contains('[dD]isclaimer') ) {
insert-header("X-Example-Approval", "AttachOK");
}
In the following example, the attachment is scanned for a pattern in the binary data. The filter uses the
attachment-binary-contains filter rule to search for a pattern that indicates that the PDF document is
encrypted. If the pattern is present in the binary data, a custom header is inserted:
match_PDF_Encrypt:
if (attachment-filetype == 'pdf' AND
attachment-binary-contains('/Encrypt')){
strip-header (‘Subject’);
insert-header (‘Subject’, ‘[Encrypted] $Subject’);
}
Dropping Attachments by File Type
In the following example, the “executable” group of attachments ( .exe , .dll , and .scr ) is stripped
from messages and text is added to the message, listing the filenames of the dropped files (using the
$dropped_filename action variable). Note that the drop-attachments-by-filetype action examines
attachments and strips them based on the fingerprint of the file, and not just the three-letter filename extension.
Note also that you can specify a single file type (“mpeg”) or you can refer to all of the members of the file
type (“Media”):
strip_all_exes: if (true) {
drop-attachments-by-filetype ('Executable', “Removed attachment:
$dropped_filename”);
}
In the following example, the same “executable” group of attachments( .exe , .dll , and .scr ) are stripped
from messages whose Envelope Sender is not within the domain example.com .
strip_inbound_exes: if (mail-from != "@example\\.com$") {
drop-attachments-by-filetype ('Executable');
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
226
Using Message Filters to Enforce Email Policies
Inserting Headers
}
In the following example, a specific member of a file type (“wmf”) as well as a the same “executable” group
of attachments ( .exe , .dll , and .scr ) are stripped from messages whose Envelope Sender is not within
the domain example.com .
strip_inbound_exes_and_wmf: if (mail-from != "@example\\.com$") {
drop-attachments-by-filetype ('Executable');
drop-attachments-by-filetype ('x-wmf');
}
In the following example, the “executable” pre-defined group of attachments is extended to include more
attachment names. (Note that this action will not examine the attachments’ file type.)
strip_all_dangerous: if (true) {
drop-attachments-by-filetype ('Executable');
drop-attachments-by-name('(?i)\\.(cmd|pif|bat)$');
}
The drop-attachments-by-name action supports non-ASCII characters.
The drop-attachments-by-name action matches the regular expression against the filename captured
from the MIME header. The filename captured from the MIME header may contain trailing spaces.
Note
In the following example, a message is dropped if the attachment is not an .exe executable file type. However,
the filter will not perform any action on the message if there is at least one attachment with the file type you
want to filter out. For example, the following filter drops any message with an attachment that is not an .exe
file type:
exe_check: if (attachment-filetype != "exe") {
drop();
}
If a message has multiple attachments, the email gateway does not drop the message if at least one of the
attachments is an .exe file, even if the other attachments not .exe files.
Dropping Attachments by Dictionary Matches
This drop-attachments-where-dictionary-match action strips attachments based on matches to dictionary
terms. If the terms in the MIME parts considered to be an attachment match a dictionary term (and the
user-defined threshold is met), the attachment is stripped from the email. The following example shows
attachment drops if words in the “secret_words” dictionary are detected in the attachment. Note that the
threshold for the matches is set to one:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
227
Using Message Filters to Enforce Email Policies
Dropping Attachments by Dictionary Matches
Data_Loss_Prevention: if (true) {
drop-attachments-where-dictionary-match("secret_words", 1);
}
Quarantining Protected Attachments
The attachment-protected filter tests whether any attachment in the message is password protected. You
might use thisfilter on incoming mail to ensure that the attachments are scannable. According to this definition,
a zip file containing one encrypted member along with unencrypted members will be considered protected.
Similarly, PDF file that has no open password will not be considered protected, even though it may restrict
copying or printing with a password. The following example shows protected attachments sent to a policy
quarantine:
quarantine_protected:
if attachment-protected
{
quarantine("Policy");
}
Detecting Unprotected Attachments
The attachment-unprotected filter tests whether any attachment in the message is not password protected.
This message filter complements the attachment-protected filter. You might use this filter on outgoing mail
to detect outgoing mail that is unprotected. The following example shows AsyncOS detecting unprotected
attachments on an outgoing listener and quarantining the messages:
quarantine_unprotected:
if attachment-unprotected
{
quarantine("Policy");
}
Detecting Malicious Files in Messages Attachments Using
Message Filter
As an example, use the following message filter rule syntax to detect files in message attachments categorized
as malicious by the ETF engine, and take appropriate actions on such messages.
Syntax:
Strip_malicious_files: if (file-hash-etf-rule (['etf_source1'], <'file_hash_exception_list'>))
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
228
Using Message Filters to Enforce Email Policies
Quarantining Protected Attachments
{ file-hash-etf-strip-attachment-action (['etf_source1'], <'file_hash_exception_list>,
"file stripped from message attachment"); }
Where:
• ‘file-hash-etf-rule' is the Attachment File Info message filter rule
• ‘etf_source1' is the ETFsource(s) used to detect malicious files in the messages based on the file hash.
• 'file_hash_exception_list' is the name of a file hash exception list. If a file hash exception list is
not present, it is displayed as “”.
• 'file-hash-etf-strip-attachment-action' is the name of the action that you want to apply on
messages that contain malicious files.
In the following example, if a message contains a message attachment detected as malicious by the
ETF engine, the attachment is stripped.
Strip_Malicious_Attachment: if (true) {file-hash-etf-strip-attachment-action
(['threat_feed_source'], "", “Malicious message attachment has been stripped from
the message.");}
Using the CLI to Manage Message Filters
You can use the CLI to add, delete, activate and de-activate, import and export, and set logging options for
message filters. The table below shows a summary of the commands and subcommands. The table below
shows a summary of the commands and subcommands.
Table 28: Message Filters Subcommands
Syntax Description
The main command. This command is interactive; it asks you for more information (for
example, new , delete , import ).
filters
Creates a new filter. If no location is given, it is appended to the current sequence.
Otherwise, the filter will be inserted into the specific place in the sequence. For more
information, see Creating a New Message Filter, on page 231.
new
Deletes a filter by name or by sequence number. For more information, see Deleting a
Message Filter, on page 231.
delete
Rearranges the existing filters. For more information, see Creating a New Message Filter,
on page 231.
move
Sets filter to active or inactive state. For more information, see Creating a New Message
Filter, on page 231.
set
Replaces the current set of filters with a new set stored in a file (in the /configuration
directory of the email gateway).For more information,see Creating a New MessageFilter,
on page 231.
import
Exports the current set of filters to a file (in the /configuration directory of the email
gateway). For more information, see Exporting Message Filters, on page 235 .
export
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
229
Using Message Filters to Enforce Email Policies
Using the CLI to Manage Message Filters
Syntax Description
Lists information about a filter or filters. For more information, see Displaying a Message
Filter List, on page 235.
list
Prints detailed information about a specific filter, including the body of the filter rule itself.
For more information, see Displaying Message Filter Details, on page 236 .
detail
Enters the logconfig submenu of filters, allowing you to edit the log subscriptions from
archive() filter actions. For more information, see Configuring Filter Log Subscriptions,
on page 236.
logconfig
Note You must issue the commit command for filters to take effect.
Three types of parameters are:
Table 29: Filter Management Parameters
An integer representing a filter based on its position in the list of filters. A seqnum of
2 represents the second filter in the list, for example.
seqnum
filtname The colloquial name of a filter.
A range may be used to represent more than one filter, and appears in the form of X Y
, where X and Y are the first and last seqnums that identify the extent. For example,
2-4 represents filters in the second, third, and fourth positions. Either X or Y may be
left off to represent an open-ended list. For example, -4 represents the first four filters,
and 2- represents all filters except the first. You can also use the keyword all to represents
all the filters in the filter list.
range
Related Topics
• Creating a New Message Filter, on page 231
• Deleting a Message Filter, on page 231
• Moving a Message Filter, on page 231
• Activating and Deactivating a Message Filter, on page 231
• Importing Pre-Policy Filters, on page 234
• Exporting Message Filters, on page 235
• Viewing Non-ASCII Character Sets, on page 235
• Displaying a Message Filter List, on page 235
• Displaying Message Filter Details, on page 236
• Configuring Filter Log Subscriptions, on page 236
• Changing Message Encoding, on page 237
• Sample Message Filters, on page 239
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
230
Using Message Filters to Enforce Email Policies
Using the CLI to Manage Message Filters
Creating a New Message Filter
new [seqnum|filtname|last]
Specifies the position at which to insert the new filter(s). If omitted, or given the keyword last , the filters
entered in are appended to the list of filters. No gapsin the sequence numbers are allowed; you are not allowed
to enter a seqnum outside the boundaries of the current list. If you enter an unknown filtname , you are prompted
to enter a valid filtname , seqnum , or last .
After a filter has been entered, you may manually enter the filter script. When you are finished typing, end
the entry by typing a period ( . ) on a line by itself.
The following conditions can cause errors:
• Sequence number beyond the current range of sequence numbers.
• Filter with a non-unique filtname .
• Filter with a filtname that is a reserved word.
• Filter with a syntax error.
• Filter with actions referring to non-existent system resources such as interfaces.
Deleting a Message Filter
delete [seqnum|filtname|range]
Deletes the filter(s) identified.
The following conditions can cause errors:
• No filter with a given filter name.
• No filter with a given sequence number.
Moving a Message Filter
move [seqnum|filtname|rangeseqnum|last]
Moves the filters identified by the first parameter to the position identified by the second parameter. If the
second parameter is the keyword last , the filters are moved to the end of the list of filters. If more than one
filter is being moved, their ordering remains the same in relation to one another.
The following conditions can cause errors:
• No filter with a given filter name.
• No filter with a given sequence number.
• Sequence number beyond the current range of sequence numbers.
• Movement would result in no change of sequence.
Activating and Deactivating a Message Filter
A given message filter is either active or inactive and it is also either valid or invalid . A message filter is only
used for processing if it is both active and valid . You change an existing filter from active to inactive (and
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
231
Using Message Filters to Enforce Email Policies
Creating a New Message Filter
back again) using the CLI. A filter is invalid if it refers to a listener or interface which does not exist (or has
been removed).
You can determine if a filter is inactive by its syntax; AsyncOS changes the colon after the filter name
to an exclamation point for inactive filters. If you use this syntax when entering or importing a filter,
AsyncOS marks the filter as inactive.
Note
For example, the following benign filter named “filterstatus” is entered. It is then made inactive using the
filter -> set subcommand. Note that when the details of the filter are shown, the colon has been changed
to an exclamation point (and is bold in the following example).
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.
filterstatus: if true{skip-filters();}
.
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
Num Active Valid Name
1 Y Y filterstatus
Choose the operation you want to perform:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
232
Using Message Filters to Enforce Email Policies
Activating and Deactivating a Message Filter
- 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.
[]> set
Enter the filter name, number, or range:
[all]> all
Enter the attribute to set:
[active]> inactive
1 filters updated.
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.
[]> detail
Enter the filter name, number, or range:
[]> all
Num Active Valid Name
1 N Y filterstatus
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
233
Using Message Filters to Enforce Email Policies
Activating and Deactivating a Message Filter
filterstatus! if (true) {
skip-filters();
}
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.
[]>
Related Topics
• Activating or Deactivating a Message Filter, on page 234
Activating or Deactivating a Message Filter
set [seqnum|filtname|range] active|inactive
Sets the filters identified to have the given state. Legal states are:
• active: Set the state of the selected filters to be active.
• inactive: Set the state of the selected filters to be inactive.
The following conditions can cause errors:
• No filter with a given filtname .
• No filter with a given sequence number.
A filter which is inactive may also be noted in its syntax; the colon after the label (name of the filter) is
changed to an exclamation point ( ! ). A filter entered manually from the CLI, or imported, that contains
this syntax, will automatically be marked inactive. For example, mailfrompm! instead of mailfrompm:
is displayed.
Note
Importing Pre-Policy Filters
import filename
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
234
Using Message Filters to Enforce Email Policies
Activating or Deactivating a Message Filter
The name of the file containing filters to be processed. This file must reside in the configuration directory of
the FTP/SCP root directory on the appliance, if you enabled FTP/SCP access for the interface with the
interfaceconfig command. It isingested and parsed, and any errors are reported. The filtersimported replace
all filters existing in the current filter set.SeeFTP,SSH, andSCP Access, on page 1307 for more information.
Consider exporting the current filter list (see Exporting Message Filters, on page 235) and then editing that
file before importing.
When importing message filters, you are prompted to select the encoding used.
The following conditions can cause errors:
• File does not exist.
• Filter with a non-unique filter name.
• Filter with a filtname that is a reserved word.
• Filter with a syntax error.
• Filter with actions referring to non-existent system resources such as interfaces.
Exporting Message Filters
export filename[seqnum|filtname|range]
Output a formatted version of the existing filter set to a file in the configuration directory of the FTP/SCP
root directory on the email gateway. See FTP, SSH, and SCP Access, on page 1307 for more information.
When exporting message filters, you are prompted to select the encoding used.
The following conditions can cause errors:
• No filter with a given filter name.
• No filter with a given sequence number.
Viewing Non-ASCII Character Sets
The system displays filters containing non-ASCII characters in the CLI in UTF-8. If your terminal/display
does not support UTF-8, the filter will unreadable.
The best way to manage non-ASCII characters in filters is to edit the filter in a text file and then import that
text file (see Importing Pre-Policy Filters, on page 234) into the email gateway.
Displaying a Message Filter List
list [seqnum|filtname|range]
Shows summarized information about the identified filters in a tabular form without printing the filter body.
The information displayed includes:
• Filter name
• Filter sequence number
• Filter's active/inactive state
• Filter’s valid/invalid state
The following conditions can cause errors:
• Illegal range format.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
235
Using Message Filters to Enforce Email Policies
Exporting Message Filters
Displaying Message Filter Details
detail [seqnum|filtname|range]
Provides full information about the identified filters, including the body of the filter and any additional state
information.
Configuring Filter Log Subscriptions
logconfig
Enters a submenu that allows you to configure the filter log options for the mailbox files generated by the
archive() action. These options are very similar to those used by the regular logconfig command, but the
logs may only be created or deleted by adding or removing filters that reference them.
Each filter log subscription has the following default values, which can be modified using the logconfig
subcommand:
• Retrieval method - FTP Poll
• File size - 10MB
• Max number of files - 10
For more information, see the “Logging” chapter.
mail3.example.com> filters
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.
[]> logconfig
Currently configured logs:
1. "joesmith" Type: "Filter Logs" Retrieval: FTP Poll
Choose the operation you want to perform:
- EDIT - Modify a log setting.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
236
Using Message Filters to Enforce Email Policies
Displaying Message Filter Details
[]> edit
Enter the number of the log you wish to edit.
[]> 1
Choose the method to retrieve the logs.
1. FTP Poll
2. FTP Push
3. SCP Push
[1]> 1
Please enter the filename for the log:
[joesmith.mbox]>
Please enter the maximum file size:
[10485760]>
Please enter the maximum number of files:
[10]>
Currently configured logs:
1. "joesmith" Type: "Filter Logs" Retrieval: FTP Poll
Enter "EDIT" to modify or press Enter to go back.
[]>
Changing Message Encoding
You can use the localeconfig command to set the behavior of AsyncOS regarding modifying the encoding
of message headings and footers during message processing:
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 footer or heading encoding: Try both body and footer or heading
encodings
Behavior when decoding errors found: Disclaimer is displayed as inline content and the
message body is added as an attachment.
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 and is being used or
modified,
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
237
Using Message Filters to Enforce Email Policies
Changing Message Encoding
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.
Some MUAs handle headers encoded in character sets that differ from that of the main body
in an incorrect way.
Imposing the encoding of the body on the header may encode the header more precisely.
This will be used to interpret the content of headers for processing, it will not modify
or rewrite the
header unless that is done explicitly as part of the processing.) [Y]>
Disclaimers (as either footers or headings) are added in-line with the message body whenever
possible.
However, if the disclaimer is encoded differently than the message body, and if imposing a
single encoding
will cause loss of characters, it will be added as an attachment. The system will always
try to use the
message body's encoding for the disclaimer. If that fails, the system can try to edit the
message body to
use an encoding that is compatible with the message body as well as the disclaimer. Should
the system try to
re-encode the message body in such a case? [Y]>
If the disclaimer that is added to the footer or header of the message generates an error
when decoding the message body,
it is added at the top of the message body. This prevents you to rewrite a new message
content that must merge with
the original message content and the header/footer-stamp. The disclaimer is now added as
an additional MIME part
that displays only the header disclaimer as an inline content, and the rest of the message
content is split into
separate email attachments. Should the system try to ignore such errors when decoding the
message body? [N]>
Behavior when modifying headers: Use encoding of message body
Behavior for untagged non-ASCII headers: Impose encoding of message body
Behavior for mismatched footer or heading encoding: Try both body and footer or heading
encodings
Behavior when decoding errors found: Disclaimer is displayed as inline content and the
message body
is added as an attachment.
Choose the operation you want to perform:
- SETUP - Configure multi-lingual settings.
[]>
The first prompt determines whether or not a message header’s encoding should be changed to match that of
the message body if the header is changed (via a filter, for example).
The second prompt controls whether or not the email gateway should impose the encoding of the message
body on the header if the header is not properly tagged with a character set.
The third prompt is used to configure how disclaimer stamping (and multiple encodings) in the message body
works. Please see “Disclaimer Stamping and Multiple Encodings” in the “Text Resources” chapter for more
information.
The fourth prompt is used to configure the behaviour of disclaimer stamping, if an error is generated during
the decoding of the message body. If you select ‘Yes’, the decoding errors are ignored and the disclaimer is
stamped. If you select ‘No’, the disclaimer text is added as an attachment to the message.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
238
Using Message Filters to Enforce Email Policies
Changing Message Encoding
Sample Message Filters
In the following 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
postmaster@example.com and blind-carbon copies administrator@example.com .
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.
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.
- ROLLOVERNOW - Roll over a filter log file.
[]> new
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
239
Using Message Filters to Enforce Email Policies
Sample Message Filters
Enter filter script. Enter '.' on its own line to end.
no_mp3s:
if (attachment-filename == '(?i)\\.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 ("administrator@example.com");}
.
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.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
240
Using Message Filters to Enforce Email Policies
Sample Message Filters
- 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
Num Active Valid Name
1 Y Y big_messages
2 Y Y no_mp3s
3 Y Y mailfrompm
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.
[]> move
Enter the filter name, number, or range to move:
[]> 1
Enter the target filter position number or name:
[]> last
1 filters moved.
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.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
241
Using Message Filters to Enforce Email Policies
Sample Message Filters
- 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
Num Active Valid Name
1 Y Y no_mp3s
2 Y Y mailfrompm
3 Y Y big_messages
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.
[]> move
Enter the filter name, number, or range to move:
[]> 2
Enter the target filter position number or name:
[]> 1
1 filters moved.
Choose the operation you want to perform:
- NEW - Create a new filter.
- DELETE - Remove a filter.
- IMPORT - Import a filter script from a file.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
242
Using Message Filters to Enforce Email Policies
Sample Message Filters
- 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
Num Active Valid Name
1 Y Y mailfrompm
2 Y Y no_mp3s
3 Y Y big_messages
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.
[]>
mail3.example.com> commit
Please enter some comments describing your changes:
[]> entered and enabled 3 filters: no_mp3s, mailfrompm, big_messages
Do you want to save the current configuration for rollback? [Y]> n
Changes committed: Fri May 23 11:42:12 2014 GMT
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
243
Using Message Filters to Enforce Email Policies
Sample Message Filters
Message Filter Examples
This section contains some real world examples of filters with a brief discussion of each.
Related Topics
• Open-Relay Prevention Filter, on page 244
• Policy Enforcement Filters, on page 244
• Routing and Domain Spoofing, on page 248
• Drop Message Attachments that match File SHA-256 Filter, on page 251
• Drop Messages if Attachment matches File SHA-256 Filter, on page 251
Open-Relay Prevention Filter
This filter bounces messages with addresses using % , extra @ , and ! characters in email addresses:
• user%otherdomain@validdomain
• user@otherdomain@validdomain:
• domain!user@validdomain
sourceRouted:
if (rcpt-to == "(%|@|!)(.*)@") {
bounce();
}
The email gateways are notsusceptible to these third party relay hacksthat are often used to exploit traditional
Sendmail/Qmail systems. As many of these symbols (for example % ) can be part of a perfectly legal email
address, email gateways will accept these as valid addresses, verify them against the configured recipient lists,
and pass them on to the next internal server. The email gateways do not relay these messages to the world.
These filters are put in place to protect users who may have open-source MTAs that are misconfigured to
allow relay of these types of messages.
You can also configure a listener to handle these types of addresses. See Listening for Connection
Requests by Creating a Listener Using Web Interface, on page 75 for more information.
Note
Policy Enforcement Filters
• Notify Based on Subject Filter, on page 245
• BCC and Scan Mail Sent to Competitors, on page 245
• Block Specific User Filter, on page 245
• Archive and Drop Messages Filter, on page 245
• Large “To:” Header Filter, on page 246
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
244
Using Message Filters to Enforce Email Policies
Message Filter Examples
• Blank “From:” Filter, on page 246
• IP Reputation Filter, on page 247
• Alter IP Reputation Filter, on page 247
• Filename Regex Filter, on page 247
• Show IP Reputation Score in Header Filter, on page 247
• Insert Policy into Header Filter, on page 247
• Too Many Recipients Bounce Filter, on page 248
Notify Based on Subject Filter
This filter sends notification based on whether the subject contains specific words:
search_for_sensitive_content:
if (Subject == "(?i)plaintiff|lawsuit|judge" ) {
notify ("admin@company.com");
}
BCC and Scan Mail Sent to Competitors
This filter scans and blind copies messages that are sent to competitors. Note that you could use a dictionary
and the header-dictionary-match() rule to specify a more flexible list of competitors(see Dictionary Rules,
on page 169):
competitorFilter:
if (rcpt-to == '@competitor1.com|@competitor2.com') {
bcc-scan('legal@example.com');
}
Block Specific User Filter
Use this filter to block email from a specific address:
block_harrasing_user:
if (mail-from == "ex-employee@hotmail\\.com") {
notify ("admin@company.com");
drop ();
}
Archive and Drop Messages Filter
Log and drop only the messages that have matching filetypes:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
245
Using Message Filters to Enforce Email Policies
Notify Based on Subject Filter
drop_attachments:
if (mail-from != "user@example.com") AND (attachment-filename ==
'(?i)\\.(asp|bas|bat|cmd|cpl|exe|hta|ins|isp|js)$')
{
archive("Drop_Attachments");
insert-header("X-Filter", "Dropped by: $FilterName MID: $MID");
drop-attachments-by-name("\\.(asp|bas|bat|cmd|cpl|exe|hta|ins|isp|js)$");
}
Large “To:” Header Filter
Find messages with very large “To” headers.
Use the archive() line for verification of proper action, with drop() enabled or disabled for extra safety:
toTooBig:
if(header('To') == "^.{500,}") {
archive('tooTooBigdropped');
drop();
}
Blank “From:” Filter
Identify blank “From” headers,
This filter can alleviate various forms of blank “from” addresses:
blank_mail_from_stop:
if (recv-listener == "InboundMail" AND header("From") == "^$|<\\s*>") {
drop ();
}
If you also want to drop messages with a blank envelope from, use this filter:
blank_mail_from_stop:
if (recv-listener == "InboundMail" AND (mail-from == "^$|<\\s*>" OR header ("From") ==
"^$|<\\s*>"))
{
drop ();
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
246
Using Message Filters to Enforce Email Policies
Large “To:” Header Filter
}
IP Reputation Filter
IP Reputation filter:
note_bad_reps:
if (reputation < -2) {
strip-header ('Subject');
insert-header ('Subject', '***BadRep $Reputation *** $Subject');
}
Alter IP Reputation Filter
Alter the IP Reputation Score threshold for certain domains:
mod_ipr:
if ( (rcpt-count == 1) AND (rcpt-to == "@domain\\.com$") AND (reputation < -2) ) {
drop ();
}
Filename Regex Filter
This filter specifies a range of size for the body of the message, and looks for an attachment that matches the
regular expression (this matches files named “readme.zip”, “readme.exe”, “attach.exe”, and so forth.):
filename_filter:
if ((body-size >= 9k) AND (body-size <= 20k)) {
if (body-contains ("(?i)(readme|attach|information)\\.(zip|exe)$")) {
drop ();
}
}
Show IP Reputation Score in Header Filter
Remember to log the headers (see the “Logging” chapter) so they appear in the mail log:
Check_ipr:
if (true) {
insert-header('X-ipr', '$Reputation');
}
Insert Policy into Header Filter
Show which mail flow policy accepted the connection:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
247
Using Message Filters to Enforce Email Policies
IP Reputation Filter
Policy_Tracker:
if (true) {
insert-header ('X-HAT', 'Sender Group $Group, Policy $Policy applied.');
}
Too Many Recipients Bounce Filter
Bounce all outbound email messages with more than 50 recipients from more than two unique domains:
bounce_high_rcpt_count:
if ( (rcpt-count > 49) AND (rcpt-to != "@example\\.com$") ) {
bounce-profile ("too_many_rcpt_bounce"); bounce ();
}
Routing and Domain Spoofing
• Using Virtual Gateways Filter, on page 248
• Same Listener for Deliver and Listener Filter, on page 248
• Single Listener Filter, on page 249
• Drop Spoofed Domain Filter (Single Listener), on page 249
• Drop Spoofed Domain Filter (Multiple Listeners), on page 249
• Another Drop Spoofed Domain Filter, on page 250
• Detect Looping Filter, on page 250
Using Virtual Gateways Filter
Segment traffic using virtual gateways. Assuming you have two Interfaces on the system, 'public1' and 'public2',
and the default delivery interface is 'public1'. This would force all of your outbound traffic over the second
interface; since bounces and other similar types of mail do not go through filters, they will be delivered from
public1:
virtual_gateways:
if (recv-listener == "OutboundMail") {
alt-src-host ("public2");
}
Same Listener for Deliver and Listener Filter
Use the same listener for delivery and receiving. This filter will allow you to send any messages received on
the public listener “listener1” out the interface “listener1” (you will have to set up a unique filter for each
public listener configured):
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
248
Using Message Filters to Enforce Email Policies
Too Many Recipients Bounce Filter
same_listener:
if (recv-inj == 'listener1') {
alt-src-host('listener1');
}
Single Listener Filter
Make the filter work on a single listener. For example, specify a specific listener for message filter processing
instead of being performed system wide.
textfilter-new:
if (recv-inj == 'inbound' and body-contains("some spammy message")) {
alt-rcpt-to ("spam.quarantine@spam.example.com");
}
Drop Spoofed Domain Filter (Single Listener)
Drop email with a spoofed domain (pretending to be from an internal address; works with a single listener).
IP addresses below represent fictional domain for mycompany.com :
DomainSpoofed:
if (mail-from == "mycompany\\.com$") {
if ((remote-ip != "1.2.") AND (remote-ip != "3.4.")) {
drop();
}
}
Drop Spoofed Domain Filter (Multiple Listeners)
As above, but works with multiple listeners:
domain_spoof:
if ((recv-listener == "Inbound") and (mail-from == "@mycompany\\.com")) {
archive('domain_spoof');
drop ();
}
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
249
Using Message Filters to Enforce Email Policies
Single Listener Filter
Another Drop Spoofed Domain Filter
Summary: Anti domain spoof filter:
reject_domain_spoof:
if (recv-listener == "MailListener") {
insert-header("X-Group", "$Group");
if ((mail-from == "@test\\.mycompany\\.com") AND (header("X-Group") != "RELAYLIST")) {
notify("me@here.com");
drop();
strip-header("X-Group");
}
Detect Looping Filter
This filter is used to detect, stop, and determine what is causing, a mail loop. This filter can help determine a
configuration issue on the Exchange server or elsewhere.
External_Loop_Count:
if (header("X-ExtLoop1")) {
if (header("X-ExtLoopCount2")) {
if (header("X-ExtLoopCount3")) {
if (header("X-ExtLoopCount4")) {
if (header("X-ExtLoopCount5")) {
if (header("X-ExtLoopCount6")) {
if (header("X-ExtLoopCount7")) {
if (header("X-ExtLoopCount8")) {
if (header("X-ExtLoopCount9")) {
notify ('joe@example.com');
drop();
}
else {insert-header("X-ExtLoopCount9", "from
$RemoteIP");}}
else {insert-header("X-ExtLoopCount8", "from $RemoteIP");}}
else {insert-header("X-ExtLoopCount7", "from $RemoteIP");}}
else {insert-header("X-ExtLoopCount6", "from $RemoteIP");}}
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
250
Using Message Filters to Enforce Email Policies
Another Drop Spoofed Domain Filter
else {insert-header("X-ExtLoopCount5", "from $RemoteIP");}}
else {insert-header("X-ExtLoopCount4", "from $RemoteIP");}}
else {insert-header("X-ExtLoopCount3", "from $RemoteIP");}}
else {insert-header("X-ExtLoopCount2", "from $RemoteIP");}}
else {insert-header("X-ExtLoop1", "1");
}
Note By default, AsyncOS automatically detects mail loops and will drop messages after 100 loops.
Drop Message Attachments that match File SHA-256 Filter
Use this filter to drop all message attachments in messages that match the specific file SHA-256 value in the
file hash list
File_Hash_Message_Filter: if (true)
{ drop-attachments-by-hash("SHA-256_hash_list"); }
Drop Messages if Attachment matches File SHA-256 Filter
Use this filter to drop all messages if the message attachments match the specific file SHA-256 value in the
file hash list.
File_Hash_Message_Filter: if (attachment-hashlist-match("SHA-256_hash_list"))
{ drop(); }
Configuring Scan Behavior
You can control the behavior of body and attachment scanning, such as the attachment types to be skipped
during a scan by configuring the scanning parameters. Use theScan Behavior page or the scanconfig command
to configure these parameters.Scan behavior settings are global settings, meaning that they affect the behavior
of all the scans.
If you want to scan a MIME type that may be included in a zip or compressed file, you must include
list 'compressed' or 'zip' or 'application/zip' in the scan list.
Note
Procedure
Step 1 Click Security Services > Scan Behavior.
Step 2 Define the attachment type mapping. Do one of the following:
• Add a new attachment type mapping. Click Add Mapping.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
251
Using Message Filters to Enforce Email Policies
Drop Message Attachments that match File SHA-256 Filter
• Import a list of attachment type mappings using a configuration file. Click Import List, and import the
desired configuration file from the configuration directory.
To perform this step, the configuration file must be present in the configuration directory of
your email gateway. See Managing the Configuration File, on page 1025.
Note
• Click Edit to modify an existing attachment type mapping.
Step 3 Configure the global settings. Do the following:
a) Under Global Settings, click Edit Global Settings.
b) Edit the required fields:
Field Description
Choose whether to scan or skip attachments types
defined in the attachment type mapping.
Action for attachments with MIME types /
fingerprints in table above
Specify the level up to which the recursive
attachments are to be scanned.
Maximum depthof attachment recursionto scan
Maximum attachment size to scan Specify the maximum size of attachments to scan.
Specify whether to scan or skip metadata of the
attachments.
Attachment Metadata scan
Attachment scanning timeout Specify the scanning time-out period.
Specify whether to consider unscanned attachments
as match to the search pattern.
Assume attachment matches pattern if not
scanned for any reason
Specify the action to be taken when a message could
not be deconstructed to remove specified
attachments.
Action when message cannot be deconstructed
to remove specified attachments
Specify whether to bypass all filters in case of a
content or message filter error.
Bypass all filters in case of a content or message
filter error
Specify the encoding to be used if no encoding is
specified.
Encoding to use when none is specified
Specify whether to convert opaque-signed messages
to clear-signed (S/MIME unpacking).
Convert opaque-signed messagesto clear-signed
(S/MIME unpacking)
Safe Print Settings
Enter the maximum attachment size for a
safe-printed attachment.
If the ‘Maximum File Size’ value
exceeds the 'Maximum Message Size to
Scan' value configured for Outbreak
Filters on your email gateway, then the
message and the message attachment is
not scanned by Outbreak Filters in the
email pipeline.
Note
Maximum File Size
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
252
Using Message Filters to Enforce Email Policies
Configuring Scan Behavior
Field Description
Enter the maximum number of pages that you want
to safe print in a message attachment.
Maximum Page Count
Select the Use Default Value (70) option to use the
recommended image quality value for a safe-printed
attachment.
You can also select the Enter Custom
Value option and enter a custom image
quantity value for a safe-printed
attachment.
Note
Document Quality
Select the required file types from the appropriate
file groups (for example, “Microsoft Documents”)
that you can use to safe print a message attachment.
File Type Selection
Select Enabled option to add a watermark to a
safe-printed attachment.
You can enter a custom text for the
watermark in the Enter Custom Text:
field.
Note
Watermark
Select Enabled option to add a cover page to a
safe-printed attachment.
You can enter a custom text for the cover
page in the Enter Custom Text field.
Note
Cover Page
For more information, see How to Configure Email Gateway to Safe Print Message Attachments, on
page 346.
Scanning of Password-protected Attachments
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
253
Using Message Filters to Enforce Email Policies
Configuring Scan Behavior
Field Description
Select the Enabled option under Inbound Mail
Traffic or Outbound Mail Traffic to allow the
Content Scanner in your email gateway to scan the
contents of password-protected attachments in
incoming or outgoing messages.
Suppose the DLP scanning engine is
enabled in your email gateway. In that
case, if the password extraction is
successful, the password-protected
attachment contents are scanned by the
DLP engine per the configured DLP
policies.
Note
Important • Suppose the Content Scanner can
extract the password from the body
of the message and scan the
attachment contents successfully.
In that case, the password and
attachment is sent to Cisco AMP
Threat Grid, if configured in your
email gateway and the file is
recommended for file analysis.
• The Content Scanner extracts the
password from the body of the
message with the best effort. The
extracted password is not stored in
your email gateway after the
scanning is complete.
Enable Scanning of Password-Protected
Attachments:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
254
Using Message Filters to Enforce Email Policies
Configuring Scan Behavior
Field Description
Select the Enabled option to create a user-defined
passphrase to open password-protected attachments
in incoming or outgoing messages.
Click Add Row if you want to add more than one
user-defined passphrase.
Notes:
• You can create a user-defined passphrase up
to 128 characters only. .
• You can create up to a maximum of five
user-defined passphrases.
• You can change the priority of the user-defined
passphrase by entering the required
user-defined passphrase in the Passwordfield
that corresponds to the required priority.
• [For Inbound Mail only] The passphrases
extracted from the message body take
precedence over the user-defined passphrases
used to open the password-protected
attachments for incoming messages.
• [For Outbound Mail only] The user-defined
passphrases take precedence over the
passphrases extracted from the message body
used to open the password-protected
attachments for outgoing messages.
Probable Password for Analysis:
Specify the actions to take when a message cannot
be scanned by the ContentScanner due to decoding
errors found during URL filtering actions.
Actions for Unscannable Messages due to
decoding errors found during URL Filtering
Actions
Specify the actions to take when a message cannot
be scanned by the Content Scanner because of an
attachment extraction failure.
Action for unscannable messages due to
extraction failures
Specify the actions to take when a message cannot
be scanned by the Content Scanner because of an
RFC violation.
Action for unscannable messages due to RFC
violations
c) Click Submit.
Step 4 (Optional) Manually update the Content Scanner files. Under Current Content Scanner files, click Update
Now.
Usually, these files are automatically updated using update server.
Note You can also use the contentscannerupdate in CLI to manually update these files.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
255
Using Message Filters to Enforce Email Policies
Configuring Scan Behavior
Step 5 Commit the changes.
Configuring Message Handling Actions for Unscannable Messages
The ContentScanner in your email gateway can now handle messagesthat are notscanned due to the following
reasons:
• File extraction failure
• RFC violation
• Decoding errors found during URL Filtering actions
You can configure any one of the following message handling actions on messages that are not scanned by
the Content Scanner:
• Drop the message
• Deliver the message as it is
• Send the message to the policy quarantine
You can click on the Edit Global Settings button in the Security Services > Scan Behavior page of the web
interface, to enable and configure message handling actions on messages that are not scanned by the Content
Scanner.
Delivering the Message
You can perform the following additional actions, if you choose to deliver the message:
• Modify the message subject
• Add a custom header to the message
• Modify the message recipient
• Send message to alternate destination host
These actions are not mutually exclusive; you can combine some or all of them differently within different
incoming or outgoing policies for different processing needs for groups of users.
Note
Modifying Message Subject
You can alter the text of messages that are not scanned by the Content Scanner by prepending or appending
certain text strings to help users easily identify and sort identified messages.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
256
Using Message Filters to Enforce Email Policies
Configuring Message Handling Actions for Unscannable Messages
White space is not ignored in the “Modify message subject” field. Add spaces after (if prepending) or
before (if appending) the text you enter in this field to separate your added text from the original subject
of the message. For example, add the text [WARNING: UNSCANNABLE EXTRACTION FAILURE] with a few
trailing spaces if you are prepending.
Note
The default text that is added to the subject of the message that is not scanned by the Content Scanner:
Reason Default Text Added to Subject
Extraction failure [WARNING: UNSCANNABLE EXTRACTION FAILED]
RFC Violation [WARNING: UNSCANNABLE RFC NON-COMPLIANT]
[WARNING: DECODING ERRORS WHEN APPLYING URL
FILTERING ACTIONS]
Decoding errors found during URL
Filtering actions
Adding Custom Header to Message
You can define an additional, custom header to add to all messagesthat are notscanned by the ContentScanner.
Click Yes and define the header name and text.
Modifying Message Recipient
You can modify the message recipient, causing the message that is not scanned by the Content Scanner to be
delivered to a different address. Click Yes and enter the new recipient address.
Sending Message to Alternate Destination Host
You can choose to send the notification to a different recipient or destination host for messages that are not
scanned by the Content Scanner. Click Yes and enter an alternate address or host.
For example, you can route messages that are not scanned by the Content Scanner to an administrator’s
mailbox or a special mail server for subsequent examination. In the case of a multi-recipient message, only a
single copy is sent to the alternative recipient.
Sending Message to Policy Quarantine
When flagged for quarantine, the message that is not scanned by the Content Scanner continues through the
rest of the email pipeline. When the message reaches the end of the pipeline, if the message has been flagged
for one or more quarantines then it enters those queues. Note that if the message does not reach the end of the
pipeline, it is not placed in a quarantine.
For example, a content filter can cause a message to be dropped or bounced, in which case the message will
not be quarantined.
Note If a policy quarantine is not defined in your email gateway, you cannotsent the message to the quarantine.
You can perform the following additional actions, if you choose to send the message to the policy quarantine:
• Modify the message subject
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
257
Using Message Filters to Enforce Email Policies
Sending Message to Policy Quarantine
• Add a custom header to the message
Modifying Message Subject Header
You can alter the text of messages that are sent to the policy quarantine by prepending or appending certain
text strings to help users easily identify and sort identified messages.
White space is not ignored in the “Modify message subject” field. Add spaces after (if prepending) or
before (if appending) the text you enter in this field to separate your added text from the original subject
of the message. For example, add the text [WARNING: UNSCANNABLE EXTRACTION FAILURE] with a few
trailing spaces if you are prepending.
Note
The default text that is added to the subject of the message that is sent to the policy quarantine:
Reason Default Text Added to Subject
Extraction failure [WARNING: UNSCANNABLE EXTRACTION FAILED]
RFC Violation [WARNING: UNSCANNABLE RFC NON-COMPLIANT]
[WARNING: DECODING ERRORS WHEN APPLYING URL
FILTERING ACTIONS]
Decoding errorsfound during URL
Filtering actions
Adding Custom Header to Message
You can define an additional, custom header to add to all messages that are sent to the policy quarantine.
Click Yes and define the header name and text.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
258
Using Message Filters to Enforce Email Policies
Sending Message to Policy Quarantine
CHAPTER 10
Mail Policies
This chapter contains the following sections:
• Overview of Mail Policies, on page 259
• How to Enforce Mail Policies on a Per-User Basis, on page 260
• Handling Incoming and Outgoing Messages Differently, on page 261
• Matching Users to a Mail Policy, on page 261
• Message Splintering, on page 264
• Configuring Mail Policies, on page 265
• Setting Priority for Message Headers, on page 270
Overview of Mail Policies
The email gateway enforces your organization’s policies for messages sent to and from your users through
the use of mail policies. These are sets of rulesthatspecify the types ofsuspect,sensitive, or malicious content
that your organization may not want entering or leaving your network. This content may include:
• spam
• legitimate marketing messages
• graymail
• viruses
• phishing and other targeted mail attacks
• confidential corporate data
• personally identifiable information
You can create multiple policies that satisfy the disparate security needs of the different user groups within
your organization. The email gateway uses the rules defined in these policies to scan each message and, if
necessary, perform an action to protect your user. For example, policies can prevent the delivery of suspected
spam messages to executives while allowing their delivery to IT staff but with a modified subject to warn
them of the content, or drop dangerous executable attachments for all users except those in the System
Administrator group.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
259
How to Enforce Mail Policies on a Per-User Basis
Procedure
Command or Action Purpose
The features you can enable and configure one
or more of the following:
Enable the content-scanning features that you
want the email gateway to use for incoming or
outgoing messages.
Step 1
• Anti-Virus, on page 365
• File ReputationFiltering andFile Analysis,
on page 481 (incoming messages only)
• Managing Spam and Graymail, on page
383
• Graymail Detection andSafe Unsubscribe.
See Managing Spam and Graymail, on
page 383.
• Outbreak Filters, on page 425
• Data Loss Prevention, on page 509
(outgoing messages only)
• Content Filters, on page 273
(Optional) Create content filters for actions to See Content Filters, on page 273
take on messages that contain specific data.
Step 2
See Using Group LDAP Queries to Determine
if a Recipient is a Group Member, on page 796.
(Optional) Define an LDAP group query in
order to specify users to whom the mail policy
rules apply.
Step 3
See Configuring the Default Mail Policy for
Incoming or Outgoing Messages , on page 265.
(Optional) Define the default mail policies for
incoming or outgoing messages.
Step 4
Define the group of users for whom you want Create an incoming or outgoing mail policy.
to set up user-specific mail policies.
Step 5
See Configuring MailPolicies, on page 265 for
more information.
Configure the different contentsecurity features
for the mail policy.
Configure the content security features and the
content filter actions the email gateway takes
on messages.
Step 6
• Content Filters: Applying the Content
Filter to Messages for a Certain User
Group, on page 293
• Anti-Virus: Configuring Virus Scanning
Actions for Users, on page 371
• File ReputationFiltering andFile Analysis:
File ReputationFiltering andFile Analysis,
on page 481
• Anti-Spam: Defining Anti-Spam Policies
, on page 399
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
260
Mail Policies
How to Enforce Mail Policies on a Per-User Basis
Command or Action Purpose
• Graymail Detection andSafe Unsubscribe:
Configuring the Incoming Mail Policy for
Graymail Detection and Safe
Unsubscribing, on page 394
• Outbreak Filters: The Outbreak Filters
Feature and the Outbreak Quarantine, on
page 443
• Data Loss Prevention: Using Outgoing
Mail Policies to Assign DLP Policies to
Senders and Recipients , on page 529.
Handling Incoming and Outgoing Messages Differently
The email gateway uses two different sets of mail policies for message content security:
• Incoming mail policies for messages are messages received from connections that match an ACCEPT
HAT policy in any listener.
• Outgoing mail policies for messages are messages from connections that match a RELAY HAT policy
in any listener. This includes any connection that was authenticated with SMTP AUTH.
Having separate sets of policies allow you to define different security rules for messages sent to your users
and messages sent from your users. You manage these policies using the Mail Policies > Incoming Mail
Policies or Outgoing Mail Policies pages in the GUI, or the policyconfig command in the CLI.
Some features can be applied only to incoming or to outgoing mail policies. For example, Data Loss
Prevention scanning can only be performed on outgoing messages. Advanced Malware Protection (File
Reputation scanning and File Analysis) is available in Incoming Mail Policies and Outgoing Mail
Policies.
In certain installations, “internal” mail being routed through the Cisco appliance may be considered
outgoing , even if all the recipients are addressed to internal addresses.For example, by default for C170
and C190 appliances, the system setup wizard will configure only one physical Ethernet port with one
listener for receiving inbound email and relaying outbound email.
Note
Matching Users to a Mail Policy
As messages are received by the email gateway, the email gateway attempts to match each message recipient
and sender to a mail policy in the Incoming or Outgoing Mail Policies table, depending on whether it is an
incoming or outgoing message.
Matches are based on the recipient’s address, the sender’s address, or both:
• Recipient address matches the Envelope Recipient address
When matching recipient addresses, the recipient addresses entered are the final addresses after processing
by preceding parts of the email pipeline. For example, if enabled, the default domain, LDAP routing or
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
261
Mail Policies
Handling Incoming and Outgoing Messages Differently
masquerading, alias table, domain map, and message filters features can rewrite the Envelope Recipient
address and may affect whether the message matches a mail policy.
• Sender address matches:
• Envelope Sender (RFC821 MAIL FROM address)
• Address found in the RFC822 From: header
• Address found in the RFC822 Reply-To: header
Addresses may be matched on either a full email address, user, domain, or partial domain, and addresses may
also match LDAP group membership.
Related Topics
• First Match Wins, on page 262
• Examples of Policy Matching, on page 262
First Match Wins
Each user (sender or recipient) is evaluated for each mail policy defined the appropriate mail policy table in
a top-down fashion.
For each user, the first matching policy wins. If a user does not match any specific policy, user will automatically
match the default policy of the table.
If a match is made based on a sender address, all remaining recipients of a message will match that policy.
(This is because there can be only one sender per message.)
The envelope sender and the envelope recipeint have a higher priority over the sender header when you match
a message to a mail policy. If you configure a mail policy to match a specific user, the messages are
automatically classified into the mail policy based on the envelope sender and the envelope recipient.
Examples of Policy Matching
The following examples help show how the policy tables are matched in a top-down fashion.
Given the following Incoming Mail Email Security Policy table shown in the following table, incoming
messages will match different policies.
Table 30: Policy Matching Example
Order Policy Name Users
Sender Recipient
joe@example.com
ann@example.com
1 special_people ANY
2 from_lawyers @lawfirm.com ANY
@newdomain.com
@anotherexample.com
3 acquired_domains ANY
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
262
Mail Policies
First Match Wins
Order Policy Name Users
PublicLDAP.ldapgroup:
engineers
4 engineering ANY
5 sales_team ANY jim@john@larry@
6 Default Policy ANY ANY
Related Topics
• Example 1, on page 263
• Example 2, on page 263
• Example 3, on page 263
Example 1
A message from sender bill@lawfirm.com sent to recipient jim@example.com matches:
• Policy #2 when the user description matches the sender ( @lawfirm.com ) and the recipient ( ANY ).
• Policy #2 when the envelope sender is bill@lawfirm.com.
• Policy #5 when the header sender is bill@lawfirm.com but the enveloper sender does not match
@lawfirm.com.
Example 2
Sender joe@yahoo.com sends an incoming message with three recipients: john@example.com,
jane@newdomain.com, and bill@example.com :
• The message for recipient jane@newdomain.com will receive the anti-spam, anti-virus, outbreak filters,
and content filters defined in policy #3.
• The message for recipient john@example.com will receive the settings defined in policy #5.
• Because the recipient bill@example.com does not match the engineering LDAP query, the message will
receive the settings defined by the default policy.
This example shows how messages with multiple recipients can incur message splintering . See Message
Splintering, on page 264 for more information.
Example 3
Sender bill@lawfirm.com (bill@lawfirm.com is used for envelope sender) sends a message to recipients
ann@example.com and larry@example.com :
• The recipient ann@example.com will receive the anti-spam, anti-virus, outbreak filters, and content filters
defined in policy #1.
• The recipient larry@example.com will receive the anti-spam, anti-virus, outbreak filters, and content
filters defined in policy #2, because the sender ( @lawfirm.com ) and the recipient ( ANY ) matches.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
263
Mail Policies
Example 1
Message Splintering
Intelligent message splintering is the mechanism that allows for differing recipient-based content security
rules to be applied independently to message with multiple recipients.
Each recipient is evaluated for each policy in the appropriate mail policy table (Incoming or Outgoing) in a
top-down fashion.
Each policy that matches a message creates a new message with those recipients. This process is defined as
message splintering :
• If some recipients match different policies, the recipients are grouped according to the policies they
matched, the message is split into a number of messages equal to the number of policies that matched,
and the recipients are set to each appropriate “splinter.”
• If all recipients match the same policy, the message is not splintered. Conversely, a maximum splintering
scenario would be one in which a single message is splintered for each message recipient.
• Each message splinter isthen processed by anti-spam, anti-virus, Advanced MalwareProtection (incoming
messages only), DLP scanning (outgoing messages only), Outbreak Filters, and content filters
independently in the email pipeline.
The following table illustrates the point at which messages are splintered in the email pipeline.
Email Security ↓ Message for all recipients
Manager
Scanning (Per
Recipient)
Message Filters
(filters)
Work
Queue
Messages are splintered immediately after
message filter processing but before
anti-spam processing:
Message for all recipients matching policy
1
Message for all recipients matching policy
2
Message for all other recipients (matching
the default policy)
DLP scanning is only
performed on outgoing
messages.
Note
Anti-Spam
(antispamconfig,
antispamupdate)
Anti-Virus
(antivirusconfig,
antivirusupdate)
File Reputation and Analysis
(Advanced Malware Protection)
(ampconfig)
Graymail Management
Content Filters
(policyconfig -> filters)
Outbreak Filters
(outbreakconfig,
outbreakflush, outbreakstatus,
outbreakupdate)
Data Loss Prevention
(policyconfig)
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
264
Mail Policies
Message Splintering
New MIDs (message IDs) are created for each message splinter (for example, MID 1 becomes MID 2
and MID 3). For more information, see the “Logging” chapter. In addition, the trace function shows
which policies cause a message to be split.
Note
Policy matching and message splintering in EmailSecurity Manager policies obviously affect how you manage
the message processing available on the email gateway.
Related Topics
• Managed Exceptions, on page 265
Managed Exceptions
Because the iterative processing of each splinter message impacts performance, Cisco recommends configuring
your content security rules on a managed exception basis. In other words, evaluate your organization’s needs
and try to configure the feature so that the majority of messages will be handled by the default mail policy
and the minority of messages will be handled by a few additional “exception” policies. In this manner, message
splintering will be minimized and you are less likely to impact system performance from the processing of
each splinter message in the work queue.
Configuring Mail Policies
Mail policies map different user groups to specific security settings, such as Anti-Spam or Anti-Virus.
Related Topics
• Configuring the Default Mail Policy for Incoming or Outgoing Messages , on page 265
• Creating a Mail Policy for a Group of Senders and Recipients, on page 266
• Finding Which Policies Apply to a Sender or Recipient, on page 269
Configuring the Default Mail Policy for Incoming or Outgoing Messages
The default mail policies apply to messages that are not covered by any other mail policy. If no other policies
are configured, the default policies apply to all messages.
Before You Begin
Understand how you can define the individual security services for the mail policy. See How to Enforce Mail
Policies on a Per-User Basis, on page 260.
Procedure
Step 1 Depending on your requirements, choose one of the following:
• Mail Policies > Incoming Mail Policies
• Mail Policies > Outgoing Mail Policies.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
265
Mail Policies
Managed Exceptions
Step 2 Click the link for the security service you want to configure for the Default mail policy.
For default security service settings, the first setting on the page defines whether the service is
enabled for the policy. You can click “Disable” to disable the service altogether.
Note
Step 3 Configure the settings for the security service.
Step 4 Click Submit.
Step 5 Submit and commit your changes.
Creating a Mail Policy for a Group of Senders and Recipients
Before You Begin
• Understand how you can define the individual security services for the mail policy. See How to Enforce
Mail Policies on a Per-User Basis, on page 260.
• Remember that each recipient is evaluated for each policy in the appropriate table (incoming or outgoing)
in a top-down fashion. See First Match Wins, on page 262 for more information.
• (Optional) Define the delegated administrators who will be responsible for managing the mail policy.
Delegated administrators can edit a policy’s Anti-Spam, Anti-Virus, Advanced Malware Protection, and
Outbreak Filters settings and enable or disable content filters for the policy. Only operators and
administrators can modify a mail policy’s name or its senders, recipients, or groups. Custom user roles
that have full access to mail policies are automatically assigned to mail policies.
Procedure
Step 1 Choose Mail Policies > Incoming Mail Policies or Mail Policies > Outgoing Mail Policies.
Step 2 Click Add Policy.
Step 3 Enter a name for the mail policy.
Step 4 (Optional) Click the Editable by (Roles) link and select the custom user roles for the delegated administrators
who will be responsible for managing the mail policy.
Step 5 Define users for the policy. For instructions to define users, see Defining Senders and Recipients for Mail
Policies, on page 267.
Step 6 Click Submit.
Step 7 Click the link for the content security service you want to configure for the mail policy.
Step 8 From the drop-down list, select the option to customize the settings for the policy instead of using the default
settings.
Step 9 Customize the security service settings.
Step 10 Submit and commit your changes.
What to do next
Related Topics
• Defining Senders and Recipients for Mail Policies, on page 267
• How to Configure the Email Gateway to Scan Messages for Spam, on page 384
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
266
Mail Policies
Creating a Mail Policy for a Group of Senders and Recipients
Defining Senders and Recipients for Mail Policies
You can define senders and recipients to whom the policy applies in the following ways:
• Full email address: user@example.com
• Partial email address: user@
• All users in a domain: @example.com
• All users in a partial domain: @.example.com
• By matching an LDAP Query
Entries for users are case-insensitive in both the GUI and CLI in AsyncOS. For example, if you enter
the recipient Joe@ for a user, a message sent to joe@example.com will match.
Note
While defining senders and recipients for mail policies, keep in mind that:
• You must specify at least one sender and recipient.
• You can set the policy to match if,
• The message is from any sender, one or more of the specified senders, or none of the specified
senders.
• The message is sent to any recipient, one or more of the specified recipients, or all of the specified
recipients and none of the specified recipients.
Procedure
Step 1 Under Users section, click Add User.
Step 2 Define the senders for the policy. Choose one of the following options:
• Any Sender. The policy is matched if the message is from any sender.
• Following Senders. The policy is matched if the message is from one or more of the specified senders.
Select this option and enter sender details in the text box or choose an LDAP group query.
• Following Senders are Not. The policy is matched if the message is not from none of the specified
senders. Select this option and enter sender details in the text box or choose an LDAP group query.
To understand how sender conditions are set while choosing the above fields, see Examples, on page 268.
Step 3 Define the recipients for the policy. Choose one of the following options:
• Any Recipient. The policy is matched if the message is sent to any recipient.
• Following Recipients. The policy is matched if the message is sent to the specified recipients. Select
this option, enter the recipient details in the text box or choose an LDAP group query.
You can choose whether policy is matched if the message is sent to one or more of the specified recipients or
all of the specified recipients. Choose one of the following options from the drop-down list: If one more
conditions match or Only if all conditions match.
• Following Recipients are Not. The policy is matched if the message is sent to none of the specified
recipients. Select this option, enter the recipient details in the text box or choose an LDAP group query.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
267
Mail Policies
Defining Senders and Recipients for Mail Policies
You can configure this option only if you have selected Following Recipients and chosen Only if
all conditions match from the drop-down list.
Note
To understand how recipient conditions are set while choosing the above fields, see Examples, on page 268.
Step 4 Click Submit.
Step 5 Review the selected conditions on the Users section.
What to do next
Related Topics
• Creating a Mail Policy for a Group of Senders and Recipients, on page 266
• Examples, on page 268
Examples
The following table describes how conditions are set when you choose various options on the Add User page.
Sender Recipient Condition
Following
Recipients are
Not
Following
Recipients
Any
Recipient
Following
Senders
are Not
Following
Senders
Any
Sender
Sender: Any
Recipient:
user1@[AND]user2@
Selected -
(Default) Only
if all
conditions
matchoption is
selected
Values:
user1@,
user2@
Selected - - -
Sender:
u1@a.com[OR]u2@a.com
Recipient:
[u1@b.com[AND]u2@b.com]
[AND]
[[NOT]
[u3@b.com[AND]u4@b.com]]
Selected
Values:
u3@b.com,
u4@b.com
Selected
(Default) Only
if all
conditions
matchoption is
selected
Values:
u1@b.com,
u2@b.com
Selected - -
Values:
u1@a.com,
u2@a.com
-
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
268
Mail Policies
Examples
Sender:
[NOT]
[u1@a.com[OR]u2@a.com]
Recipient:
u1@b.com [OR] u2@b.com
Selected -
If one or more
conditions
matchoption is
also selected
Values:
u1@b.com,
u2@b.com
Selected -
Values:
u1@a.com,
u2@a.com
- -
Related Topics
• Defining Senders and Recipients for Mail Policies, on page 267
Finding Which Policies Apply to a Sender or Recipient
Use theFindPoliciessection at the top of the MailPolicies page to search for users already defined in incoming
or outgoing mail policies.
For example, type bob@example.com and click the Find Policies button to display results showing which
policies contain defined users that will match the policy.
Click the name of the policy to edit the users for that policy.
Note that the default policy will always be shown when you search for any user, because, by definition, if a
sender or recipient does not match any other configured policies, it will always match the default policy.
Related Topics
• Managed Exceptions, on page 265
Managed Exceptions
Using the stepsshown in the two examples above, you can begin to create and configure policies on a managed
exception basis. In other words, after evaluating your organization’s needs you can configure policies so that
the majority of messages will be handled by the default policy. You can then create additional “exception”
policies for specific users or user groups, managing the differing policies as needed. In this manner, message
splintering will be minimized and you are less likely to impact system performance from the processing of
each splinter message in the work queue.
You can define policies based on your organizations’ or users’ tolerance for spam, viruses, and policy
enforcement. The following table outlines several example policies. “Aggressive” policies are designed to
minimize the amount ofspam and virusesthat reach end-users mailboxes. “Conservative” policies are tailored
to avoid false positives and prevent users from missing messages, regardless of policies.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
269
Mail Policies
Finding Which Policies Apply to a Sender or Recipient
Table 31: Aggressive and Conservative Email Security Manager Settings
Aggressive Settings Conservative Settings
Positively identified spam: Quarantine
Suspected spam: Deliver and prepend “ [Suspected
Spam] ” to the subject of messages
Marketing mail: Disabled
Positively identified spam: Drop
Suspected spam: Quarantine
Marketing mail: Deliver and prepend “
[Marketing] ” to the subject messages
Anti-Spam
Repaired messages: Deliver
Encrypted messages: Quarantine
Unscannable messages: Quarantine
Infectious messages: Drop
Repaired messages: Deliver
Encrypted messages: Drop
Unscannable messages: Drop
Infectious messages: Drop
Anti-Virus
Unscanned attachments: Deliver and prepend “
[WARNING: ATTACHMENT UNSCANNED] ” to the subject of
messages.
Messages with Malware Attachments: Drop
Messages with pending File Analysis: Deliver and
prepend “ [WARNING: ATTACHMENT(S) MAY CONTAIN
MALWARE] ” to the subject of messages.
Unscanned attachments: Drop
Messages with Malware Attachments: Drop
Messages with pending File Analysis: Quarantine
Advanced Malware
Protection
(File Reputation
Filtering and File
Analysis)
Enabled with specific filename extensions or domains
allowed to bypass
Enable message modification for unsigned messages
Enabled, no specific filename extensions or domains
allowed to bypass
Enable message modification for all messages
Virus Filters
Setting Priority for Message Headers
You can set the priority for a message header to match the incoming and outgoing messages in your email
gateway.
You can set the priority in which the email gateway checks for message headers in the incoming and
outgoing messages. The email gateway first checks for the message header with the highest priority for
all the mail policies. If there is no header match in any of the mail policies, the email gateway looks for
the next message header in the priority list for all the mail policies. If none of the message headers match
in any of the mail policies, the default mail policy settings are used.
Important
Procedure
Step 1 Go to Mail Policies > Mail Policy Settings.
By default, the Envelope Sender header is set to a priority 1. You can click on the Envelope Sender link to
change the priority.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
270
Mail Policies
Setting Priority for Message Headers
Step 2 Click Add Priority and check the appropriate header name (for example, Header “From’”) check box to add
a new priority.
Step 3 Click Submit and commit your changes.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
271
Mail Policies
Setting Priority for Message Headers
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
272
Mail Policies
Setting Priority for Message Headers
CHAPTER 11
Content Filters
This chapter contains the following sections:
• Overview of Content Filters , on page 273
• How Content Filters Work, on page 273
• Content Filter Conditions, on page 274
• Content Filter Actions, on page 282
• How to Filter Messages Based on Content, on page 291
Overview of Content Filters
Use content filters to customize handling of messages beyond the standard routine handling by the other
content security features such as anti-virus scanning or DLP. For example, you can use a content filter if the
content warrants quarantining for later examination, or because corporate policy requires certain messages to
be encrypted before delivery.
How Content Filters Work
Content filters are similar to message filters, except that they are applied later in the email pipeline — after
message filtering, after a message has been “splintered” into a number ofseparate messagesfor each matching
mail policy, (see MessageSplintering, on page 264 for more information), and after the message has undergone
anti-spam and anti-virus scanning.
A content filter scans either incoming or outgoing messages. You cannot define a filter that scans both types
of messages. The email gateway has a separate “primary list” of content filters for each type of message. The
primary list also determines in which order the appliance runs the content filters. However, each individual
mail policy determines which particular filters will be executed when a message matches the policy.
Content filters scan messages on a per-user (sender or recipient) basis.
Content filters have the following components:
• conditions that determine when the email gateway uses a content filter to scan a message (optional)
• actions that the email gateway takes on a message (required)
• action variables that the email gateway can add to a message when modifying it (optional)
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
273
Related Topics
• How to Scan Message Content Using a Content Filter, on page 274
• Content Filter Conditions, on page 274
• Content Filter Actions, on page 282
• Action Variables, on page 289
How to Scan Message Content Using a Content Filter
Procedure
Command or Action Purpose
Create any of the following itemsthat you want
to use with your content filter:
(Optional) Define the supporting features for
the content filter.
Step 1
• Encryption Profile
• Disclaimer template
• Notification template
• Policy quarantine
• URL allowed lists
Step 2 Define the incoming or outgoing content filter. A content filter may be comprised of:
• Content Filter Conditions, on page 274
(optional)
• Content Filter Actions, on page 282
• Action Variables, on page 289 (optional)
Creating a Content Filter, on page 291
Define the group of users for whom you want Create an incoming or outgoing mail policy.
to set up content security rules.
Step 3
Assign the content filter to the group of user See Mail Policies, on page 259
whose incoming or outgoing messages you want
to use the filter for.
Step 4
Content Filter Conditions
A condition is a “trigger” that determines whether the email gateway uses the filter on a message that matches
the associated mail policy. Specifying conditions for a content filter is optional. Content filters without a
condition are applied to all messages that match the associated mail policy.
In the content filter conditions, when you add filter rules that search for certain patterns in the message body
or attachments, you can specify the minimum threshold for the number of times the pattern must be found.
When AsyncOS scans the message, it totals the “score” for the number of matches it finds in the message and
attachments. If the minimum threshold is not met, the regular expression does not evaluate to true. You can
specify this threshold for text, smart identifiers, or content dictionary terms.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
274
Content Filters
How to Scan Message Content Using a Content Filter
Multiple conditions may be defined for each filter. When multiple conditions are defined, you can choose
whether the conditions are tied together as a logical OR (“Any of the following conditions...”) or a logical
AND (“All of the following conditions”).
Table 32: Content Filter Conditions
Condition Description
Specifying conditions in content filters is optional. If no conditions are specified,
a true rule is implied. The true rule matches all messages, and the actions are
always performed.
(no conditions)
Contains text: Does the message body contain text or an attachment that matches
a specific pattern?
Containssmart identifier: Does content in the message body or attachment match
a smart identifier?
• Credit card numbers
• U.S. Social Security numbers
• CUSIP(Committee on Uniform Security IdentificationProcedures) numbers
• ABA (American Banking Association) routing numbers
Containssmart identifierprefix: Does content in the message body or attachment
match a smart identifier with a prefix (‘credit,' 'ssn,' 'cusip,' or 'aba’)?
Contains term in content dictionary: Does the message body contain any of the
regular expressions or terms in the content dictionary named
?
For this option to be enabled, the dictionary must already have been created. See
Content Dictionaries, on page 643.
The dictionary-related conditions are only available if you have one or
more dictionaries enabled. For information about creating content
dictionaries, see Content Dictionaries, on page 643.
Note
Number of matches required. Specify the number of matches required for the
rule to evaluate to true. You can specify this threshold for text, smart identifiers,
or content dictionary terms.
This includes delivery-status parts and associated attachments.
Message Body or
Attachments
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
275
Content Filters
Content Filter Conditions
Condition Description
Containstext: Doesthe message body contain text that matches a specific pattern?
Contains smart identifier: Does content in the message body match a smart
identifier? Smart identifiers can detect the following patterns:
• Credit card numbers
• U.S. Social Security numbers
• CUSIP(Committee on Uniform Security IdentificationProcedures) numbers
• ABA (American Banking Association) routing numbers
Contains smart identifier prefix: Does content in the message body match a
smart identifier with a prefix (‘credit,' 'ssn,' 'cusip,' or 'aba’)?
Contains term in content dictionary: Does the message body contain any of the
regular expressions or terms in the content dictionary named
?
For this option to be enabled, the dictionary must already have been created. See
Content Dictionaries, on page 643.
The dictionary-related conditions are only available if you have one or
more dictionaries enabled. For information about creating content
dictionaries, see Content Dictionaries, on page 643.
Note
Number of matches required. Specify the number of matches required for the
rule to evaluate to true. You can specify this threshold for text or smart identifiers.
This rule applies to the body of the message only. It does not include attachments
or headers.
Message Body
See Filtering by URL Reputation or URL Category: Conditions and Rules , on
page 455 and About URL Categories, on page 466.
URL Category
Is the body size within a specified range? Body size refers to the size of the
message, including both headers and attachments. The body-size rule selectsthose
messages where the body size compares as directed to a specified number.
Message Size
Does the incoming or outgoing message contain macro-enabled attachments?
You can use the Macro Detection condition to detect macro-enabled attachments
in messages for the selected file type(s).
Macro Detection
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
276
Content Filters
Content Filter Conditions
Condition Description
Containstext. Doesthe message contain an attachment that containstext or another
attachment that matches a specific pattern? This rule is similar to the
body-contains() rule, but it attempts to avoid scanning the entire “body” of the
message. That is, it attempts to scan only that which the user would view as being
an attachment.
Contains a smart identifier. Does content in the message attachment match the
specified smart identifier?
Contains smart identifierprefix: Does content in the message attachment match
a smart identifier with a prefix (‘credit,' 'ssn,' 'cusip,' or 'aba’)?
Contains terms in content dictionary. Does the attachment contain any of the
regular expressions or terms in the content dictionary named
?
To search for dictionary terms, the dictionary must already have been created. See
Content Dictionaries, on page 643.
The dictionary-related conditions are only available if you have one or
more dictionaries enabled. For information about creating content
dictionaries, see Content Dictionaries, on page 643.
Note
Number of matches required. Specify the number of matches required for the
rule to evaluate to true. You can specify this threshold for text, smart identifier,
or content dictionary matches.
Attachment Content
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
277
Content Filters
Content Filter Conditions
Condition Description
Filename. Does the message have an attachment with a filename that matches a
specific pattern?
Filename contains term in content dictionary. Does the message have an
attachment with a filename that contains any of the regular expressions or terms
in the content dictionary named ?
For this option to be enabled, the dictionary must already have been created. See
Content Dictionaries, on page 643.
The dictionary-related conditions are only available if you have one or
more dictionaries enabled. For information about creating content
dictionaries, see Content Dictionaries, on page 643.
Note
File type. Does the message have an attachment of a file type that matches a
specific pattern based on its fingerprint (similar to a UNIX file command)?
MIME type. Does the message have an attachment of a specific MIME type?
This rule is similar to the attachment-type rule, except only the MIME type given
by the MIME attachment is evaluated. (The email gateway does not try to “guess”
the type of the file by its extension if there is no explicit type given.)
File Hash List. Does the message have an attachment that matches a specific file
SHA-256 value? Select the required file hash list from the drop-down list.
You can only select a file hash list that contains the SHA-256 file hash
type.
Note
Image Analysis. Does the message have an image attachment that matches the
image verdict specified? Valid image analysis verdicts include: Suspect,
Inappropriate, Suspect or Inappropriate, Unscannable , or Clean.
External Threat Feeds: Does the file match the threat information from the
selected external threat feed source(s)?
Select a File Hash Exception List: (Optional) Select the list of allow listed file
hashes that you do not want the email gateway to detect for threats.
For more information,see Configuring Email Gateway to Consume External Threat
Feeds, on page 297.
Attachment is Corrupt. Does this message have an attachment that is corrupt?
A corrupt attachment is an attachment that the scanning engine cannot
scan and identified as corrupt.
Note
Attachment File Info
Contains an attachment that is password-protected or encrypted.
(For example, use this condition to identify attachments that are potentially
unscannable.)
Contains an attachment that is NOT password-protected or encrypted.
Attachment Protection
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
278
Content Filters
Content Filter Conditions
Condition Description
Subject Header: Does the subject header match a certain pattern?
Contains terms in content dictionary: Does the subject header contain any of
the regular expressions or terms in the content dictionary ?
To search for dictionary terms, the dictionary must already have been created. See
Content Dictionaries, on page 643.
The dictionary-related conditions are only available if you have one or
more dictionaries enabled. For information about creating content
dictionaries, see Content Dictionaries, on page 643.
Note
Subject Header
Header name: Does the message contain a specific header?
Header value: Does the value of that header match a certain pattern?
Header value contains terms in the content dictionary. Does the specified
header contain any of the regular expressions or terms in the content dictionary
named ?
To search for dictionary terms, the dictionary must already have been created. See
Content Dictionaries, on page 643
The dictionary-related conditions are only available if you have one or
more dictionaries enabled. For information about creating content
dictionaries, see Content Dictionaries, on page 643.
Note
For an example showing how this option can be used, see Using Custom Headers
to Redirect URLs in Suspected Spam to the Cisco Web Security Proxy:
Configuration Example , on page 403.
Other Header
Envelope Sender. Does the Envelope Sender (i.e., the Envelope From, ) match a given pattern?
Matches LDAP group. Is the Envelope Sender, i.e., the Envelope From, ) in a given LDAP group?
Contains term in content dictionary. Does the envelope sender contain any of
the regular expressions or termsin the content dictionary named
?
To search for dictionary terms, the dictionary must already have been created. See
Content Dictionaries, on page 643.
The dictionary-related conditions are only available if you have one or
more dictionaries enabled. For information about creating content
dictionaries, see Content Dictionaries, on page 643.
Note
Envelope Sender
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
279
Content Filters
Content Filter Conditions
Condition Description
Envelope Recipient. Does the Envelope Recipient, (i.e. the Envelope To, ) match a given pattern?
Matches LDAP group. Is the Envelope Recipient, (i.e. the Envelope To, ) in a given LDAP group?
Contains term in content dictionary. Does the envelope recipient contain any
of the regular expressions or terms in the content dictionary named ?
To search for dictionary terms, the dictionary must already have been created. See
Content Dictionaries, on page 643.
The dictionary-related conditions are only available if you have one or
more dictionaries enabled. For information about creating content
dictionaries, see Content Dictionaries, on page 643.
The Envelope Recipient rule is message-based. If a message has multiple
recipients, only one recipient hasto be found in a group for the specified
action to affect the message to all recipients.
Note
Is the Envelope Sender (i.e., the Envelope From, ) in a given
LDAP group?
Envelope Recipient
Did the message arrive via the named listener? The listener name must be the name
of a listener currently configured on the system.
Receiving Listener
Was the message sent from a remote host that matches a given IP address or IP
block? The Remote IP rule tests to see if the IP address of the host that sent that
message matches a certain pattern. This can be an Internet Protocol version 4
(IPv4) or version 6 (IPv6) address. The IP address pattern is specified using the
allowed hosts notation described in Sender Group Syntax, on page 95, except for
the SBO, IPR, dnslist notations and the special keyword ALL.
Remote IP
What is the sender’s IP Reputation Score? The Reputation Score rule checks the
IP Reputation Score against another value.
Reputation Score
Did DKIM authentication pass, partially verify, return temporarily unverifiable,
permanently fail, or were no DKIM results returned?
DKIM Authentication
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
280
Content Filters
Content Filter Conditions
Condition Description
Is the sender address of the message forged? The rule checks if the From: header
in the message is similar to any of the users in the content dictionary.
Select a content dictionary and enter the threshold value (1 through 100) for
considering a message as potentially forged.
The Forged Email Detection condition compares the From: header with the users
in the content dictionary. During this process, depending on the similarity, the
email gateway assigns similarity score to each of the users in the dictionary. The
following are some examples:
• If theFrom: header is and the content dictionary
contains a user ‘John Simons,’ the email gateway assigns a similarity score
of 82 to the user.
• If the From: header is and the content
dictionary contains a user ‘John Simons,’ the email gateway assigns a
similarity score of 100 to the user.
The higher the similarity score, the higher the probability that the message is
forged. If the similarity score is greater than or equal to the specified threshold
value, the filter action is triggered.
If you want to skip the Forged email detection filter for messages from specific
senders, choose the address list from the Exception List drop-down list.
You can choose only the address lists that are created using the full
email addresses. For more information, refer to Using a List of Sender
Addresses for Incoming Connection Rules, on page 114.
Note
For more information, see Forged Email Detection, on page 640.
Forged Email Detection
What was the SPF verification status? This filter rule allows you to query for
different SPF verification results. For more information about SPF verification,
see the “Email Authentication” chapter.
If you have configured an SPF verification content filter condition
without an SPF identity and if a message contains different SPF
identities with different verdicts, the condition is triggered if one of the
verdicts in the message matches the condition.
Note
SPF Verification
Is the message S/MIME signed, encrypted, or signed and encrypted? For more
information, see S/MIME Security Services, on page 553
S/MIME Gateway
Message
IstheS/MIME message successfully verified, decrypted, or decrypted and verified?
For more information, see S/MIME Security Services, on page 553
S/MIME Gateway
Verified
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
281
Content Filters
Content Filter Conditions
Condition Description
Is the message (subject and body) in one of the selected languages? This condition
will not check for the language in attachments and headers.
How does language detection work?
The email gateway usesthe built-in language detection engine to detect the language
in a message. The email gateway extracts the subject and the message body and
passes it to the language detection engine.
The language detection engine determines the probability of each language in the
extracted text and passesit back to the email gateway. The email gateway considers
the language with the highest probability as the language of the message. The
email gateway considers the language of the message as ‘undetermined’ in one of
the following scenarios:
• If the detected language is not supported by email gateway
• If the email gateway is unable to detect the language of the message
• If the total size of the extracted text sent to the language detection engine is
less than 50 bytes.
Message Language
Does the message contain duplicate MIME boundaries?
If you want to take actions on messages that contain duplicate MIME boundaries,
use this condition.
Attachment-based conditions (for example, Attachment Content) or
actions (for example, Strip Attachment by Content) will not work on
malformed messages (with duplicate MIME boundaries).
Note
Duplicate Boundaries
Verification
Does the message originate from the selected countries?
You can use the Geolocation condition to handle incoming messagesfrom particular
countries that you select.
Enable the Anti-Spam engine on your email gateway before you use
the Geolocation content filter.
Note
Geolocation
Does the sender domain match the specified criteria?
• Sender Domain Reputation
• External Threat Feeds
For more information,see Configuring Email Gateway to Consume External Threat
Feeds, on page 297 or Sender Domain Reputation Filtering, on page 319
Domain Reputation
Content Filter Actions
The action is what the email gatewaydoes with a message that matches the content filter’s condition. Many
different types of actions are available, including modifying the message, quarantining it, or dropping it. A
“final action” performed on a message, delivering or dropping it, forces the Email Security appliance to
perform the action immediately and forgo all further processing, such as Outbreak Filter or DLP scanning.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
282
Content Filters
Content Filter Actions
At least one action must be defined for each content filter.
Actions are performed in order on messages, so consider the order of actions when defining multiple actions
for a content filter.
When you configure a quarantine action for messages that match Attachment Content conditions, Message
Body or Attachment conditions, Message body conditions, or the Attachment content conditions, you can
view the matched content in the quarantined message. When you display the message body, the matched
content is highlighted in yellow. You can also use the $MatchedContent action variable to include the matched
content in the message subject. For more information, see the Text Resources chapter.
Only one final action may be defined per filter, and the final action must be last action listed. Bounce, deliver,
and drop are final actions. When entering actions for content filters, the GUI and CLI will force final actions
to be placed last.
See also Action Variables, on page 289.
Table 33: Content Filter Actions
Action Description
Quarantine. Flags the message to be held in one of the policy quarantine
areas.
Duplicate message: Sends a copy of the message to the specified quarantine
and continues processing the original message. Any additional actions apply
to the original message.
Quarantine
The message continues to the next stage of processing. When all processing
is complete, the message is encrypted and delivered.
Encryptionrule: Always encryptsthe message or only encryptsit if an attempt
to send it over a TLS connection first fails. See Using a TLS Connection as
an Alternative to Encryption, on page 546 for more information.
Encryption Profile. Once processing is complete, encryptsthe message using
the specified encryption profile, then delivers the message. This action is for
use with a Cisco Encryption Appliance or a hosted key service.
Subject. Subject for the encrypted message. By default, the value is
$Subject .
Encrypt on Delivery
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
283
Content Filters
Content Filter Actions
Action Description
Attachment contains. Drops all attachments on messages that contain the
regular expression. Archive files (zip, tar) will be dropped if any of the files
they contain match the regular expression pattern.
Contains smart identifier. Drops all attachments on a message that contains
the specified smart identifier.
Attachment contains terms in the content dictionary. Does the attachment
contain any of the regular expressions or termsin the content dictionary named
?
Number of matches required. Specify the number of matches required for
the rule to evaluate to true. You can specify this threshold for text, smart
identifier, or content dictionary matches.
Replacement message. The optional comment serves as the means to modify
the text used to replace the attachment that was dropped. Attachment footers
simply append to the message.
Strip Attachment by Content
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
284
Content Filters
Content Filter Actions
Action Description
Filename. Drops all attachments on messagesthat have a filename that match
the given regular expression. Archive file attachments(zip, tar) will be dropped
if they contain a file that matches.
File size. Drops all attachments on the message that, in raw encoded form,
are equal to or greater than the size (in bytes) given. Note that for archive or
compressed files, this action does not examine the uncompressed size, but
rather the size of the actual attachment itself.
File type. Drops all attachments on messagesthat match the given “fingerprint”
of the file. Archive file attachments (zip, tar) will be dropped if they contain
a file that matches.
MIME type. Drops all attachments on messages that have a given MIME
type.
File Hash List. Drops all attachments on messagesthat match the fileSHA-256
value in the selected file hash list. Select the required file hash list from the
drop-down list.
You can only select a file hash list that contains the SHA-256 file
hash type.
Note
Image Analysis Verdict. Drops attachmentsfor image attachmentsthat match
the image verdict specified. Valid image analysis verdicts include: Suspect,
Inappropriate, Suspect or Inappropriate, Unscannable , or Clean .
External Threat Feeds. Drops all message attachments on messages whose
files are categorized as malicious by the ETF engine.
Select a File Hash Exception List. (Optional) Select the list of allow listed
file hashes that you do not want the Cisco Email Security Gateway to detect
for threats.
For more information, see Configuring Email Gateway to Consume External
Threat Feeds, on page 297.
Replacement message. The optional comment serves as the means to modify
the text used to replace the attachment that was dropped. Attachment footers
simply append to the message.
Strip Attachment byFile Info
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
285
Content Filters
Content Filter Actions
Action Description
Drops all macro-enabled attachments of the specified file type.
If an archive or embedded file contains macros, the parent file is
dropped from the message.
Note
Custom Replacement Message (Optional): By default, a system generated
message is added to the bottom of the message body when an attachment is
dropped.
The following is a sample system generated message when a macro-enabled
attachment is dropped from the message:
A MIME attachment of type
was removed here by a drop-macro-enabled-attachments
filter rule on the host .
The custom message that you enter in the Custom Replacement Message
field replaces the system-generated message.
Strip Attachment with Macro
See Modifying URLsin Messages: Using URL Reputation and URL Category
Actions inFilters , on page 456 and Creating Allowed Lists for URL Filtering
, on page 452.
Use “No Score” to specify an action for URLs for which a reputation cannot
be determined.
The email gateway considers a message signed if it is encrypted
using S/MIME or it contains an S/MIME signature.
Note
URL Reputation
See Modifying URLsin Messages: Using URL Reputation and URL Category
Actions in Filters , on page 456 and About URL Categories, on page 466.
The email gateway considers a message signed if it is encrypted
using S/MIME or it contains an S/MIME signature.
Note
URL Category
Above. Add disclaimer above message (heading).
Below. Add disclaimer below message (footer).
Note: You must have already created disclaimer text in order to use this content
filter action.
See Disclaimer Template, on page 655 for more information.
Add Disclaimer Text
Bypass Outbreak Filter Bypass Outbreak Filter scanning for this message.
Scanning
Bypass DKIM Signing Bypass DKIM signing for this message.
Email addresses. Copiesthe message anonymously to the specified recipients.
Subject. Add a subject for the copied message.
Return path (optional). Specify a return path.
Alternate mail host (optional). Specify an alternate mail host.
Send Copy (Bcc:)
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
286
Content Filters
Content Filter Actions
Action Description
Notify. Reports this message to the specified recipients. You can optionally
notify the sender and recipients.
Subject. Add a subject for the copied message.
Return path (optional). Specify a return path.
Use template. Select a template from the templates you created.
Include original message as an attachment. Adds the original message as
an attachment.
Notify
Email address. Changes the recipient of the message to the specified email
address.
Change Recipient to
Mail host. Changes the destination mail host for the message to the specified
mail host.
This action prevents a message classified as spam by an anti-spam
scanning engine from being quarantined. This action overrides the
quarantine and sends it to the specified mail host.
Note
Send to Alternate Destination
Host
Send from IP interface. Send from the specified IP Interface. The Deliver
from IP Interface action changes the source host for the message to the source
specified. The source host consists of the IPinterface that the messages should
be delivered from.
Deliver from IP Interface
Header name. Remove the specified header from the message before
delivering.
Strip Header
Inserts a new header into the message or modifies an existing header.
Header name. Name of new or existing header.
Specify value of new header. Inserts a value for the new header into the
message before delivering.
Prepend to the Value of Existing Header. Prepends the value to the existing
header before delivering.
Append to the Value of Existing Header. Appends the value to the existing
header before delivering.
Search & Replace from the Value of Existing Header. Enter a search term
to find the value you want to replace in the existing header in the Search for
field. Enter the value you want to insert into the header in the Replace with
field. You can use a regular expression to search for the value. Leave the
Replace with field empty if you want to delete the value from the header.
Add/Edit Header
Strips the From: header from the forged message and replaces it with the
Envelope Sender.
See Forged Email Detection, on page 640.
Forged Email Detection
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
287
Content Filters
Content Filter Actions
Action Description
Inserts a custom term into the message to use with DLP policy filtering. You
can configure a DLP policy to limit scanning to messages with the message
tag. The message tag is not visible to recipients. For information on using
messages tags in a DLP policy, see Policies for Data Loss Prevention, on
page 512.
Add Message Tag
Inserts customized text into the IronPort Text Mail logs at the INFO level.
The text can include action variables. The log entry also appears in message
tracking.
Add Log Entry
Performs anS/MIME signing or encryption of the message during the delivery.
This means that the message continues to the next stage of processing, and
when all processing is complete, the message is signed or encrypted and
delivered.
S/MIME Sending Profile: Performs an S/MIME signing or encryption using
the specified S/MIME sending profile. See Managing S/MIME Sending
Profiles, on page 563.
S/MIME Sign/Encrypt on
Delivery
Encrypts and delivers the message, skipping any further processing.
Encryptionrule: Always encryptsthe message or only encryptsit if an attempt
to send it over a TLS connection first fails. See Using a TLS Connection as
an Alternative to Encryption, on page 546 for more information.
Encryption Profile. Encrypts the message using the specified encryption
profile, then delivers the message. This action is for use with a Cisco
Encryption Appliance or a hosted key service.
Subject. Subject for the encrypted message. By default, the value is
$Subject .
Encrypt and Deliver Now
(Final Action)
Performs anS/MIME signing or encryption and deliversthe message,skipping
any further processing.
S/MIME Sending Profile: Performs an S/MIME signing or encryption using
the specified S/MIME sending profile. See Managing S/MIME Sending
Profiles, on page 563.
S/MIME Sign/Encrypt (Final
Action)
Bounce (Final Action) Sends the message back to the sender.
Delivers the message to the next stage of processing, skipping any further
content filters. Depending on configuration, this may mean deliver the message
to recipient(s), quarantine, or begin Outbreak Filters scanning.
Skip Remaining Content
Filters (Final Action)
Drop (Final Action) Drops and discards the message.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
288
Content Filters
Content Filter Actions
Action Description
Use the 'Safe Print' content filter action to safe print a message attachment.
You can use the Safe Print content filter action in any one of the following
ways:
• Safe print matching attachments: Use this option to safe print all
message attachments that match a configured content filter condition.
• Safe print all attachments: Use this option to safe print all message
attachments when the configured content filter condition is true
Select Yes to strip a message attachment that is marked as unscannable.
By default, a system generated message is added as an attachment
text file when an attachment is unscannable. You can enter a custom
message in the Custom Replacement Message field.
Note
For more information, see How to Configure Email Gateway to Safe Print
Message Attachments, on page 346.
Safe Print
Related Topics
• Action Variables, on page 289
Action Variables
Headers added to messages processed by content filters can contain variables that will be automatically
replaced with information from the original message when the action is executed. These special variables are
called action variables. Your email gateway supports the following set of action variables:
Table 34: Action Variables
Variable Syntax Description
Replaced by the message headers.
$AllHeaders
All Headers
Replaced by the size, in bytes, of the message.
$BodySize
Body Size
Replaced by the current date, using the format
MM/DD/YYYY.
$Date
Date
Returns only the most recently dropped filename.
$dropped_filename
Dropped File Name
Same as $filenames , but displays list of dropped files.
$dropped_filenames
Dropped File Names
Same as $filetypes , but displays list of dropped file types.
$dropped_filetypes
Dropped File Types
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
289
Content Filters
Action Variables
Variable Syntax Description
Replaced by the EnvelopeSender (EnvelopeFrom, ) of the message. $envelopefrom
or
$envelopesender
Envelope Sender
Replaced by all Envelope Recipients(Envelope To, ) of the message. $EnvelopeRecipients
Envelope Recipients
Replaced with a comma-separated list of the message’s
attachments’ filenames. $filenames
File Names
Replaced with a comma-separated list of the message’s
attachment’s file sizes. $filesizes
File Sizes
Replaced with a comma-separated list of the message's
attachments' file types. $filetypes
File Types
Replaced by the name of the filter being processed.
$FilterName
Filter Name
Replaced by the current time and date, as would be found
in the Received: line of an email message, using GMT.
$GMTimeStamp
GMTimeStamp
Replaced by the name of the sender group the sender
matched on when injecting the message. If the sender group
had no name, the string “ >Unknown< ” is inserted.
$Group
HAT Group Name
Replaced by the name of the HAT policy applied to the
sender when injecting the message. If no predefined policy
name was used, the string “ >Unknown< ” is inserted.
$Policy
Mail Flow Policy
Replaced by the value (or values) that triggered a
content-scanning filter. Matched content can be a content
dictionary match, a smart identifier, or a match to a regular
expression.
$MatchedContent
Matched Content
Replaced by the value of the quoted header, if the original
message contains a matching header. Note that double
quotes may also be used.
$Header['string
']
Header
Replaced by the hostname of the email gateway.
$Hostname
Hostname
Replaced by the Message ID, or “MID” used internally to
identify the message. Not to be confused with the RFC822
“Message-Id” value (use $Header to retrieve that).
$MID
Internal Message ID
Replaced by the nickname of the listener that received the
message. $RecvListener
Receiving Listener
Replaced by the nickname of the interface that received
the message. $RecvInt
Receiving Interface
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
290
Content Filters
Action Variables
Variable Syntax Description
Replaced by the IP address of the system that sent the
message to the email gateway.
$RemoteIP
Remote IP Address
Replaced by the hostname of the system that sent the
message to the email gateway.
$remotehost
Remote Host Address
Replaced by theSenderBase Reputation score of the sender.
If there is no reputation score, it is replaced with “ None ”. $Reputation
SenderBase Reputation
Score
Replaced by the subject of the message.
$Subject
Subject
Replaced by the current time, in the local time zone.
$Time
Time
Replaced by the current time and date, as would be found
in the Received: line of an email message, in the local time
zone.
$Timestamp
Timestamp
How to Filter Messages Based on Content
Related Topics
• Creating a Content Filter, on page 291
• Enabling Content Filters for All Recipients by Default, on page 292
• Applying the Content Filter to Messages for a Certain User Group, on page 293
• Notes on Configuring Content Filters in the GUI, on page 293
Creating a Content Filter
Before You Begin
• If you want to encrypt a message that matches the content filter, create an encryption profile.
• If you want to add a disclaimer to a matching message, create a disclaimer template to use for generating
disclaimers.
• If you want to send a notification message to a user due to a matching message, create a notification
template for generating notifications.
• If you want to quarantine a message, you create a new policy quarantine for these messages or use an
existing one.
Procedure
Step 1 Click Mail Policies > Incoming Mail Policies
or
Mail Policies > Outgoing Mail Policies.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
291
Content Filters
How to Filter Messages Based on Content
Step 2 Click Add Filter.
Step 3 Enter a name and description for the filter.
Step 4 (X-REF) Click the Editable By (Roles) link, select the Policy Administrator and click OK.
Delegated administrators who belong to the Policy Administrator user role will be able to edit this content
filter and use it in their mail policies.
Step 5 (Optional) Add a condition for triggering the filter.
a) Click Add Condition.
b) Select the condition type.
c) Define the condition’s rules.
d) Click OK.
e) Repeat these steps for any additional conditions you want to add to the filter. When you define more than
one condition for a content filter, you can define whether all of the defined actions (that is, a logical AND)
or any of the defined actions (logical OR) need to apply in order for the content filter to be considered a
match.
If you do not add a condition, the email gateway will perform the content filter’s action to any
message that matches one of the mail policies associated with the filter.
Note
Step 6 Add an action for the email gateway to take on a message that matches the filter’s condition.
a) Click Add Action.
b) Select the action type.
c) Define the action.
d) Click OK.
e) Repeat the previous steps for any additional actions you want the email gateway to take.
f) For multiple actions, arrange the actions in the order that you want the email gateway to apply them to
the message. There can only be one “final” action per filter, and AsyncOS automatically moves the final
action to the end of the order.
Step 7 Submit and commit your changes.
What to do next
• You can enable the content filter in a default incoming or outgoing mail policy.
• You can enable the content filter in a mail policy for a specific group of users.
Enabling Content Filters for All Recipients by Default
Procedure
Step 1 Click Mail Policies > Incoming Mail Policies
or
Mail Policies > Outgoing Mail Policies.
Step 2 Click the link for the Content Filters security service in the default policy row.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
292
Content Filters
Enabling Content Filters for All Recipients by Default
Step 3 On the Content Filtering security service page, change the value Content Filtering for Default Policy from
“Disable Content Filters” to “Enable Content Filters (Customize settings).”
The content filters defined in the primary list (which were created in Overview of Content Filters , on page
273) are displayed on this page. When you change the value to “Enable ContentFilters (Customize settings),”
the checkboxes for each filter become enabled.
Step 4 Check the Enable checkbox for each content filter you want to enable.
Step 5 Submit and commit your changes.
Applying the Content Filter to Messages for a Certain User Group
Before You Begin
• Create an incoming or outgoing mail policy for the group of users whose messages for which you want
to use the content filter. See Creating a Mail Policy for a Group of Senders and Recipients, on page 266
for more information.
Procedure
Step 1 Click Mail Policies > Incoming Mail Policies
or
Mail Policies > Outgoing Mail Policies.
Step 2 Click the link for the ContentFilters security service (the ContentFilters column) for the mail policy to which
you want to apply the content filter.
Step 3 On the Content Filtering security service page, change the value for Content Filtering for Policy: Engineering
from “Enable Content Filtering (Inherit default policy settings)” to “Enable Content Filtering (Customize
settings).”
Step 4 Select the checkboxes for the content filters you want to use.
Step 5 Submit and commit your changes.
Notes on Configuring Content Filters in the GUI
• It is not necessary to specify a condition when creating a content filter. When no action is defined, any
actions defined will always apply in the rule. (Specifying no condition is equivalent to using the true()
message filter rule — all messages will be matched if the content filter is applied to a policy.)
• If you do not assign a custom user role to a content filter, the content filter is public and can be used by
any delegated administrator for their mail policies. See the “Common Administrative Tasks” chapter for
more information on delegated administrators and content filters.
• Administrators and operators can view and edit all content filters on the email gateway, even when the
content filters are assigned to custom user roles.
• When entering text for filter rules and actions, the following meta characters have special meaning in
regular expression matching: . ^ $ * + ? { [ ] \ | ( )
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
293
Content Filters
Applying the Content Filter to Messages for a Certain User Group
If you do not wish to use regular expression you should use a '\' (backslash) to escape any of these
characters. For example: "\*Warning\*"
• You can test message splintering and content filters by creating “benign” content filters. For example,
it is possible to create a content filter whose only action is “deliver.” This content filter will not affect
mail processing; however, you can use this filter to test how Email Security Manager policy processing
affects other elements in the system (for example, the mail logs).
• Conversely, using the “primary list” concept of the Incoming or Outgoing Content Filters, it is possible
to create very powerful, wide-sweeping content filters that will immediately affect message processing
for all mail handled by the email gateway. The process for this is to:
• Use the Incoming or Outgoing Content Filters page to create a new content filter whose order is 1.
• Use the Incoming or Outgoing Mail Policies page to enable the new content filter for the default
policy.
• Enable the content filter for all remaining policies.
• The Bcc: and Quarantine actions available in ContentFilters can help you determine the retention settings
of quarantines you create. (See Policy, Virus, and Outbreak Quarantines, on page 927) You can create
filters that would simulate mail flow into and out of your policy quarantines so that messages are not
released too quickly from the system (that is, the quarantine areas do not fill their allotted disk space too
quickly).
• Because it uses the same settings as the Scan Behavior page or the scanconfig command, the “Entire
Message” condition does not scan a message’s headers; choosing the “Entire Message” will scan only
the message body and attachments. Use the “Subject” or “Header” conditionsto search forspecific header
information.
• Configuring users by LDAP query will only appear in the GUI if you have LDAP servers configured on
the email gateway (that is, you have configured the appliance to query specific LDAPservers with specific
strings using the ldapconfig command).
• Some sections of the content filter rule builder will not appear in the GUI if the resource has not been
preconfigured. For example, notification templates and message disclaimers will not appear as options
if they have not been configured previously using the Text Resources page or the textconfig command
in the CLI.
• Content filters features will recognize, can contain, and/or scan for text in the following character
encodings:
• Unicode (UTF-8)
• Unicode (UTF-16)
• Western European/Latin-1 (ISO 8859-1)
• Western European/Latin-1 (Windows CP1252)
• Traditional Chinese (Big 5)
• Simplified Chinese (GB 2312)
• Simplified Chinese (HZ GB 2312)
• Korean (ISO 2022-KR)
• Korean (KS-C-5601/EUC-KR)
• Japanese (Shift-JIS (X0123))
• Japanese (ISO-2022-JP)
• Japanese (EUC)
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
294
Content Filters
Notes on Configuring Content Filters in the GUI
You can mix and match multiple character sets within a single content filter. Refer to your web browser’s
documentation for help displaying and entering text in multiple character encodings. Most browsers can
render multiple character sets simultaneously.
• On the Incoming or Outgoing Content Filters summary pages, use the links for “Description,” “Rules,”
and “Policies” to change the view presented for the content filters:
• The Description view shows the text you entered in the description field for each content filter.
(This is the default view.)
• The Rules view shows the rules and regular expressions build by the rule builder page.
• The Policies shows the policies for which each content filter is enabled.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
295
Content Filters
Notes on Configuring Content Filters in the GUI
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
296
Content Filters
Notes on Configuring Content Filters in the GUI
CHAPTER 12
Configuring Email Gateway to Consume External
Threat Feeds
This chapter contains the following sections:
• Overview of External Threat Feeds, on page 297
• How to Configure Email Gateway to Consume External Threat Feeds , on page 298
• Obtaining External Threat Feeds Feature Key , on page 300
• Enabling External Threat Feeds Engine on Email Gateway, on page 301
• Configuring an External Threat Feed Source, on page 302
• Configuring SecureX Threat Response Feeds Source, on page 304
• Handling Messages Containing Threats, on page 308
• Configuring a Sender Group for Handling Messages containing Threats , on page 309
• Configuring Content or Message Filters for Handling Messages Containing Threats, on page 309
• Attaching Content Filter to Incoming Mail Policy, on page 316
• External Threat Feeds and Clusters, on page 316
• Monitoring External Threat Feeds Engine Updates, on page 316
• Viewing Alerts, on page 317
• Displaying Threat Details in Message Tracking, on page 317
Overview of External Threat Feeds
The External ThreatFeeds(ETF) framework allowsthe email gateway to consume external threat information
in:
• STIX format communicated over TAXII protocol.
• JavaScript Object Notation (JSON) format from the Cisco SecureX Threat Response portal.
The ability to consume external threat information in the email gateway, helps an organization to:
• Proactively respond to cyber threatssuch as, malware, ransomware, phishing attacks, and targeted attacks.
• Subscribe to local and third-party threat intelligence sources.
• Improve the efficacy of the email gateway.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
297
You need a valid feature key to use the ETF feature on your email gateway. For information on how to obtain
a feature key, contact your Cisco sales representative.
STIX (Structured Threat Information eXpression) is the industry standard, structured language to represent
cyber threat information. A STIX source consists of an indicator that contains a pattern used to detect malicious
or suspicious cyber activity.
TAXII (Trusted Automated eXchange of Indicator Information) defines a set of specifications to exchange
cyber threat information via services (TAXII servers) across different organizations or product lines.
The following versions of STIX/TAXII are supported for this release - STIX 1.1.1 and 1.2 with TAXII 1.1.
The Cisco SecureX Threat Response portal allows you to create custom feeds for the continuous gathering
of observables and to consume them in your email gateway using the feed URL. A feed is a simple list of
observables in JSON format. The feeds are created and managed in the Intelligence > Feeds page in the
SecureX Threat Response portal.
Following is a list of STIX and SecureX Threat Response Indicators of Compromise (IOCs) supported for
this release:
• File Hash Watchlist (describes a set of hashes for suspected malicious files)
• IP Watchlist (describes a set of suspected malicious IP addresses)
• Domain Watchlist (describes a set of suspected malicious domains)
• URL Watchlist (describes a set of suspected malicious URLs)
How to Configure Email Gateway to Consume External Threat
Feeds
Perform these steps in order:
Steps Do This More Information
Obtaining External Threat Feeds
Feature Key , on page 300
Obtain an External Threat Feeds
feature key.
Step 1
Enabling External Threat Feeds
Engine on Email Gateway, on page
301
Enable the ETF engine on your
email gateway.
Step 2
Configuring an External Threat
Feed Source, on page 302
Configure an ETF source to allow
your email gateway to fetch threat
feedsinSTIX format from a TAXII
server.
Step 3
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
298
Configuring Email Gateway to Consume External Threat Feeds
How to Configure Email Gateway to Consume External Threat Feeds
Steps Do This More Information
For more information on how to
create a feed URL,see theSecureX
Threat Response Help page at:
• https://visibility.amp.cisco.com/
help/create-feed-url
[applicable for Americas
users]
• https://visibility.eu.amp.cisco.com/
help/create-feed-url
[applicable for European
Union (EU) users]
• https://visibility.apjc.amp.cisco.com/
help/create-feed-url
[applicable for APJC users]
[On SecureX Threat Response
portal]: Create a feed URL.
When you create a feed
URL, make sure to
select the output of the
feed URL as
‘Observables’ only.
Note
[Applicable for SecureX Threat
Response Feeds Setup only] Step
4
For more information on how to
view the details of feed URL
created in step 4, see the SecureX
Threat Response Help page at:
• https://visibility.amp.cisco.com/
help/intelligence-view-feeds
[applicable for Americas
users]
• https://visibility.eu.amp.cisco.com/
help/intelligence-view-feeds
[applicable for European
Union (EU) users]
• https://visibility.apjc.amp.cisco.com/
help/intelligence-view-feeds
[applicable for APJC users]
[On SecureX Threat Response
portal]: View and copy the details
of the feed URL created in step 4
in your system.
The details of the feed
URL are used to create
the SecureX Threat
Response feeds source.
Note
[Applicable for SecureX Threat
Response Feeds Setup only] Step
5
Configuring SecureX Threat
Response Feeds Source, on page
304
Configure a SecureX Threat
Response Feeds source to allow
your email gateway to fetch
SecureX Threat Response feeds
from theSecureX Threat Response
portal.
[Applicable for SecureX Threat
Response Feeds Setup only] Step
6
Handling Messages Containing
Threats, on page 308
Handle messages that contain
threats using:
• HAT
• Content or Message filters
Step 7
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
299
Configuring Email Gateway to Consume External Threat Feeds
How to Configure Email Gateway to Consume External Threat Feeds
Steps Do This More Information
Attaching Content Filter to
Incoming MailPolicy, on page 316
Attach the content filters that you
configured to detect malicious
domains, URLs, or file hashes in
messages to an incoming mail
policy.
Step 8
Obtaining External Threat Feeds Feature Key
Managing Email Gateways using the Classic Licensing Mode
If you are an existing user using the Classic Licensing mode and you do not have an External Threat Feeds
feature key, follow the given steps to contact the Cisco Global Licensing Operations (GLO) team to obtain
the feature key:
Procedure
Step 1 Send an email to the GLO team (licensing@cisco.com) with the message subject as "Request for External
Threat Feeds Feature Key."
Step 2 Provide your Product Authorization Key (PAK) file and Purchase order (PO) details in the email.
The GLO team provisions the feature key manually and sends you an email with the license key to install on
your email gateway.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
300
Configuring Email Gateway to Consume External Threat Feeds
Obtaining External Threat Feeds Feature Key
What to do next
• If you are an existing user using the hardware or virtual email gateway models and you can obtain
feature keys or software licenses directly from the Cisco server, you are automatically provided
with an External Threat Feeds feature key.
• If you are an existing user using the virtual email gateway models and are not able to obtain feature
keys or licenses directly from the Cisco server, perform the following steps to obtain an External
Threat Feeds feature key:
1. Log in to the License Registration Portal (LRP) using your LRP user account credentials.
2. Select Get License.
3. Select Migration.
4. Select Security Products
5. Select Email Security (ESA)
6. Enter the VLN Number and generate the license file.
The generated license file includes the ETF feature. You need to install the new license file in
your email gateway to use the ETF feature.
If you are not able to log in to your LRP account, contact the GLO team
(licensing@cisco.com) to generate the license file.
Note
Note
Managing Email Gateways using the Smart Software Licensing Mode
If you are an existing or new user using the Smart Licensing mode on your email gateways, you are
automatically provided with an External Threat Feeds feature key.
Enabling External Threat Feeds Engine on Email Gateway
Before you begin
Make sure that you have a valid feature key to you use the ETF feature on your email gateway.
Procedure
Step 1 Click Security Services > External Threat Feeds.
Step 2 Click Enable.
Step 3 Scroll to the bottom of the license agreement page and click Accept to accept the agreement.
Note If you do not accept the license agreement, ETFis not enabled on your Cisco EmailSecurity Gateway.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
301
Configuring Email Gateway to Consume External Threat Feeds
Enabling External Threat Feeds Engine on Email Gateway
Step 4 Check Enable External Threat Feeds.
Step 5 (Optional) Select Yes to add a custom header to all messages that are not scanned for threats by the ETF
engine because of an ETF engine lookup failure.
Step 6 Submit and commit your changes.
What to do next
Configure an ETF source. See Configuring an External Threat Feed Source, on page 302.
Configuring an External Threat Feed Source
An ETF source is used to download information about a collection of threats that is available on a TAXII
server. You need to configure an ETFsource to allow your email gateway to fetch threat feeds inSTIX format
from a TAXII server.
Note You can configure a maximum of eight ETF sources in your email gateway.
You can configure an ETF source using the Poll service that consists of a ‘polling path’ and a ‘collection
name.’
Before you begin
• Make sure that you have enabled the ETF engine on your email gateway.
• Make sure that you open ports - 80 HTTP and 443 HTTPS on your firewall to allow your gateway to
consume external threat feeds. For more information, see Firewall Information, on page 1335.
Procedure
Step 1 Click Mail Policies > External Threat Feeds Manager.
Step 2 Click Add Source.
Step 3 Enter the required parameters described in the following table to configure an ETF source.
Parameter Source Details Description
Source Name Enter a name for the ETF source.
Description Enter a description for the ETF source.
TAXII Details
Enter the hostname of a fully qualified domain name
or an IP address of a TAXII server.
Hostname
Enter the polling path that identifiesthe polling service
in a TAXII server, for example, /taxii-data.
Polling Path
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
302
Configuring Email Gateway to Consume External Threat Feeds
Configuring an External Threat Feed Source
Parameter Source Details Description
Enter the name of a collection of threat feeds that is
hosted on a TAXII server, for example,
guest.Abuse_ch.
Collection Name
Enter a polling interval to define the frequency of
fetching threat feeds from a TAXII server. The
minimum value is 15 minutes and the default value
is 60 minutes.
Polling Interval
Enter the maximum age of a threat feed that can be
fetched from a TAXII server. The value for the age
must be between one through 365 days.
Age of Threat Feeds
Enter the time span for each poll segment.
The minimum time span for a poll segment is 1 day.
The maximum time span for a poll segment is the
value entered in the ‘Age of Threat Feeds’ field.
You can use the ‘Time Span for Poll Segment’ option
in the following scenarios:
• If there is no known limitation on the age of
threat feeds for a TAXII server, use the value
entered in the ‘Age of Threat Feeds’ option.
• If there is a known limitation on the age of threat
feeds for a TAXII server, use the known limit
value.
• If you do not know the known limitation on the
age of threat feeds for a TAXII server, use the
default value of 30 days.
• If the value you enter in the ‘Age of Threat
Feeds’ option is not supported by the TAXII
server, you can spilt the age of threat feeds into
different poll segments based on the time span
entered.
For example, if the age of the threat feeds is 100 days
and the TAXII server has a fixed limit on the age of
threat feeds (for example, ’40 days’), enter 40 as the
time span for poll segment
If the time span for the poll segment is a
small value (for example, ‘5 days’,) the
polling of the threat feed source can take
a long time to complete, and this may
impact the performance of your gateway.
Note
Time Span for Poll Segment
Select Yes if you want to connect to a TAXII server
using HTTPS.
Use HTTPS
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
303
Configuring Email Gateway to Consume External Threat Feeds
Configuring an External Threat Feed Source
Parameter Source Details Description
Select Yes, if you want to access a TAXIIserver using
the user credentials that you created in the TAXII
server.
Enter the username and password.
Configure Credentials
Proxy Details
Select Yes, if you want the email gateway to connect
to a TAXII server through a proxy server.
You can configure a proxy server in any one of the
following ways:
• Security Services > Service Updates page in the
web interface
• updateconfig command in the CLI
If you select No, the email gateway directly connects
to a TAXII server.
Use Global Proxy
Step 4 Submit and commit your changes.
After you configure an ETF source, your email gateway begins to fetch threat feeds from a TAXII source.
What to do next
• You can also configure an ETF source using the threatfeedsconfig > sourceconfig subcommand in
the CLI.
• (Optional) ClickSuspend Polling ( ) icon in the MailPolicies > External ThreatFeeds Manager page
to suspend the polling service for a configured ETF source.
• (Optional) Click Resume Polling ( ) icon in the Mail Policies > External Threat Feeds Manager page
to resume the polling service for a configured ETF source.
• (Optional) Click Poll Now in the Mail Policies > External Threat Feeds Manager page to fetch the threat
feeds from the last successful polling interval immediately.
• See Handling Messages Containing Threats, on page 308.
Configuring SecureX Threat Response Feeds Source
A SecureX Threat Response feedssource is used to download information about a collection of threats available
on the SecureX Threat Response portal. You need to configure a SecureX Threat Response feeds source to
allow your email gateway to fetch threat feeds from the SecureX Threat Response portal.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
304
Configuring Email Gateway to Consume External Threat Feeds
Configuring SecureX Threat Response Feeds Source
Note You can configure a maximum of eight SecureX Threat Response feeds sources in your email gateway.
Before you begin
Make sure that you have met the following prerequisites:
• Enabled the ETF engine on your email gateway.
• Opened ports - 80 HTTP and 443 HTTPS on your firewall to allow your gateway to consume SecureX
Threat Response feeds. For more information, see Firewall Information, on page 1335.
• Created a user account in Cisco SecureX with admin access rights. To create a new user account, go to
Cisco SecureX login page using the URL https://securex.us.security.cisco.com/login and click Create
a SecureX Sign-on Account in the login page. If you are unable to create a new user account, contact
Cisco TAC for assistance.
• Created a feed URL in the SecureX Threat Response portal. For more information, see the SecureX
Threat Response Help page at:
• https://visibility.amp.cisco.com/help/create-feed-url [applicable for Americas users]
• https://visibility.eu.amp.cisco.com/help/create-feed-url [applicable for European Union (EU) users]
• https://visibility.apjc.amp.cisco.com/help/create-feed-url [applicable for APJC users]
• Viewed and copied the details of the feed URL created in the SecureX Threat Response portal in your
system. For more information, see the SecureX Threat Response Help page at:
• https://visibility.amp.cisco.com/help/intelligence-view-feeds [applicable for Americas users]
• https://visibility.eu.amp.cisco.com/help/intelligence-view-feeds [applicable for European Union
(EU) users]
• https://visibility.apjc.amp.cisco.com/help/intelligence-view-feeds [applicable for APJC users]
Procedure
Step 1 Click Mail Policies > External Threat Feeds Manager.
Step 2 Click Add Source.
Step 3 Enter the required parameters described in the following table to configure a SecureX Threat Response feeds
source.
Parameter Source Details Description
Enter a name for the SecureX Threat Response feeds
source.
Source Name
Enter a description for the SecureX Threat Response
feeds source.
Description
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
305
Configuring Email Gateway to Consume External Threat Feeds
Configuring SecureX Threat Response Feeds Source
Parameter Source Details Description
TAXII Details
The SecureX Threat Response feeds source is different from a typical TAXII feeds source. However, to
enable polling of observables from the SecureX Threat Response server, you must map the SecureX Threat
Response feed URL to the following TAXII source parameters.
• Hostname
• Polling Path
• Collection Name
For Example: The following is a sampleSecureX Threat Response feed URL created in theSecureX Threat
Response portal.
You can map the sample SecureX Threat Response feed URL details to the following TAXII source
parameters:
• Hostname - consists of the “private.intel.amp.cisco.com” part of the SecureX Threat Response feed
URL.
• Polling Path -: consists of the “/ctia/feed/feed-d78e1eba-cbe6-5e13-8d47-197b344e41c9/view” part
of the SecureX Threat Response feed URL.
Note Do not include the “.txt” part of the SecureX Threat Response feed URL in the Polling Path.
• Collection Name - consists of “e8f3f519-9170-4b76-8b58-bda0be540ff3” part of the SecureX Threat
Response feed URL.
Using the above example, you can configure the ‘Hostname,’ ‘Polling Path,’ and ‘Collection Name’
parameters. For more information, on how to configure these parameters, see below.
Enter the hostname of the SecureX Threat Response
feed URL based on your SecureX Threat Response
server region.
The following are the hostnames that you can choose
based on yourSecureX Threat Response server region:
• private.intel.amp.cisco.com [applicable for
Americas users]
• private.intel.eu.amp.cisco.com [applicable
for EU users]
• private.intel.apjc.amp.cisco.com
[applicable for APJC users]
Hostname
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
306
Configuring Email Gateway to Consume External Threat Feeds
Configuring SecureX Threat Response Feeds Source
Parameter Source Details Description
Enter the polling path that identifiesthe polling service
in the SecureX Threat Response server.
For Example:
/ctia/feed/feed-d78e1eba-cbe6-5e13-8d47-197b344e41c9/view
Polling Path
Enter the name of a collection of SecureX Threat
Response feeds that is hosted on a SecureX Threat
Response server.
For Example:
e8f3f519-9170-4b76-8b58-bda0be540ff3
Collection Name
Enter a polling interval to define the frequency of
fetching SecureX Threat Response feeds from the
SecureX Threat Response server. The minimum value
is 15 minutes and the default value is 60 minutes.
The maximum limit of a full poll is 100
mb and if the size of the feed observables
is more than the maximum limit, the email
gateway displays an error message in the
ETF logs.
Note
Polling Interval
These parameters are not required to configure a
SecureX Threat Response feeds source because
polling of observables from the SecureX Threat
Response server is not based on time intervals. A full
poll method is used to obtain the observables.
Age of Threat Feeds, Time Span for Poll Segment
Select Yesif you want to use the HTTPSproxy server
to connect your email gateway with the SecureX
server.
This parameter is used only when you
enable and configure a proxy server on
your email gateway.
Note
Use HTTPS
This parameter is not required to configure aSecureX
Threat Response feeds source.
Configure Credentials
Proxy Details
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
307
Configuring Email Gateway to Consume External Threat Feeds
Configuring SecureX Threat Response Feeds Source
Parameter Source Details Description
Select Yes, if you want the email gateway to connect
to the SecureX Threat Response server through a
proxy server.
You can configure a proxy server in any one of the
following ways:
• Security Services > Service Updates page in the
web interface
• updateconfig command in the CLI
If you select No, the email gateway directly connects
to the SecureX Threat Response server.
Use Global Proxy
Step 4 Submit and commit your changes.
After you configure a SecureX Threat Response feeds source, your email gateway begins to fetch threat feeds
from a SecureX Threat Response source.
What to do next
• You can also configure a SecureX Threat Response feeds source using the threatfeedsconfig >
sourceconfig sub command in the CLI.
• (Optional) ClickSuspend Polling ( ) icon in the MailPolicies > External ThreatFeeds Manager page
to suspend the polling service for a configured SecureX Threat Response feeds source.
• (Optional) Click Resume Polling ( ) icon in the Mail Policies > External Threat Feeds Manager page
to resume the polling service for a configured SecureX Threat Response feeds source.
• (Optional) Click Poll Now in the Mail Policies > External Threat Feeds Manager page to fetch the
SecureX Threat Response feeds from the last successful polling interval immediately.
• See Handling Messages Containing Threats, on page 308.
Handling Messages Containing Threats
You can handle messages that contain threats in your email gateway using:
• HAT
• Content or Message filters
Related Topics
• Configuring a Sender Group for Handling Messages containing Threats , on page 309.
• Configuring Content or Message Filters for Handling Messages Containing Threats, on page 309.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
308
Configuring Email Gateway to Consume External Threat Feeds
Handling Messages Containing Threats
Configuring a Sender Group for Handling Messages containing
Threats
You can configure an existing sender group to handle messages that originate from malicious IPs using the
verdict obtained from the ETF engine.
Procedure
Step 1 Go to Mail Policies > HAT Overview page.
Step 2 Click an existing sender group that you want to configure to handle messages that contain threats.
Step 3 Click Edit Settings.
Step 4 Select the required ETF source to filter malicious IP addresses.
Step 5 (Optional) Click Add Row to add another ETF source.
Step 6 Submit and commit your changes.
Configuring Content or Message Filters for Handling Messages
Containing Threats
You can configure one or more of the following content or message filters, to take appropriate actions on
messages that contain threats based on the verdicts obtained from the ETF engine:
• URL Reputation - to detect URLs categorized as malicious by the ETF engine.
• Domain Reputation - to detect domains categorized as malicious by the ETF engine.
• Attachment by File Info - to detect files categorised as malicious by the ETF engine based on the file
hash.
Related Topics
• Detecting Malicious Domains in Messages Using Content Filter, on page 310.
• Detecting Malicious Domains in Messages Using Message Filter, on page 311
• Detecting Malicious URLs in Messages Using Content Filter, on page 311
• Detecting Malicious URLs in Messages Using Message Filter, on page 313
• Detecting Malicious Files in Message Attachments Using Content Filter, on page 314.
• Detecting Malicious Files in Messages Attachments Using Message Filter , on page 228.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
309
Configuring Email Gateway to Consume External Threat Feeds
Configuring a Sender Group for Handling Messages containing Threats
Detecting Malicious Domains in Messages Using Content Filter
Use the ‘Domain Reputation’ content filter to detect domains categorized as malicious in messages by the
ETF engine and take appropriate actions on such messages.
Before you begin
• Optional) Create an addresslist that contains only domains. To create one, go to Mail Policies > Address
Lists page in the web interface or use the addresslistconfig command in the CLI.For more information,
see Mail Policies, on page 259.
• (Optional) Create a Domain Exception List. For more information, see Creating Domain Exception List.
Procedure
Step 1 Go to Mail Policies > Incoming Content Filters.
Step 2 Click Add Filter.
Step 3 Enter a name and description for the content filter.
Step 4 Click Add Condition.
Step 5 Click Domain Reputation.
Step 6 Select External Threat Feeds.
Step 7 Select the ETF source(s) to detect malicious domain(s) in the header(s) of a message.
Step 8 Select the required headers to check for the reputation of the domain.
Step 9 (Optional) Select the list of allow listed domains that you do not want the email gateway to detect for threats
for this content filter.
Step 10 Click OK.
Step 11 Click Add Action to configure an appropriate action to take on messages that contain malicious domains.
Step 12 Submit and commit your changes.
Creating Domain Exception List
A Domain Exception List consists of a list of addresses that contain only domains. You can use a Domain
Exception List if you want the email gateway to skip the domain check for all configured Domain Reputation
content or message filters.
Procedure
Step 1 Go to Security Services > Domain Reputation.
Step 2 Click Edit Settings under Domain Exception List.
Step 3 Select the required address list that contains domains only.
Step 4 Submit and commit your changes.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
310
Configuring Email Gateway to Consume External Threat Feeds
Detecting Malicious Domains in Messages Using Content Filter
What to do next
You can also create a Domain Exception List using the domainrepconfig command in the CLI. For more
information, see the CLI Reference Guide for AsyncOS 12.0 for Cisco Email Security Appliances.
Detecting Malicious Domains in Messages Using Message Filter
As an example, use the following message filter rule syntax to detect malicious domains in messages using
the ETF engine, and take appropriate actions on such messages.
Syntax:
quarantine_msg_based_on_ETF: if (domain-external-threat-feeds (['etf_source1'],
['mail-from', 'from'], <'domain_exception_list'>)) { quarantine("Policy"); }
Where
• ‘domain-external-threat-feeds' is the Domain reputation message filter rule.
• ‘etf_source1' is the ETF source(s) used to detect malicious domain(s) in the header(s) of a message.
• ‘mail-from','from' are the required header(s) used to check for the reputation of the domain.
• 'domain_exception_list' is the name of a domain exception list. If a domain exception list is not
present it is displayed as "".
Example
In the following example, if the domain in the ‘Errors To:’ custom header is detected as malicious
by the ETF engine, the message is quarantined.
Quaranting_Messages_with_Malicious_Domains: if domain-external-threat-feeds
(['threat_feed_source'], ['Errors-To'], "")) {quarantine("Policy");}
Detecting Malicious URLs in Messages Using Content Filter
Use the ‘URL Reputation’ content filter to detect URLs in messages categorized as malicious by the ETF
engine and take appropriate actions on such messages.
You can configure the 'URL Reputation' content filter for ETF in any one of the following ways:
• Use the 'URL Reputation' condition with any appropriate action.
• Use the 'URL Reputation' action with any or no condition.
• Use the 'URL Reputation' condition and action.
The following procedure is used to detect malciicous URLs using the 'URL Reputation' condition and action:
• If you only want to use the 'URL Reputation' condition with any appropriate action, do not follow
steps 11-20 of the procedure.
• If you only want to use the 'URL Reputation' action with any or no condition., do not follow steps
4-10 of the procedure.
Note
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
311
Configuring Email Gateway to Consume External Threat Feeds
Detecting Malicious Domains in Messages Using Message Filter
Before you begin
• Make sure that you enable URL filtering on your email gateway. To enable URL filtering, go to Security
Services > URL Filtering page in the web interface. For more information, see Protecting Against
Malicious or Undesirable URLs, on page 447.
• Make sure that you enable Outbreak Filters on your email gateway. To enable Outbreak Filters, go to
Security Services > Outbreak Filters page in the web interface. For more information, see Outbreak
Filters, on page 425.
• Make sure that you enable Anti-Spam engine on your email gateway. To enable the Anti-Spam engine,
go to Security Services > Anti-Spam page in the web interface. For more information, see Managing
Spam and Graymail, on page 383.
• (Optional) Create a URL list. To create one, go to Mail Polices > URL Lists page in the web interface.
For more information, see Protecting Against Malicious or Undesirable URLs, on page 447.
Procedure
Step 1 Go to Mail Policies > Incoming Content Filters.
Step 2 Click Add Filter.
Step 3 Enter a name and description for the content filter.
Step 4 Click Add Condition.
Step 5 Click URL Reputation.
Step 6 Select External Threat Feeds.
Step 7 Select the ETF source(s) to detect malicious URLs.
Step 8 (Optional) Select the list of allow listed URLs that you do not want the email gateway to detect for threats.
Step 9 Select the required Check URLs within option to detect malicious URLs in the message body and subject
and/or message attachments.
Step 10 Click OK.
Step 11 Click Add Action.
Step 12 Click URL Reputation.
Step 13 Select External Threat Feeds.
Step 14 Make sure that you select the same ETF source(s) that you selected in the condition (Step 7).
Step 15 (Optional) Select the same list of allow listed URLs that you selected in Step 8.
Step 16 Select the required Check URLs within option to detect malicious URLs in the 'message body and subject'
and/or 'message attachments'
Step 17 Select the required action that you want to perform on the URLs within the message body and subject and/or
message attachments.
In Step 16, if you choose the 'Check URLs within' option as 'Attachments', you can only strip the
attachment from the message.
Note
Step 18 Select whether you want to take actions on all messages or unsigned messages.
Step 19 Click OK.
Step 20 Submit and commit your changes.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
312
Configuring Email Gateway to Consume External Threat Feeds
Detecting Malicious URLs in Messages Using Content Filter
If you have configured URL Reputation content filters for Web Based Reputation Score (WBRS)
and ETF on your email gateway, it is recommended to set the order of the WBRS URL Reputation
content filter higher than the order of the ETF URL Reputation filter, to improve the performance
of your emal gateway.
Note
Detecting Malicious URLs in Messages Using Message Filter
As an example, use the ‘URL Reputation’ message filter rule syntax to detect malicious URLs in messages
using the ETF engine, and to defang the URL.
Syntax:
defang_url_in_message: if (url-external-threat-feeds (['etf_source1'],
<'URL_allowedlist'>,
<’message_attachments'> , <’message_body_subject’> ,))
{ url-etf-defang(['etf-source1'], "", 0); } <’URL_allowedlist’> ,
<’Preserve_signed’>)}
Where
• ‘url-external-threat-feeds’ is the URL Reputation rule.
• ‘etf_source1’ is the ETF source(s) used to detect malicious URLs in the messages or message
attachments.
• ‘URL_allowedlist’ is the name of a URL allowed list. If a URL allowed list is not present, it is displayed
as “”.
• ‘message_attachments’ is used to check for malicious URLs in the message attachments. A value of
'1' is used to detect malicious URLs in the message attachments.
• ‘message_body_subject’ is used to check for malicious URLsin the message body and subject. A value
of '1' is used to detect malicious URLs in the message body and subject.
A value of “1,1” is used to detect malciocus URLs in the message body,
subject, and message attachments.
Note
• ‘url-etf-defang’ is one of the actions that you can take on messages that contain malicious URLs.
The following examples are the ETF-based actionsthat you can apply on messagesthat contain malicious
URLs:
• url-etf-strip(['etf_source1'], "None", 1)
• url-etf-defang-strip(['etf_source1'], "None", 1, "Attachment removed")
• url-etf-defang-strip(['etf_source1'], "None", 1)
• url-etf-proxy-redirect(['etf_source1'], "None", 1)
• url-etf-proxy-redirect-strip(['etf_source1'], "None", 1)
• url-etf-proxy-redirect-strip(['etf_source1'], "None", 1, " Attachment removed")
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
313
Configuring Email Gateway to Consume External Threat Feeds
Detecting Malicious URLs in Messages Using Message Filter
• url-etf-replace(['etf_source1'], "", "None", 1)
• url-etf-replace(['etf_source1'], "URL removed", "None", 1)
• url-etf-replace-strip(['etf_source1'], "URL removed ", "None", 1)
• url-etf-replace-strip(['etf_source1'], "URL removed*", "None", 1, "Attachment removed")
• ‘Preserve_signed’ isrepresented by ‘1’ or ‘0’. ‘1’ indicatesthat this action appliesto unsigned messages
only and ‘0’ indicates that this action applies to all messages.
In the following example, if a URL in the message attachment is detected as malicious by the ETF
engine, the attachment is stripped.
Strip_Malicious_URLs: if (true) {url-etf-strip(['threat_feed_source'], "", 0);}
Detecting Malicious Files in Message Attachments Using Content Filter
Use the ‘Attachment File Info’ content filter to detect files in message attachments categorized as malicious
by the ETF engine, and take appropriate actions on such messages.
Note The ETF engine performs a lookup based on the file hash of a file.
You can configure the 'Attachment File Info' content filter for ETF in any one of the following ways:
• Use the 'Attachment File Info' condition with any appropriate action.
• Use the 'Strip Attachment by File Info' action with any or no condition.
• Use the 'Attachment File Info' condition and 'Strip Attachment by File Info' action.
The following procedure is used to detect malicious files in message attachments using the 'Attachment by
File Info' condition and 'Strip Attachment by File Info' action:
• If you only want to use the 'Attachment File Info' condition with any appropriate action, do not
follow steps 10-15 of the procedure.
• If you only want to use the 'Strip Attachment by File Info' action with any or no condition., do not
follow steps 4-9 of the procedure.
Note
Before you begin
(Optional) Create a File Hash Exception List. To create one, go to Mail Policies > File Hash Lists page in the
web interface. For more information, see Creating File Hash List, on page 315.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
314
Configuring Email Gateway to Consume External Threat Feeds
Detecting Malicious Files in Message Attachments Using Content Filter
Procedure
Step 1 Go to Mail Policies > Incoming Content Filters.
Step 2 Click Add Filter.
Step 3 Enter a name and description for the content filter.
Step 4 Click Add Condition.
Step 5 Click Attachment File Info.
Step 6 Select External Threat Feeds.
Step 7 Select the ETF source(s) to detect malicious files using file hashes.
Step 8 (Optional) Select the list of file hashes that you do not want the email gateway to detect for threats.
Step 9 Click OK.
Step 10 Click Add Action.
Step 11 Click Strip Attachment by File Info.
Step 12 Select External Threat Feeds.
Step 13 Make sure that you select the same ETF source(s) that you selected in the condition (Step 7).
Step 14 (Optional) Select the same list of file hashes that you selected in Step 8.
Step 15 Submit and commit your changes.
Creating File Hash List
Procedure
Step 1 Go to Mail Policies > File Hash Lists.
Step 2 Click Add File Hash List.
Step 3 Check the required file hash type - ‘SHA256’ or ‘MD5' or all of the above.
Step 4 Enter the file hashes (that you selected in Step 3) separated by commas or in new lines.
Step 5 Submit and commit your changes.
Detecting Malicious Files in Messages Attachments Using Message Filter
As an example, use the following message filter rule syntax to detect files in message attachments categorized
as malicious by the ETF engine, and take appropriate actions on such messages.
Syntax:
Strip_malicious_files: if (file-hash-etf-rule (['etf_source1'], <'file_hash_exception_list'>))
{ file-hash-etf-strip-attachment-action (['etf_source1'], <'file_hash_exception_list>,
"file stripped from message attachment"); }
Where:
• ‘file-hash-etf-rule' is the Attachment File Info message filter rule
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
315
Configuring Email Gateway to Consume External Threat Feeds
Creating File Hash List
• ‘etf_source1' is the ETFsource(s) used to detect malicious files in the messages based on the file hash.
• 'file_hash_exception_list' is the name of a file hash exception list. If a file hash exception list is
not present, it is displayed as “”.
• 'file-hash-etf-strip-attachment-action' is the name of the action that you want to apply on
messages that contain malicious files.
In the following example, if a message contains a message attachment detected as malicious by the
ETF engine, the attachment is stripped.
Strip_Malicious_Attachment: if (true) {file-hash-etf-strip-attachment-action
(['threat_feed_source'], "", “Malicious message attachment has been stripped from
the message.");}
Attaching Content Filter to Incoming Mail Policy
You can attach one or more of the content filters that you configured to detect malicious domains, URLs, or
file hashes in messages to an incoming mail policy.
Procedure
Step 1 Go to Mail Policies > Incoming Mail Policies.
Step 2 Click the link below Content Filtersof a particular mail policy.
Step 3 Select Enable Content Filters (Customize Settings).
Step 4 Select the Content Filters that you created for detecting malicious domains, URLs or file hashes.
Step 5 Submit and commit your changes.
What to do next
After you attach the content filter to an incoming mail policy, your email gateway begins to take actions on
messages based on the verdicts received from the ETF engine.
External Threat Feeds and Clusters
If you use centralized management, you can enable the ETF engine and mail policies at the cluster, group,
and machine level.
Monitoring External Threat Feeds Engine Updates
If you have enabled service updates, the ETF engine updates are retrieved from the Cisco update servers.
However, in some scenarios (for example, you have disabled automatic service updates or automatic service
update is not working), you might want to manually check for ETF engine updates.
You can manually update the ETF engine in any one of the following ways:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
316
Configuring Email Gateway to Consume External Threat Feeds
Attaching Content Filter to Incoming Mail Policy
• Go to Security Services > External Threat Feeds page in the web interface, and click Update Now.
• Use the threatfeedupdate command in the CLI.
To know the details of the existing ETF engine, see the ‘External Threat Feeds Engine Updates’ section in
the Security Services > External Threat Feeds page in the web interface or use the threatfeedstatus command
in CLI.
Viewing Alerts
The following table lists the alerts generated by the ETF engine, including a description of the alert and the
alert severity.
Component/Alert Name Message and Description Parameters
‘source’ - The name of the TAXII
source.
‘reason’ - The reason why the
polling failed.
Unable to fetch the observables
from the source: $source_name
after 3 failed attempts.
Reason for failure: $reason
ETF ENGINE ALERT
Information. Sent when polling
feeds from a TAXII source fails.
$count - The allowed number of
observables per type.
$ type - The type of the observable.
The storage limit of $count
observables exceeded for the
observable type: $type.
ETF ENGINE ALERT
Information.Sent when the number
of permitted observables exceeded.
Displaying Threat Details in Message Tracking
You can view the message details that contain threats corresponding to the selected IOCs from the selected
ETF source(s).
Before you begin
• Make sure that you enable the Message Tracking feature on the email gateway. To enable Message
Tracking, go toSecurityServices > CentralizedServices > Message Tracking page in the web interface.
• Content or Message filters for detecting threats in messages are operational.
Procedure
Step 1 Go to Monitor > Message Tracking.
Step 2 Click Advanced.
Step 3 Check External Threat Feeds under Message Event.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
317
Configuring Email Gateway to Consume External Threat Feeds
Viewing Alerts
Step 4 Select the required IOC(s) to track messages containing threats corresponding to the selected IOCs.
Step 5 (Optional) Select All External Threat Feed Sources to view the messages that contain threats based on the
available and deleted ETF source(s) configured in the email gateway.
Step 6 (Optional) Select Current External Threat Feed Sources and choose the required ETF source(s) to view
the messages that contain threats based on the available ETF source(s) configured in the email gateway.
Step 7 (Optional) Enter the name of a particular ETF source in the 'External Threat Feed Sources' field to view
messages that contain threats based on this ETF source.
Step 8 Click Search.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
318
Configuring Email Gateway to Consume External Threat Feeds
Displaying Threat Details in Message Tracking
CHAPTER 13
Sender Domain Reputation Filtering
This chapter contains the following sections:
• Overview of Sender Domain Reputation Filtering, on page 319
• How to Filter Messages based on Sender Domain Reputation, on page 322
• Enabling Sender Domain Reputation Filtering on Email Gateway, on page 322
• Tuning Sender Domain Reputation Policy , on page 323
• Configuring Message or Content Filter for Handling Messages based on Sender Domain Reputation, on
page 324
• Attaching Content Filter to Incoming Mail Policy, on page 328
• Sender Domain Reputation Filtering and Clusters, on page 328
• Displaying Sender Domain Reputation Details in Message Tracking, on page 329
• Viewing Alerts, on page 329
• Viewing Logs, on page 329
Overview of Sender Domain Reputation Filtering
Cisco Talos Sender Domain Reputation (SDR) is a cloud service that provides a reputation verdict for email
messages based on the domains provided in the email envelope and header. Examples may include domains
from - HELO/EHLO strings, envelope and header "From" addresses, "Reply-to" addresses, and
"List-Unsubscribe" headers.
The domain-based reputation analysis enables a higher spam catch rate by looking beyond the reputation of
shared IP addresses, hosting or infrastructure providers, and derives verdicts based on features that are
associated with fully qualified domain names (FQDNs) and other sender information in the Simple Mail
Transfer Protocol (SMTP) conversation and message headers.
The Sender Domain Age option is replaced with Sender Maturity from AsyncOS 14.2.x release onwards.
Sender Maturity is an important feature to establish sender reputation. Sender Maturity is automatically
generated for spam classification based on multiple sources of information and can differ from “Whois-based
domain age.”Sender Maturity isset to a limit of 30 days, and beyond thislimit, a domain is considered mature
as an email sender, and no further details are provided.
From this release onwards, an additional Sender Domain Reputation check is performed after the sender
header of the message is received. Messages with a Threat Level that matches the configuredSDR reject level
(in your email gateway) are rejected.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
319
From this release onwards, the 'SDR Domain Age' configured filters are automatically updated to the
'SDR Sender Maturity' filters. The filters with an invalid value for Sender Maturity are marked as
'inactive' after the upgrade. Make sure you review and modify the message and content filters accordingly.
Note
The Sender Maturity functionality uses the current time of your email gateway to display the Sender
Maturity information in the logs and to match the required filter conditions. Make sure your email
gateway is configured with the correct time based on your time zone.
Note
After you upgrade to AsyncOS 14.2.x release, the legacy SDR verdicts in the content or message filters,
reporting, and message tracking are replaced with the new SDR verdicts as follows:
• Untrusted
• Questionable
• Neutral
• Favorable
• Trusted
• Unknown
For more information about the recommended actions, you can take for each new SDR verdict, see SDR
Verdicts, on page 320.
For more information, see the Cisco Talos Sender Domain Reputation (SDR) white paper in the Security
Track of the Cisco Customer Connection program at http://www.cisco.com/go/ccp.
• You must create a Cisco Customer Connection account to access the SDR white paper.
• Like Cisco IPAS disputes, submit SDR disputes by opening a support request with the Cisco
Technical Assistance Center (TAC).
Note
SDR Verdicts
The following table lists the SDR verdict names, descriptions, and recommended actions:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
320
Sender Domain Reputation Filtering
SDR Verdicts
Table 35: SDR Verdicts
Verdict Name Description Recommended Action
The worst reputation verdict. Block the message.
Safest recommended blocking
threshold. Expect to see
false-negatives(FN) if the blocking
threshold is set to only this verdict,
which prioritizes delivery over
security.
Untrusted
Scan the message with the other
engines configured on your email
gateway. Block only after review.
For more information, see Tuning
Sender Domain Reputation Policy
, on page 323.
This verdict has a low and
relatively safe false-positive (FP)
rate and might not be safe for all
organizations.
Not blocking on this verdict
prioritizes delivery over security,
but it results in false-negatives.
Questionable
Scan the message with the other
engines configured on your email
gateway.
The most common verdict, assigned
to legitimate and mixed-use
domains, associated with weak
indicators that prevent a favorable
verdict.
Neutral
Scan the message with the other
engines configured on your email
gateway.
The sender is using a fair domain
that is not a new domain. The
sender is following sender best
practices, including, but not limited
to using SPF, DKIM-signing,
employing DMARC, and not
sending spam.
Favorable
Allow the message.
For more information on how to
bypass subsequent engines , use
Message Filter rules such as
"skip-spamcheck,"
"skip-viruscheck," and so on, see
the “Message Filter Actions”
section in the Using Message
Filters to Enforce Email Policies,
on page 131.
A rare verdict that indicates the
sender is using a certified domain,
where messages are authenticated
by DKIM (aligned on the “From:”
header domain).
Trusted
Scan the message with the other
engines configured on your email
gateway.
The sender is using domains that
SDR does not recognize or cannot
use to establish a reputation.
Unknown
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
321
Sender Domain Reputation Filtering
SDR Verdicts
How to Filter Messages based on Sender Domain Reputation
Steps Do This More Information
Enabling Sender Domain
Reputation Filtering on Email
Gateway, on page 322
Enable SDR filtering on Cisco
Email Security Gateway.
After you upgrade to
AsyncOS 12.0, SDR
queries are enabled by
default.
Note
Step 1
TuningSender Domain Reputation
Policy , on page 323
[Optional] Perform a review of the
SDR configuration in your email
gateway to establish an appropriate
SDR policy
Step 2
Configuring Message or Content
Filter for Handling Messages based
on Sender Domain Reputation, on
page 324
Configure a message or content
filter to handle messages based on
SDR.
Step 3
Attaching Content Filter to
Incoming MailPolicy, on page 328
Attach the content filter that you
configured to filter messages based
onSDR to an incoming mail policy.
Step 4
Enabling Sender Domain Reputation Filtering on Email Gateway
Note After you upgrade to AsyncOS 12.0, SDR queries are enabled by default.
Procedure
Step 1 Go to Security Services > Domain Reputation.
Step 2 Click Enable.
Step 3 Check Enable Sender Domain Reputation Filtering.
Step 4 (Optional) Check Include Additional Attributes if you want the SDR service to check for SDR based on
additional attributes of the message.
If you enable this option, the following additional attributes of the message are included in the SDR check to
improve the efficacy:
• Username part of the email address present in the 'Envelope From:,' 'From:,' and 'Reply-To:'
headers.
• Display name in the 'From:' and 'Reply-To:' headers.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
322
Sender Domain Reputation Filtering
How to Filter Messages based on Sender Domain Reputation
Step 5 (Optional) Enter the number of elapsed seconds before the SDR query times out.
Note Modifying the SDR query timeout value may impact the performance of mail processing.
Step 6 (Optional) Check Match Domain Exception List based on Domain in Envelope From: if you want the
email gateway to skip the SDR check based on the domain in the Envelope From: header only.
Step 7 Move the Range Slider to choose the required SDR verdict range to accept or reject messages at the SMTP
conversation level.
After you upgrade to AsyncOS 14.x and later, the range slider by default points to the Untrusted
verdict. All messages with the Untrusted verdict are dropped at the SMTP conversation level.
Note
You cannot select the Favorable verdict to reject messages because the verdict indicates that the
sender uses a certified domain.
Note
Step 8 Click Submit .
Step 9 (Optional) Click I Agree if you want to accept the SDR Include Additional Attributes Agreement message.
The SDR Include Additional Attributes Agreement message appears only when you select the
Include Additional Attributes option.
Note
Step 10 Click Commit to commit your changes.
What to do next
Configure a content or message filter to handle messages based onSDR.See Configuring Message or Content
Filter for Handling Messages based on Sender Domain Reputation, on page 324.
Review the SDR configuration in your email gateway to establish an appropriate SDR policy. See Tuning
Sender Domain Reputation Policy , on page 323.
Tuning Sender Domain Reputation Policy
SDR recommends default behaviors for each verdict. However, if optimal tuning of false-positives and
false-negatives is essential to your organization, follow the given steps to tune the SDR policy based on your
security requirements.
Procedure
Step 1 Enable SDR on your email gateway without configuring any SDR policy actions for 10 days.
Step 2 Use the Message Tracking functionality to review messages based on the SDR verdict.
For more information, see Displaying Sender Domain Reputation Details in Message Tracking, on page 329.
You can search for messages that received a verdict of 'Untrusted' or 'Questionable.'
Step 3 Review the messages obtained from the Message Tracking search (performed in step 2) for any false positives
or false negatives.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
323
Sender Domain Reputation Filtering
Tuning Sender Domain Reputation Policy
False positives are messages that require to be delivered to the recipient’s mailbox but received a verdict of
'Questionable' or especially 'Untrusted.' False-negatives are messages that have not received an 'Untrusted'
verdict but are expected to be blocked based on the message attributes related to SDR.
Step 4 [If false-positives are present because the message received an 'Untrusted' verdict] Open a support ticket with
Cisco TAC before you proceed to configure SDR policy to block messages based on the 'Untrusted' verdict.
Note In most use-cases, Cisco Talos expects you to block messages with an 'Untrusted' verdict.
Step 5 Use the recommended safe 'Untrusted' threshold if false-positives are present in the messages that received a
“Questionable” verdict.
If you do not use the 'Untrusted' threshold, you can block messages based on the more aggressive
'Questionable' threshold. For more information, see Configuring Message or Content Filter for
Handling Messages based on Sender Domain Reputation, on page 324.
Note
The 'Questionable' verdict is associated with large volume senders that send spam messages but
might also deliver legitimate (mostly low-priority) bulk email. It is appropriate to block messages
after review based on your security requirements.
Note
Configuring Message or Content Filter for Handling Messages
based on Sender Domain Reputation
You can use the ‘Domain Reputation’ message or content filter in any one of the following ways to filter
messages based on SDR, and take appropriate actions on such messages:
• Sender Domain Verdict
• Sender Maturity
• Sender Domain Unscannable
TheSender Domain Age option isreplaced withSender Maturity from AsyncOS14.2.x release onwards.
Sender Maturity is already incorporated into the SDR verdict. It is generally not recommended to filter
messages based on Sender Maturity, except for special use-cases.
Note
Related Topics
• Tuning Sender Domain Reputation Policy , on page 323
• Filtering Messages based on Sender Domain Reputation using Message Filter, on page 325
• Filtering Messages based on Sender Domain Reputation using Content Filter, on page 327
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
324
Sender Domain Reputation Filtering
Configuring Message or Content Filter for Handling Messages based on Sender Domain Reputation
Filtering Messages based on Sender Domain Reputation using Message Filter
Filtering Messages based on Sender Domain Verdict
The recommended blocking threshold is "Untrusted." For more information about SDR verdicts, see
SDR Verdicts, on page 320 and for tuning SDR policy, see Tuning Sender Domain Reputation Policy ,
on page 323
Note
Syntax:
drop_msg_based_on_sdr_verdict:
if sdr-reputation (['untrusted', 'questionable'], "")
{drop();}
Where:
• 'drop_msg_based_on_sdr_verdict'is the name of the message filter.
• 'sdr-reputation' is the Domain Reputation message filter rule.
• 'untrusted','questionable' is the range of the sender domain verdict used to filter messages based
on SDR.
• 'domain_exception_list' is the name of a domain exception list. If a domain exception list is not
present it is displayed as "".
• 'drop' is the action applied on the message.
Example
In the following message, if the SDR verdict is 'Unknown', the message is quarantined.
quarantine_unknown_sdr_verdicts:
if sdr-reputation (['unknown'], "")
{quarantine("Policy")}
Filtering Messages based on Sender Maturity
TheSender Domain Age option isreplaced withSender Maturity from AsyncOS14.2.x release onwards.
Sender Maturity is already incorporated into the SDR verdict. It is generally not recommended to filter
messages based on Sender Maturity, except for special use-cases. Sender Maturity is set to a limit of 30
days, and beyond this limit, a domain is considered mature as an email sender, and no further details
are provided.
Note
Syntax:
if sdr-maturity (<‘unit'>, <‘operator'> <‘actual value’>)
{}
Where:
• ‘sdr-maturity' is the Sender Maturity message filter rule.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
325
Sender Domain Reputation Filtering
Filtering Messages based on Sender Domain Reputation using Message Filter
• ‘unit' is the number of ‘days,’ ‘years,’ ‘months,’ or 'weeks' option used to filter messages based on the
sender maturity.
• ‘operator' are the following comparison operators used to filter messages based on the sender maturity:
• – > (Greater than)
• – >= (Greater than or equal to)
• – < (Lesser than)
• – <= (Lesser than or equal to)
• – == (Equal to)
• – != (Not equal to)
• – Unknown
• ‘actual value' is the number used to filter messages based on the sender maturity.
Examples
In the following message, if the maturity of the sender domain is unknown, the message is dropped.
Drop_Messages_Based_On_SDR_Maturity: if (sdr-maturity ("unknown", "")) {drop();}
In the following message, if the maturity of the sender domain is less than one month, the message is dropped.
Drop_Messages_Based_On_SDR_Maturity: if (sdr-maturity ("months", <, 1, "")) { drop(); }
Filtering Messages based on Sender Domain Unscannable
Syntax:
if sdr-unscannable (<'domain_exception_list'>)
{}
Where:
• 'sdr-unscannable' is the Domain Reputation message filter rule.
'domain_exception_list' is the name of a domain exception list. If a domain exception list is not
present it is displayed as "".
Example
In the following message, if the message failed the SDR check, the message is quarantined.
Quarantine_Messages_Based_On_Sender_Domain_Unscannable: if (sdr-unscannable (""))
{quarantine("Policy");}
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
326
Sender Domain Reputation Filtering
Filtering Messages based on Sender Domain Reputation using Message Filter
Filtering Messages based on Sender Domain Reputation using Content Filter
Before you begin
• (Optional) Create an addresslist that contains only domains. To create one, go to Mail Policies > Address
Lists page in the web interface or use the addresslistconfig command in the CLI.For more information,
see Mail Policies, on page 259.
• (Optional) Create a Domain Exception List. For more information, see Creating Domain Exception List,
on page 327.
Procedure
Step 1 Go to Mail Policies > Incoming Content Filters.
Step 2 Click Add Filter.
Step 3 Enter a name and description for the content filter.
Step 4 Click Add Condition.
Step 5 Click Domain Reputation.
Step 6 Choose any one of the following conditions to filter messages based on SDR:
• Select Sender Domain Reputation Verdict to choose a verdict range to filter messages based on the
verdict received from the SDR service.
The recommended blocking threshold is "Untrusted."For more information aboutSDR Verdicts,
see SDR Verdicts, on page 320.
Note
• Select Sender Maturity, choose the comparison operator, enter a number, and choose the time period
to filter messages based on the maturity of the sender domain.
TheSender Domain Age option isreplaced withSender Maturity from AsyncOS14.2.x release
onwards. Sender Maturity is already incorporated into the SDR verdict. It is generally not
recommended to filter messages based onSender Maturity, except forspecial use-cases.Sender
Maturity is set to a limit of 30 days, and beyond this limit, a domain is considered mature as
an email sender, and no further details are provided.
Note
• Select Sender Domain Reputation Unscannable to filter messages that failed the SDR check.
Step 7 (Optional) Select the list of allow listed domains that you do not want the email gateway to filter messages
based on SDR.
Step 8 Click Add Action to configure an appropriate action to take on messages based on SDR.
Step 9 Submit and commit your changes.
Creating Domain Exception List
A domain exception list consists of a list of addresses that contain only domains. You can use a domain
exception list to skip the SDR check for all incoming messages, irrespective of the mail policies configured
on your Cisco Email Security Gateway.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
327
Sender Domain Reputation Filtering
Filtering Messages based on Sender Domain Reputation using Content Filter
If you want to skipSDR content filter actions on incoming messages for specific mail policies, you need
to select the domain exception list in the Domain Reputation content filter.
Note
Criteria for using Domain Exception List
By default, to skip the SDR check, the domains in the Envelope From:, From:, and Reply-To: headers of the
message must be the same and match the domain configured in the domain exception list. If you want to skip
the SDR check based on the domain in the Envelope From: header only, select the ‘Match Domain Exception
List based on Domain in Envelope From:’ option in the Domain Reputation settings page.
Procedure
Step 1 Go to Security Services > Domain Reputation.
Step 2 Click Edit Settings under Domain Exception List.
Step 3 Select the required address list that contains domains only.
Step 4 Submit and commit your changes.
What to do next
You can also create a Domain Exception List using the domainrepconfig command in the CLI. For more
information, see the CLI Reference Guide for AsyncOS for Cisco Email Security Appliances.
Attaching Content Filter to Incoming Mail Policy
You can attach the content filter that you configured to filter messages based on SDR to an incoming mail
policy.
Procedure
Step 1 Go to Mail Policies > Incoming Mail Policies.
Step 2 Click the link below Content Filters.
Step 3 Make sure to select 'Enable Content Filters (Customize Settings).'
Step 4 Select the content filter that you created for filtering messages based on SDR.
Step 5 Submit and commit your changes.
Sender Domain Reputation Filtering and Clusters
If you use centralized management, you can enable SDR filtering and mail policies at the cluster, group, and
machine level.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
328
Sender Domain Reputation Filtering
Attaching Content Filter to Incoming Mail Policy
Displaying Sender Domain Reputation Details in Message
Tracking
You can use Message Tracking to view the message details based on SDR.
Before you begin
• Make sure that you enable the Message Tracking feature on the email gateway. To enable Message
Tracking, go to Security Services > Message Tracking page in the web interface.
You can track messages based on SDR verdicts even when you do not
configure SDR-based content or message filters in your email gateway.
Note
Procedure
Step 1 Go to Monitor > Message Tracking.
Step 2 Click Advanced.
Step 3 Check Sender Domain Reputation under Message Event.
Step 4 Select the required SDR verdict(s) to view messages based on the verdict received from the SDR service.
Step 5 (Optional) Check Unscannable to view messages when the SDR check failed.
Step 6 (Optional) Select the required SDR threat categories to view messages based on the threat category.
Step 7 Click Search.
Viewing Alerts
The following table lists the system alert generated for SDR, including a description of the alert and the alert
severity.
Component/Alert Name Message and Description Parameters
‘reason’ - The reason why theSDR
query failed.
The SDR lookup failed. Reason -
<$reason>
Warning. Sent when a SDR query
fails.
MAIL.IMH.SENDER_DOMAIN_
LOOKUP_FAILURE_ALERTS
Viewing Logs
The SDR filtering information is posted to the Mail Logs. Most information is at the Info or Debug level.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
329
Sender Domain Reputation Filtering
Displaying Sender Domain Reputation Details in Message Tracking
Examples of SDR Filtering Log Entries
The SDR filtering information is posted to the Mail Logs. Most information is at the Info or Debug level.
• Sender Domain Reputation Request Timeout, on page 330
• Sender Domain Reputation General Errors, on page 330
Sender Domain Reputation Request Timeout
In this example, the log shows a message that was not filtered based on SDR because of a request timeout
error when communicating with the SDR service.
Mon Jul 2 09:00:13 2018 Info: New SMTP ICID 4 interface Management (192.0.2.10) address
224.0.0.10 reverse dns host unknown verified no
Mon Jul 2 09:00:13 2018 Info: ICID 4 ACCEPT SG UNKNOWNLIST match ipr[none] ipr not enabled
country not enabled
Mon Jul 2 09:00:13 2018 Info: Start MID 4 ICID 4
Mon Jul 2 09:00:13 2018 Info: MID 4 ICID 4 From:
Mon Jul 2 09:00:13 2018 Info: MID 4 ICID 4 RID 0 To:
Mon Jul 2 09:00:13 2018 Info: MID 4 Message-ID '<000001cba32e$f24ff2e0$d6efd8a0$@com>'
Mon Jul 2 09:00:13 2018 Info: MID 4 Subject 'Message 001'
Mon Jul 2 09:00:13 2018 Info: MID 4 SDR: Message was not scanned for Sender Domain Reputation.
Reason: Request timed out.
Solution
When anSDR request times out, the message is marked as unscannable, and the configured actions are applied
to the message.
Sender Domain Reputation General Errors
In this example, the log shows a message that was not filtered based on SDR because of an unknown error.
Mon Jul 2 09:00:13 2018 Info: New SMTP ICID 4 interface Management (192.0.2.10) address
224.0.0.10 reverse dns host unknown verified no
Mon Jul 2 09:00:13 2018 Info: ICID 4 ACCEPT SG UNKNOWNLIST match ipr[none] ipr not enabled
country not enabled
Mon Jul 2 09:00:13 2018 Info: Start MID 4 ICID 4
Mon Jul 2 09:00:13 2018 Info: MID 4 ICID 4 From:
Mon Jul 2 09:00:13 2018 Info: MID 4 ICID 4 RID 0 To:
Mon Jul 2 09:00:13 2018 Info: MID 4 Message-ID '<000001cba32e$f24ff2e0$d6efd8a0$@com>'
Mon Jul 2 09:00:13 2018 Info: MID 4 Subject 'Test mail'
Mon Jul 2 09:00:13 2018 Info: MID 4 SDR: Message was not scanned for Sender Domain Reputation.
Reason: Unknown error.
Solution
When an unknown error occurs, the message is marked as unscannable, and the configured actions are applied
to the message.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
330
Sender Domain Reputation Filtering
Examples of SDR Filtering Log Entries
CHAPTER 14
Integrating with Cisco SecureX Threat Response
This chapter contains the following sections:
• Integrating your Email Gateway with Cisco SecureX Threat Response, on page 331
• How to Integrate your Email Gateway with Cisco SecureX Threat Response, on page 332
• Reregistering Email Gateway with Cisco Cloud Services Portal, on page 336
• Performing Threat Analysis using Cisco SecureX Ribbon, on page 337
• Performing Remedial Actions on Messages in Cisco SecureX Threat Response, on page 340
• Improving User Experience of Email Gateway using Cisco Success Network, on page 341
Integrating your Email Gateway with Cisco SecureX Threat
Response
Cisco SecureX is a security platform embedded with every Cisco security product. It is cloud-native with no
new technology to deploy. CiscoSecureX simplifies the demands of threat protection by providing a platform
that unifies visibility, enables automation, and strengthens your security across network, endpoints, cloud,
and applications. By connecting technology in an integrated platform, Cisco SecureX delivers measurable
insights, desirable outcomes, and unparalleled cross-team collaboration. CiscoSecureX enables you to expand
your capabilities by connecting your security infrastructure.
Integrating the Email Gateway with Cisco SecureX Threat Response contains the following sections:
• How to Integrate your Email Gateway with Cisco SecureX Threat Response, on page 332
• Performing Threat Analysis using Cisco SecureX Ribbon, on page 337
You can integrate your email gateway with CiscoSecureX Threat Response, and perform the following actions
in Cisco SecureX Threat Response:
• View and send the email data from multiple email gateways in your organization.
• Identify, investigate and remediate threats observed in the email reports, sender and target relationships,
search for multiple email addresses and subject lines and message tracking.
• Block compromised users or users violating outgoing email policies.
• Resolve the identified threats rapidly and provide recommended actions to take against the identified
threats.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
331
• Document the threats to save the investigation and enable collaboration of information among other
devices.
• Block malicious domains, track suspicious observances, initiate an approval workflow or to create an IT
ticket to update email policy.
You can access Cisco SecureX Threat Response using the following URL:
https://securex.us.security.cisco.com/login
Cisco Secure Email Gateway provides advanced threat protection capabilities to detect, block, and remediate
threats faster, prevent data loss, and secure important information in transit with end-to-end encryption. For
more information on observables that can be enriched by the ESA module, go to
https://securex.us.security.cisco.com/settings/modules/available, navigate to the module to integrate with
Cisco SecureX and click Learn More.
Howto Integrate your EmailGatewaywith Cisco SecureX Threat
Response
Table 36: How to Integrate your Email Gateway with Cisco SecureX Threat Response
Do This More Info
Step 1 Review the prerequisites. Prerequisites, on page 333
Enabling Cisco Cloud Services Portal on Email
Gateway, on page 334
[Applicable only for users using the
Classic Licensing mode].
If you are using the
Smart Licensing mode
[token registration only
and not Specific or
Permanent License
Reservation (SLR or
PLR)], you can skip this
step because Cisco
CloudServicesPortal is
automatically enabled
on your email gateway.
Note
Enable the Cisco Cloud Services
portal on your email gateway.
Step 2
For more information, go to
https://securex.us.security.cisco.com/help/
settings-devices
On Cisco SecureX, add your email
gateway as a device, register it, and
generate a registration token.
Step 3
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
332
Integrating with Cisco SecureX Threat Response
How to Integrate your Email Gateway with Cisco SecureX Threat Response
Do This More Info
Registering Email Gateway with Cisco CloudServices
Portal, on page 335
[Applicable only for users using the
Classic Licensing mode].
If you are using the
Smart Licensing mode,
you can skip this step
because your email
gateway is
automatically registered
with Cisco Cloud
Services Portal.
Note
Register your email gateway with
the Cisco Cloud Services portal.
Step 4
Confirm Whether the Registration was Successful,
on page 335
Confirm whether the registration
was successful.
Step 5
Enabling Cisco SecureX Threat Response on Email
Gateway, on page 335
Enable Cisco SecureX Threat
Response on your email gateway
Step 6
For more information, go to
https://securex.us.security.cisco.com/settings/modules/
available, navigate to the required CiscoSecure Email
Gateway module to integrate with Cisco SecureX,
click Add New Module, and see the instructions on
the page.
On Cisco SecureX, add Cisco
Secure Email Gateway Module.
Step 7
Prerequisites
If you already have a Cisco Threat Response user account, you do not need to create a Cisco SecureX
user account. You can log in to CiscoSecureX using your Cisco Threat Response user account credentials.
Note
• Make sure that you create a user account in Cisco SecureX with admin access rights. To create a new
user account, go to CiscoSecureX loginpage using the URL https://securex.us.security.cisco.com/login
and click Create a SecureX Sign-on Account in the login page. If you are unable to create a new user
account, contact Cisco TAC for assistance.
• Ensure that the configured DNS server can resolve the hostname you specified for accessing the email
gateway.
• [Only if you are not using a proxy server .] Make sure that you open HTTPS (In and Out) 443 port on
the firewall for the followingFQDNsto register your email gateway with CiscoSecureX Threat Response:
• api-sse.cisco.com (applicable for NAM users only)
• api.eu.sse.itd.cisco.com (applicable for European Union (EU) users only)
• api.apj.sse.itd.cisco.com (applicable for APJC users only)
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
333
Integrating with Cisco SecureX Threat Response
Prerequisites
• est.sco.cisco.com (applicable for APJC, EU, and NAM users)
For more information, see Firewall Information, on page 1335.
• [For users with smart licensing registered on the email gateway] Make sure you have already linked your
smart account (created in Cisco Smart Software Manager portal) to Cisco Security Services Exchange.
For more information, see the following documentation at:
• [Applicable for NAM users] https://admin.sse.itd.cisco.com/assets/static/online-help/index.html#!t_
link_accounts.html
• [Applicable for European Union (EU) users] https://admin.eu.sse.itd.cisco.com/assets/static/
online-help/index.html#!t_link_accounts.html
• [Applicable for APJC users] https://admin.apj.sse.itd.cisco.com/assets/static/online-help/
index.html#!t_link_accounts.html
Enabling Cisco Cloud Services Portal on Email Gateway
Procedure
Step 1 Log in to your email gateway.
Step 2 Select Networks > Cloud Service Settings.
Step 3 Click Enable.
Step 4 Check the Enable Cisco Cloud Services check box.
Step 5 Choose the required Cisco Secure server to connect your email gateway to the Cisco Cloud Services portal.
Step 6 Submit and commit your changes.
Step 7 Wait for few minutes, and check whether the Register button appears on the Cloud Services Settings page.
In a clustered configuration, you can only register your logged-in email gateway with the Cisco CloudServices
portal in the machine mode. If you have already registered your email gateway with the Cisco Cloud Services
portal in the standalone mode, make sure to deregister the email gateway manually before you join it to a
cluster.
Note To enable Cisco Cloud Services portal using the CLI, use the cloudserviceconfig command.
What to do next
Register your email gateway with the Cisco Cloud Services portal. For more information, go to
https://securex.us.security.cisco.com/settings/modules/available, navigate to the module to integrate with
Cisco SecureX, click Add New Module, and see the instructions on the page.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
334
Integrating with Cisco SecureX Threat Response
Enabling Cisco Cloud Services Portal on Email Gateway
Registering Email Gateway with Cisco Cloud Services Portal
Procedure
Step 1 Go to Networks > Cloud Service Settings.
Step 2 Enter the registration token under Cloud Services Settings and click Register.
To register your email gateway with or the Cisco Cloud Services portal using the CLI, use the
cloudserviceconfig command.
Note
What to do next
Confirm Whether the Registration was Successful, on page 335
Confirm Whether the Registration was Successful
• On Security Services Exchange, confirm successful registration by reviewing the status in Security
Services Exchange.
• On CiscoSecureX, navigate to the Devices page and view the ESA that has been registered withSecurity
Services Exchange.
If you want to switch to another Cisco SecureX Threat Response server (for example, 'Europe -
api.eu.sse.itd.cisco.com'), you must first deregister your emal gateway from Cisco SecureX Threat
Response and follow steps mentioned in How to Integrate your Email Gateway with Cisco SecureX
Threat Response, on page 332.
After you have integrated your email gateway with Cisco SecureX Threat Response, you do not need
to integrate your Cisco Secure Manager Email and Web Gateway with Cisco SecureX Threat Response.
After successful registration of your email gateway on Security Services Excange, add the ESA Email
module on Cisco SecureX. For more information, go tohttps://securex.us.security.cisco.com/settings/
modules/available, navigate to the module to integrate with Cisco SecureX, click Add New Module,
and see the instructions on the page.
Note
Enabling Cisco SecureX Threat Response on Email Gateway
Procedure
Step 1 Log in to your email gateway.
Step 2 Select Networks > Cloud Service Settings.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
335
Integrating with Cisco SecureX Threat Response
Registering Email Gateway with Cisco Cloud Services Portal
Step 3 Check the Enable check box under SecureX.
Step 4 Submit and commit your changes.
Reregistering Email Gateway with Cisco Cloud Services Portal
You can reregister your email gateway with the Cisco CloudServices portal based on any one of the following
scenarios:
• If you are unable to view or manage the devices (email gateways) added to the Cisco Cloud Services
portal when you automatically register your email gateway with the Cisco Cloud Services portal.
• If yourSmart Account and Cisco CloudServices Account are not linked when you automatically register
your email gateway with the Cisco Cloud Services portal.
You can also use the cloudserviceconfig > reregister sub command in the CLI to reregister your email
gateway with the Cisco Cloud Services portal.
Before you begin
Make sure you have met the following prerequisites:
• Enabled Smart Software Licensing on your email gateway.
• Registered your email gateway with Cisco Smart Software Manager.
Procedure
Step 1 Go to Networks > Cloud Service Settings page on your email gateway.
Step 2 Click Reregister.
After you click Reregister, you can choose whether you want to perform the task in either steps 3
or 4 or both depending on your requirement.
Note
Step 3 [Optional] Choose the appropriate Cisco Secure server to connect your email gateway to the Cisco Cloud
Services portal if your email gateway was automatically registered with an incorrect Cisco Secure server.
Step 4 [Optional] Enter the registration token obtained from the Cisco Cloud Services portal, if your email gateway
was automatically registered with an incorrect Smart Account.
Step 5 Click Submit, the ‘Confirm reregistration’ dialog box appears only if you do not enter a registration token in
step 4.
Step 6 Click Submit in the ‘Confirm reregistration’ dialog box to allow Cisco Cloud Services to use the token
auto-generated from the Cisco Cloud Services portal with the Smart Account information to reregister your
email gateway with the Cisco Cloud Services portal
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
336
Integrating with Cisco SecureX Threat Response
Reregistering Email Gateway with Cisco Cloud Services Portal
Performing Threat Analysis using Cisco SecureX Ribbon
When you upgrade from Cisco Secure Email Gateway 13.5.1 or earlier versions, Casebook will be part
of the Cisco SecureX Ribbon.
Note
Cisco SecureX supports a distributed set of capabilities that unify visibility, enable automation, accelerate
incident response workflows, and improve threat hunting. These distributed capabilities are presented in the
form of applications (apps) and tools in the Cisco SecureX Ribbon.
This topic contains the following sections:
• Accessing the Cisco SecureX Ribbon, on page 337
• Adding Observable to Casebook for Threat Analysis using Cisco SecureX Ribbon and Pivot Menu, on
page 339
You will find the Cisco SecureX Ribbon at the bottom pane of the page, and it persists as you move between
the dashboard and othersecurity productsin your environment. CiscoSecureX Ribbon consists of the following
icons and elements:
• Expand/Collapse Ribbon
• Home
• Casebook App
• Incidents App
• Orbital App
• Enrichment Search Box
• Find Observables
• Settings
For more information on Cisco SecureX Ribbon, see https://securex.us.security.cisco.com/help/ribbon.
Accessing the Cisco SecureX Ribbon
Before you begin
Make sure that you meet all the prerequisites that are mentioned in Prerequisites, on page 333.
Suppose you have already configured Casebook for Cisco Secure Email Gateway 13.5.1 or earlier
versions. You need to create a new Client ID and Client Secret in Cisco SecureX API client with
additional scopes, as mentioned in the following procedure.
Note
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
337
Integrating with Cisco SecureX Threat Response
Performing Threat Analysis using Cisco SecureX Ribbon
You can drag the Cisco SecureX Ribbon, positioned at the bottom pane of the page, from right using
button.
Procedure
Step 1 Log in to the new web interface of your email gateway. For more information, see Accessing the Web-Based
Graphical User Interface (GUI), on page 30.
Step 2 Click the Cisco SecureX Ribbon.
Step 3 Create a Client ID and Client Secret in SecureX API Clients. For more information to generate API Client
credentials, see Creating an API Client.
While creating a client ID and client password, make sure that you choose the following scopes:
• casebook
• enrich:read
• global-intel:read
• inspect:read
• integration:read
• profile
• private-intel
• response
• registry/user/ribbon
• telemetry:write
• users:read
• orbital (if you have access)
Step 4 Enter the client ID and client password obtained in step 3 in the Login to use SecureX Ribbon dialog box
in your email gateway.
Step 5 Select the required Cisco SecureX server in the Login to use SecureX Ribbon dialog box.
Step 6 Click Authenticate.
If you want to edit the client ID, client password, and CiscoSecureX server, right-click on the Cisco
SecureX Ribbon, and add the details.
Note
What to do next
Adding Observable to Casebook for Threat Analysis using Cisco SecureX Ribbon and Pivot Menu, on page
339
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
338
Integrating with Cisco SecureX Threat Response
Accessing the Cisco SecureX Ribbon
Adding Observable to Casebook for Threat Analysis using Cisco SecureX
Ribbon and Pivot Menu
Before you begin
Make sure that you obtain the client ID and client password to access the Cisco SecureX Ribbon and pivot
menu widgets on your email gateway. For more information, see Accessing the Cisco SecureX Ribbon, on
page 337.
Procedure
Step 1 Log in to the new web interface of your email gateway. For more information, see Accessing the Web-Based
Graphical User Interface (GUI), on page 30.
Step 2 Navigate to the Email Reporting page, click the pivot menu button next to the required observable (for
example, bit.ly).
Perform the following:
• Click button to add an observable to active case.
• Click button to add the observable to new case.
Use the pivot menu button to pivot an observable to other devices registered on the portal (for
example, AMP for Endpoints) to investigate for threat analysis.
Note
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
339
Integrating with Cisco SecureX Threat Response
Adding Observable to Casebook for Threat Analysis using Cisco SecureX Ribbon and Pivot Menu
Step 3 Hover over icon and click button to open the Casebook. Check whether the observable is added to
a new or an existing case.
Step 4 (Optional) Click button to add a title, description, or notes to the Casebook.
Note You can search for observables for threat analysis in two different ways:
• Click the Enrichment search box from the Cisco SecureX Ribbon and
search for the observables.
• Click the Casebook icon inside the Cisco SecureX Ribbon and search for the observables in the search
field.
For more information on Cisco SecureX Ribbon, see https://securex.us.security.cisco.com/help/ribbon.
Performing Remedial Actions on Messages in Cisco SecureX
Threat Response
In Cisco SecureX Threat Response, you can now investigate and apply the following remedial actions on
messages processed by your email gateway:
• Delete
• Forward
• Forward and Delete
Before you begin
Make sure you have met the following prerequisites before you perform remedial actions on messages in
Cisco SecureX Threat Response:
• Enabled and registered your email gateway with the Cisco SecureX server. For more information, see
How to Integrate your Email Gateway with Cisco SecureX Threat Response, on page 332.
• Added your email gateway module to CiscoSecureX and specified the RemediationForwarding Address
in Cisco SecureX. For more information, go to https://securex.us.security.cisco.com/settings/modules/
available, navigate to the required CiscoSecure Email Gateway module to integrate with CiscoSecureX,
click Add New Module, and see the instructions on the page.
• Enabled and configured the remediation profiles in the System Administration > Account Settings page
in your email gateway. For more information, see Remediating Messages in Mailboxes, on page 577.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
340
Integrating with Cisco SecureX Threat Response
Performing Remedial Actions on Messages in Cisco SecureX Threat Response
Procedure
Step 1 Log in to Cisco SecureX with your user credentials.
Step 2 Perform an investigation for threat analysis by entering required IOCs(for example, URLs, Email MessageID,
and so on) in the Investigate panel and click Investigate. For more information, see the Investigate topic in
the Help section at https://visibility.amp.cisco.com/help/investigate.
Step 3 Select the required message based on the investigation results using the corresponding Cisco Message ID or
Email MessageID . For more information, see the Investigate topic in the Help section at
https://visibility.amp.cisco.com/help/investigate.
Step 4 Click the pivot menu button next to the Cisco Message ID or Email MessageID and select the required
remedial action (for example, ‘Forward’). For more information, see the Investigate topic in the Help section
at https://visibility.amp.cisco.com/help/investigate
Improving User Experience of Email Gateway using Cisco
Success Network
Overview
You can use the Cisco Success Network (CSN) feature to send your email gateway and feature usage details
to Cisco. These details are used by Cisco to identify the email gateway version and the features activated but
not enabled on your email gateway.
The ability to send your email gateway and feature usage details to Cisco helps an organization to:
• Improve the effectiveness of the product in user networks by performing analytics on collected telemetry
data and suggesting users with recommendations using a digital campaign.
• Improve user experience with email gateway.
The following table shows a sample data of email gateway and feature usage details sent to Cisco:
Statistics Sample Data
Email Gateway Details
UID 4215XXXXXXXXXXXXXXXX-XXXXXXXXXXXX
Model C100V
Email Gateway (for a smart license) or null (for a
classic license
sIVAN
Deployment Cluster/Standalone.
EnterSLPIID (in smart license) or VLNID (in classic
license).
userAccountID
Version 1X.X.X-XXX
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
341
Integrating with Cisco SecureX Threat Response
Improving User Experience of Email Gateway using Cisco Success Network
Statistics Sample Data
Install Date 1582535814000 (milli-seconds since epoch)
Feature Information
Name Email Gateway Feature
Enabled Yes
Status In Compliance
Expiry Date 1831591683 (seconds since epoch)
Feature ID a4deXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
Related Topics
• Enabling CSN on Email Gateway, on page 342
• Disabling CSN on Email Gateway, on page 342
Enabling CSN on Email Gateway
Before you begin
Make sure that you enable and register your email gateway with the Cisco Cloud Service Portal. For more
information, see How to Integrate your Email Gateway with Cisco SecureX Threat Response, on page 332.
Procedure
Step 1 Go to Security Services > Cloud Service Settings.
Step 2 Click Edit Global Settings.
Step 3 Check the Enable checkbox under Cisco Success Network.
Step 4 Submit and commit your changes.
Disabling CSN on Email Gateway
Procedure
Step 1 Go to Security Services > Cloud Service Settings.
Step 2 Click Edit Global Settings.
Step 3 Uncheck the the Enable checkbox under Cisco Success Network.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
342
Integrating with Cisco SecureX Threat Response
Enabling CSN on Email Gateway
Step 4 Submit and commit your changes.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
343
Integrating with Cisco SecureX Threat Response
Disabling CSN on Email Gateway
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
344
Integrating with Cisco SecureX Threat Response
Disabling CSN on Email Gateway
CHAPTER 15
Configuring Email Gateway to Safe Print
Message Attachments
This chapter contains the following sections:
• Overview , on page 345
• How to Configure Email Gateway to Safe Print Message Attachments, on page 346
• Configuring Safe Print Settings on Email Gateway, on page 346
• Configuring Content Filter to Safe Print Message Attachments, on page 347
• Attaching Content Filter to Incoming Mail Policy, on page 349
• Safe Print Settings and Clusters, on page 350
• Monitoring Messages with Safe-Printed Attachments, on page 350
• Viewing Logs, on page 350
• Displaying Safe Print Details in Message Tracking, on page 351
Overview
You can configure your email gateway to provide a safe view (safe-printed PDF version) of a message
attachment detected as malicious or suspicious. The safe view of the message attachment is delivered to the
end user and the original attachment is stripped from the message. You can use the 'Safe Print' content filter
action to safe print all message attachments that match a configured content filter condition.
The ability to safe print message attachments in the email gateway helps an organization to:.
• Prevent message attachments with malicious orsuspicious content from entering an organization network.
• View malicious or suspicious message attachments without being affected by the malware.
• Deliver the original message attachment based on the end-user request.
The following languages are supported for the Safe-Print feature - English, Italian, Portuguese, Spanish,
German, French, Japanese, Chinese (PRC and Taiwan), Russian, and Korean.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
345
How to Configure Email Gateway to Safe Print Message
Attachments
Steps Do This More Information
Configuring Safe Print Settings on
Email Gateway, on page 346
Configure safe printsettings on the
email gateway.
Step 1
Configuring Content Filter to Safe
Print Message Attachments, on
page 347
Configure a content filter to safe
print message attachments.
Step 2
Attaching Content Filter to
Incoming MailPolicy, on page 349
Attach the content filter that you
configured to safe print message
attachments to an incoming mail
policy.
Step 3
Configuring Safe Print Settings on Email Gateway
Procedure
Step 1 Click Security Services > Scan Behavior.
Step 2 Click Edit Global Settings.
Step 3 Enter the required parameters described in the following table to configure safe print settings on the email
gateway.
Parameter Source Details Description
Safe Print Settings
Enter the maximum attachmentsize for a safe-printed attachment.
Make sure that the 'Maximum File Size' value does
not exceed the 'Maximum attachment size to scan'
value configured in the Scan Behavior > Global
Settings page.
Note
If the ‘Maximum File Size’ value exceeds the
'Maximum Message Size to Scan' value configured
for Outbreak Filters on your email gateway, then the
message and the message attachment is not scanned
by Outbreak Filters in the email pipeline.
Note
Maximum File Size
Enter the maximum number of pages that you want to safe print
in a message attachment.
Maximum Page Count
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
346
Configuring Email Gateway to Safe Print Message Attachments
How to Configure Email Gateway to Safe Print Message Attachments
Parameter Source Details Description
Select the Use Default Value (70) option to use the
recommended image quality value for a safe-printed attachment.
You can also select the Enter Custom Value option
and enter a custom image quantity value for a
safe-printed attachment.
Note
Document Quality
Select the required file types from the appropriate file groups
(for example, “Microsoft Documents”) that you can use to safe
print a message attachment.
File Type Selection
Select Enabled option to add a watermark to a safe-printed
attachment.
You can enter a custom text for the watermark in the
Enter Custom Text: field.
Note
Watermark
Select Enabled option to add a cover page to a safe-printed
attachment.
You can enter a custom text for the cover page in the
Enter Custom Text field.
Note
Cover Page
Step 4 Submit and commit your changes.
What to do next
Configure a content filter to safe print a message attachment. For more information, see Configuring Content
Filter to Safe Print Message Attachments, on page 347.
Configuring Content Filter to Safe Print Message Attachments
Use the 'Safe Print' content filter action to safe print a message attachment
You can use the Safe Print content filter action in any one of the following ways::
• Safe print matching attachments option
• Safe print all attachments option
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
347
Configuring Email Gateway to Safe Print Message Attachments
Configuring Content Filter to Safe Print Message Attachments
Table 37:
Supported Content Filter
Conditions
Safe Print Action Option Usage Example
The following are the
content filter conditions
that you can only use with
the ‘Safe print matching
attachments’ option:
• URL Reputation
• URL Category
• Macro Detection
• Attachment Content
• AttachmentFile Info
Configure the ‘Macro
Detection’ content filter
condition and select the
'Safe Print Matching
Attachments' option.
If an incoming message
contains three message
attachments - 'docx1,'
'docx2,' and 'docx3' and
the email gateway detects
a macro in 'docx1,' then
only 'docx1' is
safe-printed.
Use the ‘Safe print
matching attachments’
option to safe print all
message attachments that
match a configured
content filter condition.
Safe print matching
attachments
You can use any one of
the content filter
conditions available in
your email gateway with
the ‘Safe print all
attachments’ option.
Configure the ‘Envelope
Sender’ content filter
condition and select the
'SafePrint all attachments'
option.
If an incoming message
from a sender
'user1@example.com'
contains three message
attachments - 'docx1,'
'docx2,' and 'ppt1' then all
the message attachments
-'docx1,' 'docx2,' and
'ppt1' are safe-printed
based on the following:
• File types selected in
theScan Behavior >
Safe Print Settings
page.
• The
user1@example.com
sender matches the
LDAP group
directory configured
in the ‘Envelope
Sender’ content filter
condition.
Use the ‘Safe print all
attachments’ option to
safe print all message
attachments when the
configured content filter
condition is true.
Safe print all attachments
As an example, use the following procedure to safe print message attachments that contain macros using the
'Macro Detection' condition and 'Safe Print' action.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
348
Configuring Email Gateway to Safe Print Message Attachments
Configuring Content Filter to Safe Print Message Attachments
Before you begin
Make sure that you have configured safe print settings on the email gateway. See Configuring Safe Print
Settings on Email Gateway, on page 346
Procedure
Step 1 Go to Mail Policies > Incoming Content Filters.
Step 2 Click Add Filter.
Step 3 Enter a name and description for the content filter.
Step 4 Click Add Condition.
Step 5 Click Macro Detection.
Step 6 Select the file types that you want the email gateway to detect for macros and click Add.
Step 7 Click OK.
Step 8 Click Add Action.
Step 9 Click Safe Print.
Step 10 Select any one of the following actions to take on message attachments:
• Select Safe print matching attachments option to safe print all message attachments that match the
configured Macro Detection content filter condition.
• Select Safe print all attachments option to safe print all message attachments when the configured
Macro Detection content filter condition is true
Step 11 Select Yes to strip a message attachment that is marked as unscannable.
A message attachment is marked as unscannable due to any one of the following reasons:
• Message contains an attachment that is encrypted.
• Message contains an attachment that is corrupt.
• I/O error occurs when performing a safe print action on the message attachment.
• Timeout error occurs when performing a safe print action on the message attachment.
By default, a system generated message is added as an attachment text file when an attachment is
unscannable. You can enter a custom message in the Custom Replacement Message field.
Note
Step 12 Click OK.
Step 13 Submit and commit your changes.
Attaching Content Filter to Incoming Mail Policy
You can attach the content filter that you configured to safe print a message attachment to an incoming mail
policy.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
349
Configuring Email Gateway to Safe Print Message Attachments
Attaching Content Filter to Incoming Mail Policy
Procedure
Step 1 Go to Mail Policies > Incoming Mail Policies.
Step 2 Click the link below Content Filters.
Step 3 Make sure to select 'Enable Content Filters (Customize Settings).'
Step 4 Select the content filter that you created to safe print a message attachment.
Step 5 Submit and commit your changes.
Safe Print Settings and Clusters
If you use centralized management, you can configure safe print settings on the email gateway and mail
policies at the cluster, group, and machine level.
Monitoring Messages with Safe-Printed Attachments
You can use the Safe Print report page to view:
• Number of safe-printed attachments based on the file type in graphical format.
• Summary of safe-printed attachments based on the file type in tabular format.
In the ‘Summary of Safe Print File Types’ section, click the total number of safe-printed attachments to view
the message details in Message Tracking.
Viewing Logs
The log information about safe print is posted to the Mail Logs. Most information is at the Info or Debug
level.
Examples of Safe Print Log Entries
The safe print information is posted to the Mail Logs. Most information is at the Info or Debug level.
• I/O Errors
• Unable to Create Temporary Directory, on page 351
• Unable to Create Safe-printed PDF Attachment, on page 351
• Corrupt File, on page 351
• Encrypted File, on page 351
• Timeout Error, on page 351
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
350
Configuring Email Gateway to Safe Print Message Attachments
Safe Print Settings and Clusters
Unable to Create Temporary Directory
In this example, the log shows that a message attachment was not safe-printed because your email gateway
was unable to create a temporary directory to save the file.
Sat Jul 20 05:53:48 2019 Info: MID 5 Unable to safe print the attachment,
Filename:test_file.docx, Reason: IO error occurred during safeprinting of the attachment
Sat Jul 20 05:53:48 2019 Trace: MID 5 Unable to safe print the attachment,
Filename:test_file.docx, Exception: Unable to create tmp directory for safeprinting document:
[Errno 2] No such file or directory: '/tmp/test_file.docx'
Unable to Create Safe-printed PDF Attachment
In this example, the log shows that a message attachment was not safe-printed because your email gateway
was unable to create a safe-printed PDF attachment.
Thu Jul 11 07:19:01 2019 Info: MID 132 Unable to safe print the attachment,
Filename:test_file.docx, Reason: IO error occurred during safeprinting of the attachment
Thu Jul 11 07:19:01 2019 Trace: MID 132 Unable to safe print the attachment,
Filename:test_file.docx, Exception: Error while creating safeprinted PDF document:
[Errno 2] No such file or directory: '/tmp/test_file.docx/safe_print_test_file.pdf'
Corrupt File
In this example, the log shows that a message attachment was not safe-printed because the file was corrupt
Thu Jul 11 08:34:31 2019 Info: MID 142 Unable to safe print the attachment,
Filename:corrupt_file=20(1).docx, Reason: The attachment is corrupted
Encrypted File
In this example, the log shows that a message attachment was not safe-printed because the file was encrypted.
Thu Jul 11 08:34:31 2019 Info: MID 142 Unable to safe print the attachment,
Filename:sept_subscription.pdf, Reason: The attachment is encrypted.
Timeout Error
In this example, the log shows that a message attachment was not safe-printed because of a timeout error.
Thu Jul 11 10:32:29 2019 Info: MID 165 Unable to safe print the attachment,
Filename:20_page.docx, Reason: A timeout error occurred when trying to safe print the
attachment
Displaying Safe Print Details in Message Tracking
Use Message Tracking to view the details of messages that contain safe-printed attachments.
Before you begin
• Make sure that you enable the Message Tracking feature on the email gateway. To enable Message
Tracking, go to Security Services > Message Tracking page in the legacy web interface of your email
gateway.
• Content filters configured to safe print message attachments are operational.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
351
Configuring Email Gateway to Safe Print Message Attachments
Unable to Create Temporary Directory
Procedure
Step 1 [New Web Interface only] Go to Tracking > Message Tracking.
OR
[Legacy Web interface only] Go to Monitor > Message Tracking.
Step 2 [New Web Interface] Click Advanced Search.
OR
[Legacy Web interface only] Click Advanced.
Step 3 CheckSafe Print under Message Event to view the details of messages that contain safe-printed attachments.
Step 4 Enter the required search options and click Search.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
352
Configuring Email Gateway to Safe Print Message Attachments
Displaying Safe Print Details in Message Tracking
CHAPTER 16
Integrating Email Gateway with Cisco Secure
Awareness Cloud Service
This chapter contains the following sections:
• Overview, on page 353
• How to Integrate Email Gateway with Cisco Secure Awareness Cloud Service, on page 354
• Creating Cisco Secure Awareness Cloud Service Account, on page 355
• Configuring Firewall Settings to Access Cisco Secure Awareness Cloud Service, on page 355
• Creating Sender Group to Allow Simulated Phishing Messages in Email Gateway, on page 356
• Obtaining Authentication Token from Cisco Secure Awareness Cloud Service, on page 357
• Enabling Cisco Secure Awareness Cloud Service on Email Gateway, on page 358
• Create Custom Incoming Mail Policy for End Users Categorized as Repeat Clickers, on page 359
• Cisco Secure Awareness Cloud Service and Clusters, on page 359
• Viewing Logs, on page 359
• Viewing Alerts, on page 361
Overview
The Cisco Secure Awareness cloud service allows you to effectively deploy phishing simulations, awareness
training, or both to measure and report results. It empowers the security operations team to focus on real-time
threats and not end-user mitigation.
The Cisco Secure Awareness cloud service provides reports of repeat clickers - users who repeatedly click
on any URL or attachment in messages. These users are identified via a phishing simulation campaign defined
by the Cisco Secure Awareness cloud service.
For more information on the Cisco Secure Awareness cloud service, see https://secat.cisco.com.
You can integrate your email gateway with the Cisco Secure Awareness cloud service to:
• Improve end-user awareness towards real-world phishing attacks.
• Allow email administrators to configure stringent policies for users identified as repeat clickers.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
353
Howto Integrate EmailGatewaywith Cisco SecureAwareness
Cloud Service
Perform these steps in order:
Steps Do This More Information
Creating Cisco Secure Awareness
Cloud Service Account, on page
355
[On Cisco Secure Awareness]
Create a CiscoSecurity Awareness
cloud service account for your
organization based on your region.
Step 1
Configuring Firewall Settings to
Access Cisco Secure Awareness
Cloud Service, on page 355
Configure firewallsettingsto allow
your email gateway to access the
Cisco Secure Awareness cloud
service.
Step 2
Creating Sender Group to Allow
Simulated Phishing Messages in
Email Gateway, on page 356
Create a new sender group to allow
simulated phishing messages from
the Cisco Secure Awareness cloud
service in your email gateway.
Step 3
See the CSA Administrator Guide
at:
• https://secat.cisco.com/portal/Support
[applicable for Americas
users]
• https://secat-eu.cisco.com/portal/Support
[applicable for European
Union (EU) users]
[On Cisco Secure Awareness]
Create a new user in the Cisco
Secure Awareness cloud service to
identify repeat clickers.
:
Step 4
See the CSA Administrator Guide
at:
• https://secat.cisco.com/portal/Support
[applicable for Americas
users]
• https://secat-eu.cisco.com/portal/Support
[applicable for European
Union (EU) users]
[On Cisco Secure Awareness]
Create simulated phishing messages
in the Cisco Secure Awareness
cloud service and send them to the
end usersin your organization. This
process is used to track the end
users who repeatedly click on any
attachment or URL in messages.
Step 5
Obtaining Authentication Token
from Cisco Secure Awareness
Cloud Service, on page 357
Obtain the authentication token
from the Cisco Secure Awareness
cloud service.
Step 6
Enabling Cisco Secure Awareness
Cloud Service on Email Gateway,
on page 358
Enable the CiscoSecure Awareness
cloud service on your email
gateway.
Step 7
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
354
Integrating Email Gateway with Cisco Secure Awareness Cloud Service
How to Integrate Email Gateway with Cisco Secure Awareness Cloud Service
Steps Do This More Information
Create Custom Incoming Mail
Policy for End Users Categorized
as Repeat Clickers, on page 359
Create a custom incoming mail
policy to configure aggressive mail
policies for end users categorized
as repeat clickers.
Step 8
Creating Cisco Secure Awareness Cloud Service Account
Depending on your region, create a Cisco Secure Awareness cloud service account with admin acess rights
for your organization using one of the following URLs:
• https://secat.cisco.com [applicable for Americas users]
• https://secat-eu.cisco.com [applicable for European Union (EU) users]
What to do Next
Configure firewall settings to connect your email gateway to the Cisco Secure Awareness cloud service. For
more information, see Configuring Firewall Settings to Access Cisco Secure Awareness Cloud Service, on
page 355
Configuring Firewall Settings to Access Cisco Secure
Awareness Cloud Service
You must open HTTPS (Out) 443 port on the firewall for the following hostnames or IP addresses (refer to
the table below) to connect your email gateway to the Cisco Secure Awareness cloud service.
Service Americas European Union
Hostname IP Address Hostname IP Address
Cisco Secure secat.cisco.com 52.242.31.199 secat-eu.cisco.com 40.127.163.97
Awareness
cloud service
Course - 167.89.98.161 -
Notification
(Outbound)
Landing and - 52.242.31.199 - 40.127.163.97
FeedbackPages
(Outbound)
Email - -
Attachment
(Outbound)
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
355
Integrating Email Gateway with Cisco Secure Awareness Cloud Service
Creating Cisco Secure Awareness Cloud Service Account
The IP addresses listed in the above table may change. For the latest list of IP addresses, see the ‘IP
Allowlist Guide’ on the Cisco Secure Awareness cloud service at
https://secat.cisco.com/portal/Support/IpWhitelistingGuide
Note
What to do Next
Create a new sender group to allow simulated phishing messsages from the Cisco Secure Awareness cloud
service in your email gateway.For more information,see CreatingSender Group to Allow SimulatedPhishing
Messages in Email Gateway, on page 356
Creating Sender Group to Allow Simulated Phishing Messages
in Email Gateway
You must create a new sender group to allow simulated phishing messages from the Cisco Secure Awareness
cloud service in your email gateway.
Before you begin
Make sure you have configured the firewall settings to allow your email gateway to access the Cisco Secure
Awareness cloud service. For more information, see Configuring Firewall Settings to Access Cisco Secure
Awareness Cloud Service, on page 355
Procedure
Step 1 Click Mail Policies > HAT Overview.
Step 2 Click Add Sender Group.
Step 3 Enter a name for the sender group.
Step 4 Select the priority order as 1.
Step 5 Select the policy as CYBERSEC_AWARENESS_ALLOWED.
Step 6 Check the SBRS to Not in Use checkbox to disable IP Reputation filtering.
Step 7 Click Submit and Add Senders.
Step 8 Add any one of the following Cisco Secure Awareness cloud service IP addresses to configure as the sender
IP address based on your region:
• Americas - 207.200.3.14 or 173.244.184.143
• European Union (EU) - 77.32.150.153
The Cisco Secure Awareness cloud service IP addresses are used to prevent your email gateway
from interpreting simulated phishing messages as actual phish..
Note
Step 9 Submit and commit your changes.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
356
Integrating Email Gateway with Cisco Secure Awareness Cloud Service
Creating Sender Group to Allow Simulated Phishing Messages in Email Gateway
What to do next
1. Create a new user in the Cisco Secure Awareness cloud service to identify repeat clickers.
2. Create simulated phishing messages in the Cisco Secure Awareness cloud service and send them to the
end users in your organization.
For more information on how to complete the above two tasks, see the CSA Administrator Guide at:
• https://secat.cisco.com/portal/Support [applicable for Americas users]
• https://secat-eu.cisco.com/portal/Support [applicable for European Union (EU) users]
3. Obtain an authentication token from the Cisco Secure Awareness cloud service to download the Repeat
Clickers list from the Cisco Secure Awareness cloud service. For more information, see Obtaining
Authentication Token from Cisco Secure Awareness Cloud Service, on page 357
Obtaining Authentication Token from Cisco Secure Awareness
Cloud Service
You must obtain an authentication token from the CiscoSecure Awareness cloud service and use it to download
the Repeat Clickers list from the Cisco Secure Awareness cloud service.
Before you begin
Make sure that you have an account in the Cisco Secure Awareness cloud service with admin access rights.
For more information, see Creating Cisco Secure Awareness Cloud Service Account, on page 355. If you are
unable to access the Cisco Secure Awareness cloud service, contact Cisco Support for assistance.
Procedure
Step 1 Log in to the Cisco Secure Awareness cloud service.
Step 2 Go to Environment > Setttings
Step 3 Click the Report API tab.
Step 4 Check the Enable Report API check box .
Step 5 Copy the authentication token.
Use this authentication token to download the Repeat Clickers list from the Cisco Secure Awareness cloud
service.
What to do next
Enable the CiscoSecure Awareness cloud service on your email gateway.For more information, see Enabling
Cisco Secure Awareness Cloud Service on Email Gateway, on page 358
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
357
Integrating Email Gateway with Cisco Secure Awareness Cloud Service
Obtaining Authentication Token from Cisco Secure Awareness Cloud Service
Enabling Cisco Secure Awareness Cloud Service on Email
Gateway
Before you begin
Make sure you have:
• A valid account in the Cisco Secure Awareness cloud service with admin access rights.
• Obtained a valid authentication token from the Cisco Secure Awareness cloud service. For more
information, see Obtaining Authentication Token from Cisco Secure Awareness Cloud Service, on page
357,
Procedure
Step 1 Go to Security Services > Cisco Secure Awareness.
Step 2 Click Enable.
Step 3 Check the Enable Cisco Secure Awareness check box .
Step 4 Choose the required server to connect your email gateway to the Cisco Secure Awareness cloud service.
Step 5 Enter the authentication token obtained from the Cisco Secure Awareness cloud service.
Step 6 [Optional] Enter the polling interval to download the Repeat Clickers list from the Cisco Secure Awareness
cloud service.
Step 7 Submit and commit your changes.
What to do next
• After you enable the CiscoSecure Awareness cloud service, the email gateway automatically downloads
the Repeat Clickers list from the Cisco Secure Awareness cloud service. You can view the number of
repeat clicker users in the Repeat Clickers list by navigating to Security Services > Cisco Secure
Awareness > Repeat Clickers List Settings section in the web interface of your email gateway. For
more information about the Repeat Clickers list, log in to the Cisco Secure Awareness cloud service and
navigate to Analytics > Standard Reports > Phishing Simulations > Repeat Clickers section.
• Create a custom incoming mail policy to configure aggressive mail policies for end users categorized as
repeat clickers.For more information,see Create Custom Incoming MailPolicy for End Users Categorized
as Repeat Clickers, on page 359.
• Cisco Secure Email Submission Add-In now supports submission of simulated phishing messages sent
through the Cisco Secure Awareness (CSA) cloud service portal. You can now submit the simulated
phishing messages using theSecure EmailSubmission Add-In itself.For more details,see the User Guide
for Cisco Secure Email Submission Add-In.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
358
Integrating Email Gateway with Cisco Secure Awareness Cloud Service
Enabling Cisco Secure Awareness Cloud Service on Email Gateway
Create Custom Incoming Mail Policy for End Users Categorized
as Repeat Clickers
You must create a custom incoming mail policy to configure aggressive mail policies for end users categorized
as repeat clickers.
Procedure
Step 1 Go to Mail Policies > Incoming Mail Policies.
Step 2 Click Add Policy.
Step 3 Enter a name for the policy.
Step 4 Check Add User.
Step 5 Select Following Recipients.
Step 6 Check the Include Repeat Clicker List checkbox to include the list of recipients categorized as repeat
clickers by the Cisco Secure Awareness cloud service.
Step 7 Click OK.
Step 8 Click Submit.
Step 9 Configure the required service engines (for example, Anti-Virus, Graymail, and so on) for the mail policy.
Step 10 Commit your changes.
Cisco Secure Awareness Cloud Service and Clusters
If you use centralized management, you can enable the Cisco Secure Awareness cloud service at the cluster,
group, and machine level. If you have enabled your email gateway with the Cisco Secure Awareness cloud
service in standalone mode, you can choose to join a cluster registered with the CiscoSecure Awareness cloud
service.
When you disable the Cisco Secure Awareness cloud service at the machine level, it is disabled only
for the logged-in email gateway while the other machines in the cluster are still connected to the Cisco
Secure Awareness cloud service.
Note
Viewing Logs
The Cisco Secure Awareness cloud service information is posted to the Mail Logs. Most information is at the
Info or Debug level.
Examples of Cisco Secure Awareness Log Entries:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
359
Integrating Email Gateway with Cisco Secure Awareness Cloud Service
Create Custom Incoming Mail Policy for End Users Categorized as Repeat Clickers
• In this example, the log shows that the download of the Repeat Clickers list from the Cisco Secure
Awareness cloud service failed because of an invalid token.
Tue Oct 13 10:12:59 2020 Warning: CSA:
The download of the Repeat Clickers list from
the Cisco Secure Awareness cloud service failed because
of an invalid token.
Solution: Make sure you obtain a valid authentication token from the Cisco Secure Awareness cloud
service.
• In this example, the log shows that the download of the Repeat Clickers list from the Cisco Secure
Awareness cloud service failed because of a connection error.
Wed Oct 14 10:59:36 2020 Warning: CSA:
The download of the Repeat Clickers list from
the Cisco Secure Awareness cloud service failed because
of a connection error.
Solution: Verify the firewall configuration settings used to connect your email gateway to the Cisco
Secure Awareness cloud service.
• In this example, the log shows that the download of the Repeat Clickers list from the Cisco Secure
Awareness cloud service failed because of an internal server error.
Wed Oct 14 10:59:36 2020 Warning: CSA:
The download of the Repeat Clickers list from
the Cisco Secure Awareness cloud service failed because
of an internal server error.
Solution: Contact Cisco Support for technical assistance.
• In this example, the log shows that the download of the Repeat Clickers list from the Cisco Secure
Awareness cloud service failed because the SSL certificate verification failed.
Wed Oct 14 11:02:46 2020 Warning: CSA:
The download of the Repeat Clickers list from
the Cisco Secure Awareness cloud service failed because
the SSL certificate verification failed.
Solution: Add the required CA certificate of the proxy server in the custom certificate authority list of
your email gateway.
• In this example, the log shows that the download of the Repeat Clickers list from the Cisco Secure
Awareness cloud service failed because the proxy authentication failed.
Wed Oct 14 11:09:48 2020 Warning: CSA:
The download of the Repeat Clickers list from
the Cisco Secure Awareness cloud service failed
because the proxy authentication failed.
Solution: Check whether the proxy server is configured with the correct authentication credentials in
your email gateway.
• In this example, the log shows that a request to the Cisco Secure Awareness cloud service failed because
the Report API was not enabled on the Cisco Secure Awareness cloud service.
Mon Aug 17 15:35:42 2020 Warning: CSA:
The download of the Repeat Clickers list failed.
A request to the CSA cloud service failed because
the Report API was not enabled on the CSA cloud service
Solution: Check the Enable Report API check box in Environment > Settings > Report API tab of the
Cisco Secure Awareness cloud service.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
360
Integrating Email Gateway with Cisco Secure Awareness Cloud Service
Viewing Logs
• In this example, the log shows that the Cisco Secure Awareness feature expires on a particular date.
2020-10-15 08:00:11,968 INFO csa The Cisco Secure
Awareness feature expires on 2029-12-28T23:59:59Z. You need to
contact your Cisco Account Manager to renew the license.
Solution: Contact your Cisco Account Manager to renew the license.
• In this example, the log shows that the Cisco Secure Awareness feature license has expired, and the
feature is disabled on your email gateway.
2020-10-27 13:33:21,714 CRITICAL csa The Cisco Secure
Awareness feature license has expired, and the feature is
disabled on your email gateway. Contact your Cisco Account Manager
to renew the license.
Solution: Contact your Cisco Account Manager to renew the license.
• In this example, the log shows that the downloaded Repeat Clickers list is empty.
Tue Oct 13 10:10:18 2020 Info: CSA: The downloaded
Repeat Clickers list is empty.
Solution: Create simulated phishing messages in the Cisco Secure Awareness cloud service and send
them to the recipients in your organization.
• In this example, the log shows that the download of the Repeat Clickers list from the Cisco Secure
Awareness cloud service failed because you have reached the maximum number of download attempts.
Fri Oct 16 05:22:08 2020 Warning: CSA: The download
of the Repeat Clickers list from the Cisco Secure Awareness
cloud service failed because you have reached the maximum
number of attempts.
Solution: Contact Cisco Support to increase the number of attempts to download the Repeat Clickers
list from the Cisco Secure Awareness cloud service.
Viewing Alerts
The following table lists the system alerts generated for the Cisco Secure Awareness cloud service, including
a description of the alert and the alert severity.
Component/Alert Name Message and Description Parameters
Parameters: reason
reason - Reason for the failure to
download repeat clickers list from
Cisco Secure Awareness cloud
service.
For example: ‘invalid token,’
‘reached the maximum number of
attempts,’ and so on.
Alert text: The download of the
Repeat Clickers list from the Cisco
Secure Awareness cloud service
failed. $reason.
Alert level: WARNING.
Description: Alert is sent when the
download of the Repeat Clickers
list from the Cisco Secure
Awareness cloud service fails.
MAIL.CSA.DOWNLOAD
_FAILURE
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
361
Integrating Email Gateway with Cisco Secure Awareness Cloud Service
Viewing Alerts
Component/Alert Name Message and Description Parameters
Alert text: The downloaded Repeat N/A.
Clickers list is empty.
Alert level: INFO.
Description: Alert is sent when the
downloaded Repeat Clickers list is
empty. This alert indicates that
there are no Repeat Clickers listed
in the Cisco Secure Awareness
cloud service.
MAIL.CSA.EMPTY_
EMAIL_LIST
Parameters: expiry, region, server
expiry – The date on which the
Cisco Secure Awareness license is
expiring.
region – The region of the Cisco
Secure Awareness license which is
expiring. The region can be
AMERICAS, EUROPE, and so on.
server – The name of the server
URL, for
example,https://secat.cisco.com.
Alert text: The Cisco Secure
Awareness feature license expires
on $expiry. You must contact your
Cisco Account Manager to renew
the license.
Region: $region
Server: $server
Alert level: INFO
Description: Alert is sent on 7 days
prior to expiry, 3 days prior to
expiry and 1 day prior to expiry.
MAIL.CSA.LICENSE_
EXPIRING
Parameters: region, server
region – Region of the CiscoSecure
Awareness license which has
expired. The region can be
AMERICAS, EUROPE, and so on.
server – Name of the server URL,
for example,
https://secat.cisco.com.
Alert text: The Cisco Secure
Awareness feature license has
expired, and the feature is disabled
on your email gateway. Contact
your Cisco Account Manager to
renew the license.
Region: $region
Server: $server
Alert Level: Critical
Description: Alert issent on expiry
of the Cisco Secure Awareness
license.
MAIL.CSA.LICENSE_
EXPIRED
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
362
Integrating Email Gateway with Cisco Secure Awareness Cloud Service
Viewing Alerts
Component/Alert Name Message and Description Parameters
Parameters: reason
reason – Reason for the failure to
retrieve the license expiry details
from the Cisco Secure Awareness
cloud service.
For example: ‘invalid token’, and
‘reached the maximum number of
attempts.’
Alert text: The retrieval of the
license expiry details from the
Cisco Secure Awareness cloud
service failed $reason
Alert level: WARNING
Description: Alert is sent on failure
to retrieve license expiry details
from Cisco Secure Awareness
cloud service for three consecutive
times. Every day one attempt is
made to retrieve the license expiry
details until the license expiry
details are retrieved successfully.
MAIL.CSA.LICENSE_
RETRIVAL_FAILURE
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
363
Integrating Email Gateway with Cisco Secure Awareness Cloud Service
Viewing Alerts
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
364
Integrating Email Gateway with Cisco Secure Awareness Cloud Service
Viewing Alerts
CHAPTER 17
Anti-Virus
This chapter contains the following sections:
• Anti-Virus Scanning Overview, on page 365
• Sophos Anti-Virus Filtering, on page 366
• McAfee Anti-Virus Filtering, on page 369
• How to Configure the Email Gateway to Scan for Viruses , on page 370
• Sending an Email to the Email Gateway to Test Anti-Virus Scanning , on page 379
• Updating Virus Definitions, on page 381
Anti-Virus Scanning Overview
The email gateway includesintegrated virusscanning enginesfrom third party companiesSophos and McAfee.
You can obtain license keys for the email gateway to scan messages for viruses using one or both of these
virus scanning engines, and then configure your email gateway to scan for viruses using either anti-virus
scanning engine.
The McAfee andSophos engines contain the program logic necessary to scan files at particular points, process
and pattern-match virus definitions with data they find in your files, decrypt and run virus code in an emulated
environment, apply heuristic techniques to recognize new viruses, and remove infectious code from legitimate
files.
You can configure the email gateway to scan messages for viruses (based on the matching incoming or
outgoing mail policy), and, if a virusisfound, to perform different actions on the message (including “repairing”
the message of viruses, modifying the subject header, adding an additional X-header, sending the message to
an alternate address or mailhost, archiving the message, or deleting the message).
If enabled, virusscanning is performed in the “work queue” on the email gateway, immediately after Anti-Spam
scanning. (See Email Pipeline and Security Services, on page 62.)
By default, virus scanning is enabled for the default incoming and outgoing mail policies.
Related Topics
• Evaluation Key, on page 366
• Scanning Messages with Multiple Anti-Virus Scanning Engines, on page 366
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
365
Evaluation Key
Your email gateway ships with a 30-day evaluation key for each available anti-virus scanning engine. You
enable the evaluation key by accessing the license agreement in theSystem Setup Wizard orSecurityServices
> Sophos/McAfee Anti-Virus pages(in the GUI) or running the antivirusconfig or systemsetup commands
(in the CLI). Once you have accepted the agreement, the Anti-Virus scanning engine will be enabled, by
default, for the default incoming and outgoing mail policies. For information on enabling the feature beyond
the 30-day evaluation period, contact your Cisco sales representative. You can see how much time remains
on the evaluation via theSystem Administration > Feature Keys page or by issuing the featurekey command.
(For more information, see Feature Keys, on page 1008.)
Scanning Messages with Multiple Anti-Virus Scanning Engines
AsyncOS supports scanning messages with multiple anti-virus scanning engines — multi-layer anti-virus
scanning. You can configure your email gateway to use one or both of the licensed anti-virusscanning engines
on a per mail policy basis. You could create a mail policy for executives, for example, and configure that
policy to scan mail with both Sophos and McAfee engines.
Scanning messages with multiple scanning engines provides “defense in depth” by combining the benefits of
both Sophos and McAfee anti-virus scanning engines. Each engine has leading anti-virus capture rates, but
because each engine relies on a separate base of technology (discussed in McAfee Anti-Virus Filtering, on
page 369 and Sophos Anti-Virus Filtering, on page 366) for detecting viruses, the multi-scan approach can be
even more effective. Using multiple scanning engines can lead to reduced system throughput, please contact
your Cisco support representative for more information.
You cannot configure the order of virus scanning. When you enable multi-layer anti-virus scanning, the
McAfee engine scans for viruses first, and the Sophos engine scans for viruses second. If the McAfee engine
determines that a message is virus-free, the Sophos engine scans the message, adding a second layer of
protection. If the McAfee engine determines that a message contains a virus, the email gateway skips Sophos
scanning and performs actions on the virus message based on settings you configured.
Sophos Anti-Virus Filtering
The email gateway includes integrated virus-scanning technology from Sophos, Plc. Sophos Anti-Virus
provides cross-platform anti-virus protection, detection and disinfection.
Sophos Anti-Virus provides a virus detection engine that scans files for viruses, Trojan horses, and worms.
These programs come under the generic term of malware , meaning “malicious software.” The similarities
between all types of malware allow anti-virus scanners to detect and remove not only viruses, but also all
types of malicious software.
Related Topics
• Virus Detection Engine, on page 367
• Virus Scanning, on page 367
• Detection Methods, on page 367
• Virus Descriptions, on page 368
• Sophos Alerts , on page 368
• When a Virus is Found, on page 368
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
366
Anti-Virus
Evaluation Key
Virus Detection Engine
The Sophos virus detection engine lies at the heart of the Sophos Anti-Virus technology. It uses a proprietary
architecture similar to Microsoft’s COM (Component Object Model), consisting of a number of objects with
well-defined interfaces. The modular filing system used by the engine is based on separate, self-contained
dynamic libraries each handling a different “storage class,” for example, file type. This approach allows virus
scanning operations to be applied on generic data sources, irrespective of type.
Specialized technology for loading and searching data enablesthe engine to achieve very fastscanning speeds.
Incorporated within it are:
• A full code emulator for detecting polymorphic viruses
• An on-line decompressor for scanning inside archive files
• An OLE2 engine for detecting and disinfecting macro viruses
The email gateway integrates with the virus engine using SAV Interface.
Virus Scanning
In broad terms, the engine’s scanning capability is managed by a powerful combination of two important
components: a classifier that knows where to look, and the virus database that knows what to look for. The
engine classifies the file by type rather than by relying on the extension.
The virus engine looks for viruses in the bodies and attachments of messages received by the system; an
attachment’s file type helps determine its scanning. For example, if a message’s attached file is an executable,
the engine examines the header which tells it where the executable code starts and it looks there. If the file is
a Word document, the engine looks in the macro streams. If it is a MIME file, the format used for mail
messaging, it looks in the place where the attachment is stored.
Detection Methods
How viruses are detected depends on their type. During the scanning process, the engine analyzes each file,
identifies the type, and then applies the relevant technique(s). Underlying all methods is the basic concept of
looking for certain types of instructions or certain ordering of instructions.
Related Topics
• Pattern Matching, on page 367
• Heuristics, on page 368
• Emulation, on page 368
Pattern Matching
In the technique of pattern matching, the engine knows the particular sequence of code and is looking for an
exact match that will identify the code as a virus. More often, the engine is looking for sequences of code that
are similar, but not necessarily identical, to the known sequences of virus code. In creating the descriptions
against which files are compared during scanning, Sophos virus researchers endeavor to keep the identifying
code as general as possible so that – using heuristics, as explained below – the engine will find not just the
original virus but also its later derivatives.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
367
Anti-Virus
Virus Detection Engine
Heuristics
The virus engine can combine basic pattern matching techniques with heuristics – a technique using general
rather than specific rules – to detect several viruses in the same family, even thoughSophos researchers might
have analyzed only one virus in that family. The technique enables a single description to be created that will
catch several variants of one virus.Sophostempersits heuristics with other methods, minimizing the incidence
of false positives.
Emulation
Emulation is a technique applied by the virus engine to polymorphic viruses.Polymorphic viruses are encrypted
viruses that modify themselves in an effort to hide themselves. There is no visible constant virus code and
the virus encrypts itself differently each time it spreads. When it runs, it decrypts itself. The emulator in the
virus detection engine is used on DOSand Windows executables, while polymorphic macro viruses are found
by detection code written in Sophos’s Virus Description Language.
The output of this decryption is the real virus code and it is this output that is detected by the Sophos virus
detection engine after running in the emulator.
Executables that are sent to the engine for scanning are run inside the emulator, which tracks the decryption
of the virus body as it is written to memory. Normally the virus entry point sits at the front end of a file and
is the first thing to run. In most cases, only a small amount of the virus body has to be decrypted in order for
the virus to be recognized. Most clean executables stop emulating after only a few instructions, which reduces
overhead.
Because the emulator runs in a restricted area, if the code does turn out to be a virus, the virus does not infect
the email gateway.
Virus Descriptions
Sophos exchanges viruses with other trusted anti-virus companies every month. In addition, every month
customers send thousands of suspect files directly to Sophos, about 30% of which turn out to be viruses. Each
sample undergoes rigorous analysis in the highly secure virus labs to determine whether or not it is a virus.
For each newly discovered virus, or group of viruses, Sophos creates a description.
Sophos Alerts
Cisco encourages customers who enable Sophos Anti-Virus scanning to subscribe to Sophos alerts on the
Sophos site at http://www.sophos.com/virusinfo/notifications/. Subscribing to receive alerts directly from
Sophos will ensure you are apprised of the latest virus outbreaks and their available solutions.
When a Virus is Found
When a virus has been detected, Sophos Anti-Virus can repair (disinfect) the file. Sophos Anti-Virus can
usually repair any file in which a virus has been found, after which the file can be used without risk. The
precise action taken depends on the virus.
There can be limitations when it comes to disinfecting, because it is not always possible to return a file to its
original state. Some viruses overwrite part of the executable program which cannot be reinstated. In this
instance, you define how to handle messages with attachments that could not be repaired. You configure these
settings on a per-recipient basis using the EmailSecurityFeature: the Mail Policies > Incoming or Outgoing
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
368
Anti-Virus
Heuristics
Mail Policies pages (GUI) or the policyconfig -> antivirus command (CLI). For more information on
configuring these settings, see Configuring Virus Scanning Actions for Users, on page 371.
McAfee Anti-Virus Filtering
The McAfee® scanning engine:
• Scans files by pattern-matching virus signatures with data from your files.
• Decrypts and runs virus code in an emulated environment.
• Applies heuristic techniques to recognize new viruses.
• Removes infectious code from files.
Related Topics
• Pattern-Matching Virus Signatures, on page 369
• Encrypted Polymorphic Virus Detection, on page 369
• Heuristics Analysis, on page 369
• When a Virus is Found, on page 368
Pattern-Matching Virus Signatures
McAfee uses anti-virus definition (DAT) files with the scanning engine to detect particular viruses, types of
viruses, or other potentially unwanted software. Together, they can detect a simple virus by starting from a
known place in a file, then searching for a virus signature. Often, they must search only a small part of a file
to determine that the file is free from viruses.
Encrypted Polymorphic Virus Detection
Complex viruses avoid detection with signature scanning by using two popular techniques:
• Encryption. The data inside the virus is encrypted so that anti-virus scanners cannot see the messages
or computer code of the virus. When the virus is activated, it converts itself into a working version, then
executes.
• Polymorphism. This process is similar to encryption, except that when the virus replicates itself, it
changes its appearance.
To counteract such viruses, the engine uses a technique called emulation. If the engine suspects that a file
contains such a virus, the engine creates an artificial environment in which the virus can run harmlessly until
it has decoded itself and its true form becomes visible. The engine can then identify the virus by scanning for
a virus signature, as usual.
Heuristics Analysis
Using only virus signatures, the engine cannot detect a new virus because its signature is not yet known.
Therefore the engine can use an additional technique — heuristic analysis.
Programs, documents or email messages that carry a virus often have distinctive features. They might attempt
unprompted modification of files, invoke mail clients, or use other means to replicate themselves. The engine
analyzesthe program code to detect these kinds of computer instructions. The engine also searchesfor legitimate
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
369
Anti-Virus
McAfee Anti-Virus Filtering
non-virus-like behavior, such as prompting the user before taking action, and thereby avoids raising false
alarms.
By using these techniques, the engine can detect many new viruses.
When a Virus is Found
When a virus has been detected, Sophos Anti-Virus can repair (disinfect) the file. Sophos Anti-Virus can
usually repair any file in which a virus has been found, after which the file can be used without risk. The
precise action taken depends on the virus.
There can be limitations when it comes to disinfecting, because it is not always possible to return a file to its
original state. Some viruses overwrite part of the executable program which cannot be reinstated. In this
instance, you define how to handle messages with attachments that could not be repaired. You configure these
settings on a per-recipient basis using the EmailSecurityFeature: the Mail Policies > Incoming or Outgoing
Mail Policies pages (GUI) or the policyconfig -> antivirus command (CLI). For more information on
configuring these settings, see Configuring Virus Scanning Actions for Users, on page 371.
How to Configure the Email Gateway to Scan for Viruses
How to Scan Messages for Viruses
Do This More Info
Enabling Virus Scanning and Configuring
Global Settings , on page 371
Enable anti-virus scanning on the email
gateway.
Step 1
Creating a Mail Policy for a Group of
Senders and Recipients, on page 266
Define the groups of users whose messages
you want to scan for viruses.
Step 2
Configuring Policy, Virus, and Outbreak
Quarantines , on page 931
(Optional) Configure how you want the virus
quarantine to handle messages.
Step 3
Configuring Virus Scanning Actions for
Users, on page 371
Determine how you want the email gateway
to handle messages with viruses.
Step 4
Configuring the Anti-Virus Policies for
Different Groups ofSenders and Recipients,
on page 376
Configure the anti-virus scanning rules for the
user groups you defined.
Step 5
Sending an Email to the Email Gateway to
Test Anti-Virus Scanning , on page 379
(Optional) Send an email message to test the
configuration.
Step 6
Related Topics
• Enabling Virus Scanning and Configuring Global Settings , on page 371
• Configuring Virus Scanning Actions for Users, on page 371
• Configuring the Anti-Virus Policies for Different Groups of Senders and Recipients, on page 376
• Notes on Anti-Virus Configurations, on page 377
• Flow Diagram for Anti-Virus Actions, on page 378
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
370
Anti-Virus
When a Virus is Found
Enabling Virus Scanning and Configuring Global Settings
You may have enabled a virus scanning engine when you ran theSystem Setup Wizard. Regardless, configure
settings using this procedure.
Note Depending on your feature keys, you can enable Sophos, McAfee, or both.
Procedure
Step 1 Navigate to the Security Services > McAfee page.
Or
Navigate to the Security Services > Sophos page.
Step 2 Click Enable.
Clicking Enable enablesthe feature globally for the email gateway. However, you must later enable
per-recipient settings in Mail Policies.
Note
Step 3 After reading the license agreement,scroll to the bottom of the page and click Accept to accept the agreement.
Step 4 Click Edit Global Settings.
Step 5 Choose a maximum virus scanning timeout value.
Configure a timeout value for the system to stop performing anti-virus scanning on a message. The default
value is 60 seconds.
Step 6 (Optional) Click Enable Automatic Updates to enable automatic update of the engine.
The email gateway fetches the required updates for the particular engine from the update server.
Step 7 Submit and commit your changes.
What to do next
Configure anti-virus settings on a per-recipient basis. See Configuring Virus Scanning Actions for Users, on
page 371.
Configuring Virus Scanning Actions for Users
The virus scanning engine integrated into the email gateway processes messages for viruses for incoming and
outgoing mail based on policies (configuration options) you configure using the Email Security Manager
feature. You enable Anti-Virus actions on a per-recipient basis using the MailPolicies > Incoming or Outgoing
Mail Policies pages (GUI) or the policyconfig > antivirus command (CLI).
Related Topics
• Message Scanning Settings, on page 372
• Message Handling Settings, on page 372
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
371
Anti-Virus
Enabling Virus Scanning and Configuring Global Settings
• Configuring Settings for Message Handling Actions, on page 373
Message Scanning Settings
• Scan for Viruses Only:
Messages processed by the system are scanned for viruses. Repairs are not attempted for infected
attachments. You can choose whether to drop attachments and deliver mail for messages that contain
viruses or could not be repaired.
• Scan and Repair Viruses:
Messages processed by the system are scanned for viruses. If a virusisfound in an attachment, the system
will attempt to “repair” the attachment.
• Dropping Attachments
You can choose to drop infected attachments.
When infected attachments to messages have been scanned and dropped by the anti-virus scanning
engine, the attachment isreplaced with a new attachment called “Removed Attachment.” The attachment
type is text/plain and contains the following:
This attachment contained a virus and was stripped.
Filename: filename
Content-Type: application/filetype
Users will always be notified if their messages were modified in any way because they were infected with a
bad attachment. You can configure a secondary notification action, as well (see Sending Notifications, on
page 375). The notify action is not needed to inform users that a message was modified if you choose to drop
infected attachments.
• X-IronPort-AV Header
All messages that are processed by the Anti-Virus scanning engine on the email gateway have the header
X-IronPort-AV: added to messages. This header provides additional information to you when debugging
issues with your anti-virus configuration, particularly with messages that are considered “unscannable.”
You can toggle whether the X-IronPort-AV header is included in messages that are scanned. Including
this header is recommended.
Message Handling Settings
You configure the virus scanning engine to handle four distinct classes of messages that are received by a
listener, with separate actions for each. Figure - Options for Handling Messages Scanned for Viruses
summarizes the actions the system performs when the virus scanning engine is enabled.
For each of the following message types, you can choose which actions are performed. The actions are
described below (see Configuring Settings for Message Handling Actions, on page 373). For example, you
can configure your anti- virus settings for virus-infected messages so that the infected attachment is dropped,
the subject of the email is modified, and a custom alert is sent to the message recipient.
Repaired Message Handling
Messages are considered repaired if the message was completely scanned and all viruses have been repaired
or removed. These messages will be delivered as is.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
372
Anti-Virus
Message Scanning Settings
Encrypted Message Handling
Messages are considered encrypted if the engine is unable to finish the scan due to an encrypted or protected
field in the message. Messages that are marked encrypted may also be repaired.
Note the differences between the encryption detection message filter rule (see Encryption Detection Rule, on
page 165) and the virusscanning actionsfor “encrypted” messages. The encrypted message filter rule evaluates
to “true” for any messages that are PGP or S/MIME encrypted. The encrypted rule can only detect PGP and
S/MIME encrypted data. It does not detect password protected ZIP files, or Microsoft Word and Excel
documents that include encrypted content. The virus scanning engine considers any message or attachment
that is password protected to be “encrypted.”
If you upgrade from a 3.8 or earlier version of AsyncOSand you configuredSophos Anti-Virusscanning,
you must configure the Encrypted Message Handling section after you upgrade.
Note
Unscannable Message Handling
Messages are considered unscannable if a scanning timeout value has been reached, or the engine becomes
unavailable due to an internal error. Messages that are marked unscannable may also be repaired.
Virus Infected Message Handling
The system may be unable to drop the attachment or completely repair a message. In these cases, you can
configure how the system handles messages that could still contain viruses.
The configuration options are the same for encrypted messages, unscannable messages, and virus messages.
Configuring Settings for Message Handling Actions
• Action to Apply, on page 373
• Quarantines and Anti-Virus Scanning, on page 374
• Modify the Message Subject Header, on page 374
• Archive Original Message, on page 374
• Sending Notifications, on page 375
• Add Custom Header to Message, on page 375
• Modify Message Recipient, on page 375
• Send Message to Alternate Destination Host, on page 375
• Send Custom Alert Notification, on page 376
Action to Apply
Choose which overall action to take on each message type for encrypted, unscannable, or virus positive
messages: drop the message, deliver the message as an attachment to a new message, deliver the message as
is, or send the message to the anti-virus quarantine area (Quarantines and Anti-Virus Scanning, on page 374).
Configuring the email gateway to deliver the infected messages as an attachment to a new message allows
the recipient to choose how to deal with the original, infected attachment.
If you choose to deliver the message or deliver the message as an attachment to a new message, you can
additionally:
• Modify message subject
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
373
Anti-Virus
Encrypted Message Handling
• Archive original message
• Send generic notificationThe following actions are available in the “Advanced” section of the GUI:
• Add custom header to message
• Modify message recipient
• Send message to alternate destination host
• Send custom alert notification
These actions are not mutually exclusive; you can combine some or all of them differently within different
incoming or outgoing policies for different processing needs for groups of users. See the following
sections and Notes on Anti-Virus Configurations, on page 377 for more information on defining various
scanning policies using these options.
Repaired messages have only two advanced options: Add custom header and Send custom alert
notification. All other message types have access to all of the advanced options.
Note
Quarantines and Anti-Virus Scanning
When flagged for quarantine, the message continues through the rest of the email pipeline. When the message
reaches the end of the pipeline, if the message has been flagged for one or more quarantines then it enters
those queues. Note that if the message does not reach the end of the pipeline, it is not placed in a quarantine.
For example, a content filter can cause a message to be dropped or bounced, in which case the message will
not be quarantined.
Archive Original Message
You can archive messages the system has identified as containing (or possibly containing) viruses to the
“avarchive” directory. The format is an mbox-format log file. You must configure an “Anti-Virus Archive”
log subscription to archive messages with viruses or messagesthat could not be completely scanned.For more
information, see Logging, on page 1149
Note In the GUI, you may need to click the “Advanced” link to reveal the “Archive original message” setting.
Modify the Message Subject Header
You can alter the text of identified messages by prepending or appending certain text strings to help users
more easily identify and sort identified messages.
White space is not ignored in the “Modify message subject” field. Add spaces after (if prepending) or
before (if appending) the text you enter in this field to separate your added text from the original subject
of the message. For example, add the text [WARNING: VIRUS REMOVED] with a few trailing spaces if you
are prepending.
Note
The default text is:
Default Subject Line Text for Anti-Virus Subject Line Modification
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
374
Anti-Virus
Quarantines and Anti-Virus Scanning
Verdict Default Text to Add to Subject
Encrypted [WARNING: MESSAGE ENCRYPTED]
Infected [WARNING: VIRUS DETECTED]
Repaired [WARNING: VIRUS REMOVED]
Unscannable [WARNING: A/V UNSCANNABLE]
Any message with multiple states causes a multi-part notification message informing users what actions the
email gateway performed on the message (for example, the user is notified that the message was repaired of
a virus, but another part of the message was encrypted).
Sending Notifications
When the system has identified a message as containing viruses, you can send the default notification to the
sender, the recipient, and/or additional users. When specifying additional users to notify, separate multiple
addresses with commas (in both the CLI and the GUI). The default notification messages are:
Default Notifications for Anti-Virus Notifications
Verdict Notification
The following virus(es) was detected in a mail message:
Actions taken: Infected attachment dropped (or Infected attachment repaired).
Repaired
Encrypted The following message could not be fully scanned by the anti-virus engine due to encryption.
Unscannable The following message could not be fully scanned by the anti-virus engine.
Infectious The following unrepairable virus(es) was detected in a mail message: .
Add Custom Header to Message
You can define an additional, custom header to be added to all messages that are scanned by the anti-virus
scanning engine. Click Yes and define the header name and text.
You can also create filtersthat use the skip-viruscheck action so that certain messages bypass virusscanning.
See Bypass Anti-Virus System Action, on page 213.
Modify Message Recipient
You can modify the message recipient, causing the message to be delivered to a different address. Click Yes
and enter the new recipient address.
Send Message to Alternate Destination Host
You can choose to send the notification to a different recipient or destination host for encrypted, unscannable,
or virus infected messages. Click Yes and enter an alternate address or host.
For example, you could route suspected messages to an administrator’s mailbox or a special mail server for
subsequent examination. In the case of a multi-recipient message, only a single copy is sent to the alternative
recipient.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
375
Anti-Virus
Sending Notifications
Send Custom Alert Notification
You can send a custom notification to the sender, recipient, and/or other users (email addresses). To do so,
you must first create the custom notification prior to configuring the settings.See Understanding Text Resources,
on page 651 for more information.
Figure 18: Options for Handling Messages Scanned for Viruses
By default, Anti-Virus scanning is enabled in the $TRUSTED mail flow policy for public listeners,
which is referenced by the ALLOWED_LIST sender group. See Defining Access Rules for Email
Senders Using Mail Flow Policies, on page 99.
Note
Configuring the Anti-Virus Policies for Different Groups of Senders and
Recipients
The process for editing the per-user anti-virus settings for a mail policy is essentially the same for incoming
or outgoing mail.
Individual policies (not the default) have an additional field to “Use Default” settings. Select this setting to
inherit the default mail policy settings.
You enable anti-virus actions on a per-recipient basis using Incoming or Outgoing Mail Policies. You can
configure mail policiesin the GUI or in the CLI using the policyconfig > antivirus command. After you enable
anti-virus settings globally, you configure these actions separately for each mail policy you create. You can
configure different actions for different mail policies.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
376
Anti-Virus
Send Custom Alert Notification
Procedure
Step 1 Navigate to the Mail Policies > Incoming Mail Policies or Mail Policies > Outgoing Mail Policies page.
Step 2 Click the link for the anti-virus security service for the policy you want to configure.
Note Click the link in the default row to edit the settings for the default policy.
Step 3 Click Yes or Use Default to enable Anti-Virus Scanning for the policy.
The first setting on the page defines whether the service is enabled for the policy. You can click Disable to
disable the service altogether.
For mail policies other than the default, choosing “Yes” enables the fields in the Repaired, Encrypted,
Unscannable, and Virus Infected Messages areas to become active.
Step 4 Select an Anti-Virus scanning engine. You can select McAfee or Sophos engines.
Step 5 Configure Message Scanning settings.
See Message Scanning Settings, on page 372 for more information.
Step 6 Configure settings for Repaired, Encrypted, Unscannable, and Virus Infected messages.
See Message HandlingSettings, on page 372 and ConfiguringSettingsfor Message Handling Actions, on page
373.
Step 7 Click Submit.
Step 8 Commit your changes.
Notes on Anti-Virus Configurations
The drop attachmentsflag makes a considerable difference in how anti-virusscanning works. When the system
is configured to “Drop infected attachments if a virus is found and it could not be repaired,” any viral or
unscannable MIME parts are removed from messages. The output from Anti-Virus scanning, then, is almost
always a clean message. The action defined for Unscannable Messages , as shown in the GUI pane, rarely
takes place.
In a “Scan for Viruses only” environment, these actions “clean” messages by dropping the bad message parts.
Only if the RFC822 headers themselves are attacked or encounter some other problem would this result in
the unscannable actions taking place. However, when Anti-Virus scanning is configured for “Scan for Viruses
only” and “Drop infected attachments if a virus is found and it could not be repaired,” is not chosen, the
unscannable actions are very likely to take place.
The following table lists some common Anti-Virus configuration options
Common Anti-Virus Configuration Options
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
377
Anti-Virus
Notes on Anti-Virus Configurations
Situation Anti-Virus Configuration
Drop-attachments: NO
Scanning: Scan-Only
Cleaned messages: Deliver
Unscannable messages: DROP message
Encrypted messages: Send to administrator or quarantine for review.
Viral messages: Drop message
Widespread Virus Outbreak
Any viral message is simply dropped
from the system with little other
processing taking place.
Drop-attachments: YES
Scanning: Scan and Repair
Cleaned messages: [VIRUS REMOVED] and Deliver
Unscannable messages: Forward as attachment
Encrypted messages: Mark and forward
Viral messages: Quarantine or mark and forward.
Liberal Policy
As many documents as possible are
sent.
Drop-attachments: YES
Scanning: Scan and Repair
Cleaned messages: [VIRUS REMOVED] and Deliver
(Archive cleaned messages for a more cautious policy.)
Unscannable messages: Send notification(s), quarantine, OR drop
and archive.
Encrypted messages: Mark and forward OR treat as unscannable
Viral messages: Archive and drop
More Conservative Policy
Drop-attachments: NO
Scanning: Scan-Only
Cleaned messages: Deliver (this action won't normally be taken)
Unscannable messages: Forward as attachment, alt-src-host , or
alt-rcpt-to actions.
Encrypted messages: Treat as unscannable
Viral messages: Forward to quarantine or administrator.
Conservative with Review
Possible virus messages are sent to a
quarantine mailbox so that an
administrator can review the content.
Flow Diagram for Anti-Virus Actions
The following figure explains how anti-virus actions and options affect messages processed by the email
gateway.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
378
Anti-Virus
Flow Diagram for Anti-Virus Actions
Figure 19: Flow Diagram for Anti-Virus Actions
If you configure multi-layer anti-virus scanning, the Cisco appliance performs virus scanning with the
McAfee engine first and the Sophos engine second. It scans messages using both engines, unless the
McAfee engine detects a virus. If the McAfee engine detects a virus, the email gateway performs the
anti-virus actions (repairing, quarantining, etc.) defined for the mail policy.
Note
Sending an Email to the Email Gateway to Test Anti-Virus
Scanning
Procedure
Step 1 Enable virus scanning for a mail policy.
Use theSecurityServices > Sophos/McAfee Anti-virus page or the antivirusconfig command to set global
settings, and then use the EmailSecurity Manager pages(GUI) or the antivirus subcommand of policyconfig
to configure the settings for a specific mail policy.
Step 2 Open a standard text editor, then type the following character string as one line, with no spaces or line breaks:
X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
379
Anti-Virus
Sending an Email to the Email Gateway to Test Anti-Virus Scanning
The line shown above should appear as one line in your text editor window, so be sure to maximize
your text editor window and delete any line breaks. Also, be sure to type the letter O, not the number
0, in the “X5O...” that begins the test message.
Note
If you are reading this manual on your computer, you can copy the line directly from the PDF file or HTML
file and paste it into your text editor. If you copy the line, be sure to delete any extra carriage returns or spaces.
Step 3 Save the file with the name EICAR.COM.
The file size will be 68 or 70 bytes.
This file is not a virus — it cannot spread or infect other files, or otherwise harm your computer.
However, you should delete the file when you have finished testing your scanner to avoid alarming
other users.
Note
Step 4 Attach the file EICAR.COM to an email message, and send it to the listener that will match the mail policy you
configured in step 1.
Ensure the that the recipient you specify in the test message will be accepted on the listener. (For more
information, see Adding Domains and Users For Which to Accept Messages, on page 127.)
Note that it may be difficult to email the file if you have virus scanning software is installed for outgoing mail
on a gateway other than the Cisco (for example, a Microsoft Exchange server).
Note The test file always scans as unrepairable.
Step 5 Evaluate the actions you configured for virus scanning on the listener and ensure they are enabled and working
as expected.
This is most easily accomplished by performing one of the following actions:
a. Configure the virus scanning settings to Scan and Repair mode or Scan only mode without dropping
attachments.
• Send an email with the Eicar test file as an attachment. Confirm that the actions taken match your
configuration for Virus Infected Message Handling (the settings in Virus Infected Message Handling,
on page 373).
b. Configure the virus scanning settings to Scan and Repair mode or Scan only mode with dropping
attachments.
• Send an email with the Eicar test file as an attachment.
• Confirm that the actionstaken match your configuration for Repaired Message Handling (the settings
in Repaired Message Handling, on page 372).
For more information obtaining virus files for testing anti-virus scanning, see:
http://www.eicar.org/anti_virus_test_file.htm
This page provides 4 files for downloading. Note that it may be difficult to download and extract these files
if you have a client-side virus scanning software installed.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
380
Anti-Virus
Sending an Email to the Email Gateway to Test Anti-Virus Scanning
Updating Virus Definitions
Related Topics
• About Retrieving Anti-Virus Updates via HTTP , on page 381
• Configuring Update Server Settings , on page 381
• Monitoring and Manually Checking for Anti-Virus Updates, on page 381
• Verifying Anti-Virus Files Have Updated on the Email Gateway, on page 382
About Retrieving Anti-Virus Updates via HTTP
Sophos and McAfee frequently update their virus definitions with newly-identified viruses. These updates
must be passed to your email gateway.
By default, the email gateway is configured to check for updates every 5 minutes.For theSophos and McAfee
anti-virus engines, the server updates from a dynamic website.
The system does not timeout on updates as long as the update is actively downloading to the email gateway.
If the update download pauses for too long, then the download times out.
The maximum amount of time that the system waits for an update to complete before timing out is a dynamic
value that is defined as 1 minute lessthan the anti-virus update interval (defined onSecurityServices > Service
Updates). This configuration value aids appliances on slower connections while downloading large updates
that may take longer than 10 minutes to complete.
Configuring Update Server Settings
You can configure virus update settings via the Security Services > Service Updates page. For example, you
can configure how the system receives anti-virus updates and how often it checks for updates. For more
information about these additional settings, see Service Updates , on page 1033.
Monitoring and Manually Checking for Anti-Virus Updates
You can use the Security Services > Sophos or McAfee page or the antivirusstatus CLI command to
verify the email gateway has the latest anti-virus engine and identity files installed, and to confirm when the
last update was performed.
You can also manually perform updates. See Manually Updating Anti-Virus Engines , on page 381
Manually Updating Anti-Virus Engines
Procedure
Step 1 Navigate to the Security Services > Sophos or McAfee Anti-Virus page.
Step 2 Click Update Now in the Current McAfee/Sophos Anti-Virus Files table.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
381
Anti-Virus
Updating Virus Definitions
The email gateway checks for and downloads the latest updates.
What to do next
You can also configure this in the command-line interface using the antivirusstatus and antivirusupdate
command
Verifying Anti-Virus Files Have Updated on the Email Gateway
You can view the Updater Logsto verify whether or not the antivirusfiles have been successfully downloaded,
extracted, or updated. Use the tail command to show the final entries in the Updater log subscription to ensure
that virus updates were obtained.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
382
Anti-Virus
Verifying Anti-Virus Files Have Updated on the Email Gateway
CHAPTER 18
Managing Spam and Graymail
This chapter contains the following sections:
• Overview of Anti-Spam Scanning , on page 383
• How to Configure the Email Gateway to Scan Messages for Spam, on page 384
• IronPort Anti-Spam Filtering, on page 386
• Configuring Intelligent Multi-Scan and Graymail Detection, on page 388
• Defining Anti-Spam Policies , on page 399
• Protecting Email Gateway-Generated Messages From the Spam Filter, on page 405
• Headers Added During Anti-Spam Scanning , on page 406
• Reporting Incorrectly Classified Messages to Cisco, on page 406
• Determining Sender IP Address In Deployments with Incoming Relays , on page 411
• Monitoring Rules Updates, on page 420
• Testing Anti-Spam, on page 421
Overview of Anti-Spam Scanning
Anti-spam processesscan email for incoming (and outgoing) mail based on the mail policiesthat you configure.
• One or more scanning engines scan messages through their filtering modules.
• Scanning engines assign a score to each message. The higher the score, the greater the likelihood that
the message is spam.
• Based on the score, each message is categorized as one of the following:
• Not spam
• Suspected spam
• Positively-identified spam
• An action is taken based on the result.
Actions taken on messages positively identified as spam, suspected to be spam, or identified as unwanted
marketing messages are not mutually exclusive; you can combine some or all of them differently within
different incoming or outgoing policies for different processing needs for groups of users. You can also treat
positively identified spam differently from suspected spam in the same policy. For example, you may want
to drop messages positively identified as spam, but quarantine suspected spam messages.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
383
For each mail policy, you can specify thresholds for some of the categories, and determine the action to take
for each category. You can assign different users to different mail policies and define different scanning
engines, spam-definition thresholds, and spam-handling actions for each policy.
For information about how and when anti-spam scanning is applied, see Email Pipeline and Security
Services, on page 62.
Note
Related Topics
• Anti-Spam Solutions , on page 384
Anti-Spam Solutions
Your email gateway offers the following anti-spam solutions:
• IronPort Anti-Spam Filtering, on page 386.
• Configuring Intelligent Multi-Scan and Graymail Detection, on page 388.
You can license and enable both these solutions on your email gateway, but you can only use one in a particular
mail policy. You can specify a different anti-spam solution for different groups of users.
How to Configure the Email Gateway to Scan Messages for
Spam
Procedure
Command or Action Purpose
Enable anti-spam scanning on the email
gateway.
Step 1 Remaining steps in this table apply
to both scanning engine options.
Note
If you have feature keys for both Cisco
IronPort Anti-Spam and Intelligent Multi-Scan,
you can enable both solutions on the email
gateway.
• IronPort Anti-Spam Filtering, on page 386
• Configuring Intelligent Multi-Scan and
Graymail Detection, on page 388
Configure whether to quarantine spam on the
local email gateway or use an external
Step 2 • Setting Up the Local Spam Quarantine,
on page 948
quarantine on a Cisco Secure Email and Web
Manager.
• Working with an External Spam
Quarantine , on page 1296
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
384
Managing Spam and Graymail
Anti-Spam Solutions
Command or Action Purpose
Creating a Mail Policy for a Group of Senders
and Recipients, on page 266
Define the groups of users whose messages
you want to scan for spam.
Step 3
Configure the anti-spam scanning rulesfor the Defining Anti-Spam Policies , on page 399
user groups you defined.
Step 4
If you want certain messages to skip Cisco Bypass Anti-Spam System Action, on page 212
Anti-Spam scanning, create message filters
that use the skip-spamcheck action.
Step 5
For each inbound mail flow policy, ensure that
“Use SenderBase for Flow Control” is On.
(Recommended) Enable IP ReputationService
scoring for each inbound mail flow policy,
Step 6
even if you are not rejecting connections based
on IP Reputation Scores. See Defining Rules for Incoming Messages
Using a Mail Flow Policy, on page 107.
Determining Sender IP Address In
Deployments with Incoming Relays , on page
411
If your email gateway does not connect
directly to externalsendersto receive incoming
mail, but instead receives messages relayed
through a mail exchange, mail transfer agent,
Step 7
or other machine on your network, ensure that
relayed incoming messagesinclude the original
sender IP address.
Protecting Email Gateway-Generated
Messages From the Spam Filter, on page 405
Prevent alert and other messages generated by
your email gateway from being incorrectly
identified as spam.
Step 8
(Optional) Enable URL filtering to strengthen Enable URL Filtering, on page 449
protection against malicious URLs in
messages.
Step 9
Step 10 Test your configuration. Testing Anti-Spam, on page 421
Scanning rules for both anti-spam solutions
are retrieved by default from the Cisco update
servers.
(Optional) Configure settings for service
updates (including anti-spam rules.)
Step 11
• Service Updates , on page 1033
• UpdatesThrough aProxyServer, on page
1037
• Configuring Server Settings for
Downloading Upgrades and Updates, on
page 1038
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
385
Managing Spam and Graymail
How to Configure the Email Gateway to Scan Messages for Spam
IronPort Anti-Spam Filtering
Related Topics
• Evaluation Key, on page 386
• Cisco Anti-Spam: an Overview , on page 386
• Configuring IronPort Anti-Spam Scanning, on page 387
Evaluation Key
Your email gateway ships with a 30-day evaluation key for the Cisco Anti-Spam software. This key is not
enabled until you accept the license agreement in the system setup wizard or Security Services > IronPort
Anti-Spam pages (in the GUI) or the systemsetup or antispamconfig commands (in the CLI). Once you have
accepted the agreement, Cisco Anti-Spam will be enabled, by default, for the default incoming Mail Policy.
An alert is also sent to the administrator address you configured (see theSystem Setup Wizard,Step 2:System,
on page 34) noting that the Cisco Anti-Spam license will expire in 30 days. Alerts are sent 30, 15, 5, and 0
days prior to expiration.For information on enabling the feature beyond the 30-day evaluation period, contact
your Cisco sales representative. You can see how much time remains on the evaluation via the System
Administration > Feature Keys page or by issuing the featurekey command. (For more information,seeFeature
Keys, on page 1008.)
Cisco Anti-Spam: an Overview
IronPort Anti-Spam addresses a full range of known threats including spam, phishing and zombie attacks, as
well as hard-to-detect low volume, short-lived email threats such as “419” scams. In addition, IronPort
Anti-Spam identifies new and evolving blended threats such as spam attacks distributing malicious content
through a download URL or an executable.
To identify these threats, IronPort Anti-Spam examines the full context of a message-its content, methods of
message construction, the reputation of the sender, the reputation of web sites advertised in the message, and
more. IronPort Anti-Spam combines the power of email and web reputation data, leveraging the full power
of the world's largest email and web traffic monitoring network — SenderBase — to detect new attacks as
soon as they begin.
IronPort Anti-Spam analyzes over 100,000 message attributes across the following dimensions:
• Email reputation — who is sending you this message?
• Message content — what content is included in this message?
• Message structure — how was this message constructed?
• Web reputation — where does the call to action take you?
Analyzing multi-dimensional relationships allowsthe system to catch a broad range of threats while maintaining
accuracy. For example, a message that has content claiming to be from a legitimate financial institution but
that issent from an IPaddress on a consumer broadband network or that contains a URL hosted on a “zombie”
PC will be viewed assuspicious. In contrast, a message coming from a pharmaceutical company with a positive
reputation will not be tagged as spam even if the message contains words closely correlated with spam.
Related Topics
• URL-Related Protections and Controls , on page 447
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
386
Managing Spam and Graymail
IronPort Anti-Spam Filtering
Configuring IronPort Anti-Spam Scanning
Procedure
Step 1 Select Security Services > IronPort Anti-Spam.
Step 2 If you have not enabled IronPort Anti-Spam in the system setup wizard:
a) Click Enable.
b) Scroll to the bottom of the license agreement page and click Accept to accept the agreement.
Step 3 Click Edit Global Settings.
Step 4 Select the check box for Enable IronPort Anti-Spam Scanning.
Checking this box enables the feature globally for the email gateway.
Step 5 To optimize the throughput of your email gateway while still being able to scan increasingly larger messages
sent by spammers, configure the thresholds for message scanning by Cisco Anti-Spam.
Option Description
a. Enter a value for Always scan messages smaller than —The
recommended value is 1 MB or less. Messagessmaller than the always
scan size will be fully scanned, except in cases of “early exit.” Messages
larger than this size are partially scanned if they are smaller than the
never scan size.
Cisco advises not to exceed 3 MB for the always scan message size.
A larger value may result in decreased performance.
b. Enter a value for Never scan messages larger than —The
recommended value is 2 MB or less. Messages larger than this size
will not be scanned by Cisco Anti-Spam and the
X-IronPort-Anti-Spam-Filtered: true header will not be added to the
message.
Cisco advises not to exceed 10 MB for the never scan message size.
A larger value may result in decreased performance.
For messageslarger than the alwaysscan size orsmaller than the never
scan size, a limited and faster scan is performed.
If the Outbreak Filters maximum message size is greater
than Cisco Anti-Spam’s always scan message, messages
smaller than the Outbreak Filters maximum size are fully
scanned.
Note
Message Scanning Thresholds
Enter the number of seconds to wait for timeout when scanning a message.
Enter an integer from 1 to 120. The default value is 60 seconds.
Timeout for Scanning Single
Message
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
387
Managing Spam and Graymail
Configuring IronPort Anti-Spam Scanning
Option Description
Choose from any of the following scanning profilesto catch spam messages:
• Normal - Enable this option for a balanced approach to block spam.
• Aggressive - Enable this option to provide stronger emphasisto block
spam. When enabled, tuning the Anti-Spam policy thresholds have
more impact on spam detection than the Normal profile with a larger
potential for false positives.
When using the new aggressive scanning profile mail policy
adjustments to Anti-Spam thresholds have a larger impact
than before. Therefore when enabling the aggressive profile,
any Anti-Spam policy thresholds previously adjusted should
be reset to defaultsettings and then reevaluated for the best
balance of spam catch rate vs. false positive potential.
Note
Scanning Profile
Step 6 Submit and commit your changes.
Configuring Intelligent Multi-Scan and Graymail Detection
This section describes how to configure Cisco Intelligent Multi-Scan and Graymail Detection and Safe
Unscubscribing:
• Configuring Cisco Intelligent Multi-Scan, on page 388
• Configuring Global Settings for Intelligent Multi-Scan and Graymail Detection, on page 398
• Managing Graymail, on page 389
Configuring Cisco Intelligent Multi-Scan
Cisco Intelligent Multi-Scan incorporates multiple anti-spam scanning engines, including Cisco Anti-Spam,
to provide a multi-layer anti-spam solution.
When processed by Cisco Intelligent Multi-Scan:
• A message is first scanned by third-party anti-spam engines.
• Cisco Intelligent Multi-Scan then passes the message and the verdicts of the third-party engines to Cisco
Anti-Spam, which assumes responsibility for the final verdict.
• After Cisco Anti-Spam performs its scan, it returns a combined multi-scan score to AsyncOS.
• Combining the benefits of the third-party scanning engines and Cisco Anti-Spam results in more caught
spam while maintaining Cisco Anti-Spam’s low false positive rate.
You cannot configure the order of the scanning engines used in Cisco Intelligent Multi-Scan; Cisco Anti-Spam
will always be the last to scan a message and Cisco Intelligent Multi-Scan will not skip it if a third-party
engine determines that a message is spam.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
388
Managing Spam and Graymail
Configuring Intelligent Multi-Scan and Graymail Detection
Using Cisco Intelligent Multi-Scan can lead to reduced system throughput. Please contact your Cisco support
representative for more information.
The Cisco Intelligent Multi-Scan feature key also enables Cisco Anti-Spam on the email gateway, giving
you the option of enabling either Cisco Intelligent MultiScan or Cisco Anti-Spam for a mail policy.
Note
When Cisco Intelligent Multi-Scan is enabled during system setup, it is enabled for the default incoming
mail policy with the default values for the global settings.
Important
Before you begin
Activate the feature key for this feature. See Feature Keys, on page 1008. You will see the IronPort Intelligent
Multi-Scan option only if you have done so.
Procedure
Step 1 Select Security Services > IMS and Graymail.
Step 2 If you have not enabled Cisco Intelligent Multi-Scan in the system setup wizard:
a) Click Enable.
b) Scroll to the bottom of the license agreement page and click Accept to accept the agreement.
Step 3 Click Edit IMS Settings.
Step 4 Select the check box for Enable Intelligent Multi-Scan enable the feature globally for the email gateway.
However, you must still enable per-recipient settings in Mail Policies.
Step 5 (Optional) Click Edit GlobalSettingsto configure the threshold for message scanning.For more information
about global settings, see Configuring Global Settings for Intelligent Multi-Scan and Graymail Detection, on
page 398.
Step 6 Submit and commit your changes.
Managing Graymail
• Overview of Graymail, on page 390
• Graymail Management Solution in Email Gateway, on page 390
• How Graymail Management Solution Works, on page 391
• Configuring Graymail Detection and Safe Unsubscribing, on page 393
• Troubleshooting Graymail Detection and Safe Unsubscribing, on page 398
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
389
Managing Spam and Graymail
Managing Graymail
Overview of Graymail
Graymail messages are messages that do not fit the definition of spam, for example, newsletters, mailing list
subscriptions, social media notifications, and so on. These messages were of use at some point in time, but
have subsequently diminished in value to the point where the end user no longer wants to receive them.
The difference between graymail and spam is that the end user intentionally provided an email address at
some point (for example, the end user subscribed to a newsletter on an e-commerce website or provided
contact details to an organization during a conference) as opposed to spam, messages that the end user did
not sign up for.
Graymail Management Solution in Email Gateway
The graymail managementsolution in the email gateway comprises of two components: an integrated graymail
scanning engine and a cloud-based Unsubscribe Service.
The graymail management solution allows organizations to:
• Identify graymail using the integrated graymail engine and apply appropriate policy controls.
• Provide an easy mechanism for end users to unsubscribe from unwanted messages using Unsubscribe
Service.
In addition to these, the graymail management solution also help organizations to provide:
• Secure unsubscribe option for end users. Mimicking an unsubscribe option is a popular phishing
technique. For this reason, the end users are generally wary of clicking unknown unsubscribe links. For
such scenarios, the cloud-based Unsubscribe Service extracts the original unsubscribe URI, checks the
reputation of the URI, and then performs the unsubscribe process on behalf of the end user. This protects
end users from malicious threats masquerading as unsubscribe links.
• Uniform subscription management interface for end users. Different graymail senders use different
layouts for displaying unsubscribe links to the users. The users must search for the unsubscribe link in
the message body and perform the unsubscribing. Irrespective of the graymail senders, the graymail
management solution provides a common layout for displaying unsubscribe links to the users.
• Better visibility for administrators into various graymail categories. The graymail engine classifies
each graymail into three categories(see Graymail Classification, on page 390) and the administrators can
set policy controls based on these categories.
• Improved spam efficacy
Related Topics
• Graymail Classification, on page 390
Graymail Classification
The graymail engine classifies each graymail into one of the following categories:
• Marketing Email. Advertising messages sent by professional marketing groups, for example, bulletins
from Amazon.com with details about their newly launched products.
• Social Network Email. Notification messages from social networks, dating websites, forums, and so
on. Examples include alerts from:
• LinkedIn, for jobs that you may be interested in
• CNET forums, when a user responds to your post.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
390
Managing Spam and Graymail
Overview of Graymail
• Bulk Email. Advertising messages sent by unrecognized marketing groups, for example, newsletters
from TechTarget, a technology media company.
How Graymail Management Solution Works
The following steps illustrates the workflow of graymail management solution:
Figure 20: Graymail Management Solution Workflow
Workflow
Procedure
Step 1 The email gateway receives an incoming message.
Step 2 The email gateway checks if graymail detection is enabled. If graymail detection is enabled, go to Step 3.
Else, go to Step 8
Step 3 The email gateway checks if the message is spam, virus, or malware positive. If positive, go to Step 8. Else,
go to Step 4
Step 4 The email gateway checks if the message is graymail. If the message is graymail, go to Step 5. Else, go to
Step 8
Step 5 The email gateway applies the configured policy actions such as, drop, deliver, bounce, or quarantine to the
spam quarantine.
Step 6 The email gateway checks if safe unsubscribing enabled. If safe unsubscribing is enabled, go to Step 7. Else,
go to Step 8.
Step 7 The email gateway adds a banner with unsubscribe button to the message. Also, the email gateway rewrites
the existing unsubscribe links in the message body.
Step 8 The email gateway processes the message through the next stages of its email work queue.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
391
Managing Spam and Graymail
How Graymail Management Solution Works
What to do next
For an overview of how email is processed through the system, from reception to routing to delivery, see
Understanding the Email Pipeline, on page 57
Related Topics
• How Safe Unsubscribing Works, on page 392
• Understanding the Email Pipeline, on page 57
How Safe Unsubscribing Works
The following flow diagram shows how safe unsubscribing works.
Figure 21: Safe Unsubscribing Workflow
Workflow
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
392
Managing Spam and Graymail
How Safe Unsubscribing Works
Procedure
Step 1 End user receives a message with the graymail banner.
Step 2 End user clicks on the Unsubscribe link.
Step 3 Unsubscribe Service extracts the original unsubscribe URI.
Step 4 Unsubscribe Service checks the reputation of the URI.
Step 5 Depending on the reputation of the URI, the Unsubscribe Service performs one of the following actions:
• If the URI is malicious, the Unsubscribe Service will not perform the unsubscribe process and displays
a block page to the end user.
• If the URI is not malicious, depending on the URI type ( http or mailto ), the Unsubscribe Service sends
an unsubscribe request to the graymail sender.
• If the request issuccessful, the UnsubscribeService displaysthe “Successfully unsubscribed” status
to the end user.
• If the first unsubscribe request fails, the Unsubscribe Service displays the “Unsubscribe process in
progress” status and provides a URL that can be used to track the status of the unsubscribing.
End users can use this URL to track the status at a later point. After the first failed attempt, the
Unsubscribe Service sends periodic unsubscribe requests for a duration of four hours.
If an end user checks the status of the unsubscribe process at a later point,
• If one of the requests within the four hour duration (from the first failed attempt) is successful, the
Unsubscribe Service displays the “Successfully unsubscribed” status to the end user.
• If none of the requests within the four hour duration (from the first failed attempt) are successful,
the Unsubscribe Service displays the “Unable to subscribe” status to the end user and provides a
URL that can be used to unsubscribe from the graymail manually.
Configuring Graymail Detection and Safe Unsubscribing
• Requirements for Graymail Detection and Safe Unsubscribing, on page 393
• Graymail Detection and Safe Unsubscribing in Cluster Configurations, on page 394
• Enable Graymail Detection and Safe Unsubscribing, on page 394
• Configuring the Incoming Mail Policy for Graymail Detection and Safe Unsubscribing, on page 394
• IronPort-PHdr Header Added During Graymail Scanning, on page 395
• Bypassing Graymail Actions using Message Filters, on page 396
• Monitoring Graymail, on page 396
• Updating Graymail Rules, on page 397
• Customizing the Appearance of Unsubscribe Page for End Users, on page 397
• End-User Safelist, on page 397
• Viewing Logs, on page 397
Requirements for Graymail Detection and Safe Unsubscribing
• For graymail detection, anti-spam scanning must be enabled globally. This can be either the IronPort
Anti-Spam, the Intelligent Multi-Scan feature, or Outbreak Filters. See Managing Spam and Graymail,
on page 383.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
393
Managing Spam and Graymail
Configuring Graymail Detection and Safe Unsubscribing
• For safe unsubscribing,
• Add the safe unsubscribing feature key.
• The end user machines must be able to connect to the cloud-based Unsubscribe Service directly
over the Internet.
Graymail Detection and Safe Unsubscribing in Cluster Configurations
You can enable Graymail Detection and Safe Unsubscribing at the machine, group or cluster level.
Enable Graymail Detection and Safe Unsubscribing
Procedure
Step 1 Select Security Services > IMS and Graymail.
Step 2 Click Edit Graymail Settings.
Step 3 Check Enable Graymail Detection.
Step 4 Check Enable Safe Unsubscribe.
Step 5 (Optional) Check Enable Automatic Updates to enable automatic update of the engine.
The email gateway fetches the required updates for the particular engine from the update server.
Step 6 Click Submit.
Step 7 (Optional) Click Edit Global Settings to configure the threshold for scanning the message. For more
information,see Configuring GlobalSettingsfor Intelligent Multi-Scan and Graymail Detection, on page 398.
Step 8 Submit and commit your changes.
What to do next
To configure Graymail Detection andSafe Unsubscribing globalsettingsin CLI, use the imsandgraymailconfig
CLI command.For more information,see CLI Reference Guide for AsyncOS for Cisco Secure Email Gateway.
Configuring the Incoming Mail Policy for Graymail Detection and Safe Unsubscribing
Before You Begin
Enable Graymail Detection and Safe Unsubscribing, on page 394
Procedure
Step 1 Click Mail Policies > Incoming Mail Policies.
Step 2 Click the link in the Graymail column of the mail policy to modify.
Step 3 Depending on your requirements, choose the following options:
• Enable graymail detection
• Enable safe unsubscribing
• Choose whether to apply the above actions on all messages or only on unsigned messages.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
394
Managing Spam and Graymail
Graymail Detection and Safe Unsubscribing in Cluster Configurations
The email gateway considers a message signed if it is encrypted using S/MIME or it contains
an S/MIME signature.
Note
• Actions to be taken on various graymail categories (Marketing Email, Social Network Email, and Bulk
Email):
• Drop, deliver, bounce, or quarantine (to the spam quarantine) the message
If you plan to use safe unsubscribing option, you must set the action to deliver or
quarantine.
Note
• Send the message to an alternate host
• Modify subject of the message
• Add custom headers
• Send the message to an alternate envelope recipient
If you are sending a graymail positive message to an alternate envelope recipient, banner
will not be added.
Note
• Archive the message
If you are planning only to monitor the detected graymail, you can enable graymail
detection per policy without having to configure actions for various graymail categories.
In this scenario, the email gateway takes no action on the detected graymail.
Note
Step 4 Submit and commit your changes.
What to do next
You can also configure outgoing mail policies for graymail detection. Keep in mind that, in this scenario,
you cannot configure safe unsubscribing.
Note
To configure policy settingsfor Graymail Detection andSafe Unsubscribing in CLI, use the policyconfig
command. For more information, see CLI Reference Guide for AsyncOS for Cisco Secure Email Gateway .
IronPort-PHdr Header Added During Graymail Scanning
The IronPort-PHdr header is added to all messages that are processed by the Graymail engine when:
• Graymail engine is enabled globally on the email gateway.
• Graymail scanning is enabled for a specific mail policy.
If Graymail scanning is not enabled for a specific mail policy, the
IronPort-PHdr header is still added to all messages, if the Graymail engine
is enabled globally on the email gateway.
Note
The IronPort-PHdr header contains encoded proprietary information and is not customer-decodable. This
header provides additional information about debugging issues with your Graymail configuration.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
395
Managing Spam and Graymail
IronPort-PHdr Header Added During Graymail Scanning
If Anti-Spam engine or Outbreak Filter is enabled for a specific mail policy, the IronPort-PHdr header
is added to all messages that pass through the specific mail policy.
Note
Bypassing Graymail Actions using Message Filters
If you do not want to apply graymail actions on certain messages, you can use the following message filters
to bypass graymail actions:
Message FilterAction Description
skip-marketingcheck Bypass actions on marketing emails
skip-socialcheck Bypass actions on social network emails
skip-bulkcheck Bypass actions on bulk emails
The following example specifiesthat messagesreceived on the listener “private_listener” must bypass graymail
actions on social network emails.
internal_mail_is_safe:
if (recv-listener == 'private_listener')
{
skip-socialcheck
();
}
Monitoring Graymail
You can view data about detected graymail using the following reports.
Report Contains the Following Graymail Data More Info
Overview
Page, on
page 838
The number of incoming graymail messages under each
graymail category (Marketing,Social, and Bulk) and the
total number of graymail messages.
Overview page > Incoming Mail
Summary
Incoming
Mail Page,
on page 841
Incoming Mail page > Top Senders The top graymail senders.
by Graymail Messages
The number of incoming graymail messages under each
graymail category (Marketing,Social, and Bulk) and the
total number of graymail messages for all the IP
addresses, domain names, or network owners.
Incoming Mail page > Incoming
Mail Details
The number of incoming graymail messages under each
graymail category (Marketing,Social, and Bulk) and the
total number of graymail messagesfor a given IPaddress,
domain name, or network owner.
Incoming Mail page > Incoming
Mail Details > Sender Profile (drill
down view)
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
396
Managing Spam and Graymail
Bypassing Graymail Actions using Message Filters
Report Contains the Following Graymail Data More Info
Internal
Users Page,
on page 849
Internal Users page > Top Users by The top end users who receive graymail.
Graymail
The number of incoming graymail messages under each
graymail category (Marketing,Social, and Bulk) and the
total number of graymail messages for all the users.
Internal Users page > User Mail
Flow Details
The number of incoming graymail messages under each
graymail category (Marketing,Social, and Bulk) and the
total number of graymail messages for a given user.
Internal Users page > User Mail
Flow Details > Internal User (drill
down view)
If you had enabled Marketing Email Scanning under anti-spam settings for a mail policy, after upgrading to
AsyncOS 9.5 or later, keep in mind that:
• The number of marketing messagesis a sum of marketing messages detected before and after the upgrade.
• The total number of graymail messages does not include the number of marketing messages detected
before the upgrade.
• The total number of attempted messages also includesthe number of marketing messages detected before
the upgrade.
Updating Graymail Rules
If you have enabled service updates, scanning rules for the graymail management solution is retrieved from
the Cisco update servers. But in some scenarios (for example, you have disabled automatic service updates
or automatic service update is not working), you may want to manually update graymail rules.
To manually update the graymail rules, do one of the following:
• In web interface, go to Security Service > IMS and Graymail page, and click Update Now.
• In CLI, run the graymailupdate command.
To know the details of existing graymail rules, see the Rule Updates section of the IMS and Graymail page
in web interface or use the graymailstatus command in CLI.
Customizing the Appearance of Unsubscribe Page for End Users
When an end user clicks on unsubscribe link, the Unsubscribe Service displays a Cisco branded Unsubscribe
page indicating the status of the unsubscribe process (see How Safe Unsubscribing Works, on page 392). You
can customize the appearance of the Unsubscribe page and display your organization’s branding (such as
company logo, contact information, and so on) using Security Services > Block Page Customization. For
instructions, see Customizing the Notification That End Users See If a Site Is Malicious , on page 453.
End-User Safelist
If the end usersin your organization have configuredSafelist for their own email accounts, graymail messages
from a sender in the safelist will not be scanned by the graymail scanning engine. For more information about
Safelists, see Using Safelists and Blocklists to Control Email Delivery Based on Sender , on page 953.
Viewing Logs
The graymail detection and safe unsubscribing information is posted to the following logs:
• Graymail Engine Logs. Contains information about the graymail engine, status, configuration, and so
on. Most information is at Info or Debug level.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
397
Managing Spam and Graymail
Updating Graymail Rules
• Graymail Archive. Contains archived messages (the messages that are scanned and associated with the
“archive message” action). The format is an mbox-format log file.
• Mail Logs. Containsinformation about graymail detection and addition of banner forsafe unsubscribing.
Most information is at Info or Debug level.
Troubleshooting Graymail Detection and Safe Unsubscribing
Unable to Perform Safe Unsubscribing, on page 398
Unable to Perform Safe Unsubscribing
Problem
After clicking on the Unsubscribe link, the end user sees the following message: “Unable to unsubscribe
from...”
Solution
This problem can occur if the Unsubscribe Service is unable to perform the safe unsubscribe on behalf of the
end user. The following are some of the common scenarios in which the Unsubscribe Service is unable to
perform the safe unsubscribe:
• Unsubscribe URI or mailto address is wrong.
• Websites that require the end users’ credentials to unsubscribe.
• Websites that require the end users to confirm the request of unsubscribing by logging into their email
accounts.
• Websites that require captcha to be solved and the Unsubscribe Service is unable to solve the captcha.
• Websites that require interactive unsubscribing.
The end users can use the URL provided at the bottom of the unsubscribe page to unsubscribe manually.
Configuring Global Settings forIntelligent Multi-Scan andGraymail Detection
To optimize the throughput of your email gateway, you can configure the threshold and the timeout settings
for scanning messages by Cisco Intelligent Multi-Scan and Graymail. These settings are common for both
Cisco Intelligent Multi-Scan and Graymail configuration.
1. Select Security Services > IMS and Graymail
2. Click Edit Global Settings.
3. Select the thresholds for scanning with Cisco Intelligent Multi-Scan and Graymail Detection.
The default values are:
• Always scan 512K or less.
•
This setting is not applicable for Graymail Detection and Safe
Unsubscribing.
Note
• Never scan 1M or more.
4. Enter the number of seconds to wait for timeout when scanning a message.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
398
Managing Spam and Graymail
Troubleshooting Graymail Detection and Safe Unsubscribing
When specifying the number of seconds, enter an integer from 1 to 120. The default value is 60 seconds.
Most users do not have to change the maximum message size to be scanned or the timeout value. That
said, you may be able to optimize the throughput of your email gateway by lowering the maximum message
size setting.
5. Submit and comit your changes.
Defining Anti-Spam Policies
For each mail policy, you specify settingsthat determine which messages are considered spam and what action
to take on those messages. You also specify which engine will scan messages that the policy applies to.
You can configure different settings for the default incoming and outgoing mail policies. If you need different
anti-spam policies for different users, use multiple mail policies with different anti-spam settings. You can
enable only one anti-spam solution per policy; you cannot enable both on the same policy.
Before You Begin
• Complete all steps to this point in the table in How to Configure the Email Gateway to Scan Messages
for Spam, on page 384.
• Familiarize yourself with the following:
• Understanding Positive and Suspect Spam Thresholds, on page 401
• Configuration Examples: Actions for Positively Identified versus Suspected Spam , on page 402
• Unwanted Marketing Messages From Legitimate Sources, on page 402
• If you have enabled more than one anti-spam solution: Enabling Different Anti-Spam Scanning
Engines in Different Mail Policies: Configuration Example , on page 404
• Headers Added During Anti-Spam Scanning , on page 406
• If you will archive spam into the “Anti-Spam Archive” log, see also Logging, on page 1149.
• If you will send messages to an alternate mailhost, see also Alter Delivery Host Action, on page 207.
Procedure
Step 1 Navigate to the Mail Policies > Incoming Mail Policies page.
Or
Step 2 Navigate to the Mail Policies > Outgoing Mail Policies page.
Step 3 Click the link under the Anti-Spam column for any mail policy.
Step 4 In the Enable Anti-Spam Scanning for This Policy section, select the anti-spam solution you want to use
for the policy.
Options you see depend on the anti-spam scanning solution(s) that you have enabled.
For mail policies other than the default: If you use settings from the default policy, all other options on the
page are disabled.
You can also disable anti-spam scanning altogether for this mail policy.
Step 5 Configure settings for positively identified spam, suspected spam, and marketing messages:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
399
Managing Spam and Graymail
Defining Anti-Spam Policies
Option Description
Choose an option.
Positively-identified spam scanning is always enabled if anti-spam scanning is enabled.
Enable Suspected
Spam Scanning
Enable Marketing
Email Scanning
Choose which overall action to take on positively identified spam, suspected spam, or
unwanted marketing messages:
• Deliver
• Drop
• Bounce
• Quarantine
Apply This Action
to Message
You can send identified messages to an alternate destination mailhost (an email server
other than the ones listed in SMTP Routes or DNS).
Enter an IP address or hostname. If you enter a hostname, its Mail Exchange (MX)
will be queried first. If none exists, the A record on the DNS server will be used (as
with SMTP Routes).
Use this option if you want to redirect messages, for example to a sandbox mail server
for further examination.
For additional important information, see Alter Delivery Host Action, on page 207.
(Optional) Send to
Alternate Host
You can alter text in the Subject of identified messages by prepending or appending
certain text strings to help users more easily identify and sort spam and unwanted
marketing messages.
White space is not ignored in this field. Add spaces after (if prepending) or
before (if appending) the text you enter in this field to separate your added
text from the original subject of the message. For example, if you are
prepending, add the text [SPAM] with a few trailing spaces.
“Add Text to Subject” field only accepts US-ASCII characters.
Note
Add Text to Subject
Advanced Options (for custom header and message delivery)
You can add a custom header to identified messages.
Click Advanced and define header and value.
You can use a custom header in conjunction with a content filter to perform actions
such as redirecting URLs in suspected spam messages so that they pass through the
Cisco Web Security proxy service. For information, see Using Custom Headers to
Redirect URLs in Suspected Spam to the Cisco Web Security Proxy: Configuration
Example , on page 403.
(Optional) Add
Custom Header
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
400
Managing Spam and Graymail
Defining Anti-Spam Policies
Option Description
You can have identified messages sent to an alternate envelope recipient address.
Click Advanced and define an alternate address.
For example, you could route messagesidentified asspam to an administrator’s mailbox
for subsequent examination. In the case of a multi-recipient message, only a single
copy is sent to the alternate recipient.
(Optional) Send to
an Alternate
Envelope Recipient
You can archive identified messages into the “Anti-Spam Archive” log. The format
is an mbox-format log file.
Archive Message
Use the default thresholds or enter a threshold value for positively identified spam and
a value for suspected spam.
Spam Thresholds
Step 6 Submit and commit your changes.
What to do next
If you enabled anti-spam scanning for outgoing mail, check the anti-spam settings of the relevant host access
table, especially for a private listener.See Defining Access Rules for EmailSenders Using MailFlow Policies,
on page 99.
Related Topics
• How to Configure the Email Gateway to Scan Messages for Spam, on page 384
• Understanding Positive and Suspect Spam Thresholds, on page 401
• Configuration Examples: Actions for Positively Identified versus Suspected Spam , on page 402
• Unwanted Marketing Messages From Legitimate Sources, on page 402
• Using Custom Headers to Redirect URLs in Suspected Spam to the Cisco Web Security Proxy:
Configuration Example , on page 403
• Enabling Different Anti-Spam Scanning Engines in Different Mail Policies: Configuration Example ,
on page 404
Understanding Positive and Suspect Spam Thresholds
When evaluating messages for spam, both anti-spam scanning solutions apply thousands of rules in order to
arrive at an overall spam score for the message. The score is then compared to the thresholds specified in the
applicable mail policy to determine whether the message is considered spam.
For highest accuracy, the threshold for positive identification as spam is quite high by default: Messages
scoring between 90 and 100 are considered to be positively identified as spam. The default threshold for
suspected spam is 50.
• Messages with scores below the suspected spam threshold will be considered legitimate.
• Messages above the suspected threshold but below the positive-identification threshold will be considered
to be suspected spam.
You can configure your anti-spam solution to reflect the spam tolerance levels of your organization by
customizing the Positive and Suspected spam thresholds in each mail policy.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
401
Managing Spam and Graymail
Understanding Positive and Suspect Spam Thresholds
You can change the positively identified spam threshold to a value between 50 and 99. You can change the
threshold for suspected spam to any value between 25 and the value you specified for positively-identified
spam.
When you change the thresholds:
• Specifying a lower number (a more aggressive configuration) identifies more messages asspam and may
produce more false positives. This provides a lower risk that users will see spam but a higher risk of
having legitimate mail marked as spam.
• Specifying a higher number (a more conservative configuration) identifies fewer messages as spam and
may deliver more spam. This provides a higher risk of users seeing spam but less risk that legitimate
mail will be withheld as spam. Ideally, if set up correctly, the message subject will identify the message
as likely spam and message will be delivered.
You can define separate actions to take on positively-identified and suspected spam. For example, you may
want to drop “positively identified” spam but quarantine “suspected” spam.
Related Topics
• Anti-Spam Solutions , on page 384
• Configuration Examples: Actions for Positively Identified versus Suspected Spam , on page 402
Configuration Examples: Actions for Positively Identified versus Suspected
Spam
Sample Actions
(Conservative)
Sample Actions
(Aggressive)
Spam
• Deliver with “ [Positive Spam] ” added to the
subject of messages, or
• Quarantine
Positively Drop
Identified
Deliver with “ [Suspected Spam] ” added to the subject
of messages
Deliver with “ [Suspected
Spam] ” added to the subject of
messages
Suspected
The aggressive example tags only suspected spam messages, while dropping those messagesthat are positively
identified. Administrators and end-users can check the subject line of incoming message for false positives,
and an administrator can adjust, if necessary, the suspected spam threshold.
In the conservative example, positively identified and suspected spam is delivered with an altered subject.
Users can delete suspected and positively identified spam. This method is more conservative than the first.
For a further discussion of aggressive and conservative policies in mail policies, see Managed Exceptions,
on page 269.
Unwanted Marketing Messages From Legitimate Sources
If you had configured Marketing Email Settings under anti-spam settings for a mail policy, after upgrading
to AsyncOS 9.5 for Email, Marketing Email Settings under anti-spam settings will be moved under graymail
settings of the same policy. See Managing Spam and Graymail, on page 383.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
402
Managing Spam and Graymail
Configuration Examples: Actions for Positively Identified versus Suspected Spam
Using Custom Headers to Redirect URLs in Suspected Spam to the Cisco Web
Security Proxy: Configuration Example
You can rewrite URLs in suspected spam so that when a recipient clicks a link in the message, the request is
routed through the Cisco Web Security proxy service, which evaluates the safety of the site at click time and
blocks access to known malicious sites.
Before You Begin
Enable the URL Filtering feature and its prerequisites. See Setting Up URL Filtering, on page 448.
Procedure
Step 1 Apply a custom header to suspected spam messages:
a) Select Mail Policies > Incoming Mail Policies.
b) Click the link in the Anti-Spam column for a policy such as the Default policy.
c) In the Suspected Spam Settings section, enable suspected spam scanning.
d) Click Advanced to display the Add Custom Header option.
e) Add a custom header such as url_redirect .
f) Submit and commit your changes.
Step 2 Create a content filter to redirect URLs in messages that have the custom header:
a) Select Mail Policies > Incoming Content Filters.
b) Click Add Filter.
c) Name the filter url_redirect .
d) Click Add Condition.
e) Click Other Header.
f) Enter the header name: url_redirect .
Make sure this exactly matches the header you created above.
g) Select Header exists.
h) Click OK.
i) Click Add Action.
j) Click URL Category.
k) Select all categories in Available Categories and add them to Selected Categories.
l) For Action on URL, select Redirect to Cisco Security Proxy.
m) Click OK.
Step 3 Add the content filter to the mail policy.
a) Select Mail Policies > Incoming Mail Policies.
b) Click the link in the Content Filters column for the policy that you selected earlier in this procedure.
a) Select Enable Content Filters if it is not already selected.
b) Select the check box to enable the url_filtering content filter.
c) Submit and commit your changes.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
403
Managing Spam and Graymail
Using Custom Headers to Redirect URLs in Suspected Spam to the Cisco Web Security Proxy: Configuration Example
What to do next
Related Topics
• Redirecting URLs, on page 429
• Content Filters, on page 273
Enabling Different Anti-Spam Scanning Engines in Different Mail Policies:
Configuration Example
When using the System Setup Wizard (or systemsetup command in the CLI), you are presented with option
to enable either Cisco Intelligent Multi-Scan or the Cisco Anti-Spam engine. You cannot enable both during
system setup, but after system setup is complete you can enable the anti-spam solution that you didn’t choose,
by using the Security Services menu.
After the system is set up, you can configure the anti-spam scanning solution for incoming mail policies via
the Mail Policies > Incoming Mail Policies page. (Anti-spam scanning is typically disabled for outgoing
mail policies.) You can even disable anti-spam scanning for a policy.
In this example, the default mail policy and the “Partners” policy are using the Cisco Anti-Spam scanning
engine to quarantine positive and suspected spam.
Figure 22: Mail Policies - Anti -spam Engine Per Recipient
To change thePartners policy to use Cisco Intelligent Multi-Scan and scan for unwanted marketing messages,
click on the entry in the Anti-Spam column corresponding with the Partners row (“use default”).
Select Cisco Intelligent Multi-Scan for the scanning engine, and select Yes to enable unwanted marketing
message detection. Use the default settings for unwanted marketing message detection.
The following figure shows Cisco Intelligent Multi-Scan and unwanted marketing message detection enabled
in a policy.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
404
Managing Spam and Graymail
Enabling Different Anti-Spam Scanning Engines in Different Mail Policies: Configuration Example
Figure 23: Mail Policies - Enabling Cisco Intelligent Multi-scan
After submitting and committing the changes, the mail policy looks like this:
Figure 24: Mail Policies - Intelligent Multi-Scan Enabled in Policy
Protecting Email Gateway-Generated Messages From the Spam
Filter
Because automated email messages that are sent from the email gateway (such as email alerts and scheduled
reports) may contain URLs or other information that may cause them to be incorrectly identified as spam,
you should do the following to ensure their delivery:
Include senders of these messages in an incoming mail policy that bypasses anti-spam scanning.See Creating
a Mail Policy for a Group of Senders and Recipients, on page 266and Bypass Anti-Spam System Action, on
page 212.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
405
Managing Spam and Graymail
Protecting Email Gateway-Generated Messages From the Spam Filter
Headers Added During Anti-Spam Scanning
• If either anti-spam scanning engine is enabled for a mail policy, each message that passes through that
policy will have the following headers added to the message:
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result
The second header containsinformation that allows CiscoSupport to identify the rules and engine version
used to scan the message. Result information is encoded proprietary information and is not
customer-decodable.
• Cisco Intelligent Multi-Scan also adds headers from the third-party anti-spam scanning engines.
• You can define additional custom headers to be added to all messages for a given mail policy that are
positively identified as spam, suspected to be spam, or identified as unwanted marketing mail. See
Defining Anti-Spam Policies , on page 399.
Related Topics
• Using Custom Headers to Redirect URLs in Suspected Spam to the Cisco Web Security Proxy:
Configuration Example , on page 403
Reporting Incorrectly Classified Messages to Cisco
Messagesthat appear to be incorrectly classified may be reported to Cisco for analysis. The reported messages
are used to enhance the accuracy and effectiveness of the product.
You can report incorrectly classified messages that belong to the following categories:
• Missed spam
• Message marked as a spam, but is not a spam
• Missed marketing message
• Message marked as a marketing message, but is not a marketing message
• Missed phishing message
Related Topics
• How to Report Incorrectly Classified Messages to Cisco, on page 406
• How to Track Your Submissions, on page 411
How to Report Incorrectly Classified Messages to Cisco
Before You Begin
Before you start reporting incorrectly classified messages to Cisco, you must perform the following steps.
Perform this step only once.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
406
Managing Spam and Graymail
Headers Added During Anti-Spam Scanning
Procedure
Step 1 Register as an administrator on Cisco Talos EmailStatusPortal can be done in any one of the following ways:
Cisco Talos Email Status Portal is a web-based tool that allows email administrators to view and
track email submissions on the portal.
Note
• Registering when you are the first administrator in your organization to access the portal:
a. Log in to Cisco Talos Email Status Portal (https://talosintelligence.com/email_status_portal) using
your Cisco credentials.
b. Click Manage Account.
c. Click Add Domain.
d. Enter your organization’s domain name in the Domain field to register your domain with the portal.
Make sure that you enter a valid domain name, for example, example.com is the domain
name in the following email address: user@example.com. If you have multiple domains
in your organization, make sure that you add all the domains.
Note
e. Check the I own this domain check box if you are the owner of the domain entered in step 'd.'
If you do not check the 'I own this domain' check box, then you will only have domain
view access rights. For more information, see the Cisco Talos Email Status Portal Help
page at https://talosintelligence.com/tickets/email_submissions/help
Note
f. Click Submit.
After you click Submit, an email with a 6-digit character verification code is automatically sent to
postmaster@domain.com (where domain.com is the domain you entered in step 'd') to confirm the
domain ownership.
If your organization is not using postmaster@domain.com or your administrator does not have access
to the postmaster mailbox, create a message filter (on all your email gateways) to redirect messages
from SubmissionPortal@cisco.com sent to postmaster@domain.com to a different email address.
The following is a sample message filter:
redirect_postmaster: if (rcpt-to == "postmaster@domain.com") AND (mail-from ==
"^SubmissionPortal@cisco.com$") { alt-rcpt-to ("admin@domain.com"); }
g. Enter the 6-digit character verification code in the Domain Ownership Verification Code dialog
box to confirm the domain ownership.
h. Click Submit Verification Code.
After you click the Submit Verification Code button, you are automatically provided with admin
access rights. A registration ID is auto generated that can be viewed in the Manage Accounts section
of the portal. You can use the registration ID for all the email gateways in your organization.
A registration ID is a unique identifier to identify submissions made from the Cisco Email
Security Gateways that belong to a particular organization.
Note
• Registering when an administrator in your organization is already registered on the portal:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
407
Managing Spam and Graymail
How to Report Incorrectly Classified Messages to Cisco
a. Log in to Cisco Talos Email Status Portal (https://talosintelligence.com/email_status_portal) using
your Cisco credentials.
b. Click Manage Account..
c. Click Add Domain.
d. Enter your organization’s domain name in the Domain field to register your domain with the portal.
Make sure that you enter a valid domain name, for example, example.com is the domain
name in the following email address: user@example.com. If you have multiple domains
in your organization, make sure that you add all the domains.
Note
e. Click Submit.
After you click Submit, an email notification is sent to the administrator who is already registered on the
portal. This administrator must log in to the portal, and click Approve in the Permission Requests section of
Manage Accounts to approve your registration request.
After your registration request is approved, a registration ID is auto generated that can be viewed in the Manage
Accounts section of the portal. You can use the registration ID for all the email gateways in your organization.
A registration ID is a unique identifier to identify submissions made from the Cisco Email Security
Gateways that belong to a particular organization.
Note
Step 2 Add the registration ID generated from Cisco Talos Email Status Portal for all the email gateways in your
organization.
a. Log in to your email gateways using the web interface.
b. Go to System Administration > Cisco Talos Email Status Portal Registration.
c. If your email gateway is part of a cluster, set the mode to cluster level.
d. Click Set Registration ID.
e. Enter the registration ID obtained from the Cisco Talos Email Status Portal in the Registration ID field.
f. Submit and commit your changes.
g. If your email gateway is not part of a cluster, you must repeat steps 1 through 6 on all the email gateways
in your organization.
You can also use the portalregistrationconfig command in CLI to set the registration ID.
How to Report Incorrectly Classified Messages to Cisco
For more information, see:
• How to Submit Email Messages to Cisco document at https://www.cisco.com/c/en/us/support/docs/
security/email-security-appliance/214133-how-to-submit-email-messages-to-cisco.html#anc5.
• Cisco Talos Email Status Portal Help page at https://talosintelligence.com/tickets/email_submissions/
help.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
408
Managing Spam and Graymail
How to Report Incorrectly Classified Messages to Cisco
Procedure
Step 1 Perform the steps mentioned in Before You Begin section of How to Report Incorrectly Classified Messages
to Cisco, on page 406 .
Step 2 Report incorrectly classified messages to Cisco using one of the following methods:
• Using Cisco Email Security Plug-In, on page 409
• Forwarding Incorrectly Classified Message as an Attachment, on page 409
After you report an incorrectly classified message to Cisco, you will receive an email notification based on
the option you select under the Email Notification and Reports button in the Manage Account section of the
portal.
The 'MySubmission Notifications' and 'MySubmission Reports' options under the 'Email Notification
and Reports' button are set to off by default.For more information, see the Cisco Talos EmailStatus
Portal Help page at https://talosintelligence.com/tickets/email_submissions/help
Note
What to do next
How to Track Your Submissions, on page 411
Using Cisco Email Security Plug-In
Cisco EmailSecurityPlug-In is a tool that allows users(email administrators and end users) to report incorrectly
classified messages to Cisco using Microsoft Outlook. When you deploy this plug-in as part of Microsoft
Outlook, a reporting menu is added to the Microsoft Outlook web interface. You can use the plug-in menu to
report incorrectly classified messages.
Additional Information
• You can download Cisco Email Security Plug-In from the following page: https://software.cisco.com/
portal/pub/download/portal/select.html?&mdfid=284900944&flowid=41782&softwareid=283090986.
• For more information, see the Cisco EmailSecurityPlug-In Administrator Guide http://www.cisco.com/
c/en/us/support/security/email-encryption/products-user-guide-list.html.
Forwarding Incorrectly Classified Message as an Attachment
Depending on the category of the message, you can forward each incorrectly classified message as an RFC
822 attachment to the following addresses as shown in the table below:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
409
Managing Spam and Graymail
Using Cisco Email Security Plug-In
User Consideration for
Submitting
Email Definition Submission Method
Submission
Delivered to the user’sinbox,
but user considers message
to be spam or Phish.
Detected as spam, but user
considers message legitimate.
spam@access.
ironport.com
phish@access.
ironport.com
virus@access.
ironport.com
Outlook Plugin
‘Spam’, ‘Phish’, or
‘Virus’ button
Unsolicited and undesired. Spam/Phish is
never legitimate and may also be malicious
(phish, virus, malware, scams, etc.)
Spam /
Phish
Marketing/graymail
messages not detected as
marketing/graymail.
ham@access.
ironport.com
Outlook Plugin ‘Not
Spam’ button
Legitimate (good) email, not spam. Also
known as ‘Ham.’
Legiti
mate
Detected as spam, but user
considers message legitimate
ads@access.
ironport.com
Outlook Plugin
‘Marketing’ button
Marketing islegitimate (notSpam) email that
is commercial bulk email. Usually
subscription based, sometimes unwanted.
Users may have knowingly or unknowingly
solicited mail from the sender. For example
swiping a badge at a conference or making an
online purchase, etc. Legitimate subscription
based marketing email will have a working
unsubscribe mechanism.
Graymail is a broader category that Includes
Marketing as well as other legitimate bulk
mail.
Market
ing /
Graymail
Detected as
Marketing/Graymail, but user
considers the message to be
transactional or otherwise not
Marketing/Graymail.
not_ads@access.
ironport.com
Legitimate email (not Spam) that is not bulk
and not subscription based. Usually
person-to-person and/or transactional.
Not
Market
ing /
Graymail
You can achieve best results if you use one of the following email programs to forward the message:
• Apple Mail
• Microsoft Outlook for Mac
• Microsoft Outlook Web App
• Mozilla Thunderbird
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
410
Managing Spam and Graymail
Forwarding Incorrectly Classified Message as an Attachment
If you are using Microsoft Outlook 2010, 2013, or 2016 for Microsoft Windows, you must use the Cisco
Email Security Plug-In or the Microsoft Outlook Web App to report incorrectly classified messages.
This is because Outlook for Windows may not forward the message with the required headers intact.
Also, use the mobile platforms only if you can forward the original message as an attachment.
Caution
How to Track Your Submissions
After your receive an email notification with the submission details, you can view and track your submission
on Cisco Talos Email Status Portal.
Procedure
Step 1 Log in to Cisco Talos EmailStatusPortal (https://talosintelligence.com/email_status_portal) using your Cisco
credentials.
Step 2 Click Submissions on Cisco Talos Email Status Portal.
Step 3 Click Filter Options and select appropriate filter option(s).
Step 4 (Optional) Click the calendar button to choose the specific date.
What to do next
For more information, see the Cisco Talos Email Status Portal Help page at https://talosintelligence.com/
tickets/email_submissions/help.
Determining Sender IP Address In Deployments with Incoming
Relays
If one or more mail exchange/transfer agents (MX or MTA), filtering servers, etc. stand at the edge of your
network, between your email gateway and the external machines that are sending incoming mail, then your
email gateway cannot determine the IP addresses of the sending machines. Instead, mail appears to originate
from the local MX/MTA. However, IronPort Anti-Spam and Cisco Intelligent Multi-Scan (using the IP
Reputation Service) depend on accurate IP addresses for external senders.
The solution is to configure your email gateway to work with incoming relays. You specify the names and
IP addresses of all of the internal MX/MTAs connecting to the email gateway, as well as the header used to
store the originating IP address.
Related Topics
• Example Environments with Incoming Relays , on page 412
• Configuring the Email Gateway to Work with Incoming Relays, on page 413
• How Incoming Relays Affect Functionality , on page 418
• Configuring Logs to Specify Which Headers Are Used , on page 420
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
411
Managing Spam and Graymail
How to Track Your Submissions
Example Environments with Incoming Relays
The following figure shows a very basic example of an incoming relay. Mail from IP address 7.8.9.1 appears
to come from IP address 10.2.3.4 because the local MX/MTA is relaying mail to the email gateway.
Figure 25: Mail Relayed by MX/MTA — Simple
The following figure showstwo other,slightly more complicated examples of how mail may be relayed inside
the network and how mail may be processed by several servers within the network before it is passed to the
email gateway. In example A, mail from 7.8.9.1 passes through the firewall and is processed by an MX and
an MTA before being delivered to the email gateway. In example B, mail from 7.8.9.1 issent to a load balancer
or other type of traffic shaping appliance and is sent to any one of a range of MXs prior to being delivered to
the email gateway.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
412
Managing Spam and Graymail
Example Environments with Incoming Relays
Figure 26: Mail Relayed by MX/MTA — Advanced
Configuring the Email Gateway to Work with Incoming Relays
Related Topics
• Enabling the Incoming Relays Feature , on page 413
• Adding an Incoming Relay , on page 414
• Message Headers for Relayed Messages , on page 415
Enabling the Incoming Relays Feature
You should only enable the incoming relays feature if a local MX/MTA relays mail to your email
gateway.
Note
Procedure
Step 1 Select Network > Incoming Relays.
Step 2 Click Enable.
Step 3 Commit your changes.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
413
Managing Spam and Graymail
Configuring the Email Gateway to Work with Incoming Relays
Adding an Incoming Relay
Add incoming relays to identify:
• Each machine on your network that will relay incoming messages to your email gateway, and
• The header that will label the IP address of the original external sender.
Before You Begin
For information needed to complete these prerequisites, see Message Headers for Relayed Messages , on page
415.
• Determine whether you will use custom or received headers to identify the IP address of the original
external sender.
• If you will use custom headers:
• Determine the exact header that will label the originating IP address of relayed messages.
• For each MX, MTA, or other machine that connects to original external senders, set up that machine
to add the header name and the IP address of the original external sender to incoming messages.
Procedure
Step 1 Select Network > Incoming Relays.
Step 2 Click Add Relay.
Step 3 Enter a name for this relay.
Step 4 Enter the IP address of the MTA, MX, or other machine that connects to the email gateway to relay incoming
messages.
You can use IPv4 or IPv6 addresses, standard CIDR format, or an IP address range. For example, if you have
several MTAs at the edge of your network receiving email, you might want to enter a range of IP addresses
to include all of your MTAs, such as 10.2.3.1/8 or 10.2.3.1-10.
For IPv6 addresses, AsyncOS supports the following formats:
• 2620:101:2004:4202::0-2620:101:2004:4202::ff
• 2620:101:2004:4202::
• 2620:101:2004:4202::23
• 2620:101:2004:4202::/64
Step 5 Specify the header that will identify the IP address of the original external sender.
When entering a header, you do not need to enter the trailing colon.
a) Select the header type:
Choose custom headers (recommended) or Received headers.
b) For custom headers:
Enter the header name that you configured the relaying machine to add to relayed messages.
For example:
SenderIP
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
414
Managing Spam and Graymail
Adding an Incoming Relay
or
X-CustomHeader
c) For Received headers:
Enter the character or string after which the IP address will appear. Enter the number for the “hop” to
check for the IP address.
Step 6 Submit and commit your changes.
What to do next
Consider doing the following:
• Add the relaying machine to a sender group with a mail flow policy that has unlimited messages for
DHAP. For an explanation, see Incoming Relays and Directory Harvest Attack Prevention, on page 419.
• To facilitate tracking and troubleshooting, configure the email gateway logs to show which header is
used. See Configuring Logs to Specify Which Headers Are Used , on page 420.
Related Topics
• How to Configure the Email Gateway to Scan Messages for Spam, on page 384
Message Headers for Relayed Messages
You will configure your email gateway to use one of the following types of header to identify the original
sender of a relayed message:
• Custom Header , on page 415
• Received Header, on page 416
Custom Header
Using custom headers is the recommended method of identifying original senders. The machine connecting
to the original sender needs to add this custom header. The value of the header is expected to be the IPaddress
of the external sending machine. For example:
SenderIP: 7.8.9.1
X-CustomHeader: 7.8.9.1
If your local MX/MTA can receive mail from a variable number of hops, inserting a custom header is the
only way to enable the Incoming Relays feature. For example, in the following figure, both path C and D lead
to IP address 10.2.3.5; however, path C has two hops and path D has one. Because the number of hops can
vary in this situation, you must use a custom header in order to have Incoming Relays configured correctly.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
415
Managing Spam and Graymail
Message Headers for Relayed Messages
Figure 27: Mail Relayed by MX/MTA — Variable Number of Hops
Related Topics
• Adding an Incoming Relay , on page 414
Received Header
If configuring the MX/MTAs to include a custom header containing the sending IP address is not an option,
you can configure the incoming relays feature to attempt to determine the sending IP address by examining
the “Received:” headersin the message. Using the “Received:” header will only work if the number of network
“hops” will always be constant for an IP address. In other words, the machine at the first hop (10.2.3.5 in
Figure - Mail Relayed by MX/MTA — Advanced) should always be the same number of hops away from the
edge of your network. If incoming mail can take different paths (resulting in a different number of hops, as
described in Figure - Mail Relayed by MX/MTA — Variable Number of Hops) to the machine connecting to
your email gateway, you must use a custom header (see Custom Header , on page 415).
Specify a parsing character or string and the number of network hops (or Received: headers) back to look. A
hop is basically the message traveling from one machine to another (being received by the email gateway
does not count as a hop. See Configuring Logs to Specify Which Headers Are Used , on page 420for more
information). AsyncOS looks for the first IP address following the first occurrence of the parsing character
or string in the Received: header corresponding to the number of specified hops. For example, if you specify
two hops, the second Received: header, working backward from the email gateway is parsed. If neither the
parsing character nor a valid IP address is found, the email gateway uses the real IP address of the connecting
machine.
For the following example mail headers, if you specify an opening square bracket ( [ ) and two hops, the IP
address of the external machine is 7.8.9.1. However, if you specify an closing parenthesis ( ) ) as the parsing
character, a valid IP address will not be found. In this case, the Incoming Relays feature is treated as disabled,
and the IP of the connecting machine is used (10.2.3.5).
In the example in Figure - Mail Relayed by MX/MTA — Advanced the incoming relays are:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
416
Managing Spam and Graymail
Received Header
• Path A — 10.2.3.5 (with 2 hops when using received headers) and
• Path B — 10.2.6.1 (with 2 hops when using received headers)
The following table shows example email headers for a message as it moves through several hops on its way
to the email gateway as in Figure - Mail Relayed by MX/MTA — Advanced. This example shows extraneous
headers (ignored by your email gateway) which are present once the message has arrived in the recipient’s
inbox. The number of hops to specify would be two.
Table 38: A Series of Received: Headers (Path A Example 1)
Microsoft Mail Internet Headers Version 2.0
Received: from smemail.rand.org ([10.2.2.7]) by smmail5.customerdoamin.org with
Microsoft SMTPSVC(5.0.2195.6713);
Received: from ironport.customerdomain.org ([10.2.3.6]) by
smemail.customerdoamin.org with Microsoft SMTPSVC(5.0.2195.6713);
1
Received: from mta.customerdomain.org ([10.2.3.5]) by ironport.customerdomain.org
with ESMTP; 21 Sep 2005 13:46:07 -0700
2
Received: from mx.customerdomain.org (mx.customerdomain.org) [10.2.3.4]) by
mta.customerdomain.org (8.12.11/8.12.11) with ESMTP id j8LKkWu1008155 for
3
Received: from sending-machine.spamham.com (sending-machine.spamham.com [7.8.9.1])
by mx.customerdomain.org (Postfix) with ESMTP id 4F3DA15AC22 for
4
Received: from linux1.thespammer.com (HELO linux1.thespammer.com) ([10.1.1.89])
by sending-machine.spamham.com with ESMTP;
Received: from exchange1.thespammer.com ([10.1.1.111]) by linux1.thespammer.com
with Microsoft SMTPSVC(6.0.3790.1830);
Subject: Would like a bigger paycheck?
Date: Wed, 21 Sep 2005 13:46:07 -0700
From: "A. Sender"
To:
5
Notes for the above table:
• The email gateway ignores these headers.
• The email gateway receives the message (not counted as a hop).
• First hop (and incoming relay).
• Second hop. This is the sending MTA. The IP address is 7.8.9.1.
• The email gateway ignores these Microsoft Exchange headers.
The following table shows the headers for the same email message, without the extraneous headers
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
417
Managing Spam and Graymail
Received Header
Table 39: A Series of Received: Headers (Path A Example 2)
Received: from mta.customerdomain.org ([10.2.3.5]) by ironport.customerdomain.org
with ESMTP; 21 Sep 2005 13:46:07 -0700
1
Received: from mx.customerdomain.org (mx.customerdomain.org) [10.2.3.4]) by
mta.customerdomain.org (8.12.11/8.12.11) with ESMTP id j8LKkWu1008155 for
;
2
Received: from sending-machine.spamham.com (sending-machine.spamham.com [7.8.9.1])
by mx.customerdomain.org (Postfix) with ESMTP id 4F3DA15AC22 for
;
3
The following figure shows the incoming relay for path A (above) as configured in the Add Relay page in
the GUI:
Figure 28: A Configured Incoming Relay with Received Header
Related Topics
• Adding an Incoming Relay , on page 414
How Incoming Relays Affect Functionality
• Incoming Relays and Filters, on page 418
• Incoming Relays, HAT, IP Reputation Score, and Sender Groups, on page 419
• Incoming Relays and Directory Harvest Attack Prevention, on page 419
• Incoming Relays and Trace, on page 419
• Incoming Relays and Email Security Monitor (Reporting) , on page 419
• Incoming Relays and Message Tracking, on page 419
• Incoming Relays and Logging , on page 419
Incoming Relays and Filters
The Incoming Relays feature provides the various IP Reputation Service related filter rules (reputation,
no-reputation) with the correct IP Reputation score.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
418
Managing Spam and Graymail
How Incoming Relays Affect Functionality
Incoming Relays, HAT, IP Reputation Score, and Sender Groups
HAT policy groups do not currently use information from Incoming Relays. However, because the Incoming
Relaysfeature doessupply the Reputation score, you can simulate HAT policy group functionality via message
filters and the $reputation variable.
Incoming Relays and Directory Harvest Attack Prevention
If a remote host attempts a directory harvest attack by sending messages to the MX or MTA serving as an
incoming relay on your network, the email gateway drops the connection from the incoming relay if the relay
is assigned to a sender group with a mail flow policy with Directory Harvest Attack Prevention (DHAP)
enabled. This prevents all messages from the relay, including legitimate messages, from reaching the email
gateway. The email gateway does not have the opportunity to recognize the remote host as the attacker and
the MX or MTA that’s acting as the incoming relay continues to receive mail from the attacking host. To
work around this issue and continue receiving messages from the incoming relay, add the relay to a sender
group with a mail flow policy that has unlimited messages for DHAP.
Incoming Relays and Trace
Trace returns the Incoming Relay’s IP Reputation Score in its results instead of the reputation score for the
source IP address.
Incoming Relays and Email Security Monitor (Reporting)
When using Incoming Relays:
• Email Security Monitor reports include data for both the external IP and the MX/MTA. For example, if
an external machine (IP 7.8.9.1) sent 5 emails through the internal MX/MTA (IP 10.2.3.4), Mail Flow
Summary will show 5 messages coming from IP 7.8.9.1 and 5 more coming from the internal relay
MX/MTA (IP 10.2.3.5).
• The IP Reputation score is not reported correctly in the Email Security Monitor reports. Also, sender
groups may not be resolved correctly.
Incoming Relays and Message Tracking
When using Incoming Relays, the Message Tracking Details page displays the relay’s IP address and the
relay’s IP ReputationScore for a message instead of the IPaddress and reputation score of the original external
sender.
Incoming Relays and Logging
In the following log example, the IP Reputation score for the sender is reported initially on line 1. Later, once
the Incoming Relay is processed, the correct IP Reputation score is reported on line 5.
Fri Apr 28 17:07:29 2006 Info: ICID 210158 ACCEPT SG UNKNOWNLIST match
nx.domain IPR rfc1918
1
2 Fri Apr 28 17:07:29 2006 Info: Start MID 201434 ICID 210158
3 Fri Apr 28 17:07:29 2006 Info: MID 201434 ICID 210158 From:
Fri Apr 28 17:07:29 2006 Info: MID 201434 ICID 210158 RID 0 To:
4
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
419
Managing Spam and Graymail
Incoming Relays, HAT, IP Reputation Score, and Sender Groups
Fri Apr 28 17:07:29 2006 Info: MID 201434 IncomingRelay(senderdotcom): Header
Received found, IP 192.192.108.1 being used, IPR 6.8
5
Fri Apr 28 17:07:29 2006 Info: MID 201434 Message-ID
'<7.0.1.0.2.20060428170643.0451be40@sender.com>'
6
7 Fri Apr 28 17:07:29 2006 Info: MID 201434 Subject 'That report...'
8 Fri Apr 28 17:07:29 2006 Info: MID 201434 ready 2367 bytesfrom
Fri Apr 28 17:07:29 2006 Info: MID 201434 matched all recipients for per-recipient
policy DEFAULT in the inbound table
9
10 Fri Apr 28 17:07:34 2006 Info: ICID 210158 close
11 Fri Apr 28 17:07:35 2006 Info: MID 201434 using engine: CASE spam negative
12 Fri Apr 28 17:07:35 2006 Info: MID 201434 antivirus negative
13 Fri Apr 28 17:07:35 2006 Info: MID 201434 queued for delivery
Incoming Relays and Mail Logs
The following example shows a typical log entry containing Incoming Relay information:
Wed Aug 17 11:20:41 2005 Info: MID 58298 IncomingRelay(myrelay): Header Received found, IP
192.168.230.120 being used
Configuring Logs to Specify Which Headers Are Used
Your email gateway only examinesthe headersthat were present when the message wasreceived.So, additional
headers added locally (such as Microsoft Exchange headers, etc.) or when the message is received by the
email gatewayare not processed. One way to help determine which headers are used is to configure AsyncOS
logging to include the headers you use.
To configure logging settings for headers, see Configuring Global Settings for Logging, on page 1219.
Monitoring Rules Updates
Once you have accepted the license agreement, you can view the most recent Cisco Anti-Spam and Cisco
Intelligent Multi-Scan rules updates.
Procedure
Step 1 Select Security Services > IronPort Anti-Spam.
or
Step 2 Select Security Services > IMS and Graymail.
Step 3 Look at the Rule Updates section and:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
420
Managing Spam and Graymail
Incoming Relays and Mail Logs
To More Information
If an update has not occurred, or a server has not been
configured, “Never Updated” is displayed.
See the most recent update for each component
See if an update is available —
Update rules if updates are available Click Update Now.
What to do next
Related Topics
• Service Updates , on page 1033
• UpdatesThrough a Proxy Server, on page 1037
• Configuring Server Settings for Downloading Upgrades and Updates , on page 1038
Testing Anti-Spam
To Do This More Information
The test message you send with this header is
flagged by Cisco Anti-Spam, and you can confirm
that the actions you configured for the mail policy
(Defining Anti-Spam Policies , on page 399) are
performed.
Use this header with one of the following:
• UseSMTPcommandsto send a test message
with this header. See Sending an Email to
the Email Gateway to Test Cisco Anti-Spam,
on page 422.
• Use the trace command and include this
header. See Debugging Mail Flow Using
Test Messages: Trace, on page 1259.
Test your configuration using the
X-advertisement: spam header.
For testing purposes, Cisco Anti-Spam
considers any message with an
X-header formatted as
X-Advertisement: spam to be spam.
Test your
configuration.
For a list of ineffective evaluation approachesthat
you should avoid, see Ways Not to Test
Anti-Spam Efficacy, on page 423.
Evaluate the product using a live mail
stream directly from the Internet.
Evaluate
Anti-Spam engine
efficacy.
Related Topics
• Sending an Email to the Email Gateway to Test Cisco Anti-Spam, on page 422
• Ways Not to Test Anti-Spam Efficacy, on page 423
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
421
Managing Spam and Graymail
Testing Anti-Spam
Sending an Email to the Email Gateway to Test Cisco Anti-Spam
Before You Begin
Review the example in Testing Anti-Spam Configuration: Example Using SMTP, on page 422.
Procedure
Step 1 Enable Cisco Anti-Spam on a mail policy.
Step 2 Send a test email that includes the following header to a user in that mail policy: X-Advertisement: spam
Use SMTP commands with Telnet to send this message to an address to which you have access.
Step 3 Check the mailbox of the test account and confirm that the test message was correctly delivered based upon
the actions you configured for the mail policy.
For example:
• Was the subject line altered?
• Was your additional custom header added?
• Was the message delivered to an alternate address?
• Was the message dropped?
Related Topics
• Testing Anti-Spam Configuration: Example Using SMTP, on page 422
Testing Anti-Spam Configuration: Example Using SMTP
For this example, the mail policy must be configured to receive messages for the test address and the HAT
must accept the test connection.
# telnet IP_address_of_IronPort_Appliance_with_IronPort_Anti-Spam port
220 hostname ESMTP
helo example.com
250 hostname
mail from:
250 sender ok
rcpt to:
250 recipient
ok
data
354 go ahead
Subject: Spam Message Test
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
422
Managing Spam and Graymail
Sending an Email to the Email Gateway to Test Cisco Anti-Spam
X-Advertisement: spam
spam test
.
250 Message MID accepted
221 hostname
quit
Ways Not to Test Anti-Spam Efficacy
Because IronPort AntiSpam and Cisco Intelligent Multi-Scan rules are added quickly to prevent active spam
attacks and quickly expire once attacks have passed, you should not test efficacy using any of the following
methods:
• Evaluating using resent or forwarded mail or cut-and-pasted spam messages.
Mail lacking the proper headers, connecting IP, signatures, etc. will result in inaccurate scores.
• Testing “hard spam” only.
Removing the “easy spam” using IP Reputation Service, blocked lists, message filters, etc. will result in
a lower overall catch rate percentage.
• Resending spam caught by another anti-spam vendor.
• Testing older messages.
The scanning engine adds and removesrulesrapidly based on current threats. Testing using old messages
will therefore lead to inaccurate test results.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
423
Managing Spam and Graymail
Ways Not to Test Anti-Spam Efficacy
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
424
Managing Spam and Graymail
Ways Not to Test Anti-Spam Efficacy
CHAPTER 19
Outbreak Filters
This chapter contains the following sections:
• Overview of Outbreak Filters, on page 425
• How Outbreak Filters Work, on page 425
• How the Outbreak Filters Feature Works, on page 432
• Managing Outbreak Filters, on page 435
• Monitoring Outbreak Filters, on page 445
• Troubleshooting The Outbreak Filters Feature, on page 446
Overview of Outbreak Filters
Outbreak Filters protects your network from large-scale virus outbreaks and smaller, non-viral attacks, such
as phishing scams and malware distribution, as they occur. Unlike most anti-malware security software, which
cannot detect new outbreaks until data is collected and a software update is published, Cisco gathers data on
outbreaks as they spread and sends updated information to your email gateway in real-time to prevent these
messages from reaching your users.
Cisco uses global traffic patterns to develop rules that determine if an incoming message is safe or part of an
outbreak. Messages that may be part of an outbreak are quarantined until they’re determined to be safe based
on updated outbreak information from Cisco or new anti-virus definitions are published bySophos and McAfee.
Messages used in small-scale, non-viral attacks use a legitimate-looking design, the recipient’s information,
and custom URLs that point to phishing and malware websites that have been online only for a short period
of time and are unknown to web security services. OutbreakFilters analyzes a message’s content and searches
for URL links to detect this type of non-viral attack. Outbreak Filters can rewrite URLs to redirect traffic to
potentially harmful websites through a web security proxy, which either warns users that the website they are
attempting to access may be malicious or blocks the website completely.
How Outbreak Filters Work
Related Topics
• Delaying, Redirecting, and Modifying Messages, on page 426
• Threat Categories, on page 426
• Cisco Security Intelligence Operations, on page 427
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
425
• Context Adaptive Scanning Engine, on page 428
• Delaying Messages, on page 428
• Redirecting URLs, on page 429
• Modifying Messages, on page 430
• Types of Rules: Adaptive and Outbreak, on page 430
• Outbreaks, on page 431
• Threat Levels, on page 431
Delaying, Redirecting, and Modifying Messages
The Outbreak Filters feature uses three tactics to protect your users from outbreaks:
• Delay. Outbreak Filters quarantines messages that may be part of a virus outbreak or non-viral attack.
While quarantined, the email gateways receives updated outbreak information and rescans the message
to confirm whether it’s part of an attack.
If a spam positive message is identified as outbreak positive by Outbreak
Filters, the message is not sent to Outbreak Quarantine.
Note
• Redirect. OutbreakFiltersrewritesthe URLsin non-viral attack messagesto redirect the recipient through
the Cisco web security proxy if they attempt to access any of the linked websites. The proxy displays a
splash screen that warns the user that the website may contain malware, if the website is still operational,
or displays an error message if the website has been taken offline. See Redirecting URLs, on page 429
for more information on redirecting URLs.
• Modify. In addition to rewriting URLs in non-viral threat messages, Outbreak Filters can modify a
message’s subject and add a disclaimer above the message body to warn users about the message’s
content. See Modifying Messages, on page 430 for more information.
Threat Categories
The Outbreak Filters feature provides protection from two categories of message-based outbreaks: virus
outbreaks , which are messages with never-before-seen viruses in their attachments, and non-viral threats ,
which includes phishing attempts, scams, and malware distribution through links to an external website.
By default, the Outbreak Filters feature scans your incoming and outgoing messages for possible viruses
during an outbreak. You can enable scanning for non-viral threats in addition to virus outbreaks if you enable
anti-spam scanning on the email gateway.
Your email gateway needs a feature key for Anti-Spam or Intelligent Multi-Scan in order for Outbreak
Filters to scan for non-viral threats.
Note
Related Topics
• Virus Outbreaks, on page 427
• Phishing, Malware Distribution, and Other Non-Viral Threats, on page 427
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
426
Outbreak Filters
Delaying, Redirecting, and Modifying Messages
Virus Outbreaks
The OutbreakFilters feature provides you with a head start when battling virus outbreaks. An outbreak occurs
when messages with attachments containing never-before-seen viruses or variants of existing viruses spread
quickly through private networks and the Internet. As these new viruses or variants hit the Internet, the most
critical period is the window of time between when the virus is released and when the anti-virus vendors
release an updated virus definition. Having advanced notice — even a few hours — is vital to curbing the
spread of the malware or virus. During that vulnerability window, the newly-found virus can propagate
globally, bringing email infrastructure to a halt.
Phishing, Malware Distribution, and Other Non-Viral Threats
Messages containing non-viral threats are designed to look like a message from a legitimate sources and often
sent out to a small number of recipients. These messages may have one or more of the following characteristics
in order to appear trustworthy:
• The recipient’s contact information.
• HTML content designed to mimic emails from legitimate sources, such as social networks and online
retailers.
• URLs pointing to websites that have new IP addresses and are online only for a short time, which means
that email and web security services do not have enough information on the website to determine if it is
malicious.
• URLs pointing to URL shortening services.
All of these characteristics make these messages more difficult to detect as spam. The OutbreakFilters feature
provides a multi-layer defense from these non-viral threats to prevent your users from downloading malware
or providing personal information to suspicious new websites.
If CASE discovers URLs in the message, it compares the message to existing Outbreak Rules to determine
if the message is part of a small-scale non-viral outbreak and then assigns a threat level. Depending on the
threat level, the email gateway delays delivery to the recipient until more threat data can be gathered and
rewrites the URLs in the message to redirect the recipient to the Cisco web security proxy if they attempt to
access the website. The proxy displays a splash page warning the user that the website may contain malware.
Cisco Security Intelligence Operations
Cisco Security Intelligence Operations (SIO) is a security ecosystem that connects global threat information,
reputation-based services, and sophisticated analysis to email gateways to provide stronger protection with
faster response times.
SIO consists of three components:
• SenderBase. The world’s largest threat monitoring network and vulnerability database.
• Threat Operations Center (TOC). A global team of security analysts and automated systems that extract
actionable intelligence gathered by SenderBase.
• Dynamic Update. Real-time updates automatically delivered to email gateways as outbreaks occur.
SIO compares real-time data from the global SenderBase network to common traffic patterns to identify
anomalies that are proven predictors of an outbreak. TOC reviews the data and issues a threat level of the
possible outbreak. The email gateways download updated threat levels and Outbreak Rules and use them to
scan incoming and outgoing messages, as well as messages already in the Outbreak quarantine.
Information about current virus outbreaks can be found on SenderBase’s website here:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
427
Outbreak Filters
Virus Outbreaks
http://www.senderbase.org/
TheSIO website provides a list of current non-viral threats, including spam, phishing, and malware distribution
attempts:
http://tools.cisco.com/security/center/home.x
Context Adaptive Scanning Engine
OutbreakFilters are powered by Cisco’s unique Context AdaptiveScanning Engine (CASE). CASE leverages
over 100,000 adaptive message attributes tuned automatically and on a regular basis, based on real-time
analysis of messaging threats.
For virus outbreaks, CASE analyzes the message content, context and structure to accurately determine likely
Adaptive Rule triggers. CASE combines Adaptive Rules and the real-time Outbreak Rules published by SIO
to evaluate every message and assign a unique threat level.
To detect non-viral threats, CASE scans messages for URLs and uses Outbreak Rules from SIO to evaluate
a message’s threat level if one or more URLs are found.
Based on the message’s threat level, CASE recommends a period of time to quarantine the message to prevent
an outbreak. CASE also determines the rescan intervals so it can reevaluate the message based on updated
Outbreak Rules from SIO. The higher the threat level, the more often it rescans the message while it is
quarantined.
CASE also rescans messages when they’re released from the quarantine. A message can be quarantined again
if CASE determines that it is spam or contains a virus upon rescan.
For more information about CASE, see Cisco Anti-Spam: an Overview , on page 386.
Delaying Messages
The period between when an outbreak or email attack occurs and when software vendorsrelease updated rules
is when your network and your users are the most vulnerable. A modern virus can propagate globally and a
malicious website can deliver malware or collect your users’sensitive information during this period. Outbreak
Filters protects your users and network by quarantining suspect messages for a limited period of time, giving
Cisco and other vendors time to investigate the new outbreak.
When a virus outbreak occurs, suspicious messages with attachments are quarantined until updated Outbreak
Rules and new anti-virus signatures prove the email’s attachment is clean or a virus.
Small scale, non-viral threats contain URLs to malicious websites that may be online for a short period of
time in order to evade detection by web security services or through URL shortening services in order to
circumvent web security by putting a trustworthy website in the middle. By quarantining messages containing
URLs that meet your threat level threshold, not only does CASE have the opportunity to reevaluate the
message’s content based on updated Outbreak Rules from SIO, but the messages can remain in the quarantine
long enough that the linked website may go offline or be blocked by a web security solution.
See Dynamic Quarantine, on page 433 for more information on how Outbreak Filters quarantine suspicious
messages.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
428
Outbreak Filters
Context Adaptive Scanning Engine
Redirecting URLs
When CASE scans a message at the Outbreak Filters stage, it searches for URLs in the message body in
addition to other suspicious content. CASE uses published Outbreak Rules to evaluate whether the message
is a threat and then scoresthe message with the appropriate threat level. Depending on the threat level, Outbreak
Filters protects the recipient by rewriting all the URLs to redirect the recipient to the Cisco web security proxy,
except for URLs pointing to bypassed domains, and delaying the delivery of the message in order for TOC
to learn more about the website if it appears to be part of a larger outbreak.See URL Rewriting and Bypassing
Domains, on page 442 for more information on bypassing URLs for trusted domains.
After the email gateway releases and delivers the message, any attempt by the recipient to access the website
is redirected through the Cisco web security proxy. This is an external proxy hosted by Cisco that displays a
splash screen that warns the user that the website may be dangerous, if the website is still operational. If the
website has been taken offline, the splash screen displays an error message.
If the recipient decides to click the message’s URLs, the Cisco web security proxy displays a splash screen
in the user’s web browser to warn the user about the content of the message. The following figure shows an
example of the splash screen warning. The recipient can either click Ignore this warning to continue on to
the website or Exit to leave and safely close the browser window.
Figure 29: Cisco Security Splash Screen Warning (proxy_splash_screen)
The only way to access the Cisco web security proxy is through a rewritten URL in a message. You cannot
access the proxy by typing a URL in your web browser.
You can customize the appearance of this splash screen and display your organization’s branding such
as company logo, contact information, and so on. See Customizing the Notification That End Users See
If a Site Is Malicious , on page 453.
Note
To redirect all URLs in suspected spam messages to the Cisco Web Security proxy service, see Using
Custom Headers to Redirect URLs in Suspected Spam to the Cisco Web Security Proxy: Configuration
Example , on page 403.
Tip
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
429
Outbreak Filters
Redirecting URLs
Modifying Messages
The Outbreak Filters feature modifies the message body of a non-viral threat message not only to rewrite the
URLs but to alert the user that the message is a suspected threat. The Outbreak Filters feature can modify the
subject header and add a disclaimer about the message’s content above the message body. See Message
Modification, on page 440 for more information.
The threat disclaimer is created using the Disclaimer template through the Mail Policies > Text Resources
page. See Overview of Text Resource Management, on page 652 for more information.
Types of Rules: Adaptive and Outbreak
Two types of rules are used by Outbreak Filters to detect potential outbreaks: Adaptive and Outbreak. The
Outbreak Filters feature uses these two rule sets to provide the highest efficacy and the most focused set of
criteria for threat detection to ensure that filters can be laser focused on a particular outbreak. The Outbreak
Filters rules and actions are visible to the administrator, not hidden away behind the scenes, providing instant
access to quarantined messages and the reason why they were quarantined.
Related Topics
• Adaptive Rules, on page 430
• Outbreak Rules, on page 430
Outbreak Rules
Outbreak Rules are generated by the Cisco Threat Operations Center (TOC), which is a part of the Cisco
Security Intelligence Operations, and focus on the message as a whole, rather than just attachment filetypes.
Outbreak Rules use SenderBase data (real time and historical traffic data) and any combination of message
parameters such as attachment file type, file name keywords, or anti-virus engine update to recognize and
prevent outbreaks in real time. Outbreak Rules are given a unique ID used to refer to the rule in various places
in the GUI (such as the Outbreak quarantine).
Real-time data from the global SenderBase network is then compared to this baseline, identifying anomalies
that are proven predictors of an outbreak. The TOC reviews the data and issues a threat indicator or Threat
Level. The Threat Level is a numeric value between 0 (no threat) and 5 (extremely risky), and measures the
likelihood that a message is a threat for which no other gateway defense is widely deployed by Cisco customers
(for more information, see Threat Levels, on page 431). Threat Levels are published as Outbreak Rules by the
TOC.
Some example characteristics that can be combined in Outbreak Rules include:
• File Type, File Type & Size, File Type & File Name Keyword, etc.
• File Name Keyword & File Size
• File Name Keyword
• Message URL
• File Name & Sophos IDE
Adaptive Rules
Adaptive Rules are a set of rules within CASE that accurately compare message attributes to attributes of
known virus outbreak messages. These rules have been created after studying known threat messages and
known good messages within an extensive virus corpus. Adaptive Rules are updated often as the corpus is
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
430
Outbreak Filters
Modifying Messages
evaluated. They complement existing Outbreak Rulesto detect outbreak messages at all times. While Outbreak
Rules take effect when a possible outbreak is occurring, Adaptive Rules (once enabled) are “always on,”
catching outbreak messages locally before the full anomaly has formed on a global basis. Additionally,
Adaptive Rules continuously respond to small and subtle changes in email traffic and structure, providing
updated protection to customers.
Outbreaks
A Outbreak Filter rule is basically a Threat Level (e.g. 4) associated with a set of characteristics for an email
message and attachment — things such as file size, file type, file name, message content, and so on. For
example, assume the Cisco SIO notices an increase in the occurrences of a suspicious email message carrying
a .exe attachment that is 143 kilobytes in size, and whose file name includes a specific keyword (“hello” for
example). An Outbreak Rule is published increasing the Threat Level for messages matching this criteria.
Your email gateway checksfor and downloads newly published Outbreak and Adaptive Rules every 5 minutes
by default (see Updating OutbreakFilter Rules, on page 438). Adaptive Rules are updated lessfrequently than
Outbreak Rules. On the email gateway, you set a threshold for quarantining suspicious messages. If the Threat
Level for a message equals or exceedsthe quarantine threshold, the message issent to the Outbreak quarantine
area. You can also set up a threshold for modifying non-viral threat messages to rewrite any URLs found in
suspicious messages or add a notification at the top of message body.
Threat Levels
The following table provides a basic set of guidelines or definitions for each of the various levels.
Level Risk Meaning
0 None There is no risk that the message is a threat.
1 Low The risk that the message is a threat is low.
2 Low/Medium The risk that the message is a threat is low to medium. It is a “suspected” threat.
Either the message is part of a confirmed outbreak or there is a medium to large
risk of its content being a threat.
3 Medium
Either the message is confirmed to be part of a large scale outbreak or its content
is very dangerous.
4 High
The message’s content is confirmed to part of an outbreak that is either extremely
large scale or large scale and extremely dangerous.
5 Extreme
For more information about threat levels and outbreak rules, see Outbreak Filters Rules, on page 438.
Related Topics
• Guidelines for Setting Your Quarantine Threat Level Threshold, on page 431
• Containers: Specific and Always Rules, on page 432
Guidelines for Setting Your Quarantine Threat Level Threshold
The quarantine threat level threshold allows administrators to be more or less aggressive in quarantining
suspicious messages. A low setting (1 or 2) is more aggressive and will quarantine more messages; conversely,
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
431
Outbreak Filters
Outbreaks
a higher score (4 or 5) is less aggressive and will only quarantine messages with an extremely high likelihood
of being malicious.
The same threshold applies to both virus outbreaks and non-virus threats, but you can specify different
quarantine retention times for virus attacks and other threats. See Dynamic Quarantine, on page 433 for more
information.
Cisco recommends the default value of 3.
Containers: Specific and Always Rules
Container files are files, such as zipped (.zip) archives, that contain other files. The TOC can publish rules
that deal with specific files within archive files.
For example, if a virus outbreak is identified by TOC to consist of a .zip file containing a .exe, a specific
Outbreak Rule is published that sets a threat level for .exe files within .zip files (.zip(exe)), but does not set
a specific threat level for any other file type contained within .zip files (e.g. .txt files). A second rule (.zip(*))
covers all other file types within that container file type. An Always rule for a container will always be used
in a message's Threat Level calculation regardless of the types of files that are inside a container. An always
rule will be published by the SIO if all such container types are known to be dangerous.
Table 40: Fallback Rules and Threat Level Scores
OutbreakRule Threat Level Description
.zip(exe) 4 This rule sets a threat level of 4 for .exe files within .zip files.
.zip(doc) 0 This rule sets a threat level of 0 for .doc files within .zip files.
This rule sets a threat level of 2 for all .zip files, regardless of the types of files
they contain.
zip(*) 2
How the Outbreak Filters Feature Works
Email messages pass through a series of steps, the “email pipeline,” when being processed by your email
gateway (for more information about the email pipeline, see Understanding the Email Pipeline, on page 57).
Asthe messages proceed through the email pipeline, they are run through the anti-spam and anti-virusscanning
engines if those engines are enabled for that mail policy. In other words, known spam or messages containing
recognized viruses are notscanned by the OutbreakFiltersfeature because they will have already been removed
from the mailstream — deleted, quarantined, etc. — based on your anti-spam and anti-virussettings. Messages
that arrive at the OutbreakFiltersfeature have therefore been marked spam- and virus-free. Note that a message
quarantined by Outbreak Filters may be marked as spam or containing a virus when it is released from the
quarantine and rescanned by CASE, based on updated spam rules and virus definitions.
Messages that skip anti-spam and anti-virus scanning due to filters or the engines being disabled will
still be scanned by Outbreak Filters.
Note
Related Topics
• Message Scoring, on page 433
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
432
Outbreak Filters
Containers: Specific and Always Rules
• Dynamic Quarantine, on page 433
Message Scoring
When a new virus attack or non-viral threat is released into the wild, no anti-virus or anti-spam software is
able to recognize the threat yet, so this is where the Outbreak Filters feature can be invaluable. Incoming
messages are scanned and scored by CASE using the published Outbreak and Adaptive Rules (see Types of
Rules: Adaptive and Outbreak, on page 430). The message score corresponds with the message’s threat level.
Based on which, if any, rules the message matches, CASE assigns the corresponding threat level. If there is
no associated threat level (the message does not match any rules), then the message is assigned a threat level
of 0.
Once that calculation has been completed, the email gateway checks whether the threat level of that message
meets or exceeds your quarantine or message modification threshold value and quarantines message or rewrites
its URLs. It the threat level is below the thresholds, it will be passed along for further processing in the pipeline.
Additionally, CASE reevaluates existing quarantined messages against the latest rules to determine the latest
threat level of a message. This ensures that only messages that have a threat level consistent with an outbreak
message stay within the quarantine and messages that are no longer a threat flow out of the quarantine after
an automatic reevaluation.
In the case of multiple scores for an outbreak message — one score from an Adaptive Rule (or the highest
score if multiple Adaptive Rules apply), and another score from an Outbreak Rule (or the highest score if
multiple Outbreak Rules apply) — intelligent algorithms are used to determine the final threat level.
It is possible to use the Outbreak Filters feature without having enabled anti-virus scanning on the email
gateway. The two security services are designed to complement each other, but will also work separately.
That said, if you do not enable anti-virus scanning on your email gateway, you will need to monitor your
anti-virus vendor’s updates and manually release or re-evaluate some messages in the Outbreak quarantine.
When using Outbreak Filters without anti-virus scanning enabled, keep the following in mind:
• You should disable Adaptive Rules
• Messages will get quarantined by Outbreak Rules
• Messages will get released if the threat level is lowered or time expires
Downstream anti-virus vendors (desktops/groupware) may catch the message on release.
Anti-spam scanning needs to be enabled globally on an email gateway for the Outbreak Filters feature
to scan for non-viral threats.
Note
Dynamic Quarantine
The Outbreak Filters feature’s Outbreak quarantine is a temporary holding area used to store messages until
they’re confirmed to be threats or it’s safe to deliver to users. (See Outbreak Lifecycle and Rules Publishing,
on page 434 for more information.) Quarantined messages can be released from the Outbreak quarantine in
several ways. As new rules are downloaded, messages in the Outbreak quarantine are reevaluated based on
a recommended rescan interval calculated by CASE. If the revised threat level of a message falls under the
quarantine retention threshold, the message will automatically be released (regardless of the Outbreak
quarantine’s settings), thereby minimizing the time it spends in the quarantine. If new rules are published
while messages are being re-evaluated, the rescan is restarted.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
433
Outbreak Filters
Message Scoring
Please note that messages quarantined as virus attacks are not automatically released from the outbreak
quarantine when new anti-virus signatures are available. New rules may or may not reference new anti-virus
signatures; however, messages will not be released due to an anti-virus engine update unless an Outbreak
Rule changes the threat level of the message to a score lower than your Threat Level Threshold.
Messages are also released from the Outbreak quarantine after CASE’s recommended retention period has
elapsed. CASE calculates the retention period based on the message’s threat level. You can define separate
maximum retention times for virus outbreaks and non-viral threats. If CASE’s recommended retention time
exceeds the maximum retention time for the threat type, the email gateway releases messages when the
maximum retention time elapses. For viral messages the default maximum quarantine period is 1 day. The
default period for quarantining non-viral threats is 4 hours. You can manually release messages from the
quarantine.
The email gateway also releases messages when the quarantine is full and more messages are inserted (this
is referred to as overflow). Overflow only occurs when the Outbreak quarantine is at 100% capacity, and a
new message is added to the quarantine. At this point, messages are released in the following order of priority:
• Messages quarantined by Adaptive Rules (those scheduled to be released soonest are first)
• Messages quarantined by Outbreak Rules (those scheduled to be released soonest are first)
Overflow releases stop the moment the Outbreak quarantine is below 100% capacity. For more information
about how quarantine overflow is handled, see Retention Time for Messages in Quarantines , on page 930 and
Default Actions for Automatically Processed Quarantined Messages , on page 931.
Messages released from the Outbreak quarantine are scanned by the anti-virus and anti-spam engines again
if they’re enabled for the mail policy. If it is now marked as a known virus or spam, then it will be subject to
your mail policy settings(including a possible second quarantining in the Virus quarantine orSpam quarantine).
For more information, see The Outbreak Filters Feature and the Outbreak Quarantine, on page 443.
Thus it is important to note that in a message's lifetime, it may actually be quarantined twice — once due to
the Outbreak Filters feature, and once when it is released from the Outbreak quarantine. A message will not
be subject to a second quarantine if the verdicts from each scan (prior to Outbreak Filters, and when released
from the Outbreak quarantine) match. Also note that the OutbreakFiltersfeature does not take any final actions
on messages. The Outbreak Filters feature will either quarantine a message (for further processing) or move
the message along to the next step in the pipeline.
Related Topics
• Outbreak Lifecycle and Rules Publishing, on page 434
Outbreak Lifecycle and Rules Publishing
Very early in a virus outbreak’s life cycle, broader rules are used to quarantine messages. As more information
becomes available, increasingly focused rules are published, narrowing the definition of what is quarantined.
As the new rules are published, messages that are no longer considered possible virus messages are released
from quarantine (messages in the outbreak quarantine are rescanned as new rules are published).
Table 41: Example Rules for an Outbreak Lifecycle
Time Rule Type Rule Description Action
Messages are automatically
quarantined if they match
Adaptive Rules
A consolidated rule set based on
over 100K message attributes,
which analyzes message content,
context and structure
Adaptive Rule
(based on past
outbreaks)
T=0
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
434
Outbreak Filters
Outbreak Lifecycle and Rules Publishing
Time Rule Type Rule Description Action
Quarantine all attachments that
are .zips containing a .exe
Quarantine messages containing
.zip (exe) files
T=5 min Outbreak Rule
Any message with .zip (exe)
files that are less than 50 KB
would be released from
quarantine
Quarantine messagesthat have .zip
(exe) files greater than 50 KB
T=10 min Outbreak Rule
Any message that does not
match this criteria would be
released from quarantine
Quarantine messagesthat have .zip
(exe) files between 50 to 55 KB,
and have “Price” in the file name
T=20 min Outbreak Rule
All remaining messages are
scanned against the latest
anti-virus signature
T=12 hours Outbreak Rule Scan against new signature
Managing Outbreak Filters
Log in to the Graphical User Interface (GUI), selectSecurityServices in the menu, and click OutbreakFilters.
Figure 30: Outbreak Filters Main Page
The OutbreakFilters page showstwo sections: the OutbreakFilters Overview and a listing of current Outbreak
Filter Rules (if any).
In the figure above, Outbreak Filters are enabled, Adaptive Scanning is enabled, and the maximum message
size is set to 512k. To change these settings, click Edit Global Settings For more information about editing
Global Settings, see Configuring Outbreak Filters Global Settings, on page 436.
The Outbreak Filter Rules section lists the time, date, and version of the latest update for various components
(the rules engine as well as the rules themselves), as well as a listing of the current Outbreak Filter rules with
threat level.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
435
Outbreak Filters
Managing Outbreak Filters
For more information about Outbreak Rules, see Outbreak Filters Rules, on page 438.
Related Topics
• Configuring Outbreak Filters Global Settings, on page 436
• Outbreak Filters Rules, on page 438
• The Outbreak Filters Feature and Mail Policies, on page 438
• The Outbreak Filters Feature and the Outbreak Quarantine, on page 443
Configuring Outbreak Filters Global Settings
Procedure
Step 1 Click Security Services > Outbreak Filters.
Step 2 Click Edit Global Settings.
Step 3 Depending on your requirements, do the following:
• Enable Outbreak Filters globally
• Enable Adaptive Rules scanning
• Set a maximum size for files to scan (note that you are entering the size in bytes )
• Enable alerts for the Outbreak Filter
• Enable Web Interaction Tracking. See Web Interaction Tracking , on page 451.
Step 4 Submit and commit your changes.
What to do next
This functionality is also available via the outbreakconfig CLI command (see the CLI Reference Guide for
AsyncOS for Cisco Secure Email Gateway). After you make your changes, submit and commit them.
You cannot enable the logging of URLs using the web interface. For instructions to enable logging of
URLs using CLI, see Enabling Logging of URLs and Message Tracking Details for URLs , on page 437
.
Note
Related Topics
• Enabling the Outbreak Filters Feature, on page 437
• Enabling Adaptive Rules, on page 437
• Enabling Alerts for Outbreak Filters, on page 437
• Enabling Logging of URLs and Message Tracking Details for URLs , on page 437
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
436
Outbreak Filters
Configuring Outbreak Filters Global Settings
Enabling the Outbreak Filters Feature
To enable the OutbreakFiltersfeature globally, check the box next to Enable OutbreakFilters on the Outbreak
Filters GlobalSettings page, and clickSubmit. You must have agreed to the OutbreakFilterslicense agreement
first.
Once enabled globally, the Outbreak Filters feature can then be enabled or disabled individually for each
incoming and outgoing mail policy, including the default policies. For more information, seeThe Outbreak
Filters Feature and Mail Policies, on page 438.
The Outbreak Filters feature uses the Context Adaptive Scanning Engine (CASE) to detect viral threats,
regardless of whether anti-spam scanning is enabled, but you do need to have Anti-Spam or Intelligent
Multi-Scan enabled globally on the email gateway to scan for non-viral threats.
If you have not already agreed to the license during system setup (see Step 4: Security, on page 39),
you must click Enable on the Security Services > Outbreak Filters page, and then read and agree to the
license.
Note
Enabling Adaptive Rules
Adaptive Scanning enables the use of Adaptive Rules in Outbreak Filters. A set of factors or traits (file size,
etc.) are used to determine the likelihood of a message being part of an outbreak when no virus signature or
spam criteria relating to the message’s content is available. To enable Adaptive Scanning, check the box next
to Enable Adaptive Rules on the Outbreak Filters Global Settings page, and click Submit.
Enabling Alerts for Outbreak Filters
Check the box labeled “Emailed Alerts” to enable alerting for the Outbreak Filters feature. Enabling emailed
alerts for Outbreak Filters merely enables the alerting engine to send alerts regarding Outbreak Filters.
Specifying which alerts are sent and to which email addresses is configured via the Alerts page in the System
Administration tab.For more information on configuring alerts for OutbreakFilters, see Alerts,SNMP Traps,
and Outbreak Filters, on page 445.
Enabling Logging of URLs and Message Tracking Details for URLs
Logging of URL-related logs, and display of this information in Message Tracking details, is disabled by
default. This includes the logs for the following events:
• Category of any URL in the message matches the URL category filters
• Reputation score of any URL in the message matches URL reputation filters
• Outbreak Filter rewrites any URL in the message
To enable logging of these events, use the websecurityadvancedconfig command in the CLI or go toSecurity
Services > URL Filtering page in the web interface.
Related Topics
• Managing Outbreak Filter Rules, on page 438
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
437
Outbreak Filters
Enabling the Outbreak Filters Feature
Outbreak Filters Rules
Outbreak Rules are published by the Cisco Security Intelligence Operations and your email gateway checks
for and downloads new outbreak rules every 5 minutes. You can change this update interval. SeeConfiguring
Server Settings for Downloading Upgrades and Updates , on page 1038 for more information.
Related Topics
• Managing Outbreak Filter Rules, on page 438
Managing Outbreak Filter Rules
Because the Outbreak Filters Rules are automatically downloaded for you, there really is no management
needed on the part of the user.
However, if for some reason your email gateway is not able to reach Cisco’s update servers for new rules
over a period of time, it is possible that your locally-cached scores are no longer valid, i.e., if a known viral
attachment type now has an update in the anti-virus software and/or is no longer a threat. At this time, you
may wish to no longer quarantine messages with these characteristics.
You can manually download updated outbreak rules from Cisco’s update servers by clicking Update Rules
Now.
The Update Rules Now button does not “flush” all existing outbreak rules on the email gateway. It only
replaces outbreak rules that have been updated. If there are no updates available on Cisco’s update
servers, then the email gateway will not download any outbreak rules when you click this button.
Note
Related Topics
• Updating Outbreak Filter Rules, on page 438
Updating Outbreak Filter Rules
By default, your email gateway will attempt to download new Outbreak Filters rules every 5 minutes. You
can change this interval via the Security Services > Service Updates page. For more information, see Service
Updates , on page 1033.
The Outbreak Filters Feature and Mail Policies
The Outbreak Filters feature has settings that can be set per mail policy. The Outbreak Filters feature can be
enabled or disabled for each mail policy on the email gateway. Specific file extensions and domains can be
exempted from processing by the OutbreakFilters feature, per mail policy. This functionality is also available
via the policyconfig CLI command (see the CLI Reference Guide for AsyncOS for Cisco Secure Email
Gateway).
Anti-Spam or Intelligent Multi-Scan scanning needs to be enabled globally on an email gateway for the
Outbreak Filters feature to scan for non-viral threats.
Note
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
438
Outbreak Filters
Outbreak Filters Rules
To modify the Outbreak Filters feature settings for a specific mail policy, click the link in the Outbreak Filters
column of the policy to change.
To enable and customize the Outbreak Filters feature for a particular mail policy, select Enable Outbreak
Filtering (Customize Settings).
You can configure the following Outbreak Filter settings for a mail policy:
• Quarantine threat level
• Maximum quarantine retention time
• Deliver non-viral threat messages immediately without adding them to quarantine
• File extension types for bypassing
• Message modification threshold
• Alter subject header using custom text and Outbreak Filter variables such as $threat_verdict ,
$threat_category , $threat_type , $threat_description , and $threat_level .
• Include the following email headers:
• X-IronPort-Outbreak-Status
• X-IronPort-Outbreak-Description
• Send the message to an alternate destination such as an email gateway or an exchange server.
• URL rewriting
• Threat disclaimer
Select Enable Outbreak Filtering (Inherit Default mailpolicy settings) to use the OutbreakFilters settings
that are defined for the default mail policy. If the default mail policy has the Outbreak Filters feature enabled,
all other mail policies use the same Outbreak Filter settings unless they are customized.
Once you have made your changes, commit your changes.
Related Topics
• Setting a Quarantine Level Threshold, on page 439
• Maximum Quarantine Retention, on page 439
• Bypassing File Extension Types, on page 440
• Message Modification, on page 440
Setting a Quarantine Level Threshold
Select a Quarantine Threat Level threshold for outbreak threats from the list. A smaller number means that
you will be quarantining more messages, while a larger number results in fewer messages quarantined. Cisco
recommends the default value of 3.
For more information, see Guidelines for Setting Your Quarantine Threat Level Threshold, on page 431.
Maximum Quarantine Retention
Specify the maximum amount of time that messagesstay in the Outbreak Quarantine. You can specify different
retention times for messages that may contain viral attachments and messages that may contain other threats,
like phishing or malware links. For non-viral threats, check the Deliver messages without adding them to
quarantine check box to deliver the messages immediately without adding them to quarantine.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
439
Outbreak Filters
Setting a Quarantine Level Threshold
Note You cannot quarantine non-viral threats unless you enable Message Modification for the policy.
CASE recommends a quarantine retention period when assigning the threat level to the message. The email
gateway keeps the message quarantined for the length of time that CASE recommends unless it exceeds the
maximum quarantine retention time for its threat type.
Bypassing File Extension Types
You can modify a policy to bypass specific file types. Bypassed file extensions are not included when CASE
calculates the threat level for the message; however, the attachments are still processed by the rest of the email
security pipeline.
To bypass a file extension, click Bypass Attachment Scanning, select or type in a file extension, and click
Add Extension. AsyncOS displays the extension type in the File Extensions to Bypass list.
To remove an extension from the list of bypassed extensions, click the trash can icon next to the extension in
the File Extensions to Bypass list.
Related Topics
• Bypassing File Extensions: Container File Types, on page 440
Bypassing File Extensions: Container File Types
When bypassing file extensions, files within container files (a .doc file within a .zip, for example) are bypassed
if the extension is in the list of extensions to bypass. For example, if you add .doc to the list of extensions to
bypass, all .doc files, even those within container files are bypassed.
Message Modification
Enable Message Modification if you want the email gateway to scan messages for non-viral threats, such as
phishing attempts or links to malware websites.
Based on the message’s threat level, AsyncOS can modify the message to rewrite all of the URLs to redirect
the recipient through the Cisco web security proxy if they attempt to open the website from the message. The
email gateway can also add a disclaimer to the message to alert the user that the message’s content issuspicious
or malicious.
You need to enable message modification in order to quarantine non-viral threat messages.
Related Topics
• Message Modification Threat Level, on page 441
• Message Subject, on page 441
• Outbreak Filters Email Headers, on page 441
• Alternate Destination Mail Host, on page 442
• URL Rewriting and Bypassing Domains, on page 442
• Threat Disclaimer, on page 442
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
440
Outbreak Filters
Bypassing File Extension Types
Message Modification Threat Level
Select a Message Modification Threat Level threshold from the list. Thissetting determines whether to modify
a message based on the threat level returned by CASE. A smaller number means that you will be modifying
more messages, while a larger number results in fewer messages being modified. Cisco recommends the
default value of 3.
Message Subject
You can alter the text of the subject header on non-viral threat messages containing modified links to notify
users that the message has been modified for their protection. Prepend or append the subject header with
custom text, Outbreak Filter variables such as $threat_verdict , $threat_category , $threat_type ,
$threat_description , and $threat_level , or a combination of both. To insert variables, click Insert
Variables, and select from the list of variables.
White space is not ignored in the Message Subject field. Add spaces after (if prepending) or before (if
appending) the text you enter in this field to separate your added text from the original subject of the message.
For example, add the text [MODIFIED FOR PROTECTION] with a few trailing spaces if you are prepending.
Note The Message Subject field only accepts US-ASCII characters.
Outbreak Filters Email Headers
You can add the following additional headers to the message:
Header Format Example Options
• Enable for all messages
• Enable only for non-viral outbreak
• Disable
X-IronPort-OutbreakStatus: Yes, level
4, Phish - Password
X-IronPort-Outbreak-Status:
$threat_verdict, level
$threat_level,
$threat_category -
$threat_type
X-IronPortOutbreakStatus
• Enable
• Disable
X-IronPort-OutbreakDescription: It may
trick victims into
submitting their
username and
password on a fake
website.
X-IronPort-OutbreakDescription:
$threat_description
X-IronPortOutbreakDescription
If you want to filter messages based on these headers, you must send the Outbreak Filter processed
messages back to an email gateway (by configuring an alternate destination mail host), and scan them
using a content filter that matches these headers.
Note
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
441
Outbreak Filters
Message Modification Threat Level
Alternate Destination Mail Host
If you want to perform a content filter-based scan on the Outbreak Filter processed messages, you must
configure the Outbreak Filter to send the processed messages back to an email gateway. This is because, in
the processing pipeline, the Outbreak Filter scan is performed after the content filter scan.
In the Alternate Destination Mail Host field, enter the IP address (IPv4 or IPv6) or the FQDN of the email
gateway where you want to send the processed messages for further scans.
URL Rewriting and Bypassing Domains
If the message’s threat level exceeds the message modification threshold, the OutbreakFilters feature rewrites
all URLs in the message to redirect the user to the Cisco web security proxy’s splash page if they click on
any of them. (See Redirecting URLs, on page 429 for more information.) If the message’s threat level exceeds
the quarantine threshold, the appliance also quarantines the message. If a small scale, non-viral outbreak is
in progress, quarantining the message gives TOC time to analyze any suspect websites linked from possible
outbreak messages and determine whether the websites are malicious. CASE uses updated Outbreak Rules
from SIO to rescan the message to determine if it is part of the outbreak. After the retention period expires,
the email gateway releases the message from the quarantine.
AsyncOS rewrites all of the URLs inside a message except for the ones pointing to bypassed domains.
The following options are available for URL rewriting:
• Enable only forunsigned messages. This option allows AsyncOSto rewrite URLsin unsigned messages
that meet or exceed the message modification threshold, but not signed messages. Cisco recommends
using this setting for URL rewriting.
The email gateway may rewrite URLs in a DomainKeys/DKIM-signed
message and invalidate the message’s signature if a server or appliance on
your network other than the email gateway is responsible for verifying the
DomainKeys/DKIM signature.
The email gateway considers a message signed if it is encrypted using
S/MIME or it contains an S/MIME signature.
Note
• Enable for all messages. This option allows AsyncOS to rewrite URLs in all messages that meet or
exceed the message modification threshold, including signed ones. If AsyncOS modifies a signed message,
the signature becomes invalid.
• Disable. This option disables URL rewriting for Outbreak Filters.
You can modify a policy to exclude URLs to certain domains from modification. To bypass domains, enter
the IPv4 address, IPv6 address, CIDR range, hostname, partial hostname or domain in the Bypass Domain
Scanning field. Separate multiple entries using commas.
The Bypass Domain Scanning feature is similar to, but independent of, the global allowed list used by URL
filtering.For more information about that allowed list, see Creating Allowed Lists for URL Filtering , on page
452.
Threat Disclaimer
The email gateway can append a disclaimer message above the heading of a suspicious message to warn the
user of its content. This disclaimer can be in HTML or plain text, depending on the type of message.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
442
Outbreak Filters
Alternate Destination Mail Host
Select the disclaimer text you want to use from the Threat Disclaimer list or click the Mail Policies > Text
Resources link to create a new disclaimer using the Disclaimer Template. The Disclaimer Template includes
variables for outbreak threat information. You can see a preview of the threat disclaimer by clicking Preview
Disclaimer. For custom disclaimer messages, you can use variables to display the threat level, the type of
threat, and a description of the threat in the message. For information on creating a disclaimer message, see
Overview of Text Resource Management, on page 652.
The Outbreak Filters Feature and the Outbreak Quarantine
Messages quarantined by the Outbreak Filters feature are sent to the Outbreak quarantine. This quarantine
functions like any other quarantine (for more information about working with quarantines, see Policy, Virus,
and Outbreak Quarantines, on page 927) except that it has a “summary” view, useful for deleting or releasing
all messages from the quarantine, based on the rule used to place the message in the quarantine (for Outbreak
Rules, the Outbreak ID is shown, and for Adaptive Rules, a generic term is shown). For more information
about the summary view, see Outbreak Quarantine and the Manage by Rule Summary View, on page 444.
Related Topics
• Monitoring the Outbreak Quarantine, on page 443
• Outbreak Quarantine and the Manage by Rule Summary View, on page 444
Monitoring the Outbreak Quarantine
Though a properly configured quarantine requires little if any monitoring, it is a good idea to keep an eye on
the Outbreak Quarantine, especially during and after virus outbreaks when legitimate messages may be delayed.
If a legitimate message is quarantined, one of the following occurs depending on the settings for the Outbreak
quarantine:
• If the quarantine’s Default Action is set to Release, the message will be released when the retention time
period expires or when the quarantine overflows. You can configure the Outbreak quarantine so that the
following actions are performed on messages before they are released due to overflow:strip attachments,
modify the subject, and add an X-Header. For more information about these actions, see Default Actions
for Automatically Processed Quarantined Messages , on page 931.
• If the quarantine’s Default Action is set to Delete, the message will be deleted when the retention time
period expires, or when the quarantine overflows.
• Overflow occurs when the quarantine is full and more messages are added. In this case the messages
closest to their expiration date (not necessarily the oldest messages) are released first, until enough room
is available for the new messages. You can configure the Outbreak quarantine so that the following
actions are performed on messages before they are released due to overflow: strip attachments, modify
the subject, add an X-Header.
Because quarantined messages are rescanned whenever new rules are published, it is very likely that messages
in the Outbreak quarantine will be released prior to the expiration time.
Still, it can be important to monitor the Outbreak quarantine if the Default Action is set to Delete. Cisco
recommends most users to not set the default action to Delete.For more information about releasing messages
from the Outbreak quarantine, or changing the Default Action for the Outbreak Quarantine,see Default Actions
for Automatically Processed Quarantined Messages , on page 931.
Conversely, if you have messages in your Outbreak quarantine that you would like to keep in the quarantine
longer while you wait for a new rule update, for example, you can delay the expiration of those messages.
Keep in mind that increasing the retention time for messages can cause the size of the quarantine to grow.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
443
Outbreak Filters
The Outbreak Filters Feature and the Outbreak Quarantine
If anti-virus scanning is disabled globally (not via a mail policy) while a message is in the Outbreak
quarantine, the message is not anti-virusscanned when it leavesthe quarantine, even if anti-virusscanning
is re-enabled prior to the message leaving the quarantine.
Note
You can use the Outbreak Filters feature without having enabled anti-virus scanning on the email
gateway. However, OutbreakFilters cannotscan for non-viral threatsif anti-spam scanning is not enabled
on the appliance.
Note
Outbreak Quarantine and the Manage by Rule Summary View
You can view the contents of the Outbreak quarantine by clicking on the name of the quarantine in the listing
on the Monitor menu in the GUI. The Outbreak quarantine has an additional view as well, the Outbreak
Quarantine Manage by Rule Summary link.
Figure 31: The Outbreak Quarantine Manage by Rule Summary Link
Related Topics
• Using the Summary View to Perform Message Actions on Messages in the Outbreak Quarantine Based
on Rule ID., on page 444
Using the Summary View to Perform Message Actions on Messages in the Outbreak Quarantine Based on Rule ID.
Click on the Manage by RuleSummary link to see a listing of the contents of the Outbreak quarantine, grouped
by rule ID:
Figure 32: The Outbreak Quarantine Manage by Rule Summary View
From this view, you can choose to release, delete, or delay the exit for all messages pertaining to a specific
outbreak or adaptive rule, rather than selecting individual messages. You can also search through or sort the
listing.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
444
Outbreak Filters
Outbreak Quarantine and the Manage by Rule Summary View
This functionality is also available via the quarantineconfig -> outbreakmanage CLI command. For more
information, see the CLI Reference Guide for AsyncOS for Cisco Secure Email Gateway.
Monitoring Outbreak Filters
The email gateway includes several tools to monitor the performance and activity of the Outbreak Filters
feature.
Related Topics
• Outbreak Filters Report, on page 445
• Outbreak Filters Overview and Rules Listing, on page 445
• Outbreak Quarantine, on page 445
• Alerts, SNMP Traps, and Outbreak Filters, on page 445
Outbreak Filters Report
The Outbreak Filters report to view the current status and configuration of Outbreak Filters on your email
gateway as well as information about recent outbreaks and messages quarantined due to Outbreak Filters.
View this information on the Monitor > Outbreak Filters page. For more information, see the “Email Security
Monitor” chapter.
Outbreak Filters Overview and Rules Listing
The overview and rules listing provide useful information about the current status of the Outbreak Filters
feature. View this information via the Security Services > Outbreak Filters page.
Outbreak Quarantine
Use the outbreak quarantine to monitor how many messages are being flagged by your OutbreakFilters threat
level threshold. Also available is a listing of quarantined messages by rule. For information, see Outbreak
Quarantine and the Manage by RuleSummary View, on page 444 and Policy, Virus, and Outbreak Quarantines,
on page 927
Alerts, SNMP Traps, and Outbreak Filters
The Outbreak Filters feature supports two different types of notifications: regular AsyncOS alerts and SNMP
traps.
SNMP traps are generated when a rule update fails. For more information about SNMP traps in AsyncOS,
see the “Managing and Monitoring via the CLI” chapter.
AsyncOS has two types of alerts for the Outbreak Filter feature: size and rule
AsyncOS alerts are generated whenever the Outbreak quarantine’s size goes above 5, 50, 75, and 95 of the
maximum size. The alert generated for the 95% threshold has a severity of CRITICAL, while the remaining
alert thresholds are WARNING. Alerts are generated when the threshold is crossed as the quarantine size
increases. Alerts are not generated when thresholds are crossed as the quarantine size decreases. For more
information about alerts, see Alerts, on page 1051.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
445
Outbreak Filters
Monitoring Outbreak Filters
AsyncOS also generates alerts when rules are published, the threshold changes, or when a problem occurs
while updating rules or the CASE engine.
Troubleshooting The Outbreak Filters Feature
This section provides some basic troubleshooting tips for the Outbreak Filters feature.
Related Topics
• Reporting Incorrectly Classified Messages to Cisco , on page 446
• Multiple Attachments and Bypassed Filetypes, on page 446
• Message and Content Filters and the Email Pipeline, on page 446
Reporting Incorrectly Classified Messages to Cisco
Use the checkbox on the Manage Quarantine page for the Outbreak quarantine to notify Cisco of
misclassifications.
Multiple Attachments and Bypassed Filetypes
Bypassed file types are only excluded if a message’s only attachment is of that type, or in the case of multiple
attachments, if the other attachments do not yet have existing rules. Otherwise the message is scanned.
Message and Content Filters and the Email Pipeline
Message and content filters are applied to messages prior to scanning by Outbreak Filters. Filters can cause
messages to skip or bypass the Outbreak Filters scanning.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
446
Outbreak Filters
Troubleshooting The Outbreak Filters Feature
CHAPTER 20
Protecting Against Malicious or Undesirable
URLs
This chapter contains the following sections:
• URL-Related Protections and Controls , on page 447
• Setting Up URL Filtering, on page 448
• Taking Action Based on the Reputation or Category of URLs in Messages , on page 454
• Handling Unscannable Messages for URL Filtering, on page 458
• Detecting Malicious URLs in Messages Using Content Filter, on page 459
• Detecting Malicious URLs in Messages Using Message Filter, on page 460
• Monitoring URL Filtering Results , on page 461
• Displaying URL Details in Message Tracking , on page 461
• Troubleshooting URL Filtering, on page 462
• About URL Categories, on page 466
URL-Related Protections and Controls
Control and protection against malicious or undesirable links is incorporated into the anti-spam, outbreak,
content, and message filtering processes in the work queue. These controls:
• Increase the effectiveness of protection from malicious URLs in messages and attachments.
URL filtering is incorporated into Outbreak Filtering. This strengthened protection is useful even if your
organization already has a Cisco Web Security Appliance or similar protection from web-based threats,
because it blocks threats at the point of entry.
You can also use content or message filters to take action based on the Web Based Reputation Score
(WBRS) of URLs in messages.
As a best practice, Cisco recommends rewriting URLs with a questionable,
neutral, and favorable or unknown reputation to redirect them to the Cisco
Web Security Proxy for click-time evaluation of their safety.
Note
• Better identify spam
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
447
The email gateway uses the reputation and category of links in messages, in conjunction with other
spam-identification algorithms, to help identify spam. For example, if a link in a message belongs to a
marketing web site, the message is more likely to be a marketing message.
• Support enforcement of corporate acceptable use policies
The category of URLs (for example, Adult Content or Illegal Activities) can be used in conjunction with
content and message filters to enforce corporate acceptable use policies.
• Allow you to identify users in your organization who most frequently clicked a URL in a message that
has been rewritten for protection, as well as links that have most frequently been clicked.
Related Topics
• Which URLs Are Evaluated , on page 448
• Web Interaction Tracking Page, on page 856
Which URLs Are Evaluated
URLs in incoming and outgoing messages (including attachments) are evaluated. Any valid string for a URL
is evaluated, including strings with the following:
• http, https, or www
• domain or IP address
• port number preceded by a colon (:)
• uppercase or lowercase letters
When evaluating URLsto determine whether a message isspam, if necessary for load management, the system
prioritizes screening of incoming messages over outgoing messages.
Setting Up URL Filtering
• Requirements for URL Filtering , on page 448
• Enable URL Filtering, on page 449
• About the Connection to Talos Intelligence Services , on page 450
• Web Interaction Tracking , on page 451
• URL Filtering in Cluster Configurations, on page 452
• Creating Allowed Lists for URL Filtering , on page 452
• Customizing the Notification That End Users See If a Site Is Malicious , on page 453
Requirements for URL Filtering
In addition to enabling URL filtering, you must enable other features depending on desired functionality.
For enhanced protection against spam:
• Anti-spam scanning must be enabled globally and per applicable mail policy. This can be either the
IronPort Anti-Spam or the Intelligent Multi-Scan feature. See the anti-spam chapter.
For enhanced protection against malware:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
448
Protecting Against Malicious or Undesirable URLs
Which URLs Are Evaluated
• The Outbreak Filters feature must be enabled globally and per applicable mail policy. See the Outbreak
Filters chapter.
To take action based on URL reputation, or to enforce acceptable use policies using message and content
filters:
• The Outbreak Filters feature must be enabled globally. See the Outbreak Filters chapter.
Enable URL Filtering
You can enable URL filtering using the Security Services > URL Filtering page in the web interface or the
websecurityconfig command in CLI.
Before You Begin
• Ensure that the requirements for the individual URL filtering features that you want to use have been
met. See Requirements for URL Filtering , on page 448.
• (Optional) Create a list of URLs that you want all URL filtering functionalities to ignore. See Creating
Allowed Lists for URL Filtering , on page 452.
Procedure
Step 1 Select Security Services > URL Filtering.
Step 2 Click Enable.
Step 3 Select the Enable URL Category and Reputation Filters check box.
Step 4 (Optional) If you have created a list of URLs to exempt from URL filtering when evaluating messages for
spam and malware, and from all content and message filtering, select that list.
This setting does not cause the message to bypass anti-spam or Outbreak Filters processing generally.
Step 5 [Optional] Enable Web Interaction Tracking. See Web Interaction Tracking , on page 451.
Step 6 [Optional] Click Advanced Settings and enter the required parameters described in the following table to
configure advanced URL filtering settings:
Parameter Description
Enter the time taken for the URL to request the IP
address for a certain domain name.
URL Lookup Timeout
Enter the maximum number of URLs that you want
the email gateway to scan in a message body
Maximum Number of URLs scanned in Message
Body
Enter the maximum number of URLs that you want
the email gateway to scan in message attachments.
Maximum Number of URLs scanned in Message
Attachments
Select the Yes radio button if you want the entire
rewritten URL to appear in the message body.
OR
Select the No radio button if you want the entire
rewritten URL to only appear in the HREFfor HTML
messages.
Rewrite URL text and HREF in Message
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
449
Protecting Against Malicious or Undesirable URLs
Enable URL Filtering
Parameter Description
Select the Enable radio button if you want to display
URL details in Mail Logs and Message Tracking.
The URL details are logged in Mail Logs and Message
Tracking based on any one of the following
conditions:
• Category of any URL in the message matches
the URL category filters.
• Reputation score of any URL in the message
matches URL reputation filters.
• Outbreak Filters (if enabled) rewrites any URL
in the message.
URL Logging
Step 7 Submit and commit your changes.
If you have met the applicable prerequisites, and you have already configured OutbreakFilters and Anti-Spam
protection, then you do not need to make additional configurationsto benefit from enhanced automatic detection
of spam and malicious URLs.
What to do next
• To take action based on the reputation of URLs in messages, see Taking Action Based on the Reputation
or Category of URLs in Messages , on page 454.
• To use URL categories in content and message filters, for example to enforce acceptable use policies,
see Taking Action Based on the Reputation or Category of URLs in Messages , on page 454.
• To redirect all URLs in suspected spam messages to the Cisco Web Security proxy service, see Using
Custom Headers to Redirect URLs in Suspected Spam to the Cisco Web Security Proxy: Configuration
Example , on page 403.
• (Optional) To customize the appearance of end user notification page, see Customizing the Notification
That End Users See If a Site Is Malicious , on page 453.
• Ensure that you receive alerts about issues related to this feature. See Future URL Category Set Changes
, on page 479, the release notes for your AsyncOS release, and Adding Alert Recipients, on page 1052.
About the Connection to Talos Intelligence Services
URL reputation and category are provided by cloud-based Talos Intelligence Services.
The email gateway connects to the Talos Intelligence Services either directly or through a web proxy, using
the port specified for URL filtering services in Firewall Information, on page 1335 Communication is over
HTTPS with mutual certificate authentication. Certificates are updated automatically (see Service Updates ,
on page 1033.)For additional information about required certificates, see the Release Notes available from the
location specified in Certificates for URL Filtering Features , on page 451.
If an HTTP or HTTPS proxy has been configured on the Security Services > Service Updates page, the
email gateway will use it when communicating with Talos Intelligence Services. For more information about
using a proxy server,see ConfiguringServerSettingsfor Downloading Upgrades and Updates, on page 1038.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
450
Protecting Against Malicious or Undesirable URLs
About the Connection to Talos Intelligence Services
Note Certificates are not saved with a configuration file.
Related Topics
• Certificates for URL Filtering Features , on page 451
• Alert: Beaker Connector: Error Fetching Enrollment Certificate , on page 463
• Alert: Beaker Connector: Certificate Is Invalid , on page 463
Certificates for URL Filtering Features
AsyncOS is designed to automatically deploy and update the certificates needed for communications with
cloud services used for URL filtering features. However, if for any reason the system is unable to update these
certificates, you will receive an alert that requires action from you.
Ensure that the email gateway is configured to send you these alerts (System type, Warning severity). For
instructions, see Alerts, on page 1051.
If you receive an alert about an invalid certificate, contact Cisco TAC, which can provide the required
replacement certificate. For instructions to use the replacement certificate, see Manually Configuring a
Certificate for Communication with Talos Intelligence Services , on page 466.
Web Interaction Tracking
The web interaction tracking feature provides information about the end users who clicked on rewritten URLs
and the action (allowed, blocked, or unknown) associated with each user click. Once you enable this feature,
you can use the Web Interaction Tracking report to view information such as top malicious URLs clicked,
top users who clicked on malicious URLs, and so on.For more information about the Web Interaction Tracking
report, see Web Interaction Tracking Page, on page 856.
Web Interaction Tracking data is provided by a cloud-based Cisco Aggregator Server.
Related Topics
• Configuring Web Interaction Tracking, on page 451
• About the Connection to Cisco Aggregator Server, on page 451
Configuring Web Interaction Tracking
Depending on your requirements, you can enable web interaction tracking on one of the global settings pages:
• Outbreak Filters. Track end users who clicked URLs rewritten by Outbreak Filters. See Configuring
Outbreak Filters Global Settings, on page 436.
• URL Filtering. Track end users who clicked URLs rewritten by policies (using content and message
filters). See Enable URL Filtering, on page 449.
About the Connection to Cisco Aggregator Server
The email gateway connects to the Cisco Aggregator Server every 30 minutes (non-configurable), either
directly or through a web proxy, using the port specified for URL filtering services in Firewall Information,
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
451
Protecting Against Malicious or Undesirable URLs
Certificates for URL Filtering Features
on page 1335 Communication is over HTTPS with mutual certificate authentication. Certificates are updated
automatically (see Service Updates , on page 1033.)
If an HTTP or HTTPS proxy has been configured on the Security Services > Service Updates page, the
email gateway will use it when communicating with the Cisco AggregatorServer.For more information about
using a proxy server,see ConfiguringServerSettingsfor Downloading Upgrades and Updates, on page 1038.
Note Certificates are not saved with a configuration file.
URL Filtering in Cluster Configurations
• You can enable URL filtering at the machine, group or cluster level.
• If URL filtering is enabled at machine level, URL allowed lists and web interaction tracking can be
configured at machine, group or cluster level.
• If URL filtering is enabled at group level, URL allowed lists and web interaction tracking must be
configured at group or cluster level.
• If URL filtering is enabled at cluster level, URL allowed lists and web interaction tracking must be
configured at cluster level.
• The standard rules for clusters for Message Filters and Content Filters apply.
Creating Allowed Lists for URL Filtering
If you specify a global allowed list when configuring the URL Filtering feature, then URLs on the allowed
list are not evaluated for reputation or category, for anti-spam, Outbreak Filtering, or content and message
filtering. However, the messages that contain these URLs are evaluated as usual by anti-spam scanning and
Outbreak Filters. You can also specify a URL allowed list in each URL Filtering condition (rule) and action
in content and message filters, to supplement the global URL allowed list.
To categorize allowed list URLs from Outbreak Filtering generally, use the Bypass Domain Scanning option
that you configure on the MailPolicies: OutbreakFilters page. URL allowed listsfor URL filtering are similar
to, but independent of, Bypass DomainScanning.For more information about that feature,see URL Rewriting
and Bypassing Domains, on page 442.
There is no relationship between URL filtering allowed lists described in this section and the allowd list used
for sender reputation filtering based on IP Reputation score.
Before You Begin
Consider importing a list of URLs instead of creating one in the web interface. See Importing a URL List ,
on page 453.
Procedure
Step 1 Select Mail Policies > URL Lists.
Step 2 Select Add URL List or click a list to edit.
Be sure all URLs that you want to designate globally as an allowed list are in a single list. You can select only
one global allowed list for URL filtering.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
452
Protecting Against Malicious or Undesirable URLs
URL Filtering in Cluster Configurations
Step 3 Create and submit the URL list.
To view a list of supported URL formats, enter a semicolon (;) into the URLs box and click Submit. Then
click the more... link that appears.
Each URL, domain, or IP address can be on a separate line, or separate each with a comma.
Step 4 Commit your changes.
What to do next
• To designate a URL list as the global allowed list, see Enable URL Filtering, on page 449.
• To designate a URL list as the allowed list for a specific condition (rule) or action in a content or message
filter, see Taking Action Based on the Reputation or Category of URLs in Messages , on page 454 and
Content Filter Actions, on page 282. For message filters, see also URL Category Actions , on page 217
and URL Category Rule , on page 180.
Related Topics
• Importing a URL List , on page 453
Importing a URL List
You can import a URL list to use as a allowed list for URL filtering.
Procedure
Step 1 Create the text file to import:
• The first line must be the name of the URL list.
• Each URL must be on a separate line.
Step 2 Upload the file to the /configuration directory on the appliance.
Step 3 Use the urllistconfig > new command in the command-line interface.
Customizing the Notification That End Users See If a Site Is Malicious
If an end user clicks a malicious URL identified by Outbreak Filtering or a Policy (using Content or Message
Filters), the Cisco Web Security proxy displays a notification in the end user’s web browser. This notification
states that the site is malicious and access to it has been blocked.
When an end user clicks on a URL rewritten using Outbreak Filtering, the notification page is displayed for
10 seconds and then is redirected to the Cisco Web Security proxy for click-time evaluation.
You can customize the appearance of this notification page and display your organization’s branding such as
company logo, contact information, and so on.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
453
Protecting Against Malicious or Undesirable URLs
Importing a URL List
Note If you do not customize the notification page, end users see a Cisco branded notification page.
Before You Begin
• Enable URL filtering. See Enable URL Filtering, on page 449.
Procedure
Step 1 Select Security Services > Block Page Customization.
Step 2 Click Enable.
Step 3 Check the Enable Block Page customization check box and enter the following details:
• URL of the organization’s logo. It is recommended that the logo image is hosted on a publicly accessible
server.
• Organization’s name
• Organization’s contact information
Step 4 Choose the language of the notification. You can choose any one of the languages supported by the web
interface.
The default language of the end user's browser takes precedence over the language you have selected
here. Also, if the default language of the end user's browser is not supported by AsyncOS, then the
notification is displayed in the language you have selected here.
Note
Step 5 (Optional) Preview the notification page by clicking Preview Block Page Customization link.
Step 6 Submit and commit your changes.
Next Steps
Set up URL rewriting in one of the following ways:
• Using Outbreak Filters. See Redirecting URLs, on page 429.
• Using Content or Message Filters. See Taking Action Based on the Reputation or Category of URLs in
Messages , on page 454.
Taking Action Based on the Reputation or Category of URLs in
Messages
You can take action based on the reputation or category of URL links in the message body or message
attachment using message filters and content filters in incoming and outgoing mail policies.
Because Outbreak Filters take many factors into consideration when evaluating messages for malware, and
URL reputation alone may not trigger aggressive message handling, you may want to create filters based on
URL reputation.
For example, you can use URL Reputation filters to:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
454
Protecting Against Malicious or Undesirable URLs
Taking Action Based on the Reputation or Category of URLs in Messages
• (For URLs in message body only) Rewrite URLs of neutral or unknown reputation to redirect them to
the Cisco cloud Web Security proxy service for click-time evaluation.
• Drop messages that include URLs that have reputation scores in the Untrusted range.
You can use URL Category filters to:
• Filter categories of URLs to enforce organizational policies for acceptable web use, for example to
prevent users from visiting adult or gambling sites while at the office.
• Provide enhanced protection from malicious sites, which may not exist long enough to be classified. (For
URLs in message body only) You can redirect all URLs in the Unclassified category to the Cisco cloud
Web Security proxy service for evaluation at the time a user clicks a link.
Related Topics
• Using URL-Related Conditions (Rules) and Actions , on page 455
• Filtering by URL Reputation or URL Category: Conditions and Rules , on page 455
• Modifying URLs in Messages: Using URL Reputation and URL Category Actions in Filters , on page
456
• Redirected URLs: What Does the End User Experience? , on page 458
Using URL-Related Conditions (Rules) and Actions
To Example Do This
Create a URL Reputation or URL Category
condition or rule, then pair it with any
action other than a URL Reputation or
URL Category action.
Exception: Do not pair a URL Reputation
condition or rule with a Bounce action.
Take action on the message Drop or quarantine messages.
as a whole.
Create a URL Reputation or URL Category
action only; do not use a separate URL
filtering condition.
Replace a URL in the message
with a text note, or make the URL
unclickable.
(For URls in message body
only) Modify URLs in a
message, or modify their
behavior.
As always, you must specify a content filter in a mail policy in order to use it.
Related Topics
• Filtering by URL Reputation or URL Category: Conditions and Rules , on page 455
• Modifying URLs in Messages: Using URL Reputation and URL Category Actions in Filters , on page
456
Filtering by URL Reputation or URL Category: Conditions and Rules
You can perform actions on messages based on the reputation or category of URLs in the message body and
message attachments. If you want to perform any action other than modifying URLs or their behavior, add a
URL Reputation or URL Category condition and select the reputation scores or URL categories for which
you want to apply the action.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
455
Protecting Against Malicious or Undesirable URLs
Using URL-Related Conditions (Rules) and Actions
For example, if you want to apply the Drop (Final Action) action to all messages that include URLs in the
Adult category, add a condition of type URL Category with the Adult category selected.
If you do not specify a category, the action you choose is applied to all messages.
URL reputation score rangesfor trusted, neutral, and untrusted URLs are predefined and not editable. However,
you can specify a custom range instead. The specified endpoints are included in the range you specify. For
example, if you create a custom range from -8 to -10, then -8 and -10 are included in the range. Use "Unknown"
for URLs for which a reputation score cannot be determined.
Neutral URL reputation means that URLs are currently clean, but may turn malicious in future, as they
are prone to attacks. For such URLs, administrators can create non-blocking policies, for example,
redirecting them to the Cisco Web Security Proxy for click-time evaluation.
Note
URLs that are included on the selected URL allowed list or on the global URL allowed list not evaluated.
The action that you pair with this condition is taken if any URL in the message matches the reputation score
or any category specified in the condition.
If you want to modify URLs in a message, or modify their behavior, configure only a URL Reputation or
URL Category action. You do not need a separate URL Reputation or URL Category condition or rule for
this purpose.
Note Do not pair a URL Reputation condition with a Bounce action.
To check the category of a particular URL, visit the link in Reporting Uncategorized and Misclassified
URLs , on page 479.
Tip
Related Topics
• Creating Allowed Lists for URL Filtering , on page 452
• Content Filters, on page 273
ModifyingURLs in Messages:UsingURL Reputation andURL CategoryActions
in Filters
Use a URL Reputation or URL Category action to modify URLs in a message, or their behavior, based on
the reputation or category of the URL.
URL Reputation and URL Category actions do not require a separate condition. Instead, the selected action
is applied based on the reputation or categoriesthat you select in the URL Reputation or URL Category action.
The action is applied only to URLs that meet the criteria specified in the action. Other URLs in the message
are not modified.
If you do not specify a category, the action you choose is applied to all messages.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
456
Protecting Against Malicious or Undesirable URLs
Modifying URLs in Messages: Using URL Reputation and URL Category Actions in Filters
URL reputation score rangesfor trusted, neutral, and untrusted URLs are predefined and not editable. However,
you can specify a custom range instead. The specified endpoints are included in the range you specify. For
example, if you create a custom range from -8 to -10, then -8 and -10 are included in the range. Use “Unknown”
for URLs for which a reputation score cannot be determined.
Neutral URL reputation means that URLs are currently clean, but may turn malicious in future, as they
are prone to attacks. For such URLs, administrators can create non-blocking policies, for example,
redirecting them to the Cisco Web Security Proxy for click-time evaluation.
Note
The following URL-related actions are only applicable for URLs in the message body::
• Defang a URL so that it is unclickable. Message recipients can still see and copy the URL.
• Redirect a URL so that if the message recipient clicks the link, the transaction is routed to a Cisco web
security proxy in the cloud, which blocks access if the site is malicious.
Example: You might want to redirect all URLs in the Uncategorized category to the Cisco Cloud Web
Security proxy service, as malicious sites used in phishing attacks often do not exist long enough to be
classified.
See also Redirected URLs: What Does the End User Experience? , on page 458.
To redirect URLs to a different proxy, see the example in the following bullet.
The Cisco Cloud Web Security proxy service has no configurable options
in this release. For example, there is no threat score threshold to adjust or
action to specify based on threat score.
Note
• Replace the URL with any text.
To include the original URL in the text that appears in the message, use the $URL variable.
Examples:
• Replace all URLs in the Illegal Downloads category with a note:
Message from your system administrator: A link to an illegal downloads web site has
been removed from this message.
• Include the original URL along with a warning:
WARNING! The following URL may contain malware: $URL
This becomes: WARNING: The following URL may contain malware: http://example.com.
• Redirect to a custom proxy or web security service:
http://custom_proxy/$URL
This becomes: http://custom_proxy/http://example.com
The reputation and category of URLs that are included on the selected URL allowed list or on the global URL
allowed list are not evaluated.
If you defang or replace URLs, you can choose to ignore URLs in signed messages.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
457
Protecting Against Malicious or Undesirable URLs
Modifying URLs in Messages: Using URL Reputation and URL Category Actions in Filters
Pairing a URL Reputation or URL Category action with a URL Reputation or URL Category condition (or
rule) is not recommended. If you pair a condition (rule) and action that include different categories, then no
match occurs.
To check the category of a particular URL, visit the link in Reporting Uncategorized and Misclassified
URLs , on page 479.
Tip
Related Topics
• Creating Allowed Lists for URL Filtering , on page 452
• Using Custom Headers to Redirect URLs in Suspected Spam to the Cisco Web Security Proxy:
Configuration Example , on page 403
• Content Filters, on page 273
• URL Reputation Rules , on page 179
• URL Category Rule , on page 180
Redirected URLs: What Does the End User Experience?
Based on the evaluation by the Cisco Cloud Web Security proxy service:
• If the site is benign, the user is directed to the target web site and has no knowledge that the link has been
redirected.
• If the site is malicious, the user sees a notice that the site is malicious and access to it has been blocked.
You can customize the appearance of end user notification page and display your organization’s branding
such as company logo, contact information, and so on.See Customizing the Notification That End Users
See If a Site Is Malicious , on page 453.
• If communication with the Cisco Cloud Web Security proxy service times out, the user is allowed to
access the target web site.
• If any other error occurs, the user sees a notice.
Related Topics
• Modifying URLs in Messages: Using URL Reputation and URL Category Actions in Filters , on page
456
Handling Unscannable Messages for URL Filtering
In the following scenarios, the URL filtering scanning fails, and the following header -
X-URL-LookUp-ScanningError is added to the message:
• Unable to obtain the URL Reputation and Category
• Unable to expand the shortened URLs in the message
• Number of URLs in the message body or message attachments exceeds the maximum URL scan limit
You can add a content filter, select the X-URL-LookUp-ScanningError header in the Other Header condition,
and configure appropriate actions to take on the message.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
458
Protecting Against Malicious or Undesirable URLs
Redirected URLs: What Does the End User Experience?
Detecting Malicious URLs in Messages Using Content Filter
Use the ‘URL Reputation’ content filter to detect URLs in messages categorized as malicious by the ETF
engine and take appropriate actions on such messages.
You can configure the 'URL Reputation' content filter for ETF in any one of the following ways:
• Use the 'URL Reputation' condition with any appropriate action.
• Use the 'URL Reputation' action with any or no condition.
• Use the 'URL Reputation' condition and action.
The following procedure is used to detect malciicous URLs using the 'URL Reputation' condition and action:
• If you only want to use the 'URL Reputation' condition with any appropriate action, do not follow
steps 11-20 of the procedure.
• If you only want to use the 'URL Reputation' action with any or no condition., do not follow steps
4-10 of the procedure.
Note
Before you begin
• Make sure that you enable URL filtering on your email gateway. To enable URL filtering, go to Security
Services > URL Filtering page in the web interface. For more information, see Protecting Against
Malicious or Undesirable URLs, on page 447.
• Make sure that you enable Outbreak Filters on your email gateway. To enable Outbreak Filters, go to
Security Services > Outbreak Filters page in the web interface. For more information, see Outbreak
Filters, on page 425.
• Make sure that you enable Anti-Spam engine on your email gateway. To enable the Anti-Spam engine,
go to Security Services > Anti-Spam page in the web interface. For more information, see Managing
Spam and Graymail, on page 383.
• (Optional) Create a URL list. To create one, go to Mail Polices > URL Lists page in the web interface.
For more information, see Protecting Against Malicious or Undesirable URLs, on page 447.
Procedure
Step 1 Go to Mail Policies > Incoming Content Filters.
Step 2 Click Add Filter.
Step 3 Enter a name and description for the content filter.
Step 4 Click Add Condition.
Step 5 Click URL Reputation.
Step 6 Select External Threat Feeds.
Step 7 Select the ETF source(s) to detect malicious URLs.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
459
Protecting Against Malicious or Undesirable URLs
Detecting Malicious URLs in Messages Using Content Filter
Step 8 (Optional) Select the list of allow listed URLs that you do not want the email gateway to detect for threats.
Step 9 Select the required Check URLs within option to detect malicious URLs in the message body and subject
and/or message attachments.
Step 10 Click OK.
Step 11 Click Add Action.
Step 12 Click URL Reputation.
Step 13 Select External Threat Feeds.
Step 14 Make sure that you select the same ETF source(s) that you selected in the condition (Step 7).
Step 15 (Optional) Select the same list of allow listed URLs that you selected in Step 8.
Step 16 Select the required Check URLs within option to detect malicious URLs in the 'message body and subject'
and/or 'message attachments'
Step 17 Select the required action that you want to perform on the URLs within the message body and subject and/or
message attachments.
In Step 16, if you choose the 'Check URLs within' option as 'Attachments', you can only strip the
attachment from the message.
Note
Step 18 Select whether you want to take actions on all messages or unsigned messages.
Step 19 Click OK.
Step 20 Submit and commit your changes.
If you have configured URL Reputation content filters for Web Based Reputation Score (WBRS)
and ETF on your email gateway, it is recommended to set the order of the WBRS URL Reputation
content filter higher than the order of the ETF URL Reputation filter, to improve the performance
of your emal gateway.
Note
Detecting Malicious URLs in Messages Using Message Filter
As an example, use the ‘URL Reputation’ message filter rule syntax to detect malicious URLs in messages
using the ETF engine, and to defang the URL.
Syntax:
defang_url_in_message: if (url-external-threat-feeds (['etf_source1'],
<'URL_allowedlist'>,
<’message_attachments'> , <’message_body_subject’> ,))
{ url-etf-defang(['etf-source1'], "", 0); } <’URL_allowedlist’> ,
<’Preserve_signed’>)}
Where
• ‘url-external-threat-feeds’ is the URL Reputation rule.
• ‘etf_source1’ is the ETF source(s) used to detect malicious URLs in the messages or message
attachments.
• ‘URL_allowedlist’ is the name of a URL allowed list. If a URL allowed list is not present, it is displayed
as “”.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
460
Protecting Against Malicious or Undesirable URLs
Detecting Malicious URLs in Messages Using Message Filter
• ‘message_attachments’ is used to check for malicious URLs in the message attachments. A value of
'1' is used to detect malicious URLs in the message attachments.
• ‘message_body_subject’ is used to check for malicious URLsin the message body and subject. A value
of '1' is used to detect malicious URLs in the message body and subject.
A value of “1,1” is used to detect malciocus URLs in the message body,
subject, and message attachments.
Note
• ‘url-etf-defang’ is one of the actions that you can take on messages that contain malicious URLs.
The following examples are the ETF-based actionsthat you can apply on messagesthat contain malicious
URLs:
• url-etf-strip(['etf_source1'], "None", 1)
• url-etf-defang-strip(['etf_source1'], "None", 1, "Attachment removed")
• url-etf-defang-strip(['etf_source1'], "None", 1)
• url-etf-proxy-redirect(['etf_source1'], "None", 1)
• url-etf-proxy-redirect-strip(['etf_source1'], "None", 1)
• url-etf-proxy-redirect-strip(['etf_source1'], "None", 1, " Attachment removed")
• url-etf-replace(['etf_source1'], "", "None", 1)
• url-etf-replace(['etf_source1'], "URL removed", "None", 1)
• url-etf-replace-strip(['etf_source1'], "URL removed ", "None", 1)
• url-etf-replace-strip(['etf_source1'], "URL removed*", "None", 1, "Attachment removed")
• ‘Preserve_signed’ isrepresented by ‘1’ or ‘0’. ‘1’ indicatesthat this action appliesto unsigned messages
only and ‘0’ indicates that this action applies to all messages.
In the following example, if a URL in the message attachment is detected as malicious by the ETF
engine, the attachment is stripped.
Strip_Malicious_URLs: if (true) {url-etf-strip(['threat_feed_source'], "", 0);}
Monitoring URL Filtering Results
To view data about malicious and neutral URLs detected, select Monitor > URL Filtering. For important
information about the data on this page, see URL Filtering Page , on page 855.
Displaying URL Details in Message Tracking
To display details in Message Tracking for URLs caught by outbreak filters and relevant content filters:
• Message Tracking must be enabled.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
461
Protecting Against Malicious or Undesirable URLs
Monitoring URL Filtering Results
• Outbreak filters and/or content filters based on URL reputation or URL Category must be operational.
• For outbreak filters, URL Rewriting must be enabled. See URL Rewriting and Bypassing Domains, on
page 442.
• URL logging must be enabled. See Enabling Logging of URLs and Message Tracking Details for URLs
, on page 437.
For more information about the data displayed, see Message Tracking Details , on page 922.
To manage administrative user access to these potentially sensitive details, see Controlling Access toSensitive
Information in Message Tracking, on page 981.
Troubleshooting URL Filtering
Related Topics
• Viewing Logs , on page 462
• Alert: Beaker Connector: Error Fetching Enrollment Certificate , on page 463
• Alert: Beaker Connector: Certificate Is Invalid , on page 463
• Unable to Connect to Talos Intelligence Services, on page 463
• Alert: Unable to Connect to the Cisco Aggregator Server, on page 464
• Alert: Unable to Retrieve Web Interaction Tracking Information from the Cisco Aggregator Server, on
page 464
• Using the websecurityadvancedconfig Command , on page 464
• Message Tracking Search Does Not Find Messages with Specified Category , on page 464
• Malicious URLs and Marketing Messages Are Not Caught by Anti-Spam or Outbreak Filters , on page
465
• URLs in a Filtered Category Are Not Handled Correctly , on page 465
• End User Reaches Malicious Site via Rewritten URL , on page 465
• Manually Configuring a Certificate for Communication with Talos Intelligence Services , on page 466
Viewing Logs
URL filtering information is posted to the following logs:
• Mail Logs ( mail_logs ). Information related to the result of scanning a URL (action taken of a message
depending on the URL) is posted to this log.
• URL Filtering Logs ( web_client ). Information related to errors, timeouts, network issues, and so on
while attempting the URL lookup are posted this log.
Most information is at Info or Debug level. For more information on logs, see Logging, on page 1149.
Logs do not include information about what happens when a user clicks a redirected link in a message.
"SDS" and in logs refers to URL reputation services. "Beaker Connector" refers to Talos engine.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
462
Protecting Against Malicious or Undesirable URLs
Troubleshooting URL Filtering
Alert: Beaker Connector: Error Fetching Enrollment Certificate
Problem
You receive an info-level alert about an error fetching the enrollment client certificate.
Solution
This certificate is required to connect to the following cloud-based services: Talos Intelligence Services (to
obtain URL reputation and category) and Cisco Aggregator Server (to obtain web interaction tracking data).
Try the following:
1. Check for networking issues such as incorrect proxy settings or firewall issues.
2. Verify that your URL Filtering feature key is valid and active.
3. If the problem persists, contact Cisco TAC.
Alert: Beaker Connector: Certificate Is Invalid
Problem
You receive a critical alert about an invalid Beaker connector certificate.
Solution
This certificate is required to connect to Talos Intelligence Services in the cloud in order to obtain URL
reputation and category.
To obtain and manually install a certificate, see Manually Configuring a Certificate for Communication with
Talos Intelligence Services , on page 466.
Unable to Connect to Talos Intelligence Services
Problem
The Security Services > URL Filtering page persistently indicates an issue connecting to Talos Intelligence
Services.
Solution
• If you have enabled URL filtering but have not yet committed the change, commit the change.
• Check for recent alerts related to the connection with Talos Intelligence Services. See Viewing Recent
Alerts, on page 1054. If applicable, see Alert: Beaker Connector: Error Fetching Enrollment Certificate ,
on page 463 and Alert: Beaker Connector: Certificate Is Invalid , on page 463.
• If you are connecting via a proxy specified in Security Services > Service Updates, verify that this is
configured and working properly.
• Check for other network issues that might prevent connection.
• If you see errors in the URL Filtering Logs related to timed out requests to the Talos client, use the
websecuritydiagnostics command and the websecurityadvancedconfig command in the
command-line interface to investigate and make changes:
• If the diagnostics show that Response Time is not less than the configured URL Lookup Timeout,
increase the URL Lookup Timeout value accordingly.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
463
Protecting Against Malicious or Undesirable URLs
Alert: Beaker Connector: Error Fetching Enrollment Certificate
• Check the URL Filtering Logs for non-timeout errors in communications with the URL scanner, Cisco
Web Security Services, or Talos client. "Talos client" in logs represents Talos Intelligence Services. If
you see such log messages, contact TAC.
Alert: Unable to Connect to the Cisco Aggregator Server
Problem
You receive the following warning alert: Unable to Connect to the Cisco Aggregator Server.
Solution
Do the following:
1. Check the connectivity between the email gateway and the Cisco Aggregator Server by pinging the
hostname of the server from the email gateway. Use the aggregatorconfig command in CLI to view the
hostname of the Cisco Aggregator Server.
2. If you are connecting via a proxy specified in Security Services > Service Updates, verify that this is
configured and working properly.
3. Check for other network issues that might prevent connection.
4. Check if the DNS service is running.
5. If the problem persists, contact Cisco TAC.
Alert: Unable to Retrieve Web Interaction Tracking Information from the Cisco
Aggregator Server
Problem
You receive the following warning alert: Unable to retrieve web interaction tracking information from the
Cisco Aggregator Server.
Solution
Do the following:
1. If you are connecting via a proxy specified in Security Services > Service Updates, verify that this is
configured and working properly.
2. Check for other network issues that might prevent connection.
3. Check if the DNS service is running.
4. If the problem persists, contact Cisco TAC.
Using the websecurityadvancedconfig Command
Except for changes explicitly described in this document, make no other changes using the
websecurityadvancedconfig command without guidance from TAC.
Message Tracking Search Does Not Find Messages with Specified Category
Problem
Messages that contain URLs in a particular category are not found when searching by that category.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
464
Protecting Against Malicious or Undesirable URLs
Alert: Unable to Connect to the Cisco Aggregator Server
Solution
See Expected Messages Are Missing from Search Results , on page 925.
Malicious URLs and Marketing Messages Are Not Caught by Anti-Spam or
Outbreak Filters
Problem
Malicious URLs and messages containing marketing links are not caught by the anti-spam or outbreak filters.
Solution
• This can occur because web site reputation and category are only two among many criteria that anti-spam
and outbreak filters use to determine their verdicts. You can increase the sensitivity of these filters by
lowering the thresholds required to take action such as rewriting or replacing URLs with text, or
quarantining or dropping messages. For details, see The Outbreak Filters Feature and Mail Policies, on
page 438 and Defining Anti-Spam Policies , on page 399. Alternatively, create content or message filters
based on URL reputation score.
• This can also occur if the email gateway is unable to connect to the Talos Intelligence Services. See
Unable to Connect to Talos Intelligence Services, on page 463.
URLs in a Filtered Category Are Not Handled Correctly
Problem
The defined action in a content or message filter based on URL category is not applied.
Solution
• Use the Trace feature (described in the Troubleshooting chapter) to follow the message processing path.
• This can occur if the email gateway is unable to connect to the Talos Intelligence Services. See Unable
to Connect to Talos Intelligence Services, on page 463.
• If there are no connection issues, the URLs may not yet be categorized, or may be miscategorized. See
Reporting Uncategorized and Misclassified URLs , on page 479. You can use this site to determine the
category of a URL.
End User Reaches Malicious Site via Rewritten URL
Problem
A malicious URL was redirected to the Cisco Web Security Proxy, but the end user was able to access the
site anyway.
Solution
This can occur if:
• The site was not yet identified as a malicious site.
• The connection to the Cisco Web Security Proxy timed out, which should be a rare occurrence. Ensure
that network issues are not interfering with the connection.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
465
Protecting Against Malicious or Undesirable URLs
Malicious URLs and Marketing Messages Are Not Caught by Anti-Spam or Outbreak Filters
Manually Configuring a Certificate for Communication with Talos Intelligence
Services
Use this procedure if the email gateway is unable to automatically obtain a certificate for communication with
Talos Intelligence Services.
Procedure
Step 1 Obtain the required certificate.
Step 2 Upload the certificate using Network > Certificates, or use the certconfig command in the command-line
interface.
Step 3 In the command-line interface, enter the websecurityconfig command.
Step 4 Follow the prompts to set the client certificate for Talos Intelligence Services Authentication.
About URL Categories
Related Topics
• URL Category Descriptions , on page 466
• Determining the Category of a URL , on page 479
• Reporting Uncategorized and Misclassified URLs , on page 479
• Future URL Category Set Changes , on page 479
URL Category Descriptions
These URL categories are the same categories that are used on recent releases of AsyncOS for Web Security
appliances.
Abbrev Code Description Example URLs
ia-tion
URL Category
www.adultentertainmentexpo.com
www.adultnetline.com
Directed at adults, but not
necessarily pornographic. May
include adult clubs (strip clubs,
swingers clubs, escort services,
strippers); general information
about sex, non-pornographic in
nature; genital piercing; adult
products or greeting cards;
information about sex not in the
context of health or disease.
Adult adlt 1006
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
466
Protecting Against Malicious or Undesirable URLs
Manually Configuring a Certificate for Communication with Talos Intelligence Services
Abbrev Code Description Example URLs
ia-tion
URL Category
www.adforce.com
www.doubleclick.com
Banner and pop-up
advertisements that often
accompany a web page; other
advertising websitesthat provide
advertisement content.
Advertising services and sales
are classified as “Business and
Industry.”
Advertisements adv 1027
www.samueladams.com
www.whisky.com
Alcohol as a pleasurable
activity; beer and wine making,
cocktail recipes; liquor sellers,
wineries, vineyards, breweries,
alcohol distributors. Alcohol
addiction is classified as “Health
and Nutrition.” Bars and
restaurants are classified as
“Dining and Drinking.”
Alcohol alc 1077
www.moma.org
www.nga.gov
Galleries and exhibitions; artists
and art; photography; literature
and books; performing arts and
theater; musicals; ballet;
museums; design; architecture.
Cinema and television are
classified as “Entertainment.”
Arts art 1002
www.astro.com
www.astrology.com
Astrology; horoscope; fortune
telling; numerology; psychic
advice; tarot.
Astrology astr 1074
www.craigslist.com
www.ebay.com
Online and offline auctions,
auction houses, and classified
advertisements.
Auctions auct 1088
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
467
Protecting Against Malicious or Undesirable URLs
URL Category Descriptions
Abbrev Code Description Example URLs
ia-tion
URL Category
www.freightcenter.com
www.staples.com
Marketing, commerce,
corporations, business practices,
workforce, human resources,
transportation, payroll, security
and venture capital; office
supplies; industrial equipment
(process equipment), machines
and mechanicalsystems; heating
equipment, cooling equipment;
materials handling equipment;
packaging equipment;
manufacturing: solids handling,
metal fabrication, construction
and building; passenger
transportation; commerce;
industrial design; construction,
building materials;shipping and
freight (freight services,
trucking, freight forwarders,
truckload carriers, freight and
transportation brokers, expedited
services, load and freight
matching, track and trace, rail
shipping, ocean shipping, road
feeder services, moving and
storage).
Business and busi 1019
Industry
www.icq.com
www.meebo.com
Web-based instant messaging
and chat rooms.
Chat and Instant chat 1040
Messaging
www.bestessays.com
www.superiorpapers.com
Promoting cheating and selling
written work, such as term
papers, for plagiarism.
Cheating and plag 1051
Plagiarism
Worldwide illegal child sexual —
abuse content.
Child Abuse cprn 1064
Content
www.computersecurity.com
www.symantec.com
Offering security products and
services for corporate and home
users.
Computer csec 1065
Security
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
468
Protecting Against Malicious or Undesirable URLs
URL Category Descriptions
Abbrev Code Description Example URLs
ia-tion
URL Category
www.xml.com
www.w3.org
Information about computers
and software, such as hardware,
software, software support;
information for software
engineers, programming and
networking; website design; the
web and Internet in general;
computer science; computer
graphics and clip art. “Freeware
and Shareware” is a separate
category.
Computers and comp 1003
Internet
www.eharmony.com
www.match.com
Dating, online personals,
matrimonial agencies.
Dating date 1055
www.all-yours.net
www.delivr.net
Enabling sending of digital
postcards and e-cards.
DigitalPostcards card 1082
www.hideawaybrewpub.com
www.restaurantrow.com
Eating and drinking
establishments; restaurants, bars,
taverns, and pubs; restaurant
guides and reviews.
Dining and food 1061
Drinking
http://109.60.192.55
http://dynalink.co.jp
http://ipadsl.net
IP addresses of broadband links
that usually indicates users
attempting to access their home
network, for example for a
remote session to a home
computer.
Dynamic and dyn 1091
Residential
www.education.com
www.greatschools.org
Education-related, such as
schools, colleges, universities,
teaching materials, and teachers’
resources; technical and
vocational training; online
training; education issues and
policies; financial aid; school
funding; standards and testing.
Education edu 1001
www.eonline.com
www.ew.com
Details or discussion of films;
music and bands; television;
celebrities and fan websites;
entertainment news; celebrity
gossip; entertainment venues.
Compare with the “Arts”
category.
Entertainment ent 1093
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
469
Protecting Against Malicious or Undesirable URLs
URL Category Descriptions
Abbrev Code Description Example URLs
ia-tion
URL Category
www.car-accidents.com
www.crime-scene-photos.com
Material of a sexually violent or
criminal nature; violence and
violent behavior; tasteless, often
gory photographs, such as
autopsy photos; photos of crime
scenes, crime and accident
victims; excessive obscene
material; shock websites.
Extreme extr 1075
www.fashion.net
www.findabeautysalon.com
Clothing and fashion; hair
salons; cosmetics; accessories;
jewelry; perfume; pictures and
text relating to body
modification; tattoos and
piercing; modeling agencies.
Dermatological products are
classified as “Health and
Nutrition.”
Fashion fash 1076
www.rapidshare.com
www.yousendit.com
File transfer services with the
primary purpose of providing
download services and hosted
file sharing
File Transfer fts 1071
Services
www.bypassschoolfilter.com
www.filterbypass.com
Promoting and aiding
undetectable and anonymous
web usage, including cgi, php
and glype anonymous proxy
services.
Filter Avoidance filt 1025
finance.yahoo.com
www.bankofamerica.com
Primarily financial in nature,
such as accounting practices and
accountants, taxation, taxes,
banking, insurance, investing,
the national economy, personal
finance involving insurance of
all types, credit cards, retirement
and estate planning, loans,
mortgages.Stock and shares are
classified as “Online Trading.”
Finance fnnc 1015
www.freewarehome.com
www.shareware.com
Providing downloads of free and
shareware software.
Freeware and free 1068
Shareware
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
470
Protecting Against Malicious or Undesirable URLs
URL Category Descriptions
Abbrev Code Description Example URLs
ia-tion
URL Category
www.888.com
www.gambling.com
Casinos and online gambling;
bookmakers and odds; gambling
advice; competitive racing in a
gambling context; sports
booking; sports gambling;
services for spread betting on
stocks and shares. Websites
dealing with gambling addiction
are classified as “Health and
Nutrition.” Government-run
lotteries are classified as
“Lotteries”.
Gambling gamb 1049
www.games.com
www.shockwave.com
Various card games, board
games, word games, and video
games; combat games; sports
games; downloadable games;
game reviews; cheat sheets;
computer games and Internet
games, such as role-playing
games.
Games game 1007
www.usa.gov
www.law.com
Government websites; foreign
relations; news and information
relating to government and
elections; information relating
to the field of law, such as
attorneys, law firms, law
publications, legal reference
material, courts, dockets, and
legal associations; legislation
and court decisions; civil rights
issues; immigration; patents and
copyrights; information relating
to law enforcement and
correctional systems; crime
reporting, law enforcement, and
crime statistics; military, such
as the armed forces, military
bases, military organizations;
anti-terrorism.
Government and gov 1011
Law
www.hackthissite.org
www.gohacking.com
Discussing ways to bypass the
security of websites, software,
and computers.
Hacking hack 1050
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
471
Protecting Against Malicious or Undesirable URLs
URL Category Descriptions
Abbrev Code Description Example URLs
ia-tion
URL Category
www.kkk.com
www.nazi.org
Websites promoting hatred,
intolerance, or discrimination on
the basis of social group, color,
religion, sexual orientation,
disability, class, ethnicity,
nationality, age, gender, gender
identity;sites promoting racism;
sexism; racist theology; hate
music; neo-Nazi organizations;
supremacism; Holocaust denial.
Hate Speech hate 1016
www.health.com
www.webmd.com
Health care; diseases and
disabilities; medical care;
hospitals; doctors; medicinal
drugs; mental health; psychiatry;
pharmacology; exercise and
fitness; physical disabilities;
vitamins and supplements; sex
in the context of health (disease
and health care); tobacco use,
alcohol use, drug use, and
gambling in the context of
health (disease and health care);
food in general; food and
beverage; cooking and recipes;
food and nutrition, health, and
dieting; cooking, including
recipe and culinary websites;
alternative medicine.
Health and hlth 1009
Nutrition
www.humor.com
www.jokes.com
Jokes, sketches, comics and
other humorous content. Adult
humor likely to offend is
classified as “Adult.”
Humor lol 1079
www.ekran.no
www.thedisease.net
Promoting crime, such as
stealing, fraud, illegally
accessing telephone networks;
computer viruses; terrorism,
bombs, and anarchy; websites
depicting murder and suicide as
well as explaining ways to
commit them.
Illegal Activities ilac 1022
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
472
Protecting Against Malicious or Undesirable URLs
URL Category Descriptions
Abbrev Code Description Example URLs
ia-tion
URL Category
www.keygenguru.com
www.zcrack.com
Providing the ability to
download software or other
materials, serial numbers, key
generators, and tools for
bypassing software protection
in violation of copyright
agreements. Torrents are
classified as “Peer File
Transfer.”
Illegal ildl 1084
Downloads
www.cocaine.org
www.hightimes.com
Information about recreational
drugs, drug paraphernalia, drug
purchase and manufacture.
Illegal Drugs drug 1047
www.akamai.net
www.webstat.net
Content delivery infrastructure
and dynamically generated
content; websites that cannot be
classified more specifically
because they are secured or
otherwise difficult to classify.
Infrastructure infr 1018
and Content
Delivery
Networks
www.evaphone.com
www.skype.com
Telephonic services using the
Internet.
Internet voip 1067
Telephony
www.careerbuilder.com
www.monster.com
Career advice; resume writing
and interviewing skills; job
placement services; job
databanks; permanent and
temporary employment
agencies; employer websites.
Job Search job 1004
www.swimsuits.com
www.victoriassecret.com
Intimate apparel and swim wear,
especially when modeled.
Lingerie and ling 1031
Swimsuits
www.calottery.com
www.flalottery.com
Sweepstakes, contests and
state-sponsored lotteries.
Lotteries lotr 1034
www.cbfsms.com
www.zedge.net
Short MessageServices (SMS);
ring tones and mobile phone
downloads. Cellular carrier
websites are included in the
“Business and Industry”
category.
Mobile Phones cell 1070
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
473
Protecting Against Malicious or Undesirable URLs
URL Category Descriptions
Abbrev Code Description Example URLs
ia-tion
URL Category
www.enature.com
www.nature.org
Natural resources; ecology and
conservation; forests;
wilderness; plants; flowers;
forest conservation; forest,
wilderness, and forestry
practices; forest management
(reforestation, forest protection,
conservation, harvesting, forest
health, thinning, and prescribed
burning); agricultural practices
(agriculture, gardening,
horticulture, landscaping,
planting, weed control,
irrigation, pruning, and
harvesting); pollution issues(air
quality, hazardous waste,
pollution prevention, recycling,
waste management, water
quality, and the environmental
cleanup industry); animals, pets,
livestock, and zoology; biology;
botany.
Nature natr 1013
www.cnn.com
news.bbc.co.uk
News; headlines; newspapers;
television stations; magazines;
weather; ski conditions.
News news 1058
www.panda.org
www.unions.org
Non-governmental organizations
such as clubs, lobbies,
communities, non-profit
organizations and labor unions.
Non-Governmental ngo 1087
Organizations
www.artenuda.com
www.naturistsociety.com
Nudism and nudity; naturism;
nudist camps; artistic nudes.
Non-Sexual nsn 1060
Nudity
www.igda.org
www.ieee.org
Affinity groups; special interest
groups; web newsgroups;
message boards. Excludes
websites classified as
“Professional Networking” or
“Social Networking.”
Online comm 1024
Communities
www.adrive.com
www.dropbox.com
Offsite and peer-to-peer storage
for backup,sharing, and hosting.
Online Storage osb 1066
and Backup
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
474
Protecting Against Malicious or Undesirable URLs
URL Category Descriptions
Abbrev Code Description Example URLs
ia-tion
URL Category
www.tdameritrade.com
www.scottrade.com
Online brokerages; websitesthat
enable the user to trade stocks
online; information relating to
the stock market, stocks, bonds,
mutual funds, brokers, stock
analysis and commentary, stock
screens, stock charts, IPOs,
stock splits. Services for spread
betting on stocks and shares are
classified as “Gambling.” Other
financial services are classified
as “Finance."
Online Trading trad 1028
Websites used to access business —
email (often via Outlook Web
Access).
Organizational pem 1085
Email
www.domainzaar.com
www.parked.com
Websites that monetize traffic
from the domain using paid
listings from an ad network, or
are owned by “squatters” hoping
to sell the domain name for a
profit. These also include fake
search websites which return
paid ad links.
Parked Domains park 1092
www.bittorrent.com
www.limewire.com
Peer-to-peer file request
websites. This does not track the
file transfers themselves.
Peer File p2p 1056
Transfer
www.karymullis.com
www.stallman.org
Websites about and from private
individuals; personal homepage
servers; websites with personal
contents; personal blogs with no
particular theme.
Personal Sites pers 1081
www.flickr.com
www.photobucket.com
Facilitating the storing and
searching for, images,
photographs, and clip-art.
Photo Searches img 1090
and Images
www.politics.com
www.thisnation.com
Websites of politicians; political
parties; news and information
on politics, elections,
democracy, and voting.
Politics pol 1083
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
475
Protecting Against Malicious or Undesirable URLs
URL Category Descriptions
Abbrev Code Description Example URLs
ia-tion
URL Category
www.redtube.com
www.youporn.com
Sexually explicit text or
depictions. Includes explicit
anime and cartoons; general
explicit depictions; other fetish
material; explicit chat rooms;
sex simulators;strip poker; adult
movies; lewd art; web-based
explicit email.
Pornography porn 1054
www.linkedin.com
www.europeanpwn.net
Social networking for the
purpose of career or professional
development. See also “Social
Networking.”
Professional pnet 1089
Networking
www.realtor.com
www.zillow.com
Information that would support
the search for real estate; office
and commercial space; real
estate listings, such as rentals,
apartments, and homes; house
building.
Real Estate rest 1045
www.wikipedia.org
www.yellowpages.com
City and state guides; maps,
time; reference sources;
dictionaries; libraries.
Reference ref 1017
www.religionfacts.com
www.religioustolerance.org
Religious content, information
about religions; religious
communities.
Religion rel 1086
www.netsuite.com
www.salesforce.com
Web portals for online business
services; online meetings.
SaaS and B2B saas 1080
kids.discovery.com
www.nickjr.com
Directed at, and specifically
approved for, young children.
Safe for Kids kids 1057
www.physorg.com
www.science.gov
Science and technology,such as
aerospace, electronics,
engineering, mathematics, and
other similar subjects; space
exploration; meteorology;
geography; environment; energy
(fossil, nuclear, renewable);
communications (telephones,
telecommunications).
Science and sci 1012
Technology
www.bing.com
www.google.com
Search engines and other initial
points of access to information
on the Internet.
Search Engines srch 1020
and Portals
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
476
Protecting Against Malicious or Undesirable URLs
URL Category Descriptions
Abbrev Code Description Example URLs
ia-tion
URL Category
www.avert.org
www.scarleteen.com
Factual websites dealing with
sex; sexual health;
contraception; pregnancy.
Sex Education sxed 1052
www.amazon.com
www.shopping.com
Bartering; online purchasing;
coupons and free offers; general
office supplies; online catalogs;
online malls.
Shopping shop 1005
www.facebook.com
www.twitter.com
Social networking. See also
“Professional Networking.”
Social snet 1069
Networking
www.archaeology.org
www.anthropology.net
Sciences and history related to
society; archaeology;
anthropology; cultural studies;
history; linguistics; geography;
philosophy; psychology;
women's studies.
Social Science socs 1014
www.childcare.gov
www.familysearch.org
Family and relationships;
ethnicity; social organizations;
genealogy; seniors; child-care.
Society and scty 1010
Culture
www.softwarepatch.com
www.versiontracker.com
Websites that host updates for
software packages.
Software swup 1053
Updates
www.espn.com
www.recreation.gov
All sports, professional and
amateur; recreational activities;
fishing; fantasy sports; public
parks; amusement parks; water
parks; theme parks; zoos and
aquariums; spas.
Sports and sprt 1008
Recreation
www.live-radio.net
www.shoutcast.com
Real-time streaming audio
content including Internet radio
and audio feeds.
Streaming Audio aud 1073
www.hulu.com
www.youtube.com
Real-time streaming video
including Internet television,
web casts, and video sharing.
Streaming Video vid 1072
www.bat.com
www.tobacco.org
Pro-tobacco websites; tobacco
manufacturers; pipes and
smoking products(not marketed
for illegal drug use). Tobacco
addiction is classified as “Health
and Nutrition.”
Tobacco tob 1078
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
477
Protecting Against Malicious or Undesirable URLs
URL Category Descriptions
Abbrev Code Description Example URLs
ia-tion
URL Category
www.cars.com
www.motorcycles.com
Personal transportation;
information about cars and
motorcycles; shopping for new
and used cars and motorcycles;
car clubs; boats, airplanes,
recreational vehicles(RVs), and
other similar items. Note, car
and motorcycle racing is
classified as “Sports and
Recreation.”
Transportation trns 1044
www.expedia.com
www.lonelyplanet.com
Business and personal travel;
travel information; travel
resources; travel agents;
vacation packages; cruises;
lodging and accommodation;
travel transportation; flight
booking; airfares; car rental;
vacation homes.
Travel trvl 1046
Websites which are not in the —
Cisco database are recorded as
unclassified for reporting
purposes. This may include
mistyped URLs.
Unclassified — —
www.coldsteel.com
www.gunbroker.com
Information relating to the
purchase or use of conventional
weaponssuch as gun sellers, gun
auctions, gun classified ads, gun
accessories, gun shows, and gun
training; general information
about guns; other weapons and
graphic hunting sites may be
included. Government military
websites are classified as
“Government and Law.”
Weapons weap 1036
www.bluehost.com
www.godaddy.com
Website hosting; bandwidth
services.
Web Hosting whst 1037
babelfish.yahoo.com
translate.google.com
Translation of web pages
between languages.
Web Page tran 1063
Translation
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
478
Protecting Against Malicious or Undesirable URLs
URL Category Descriptions
Abbrev Code Description Example URLs
ia-tion
URL Category
mail.yahoo.com
www.hotmail.com
Public web-based email
services. Websites enabling
individuals to access their
company or organization’s email
service are classified as
“Organizational Email.”
Web-Based mail 1038
Email
Determining the Category of a URL
To look up the category of a particular URL, visit the site shown in Reporting Uncategorized and Misclassified
URLs , on page 479.
Reporting Uncategorized and Misclassified URLs
To report URLs that have been miscategorized, and URLs that are not categorized but should be, visit:
https://talosintelligence.com/reputation_center/support
To check the status of submitted URLs, click the Status on Submitted URLs tab on this page.
Future URL Category Set Changes
Rarely, the set of URL categories may change as a result of emerging trends and technologies. For example,
a category may be added or removed, renamed, merged with another category, or split into two categories.
These changes can affect the results from existing filters, so if changes occur, the email gateway will send an
alert (System type, Warning severity). If you receive such an alert, you should evaluate and possibly update
content and message filters to work with the updated categories. Existing filters will not automatically be
changed. To ensure that you receive these alerts, see Adding Alert Recipients, on page 1052.
The following changes do not require category set changes and will not generate alerts:
• Routine categorization of newly-categorized sites.
• Recategorization of misclassified sites.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
479
Protecting Against Malicious or Undesirable URLs
Determining the Category of a URL
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
480
Protecting Against Malicious or Undesirable URLs
Future URL Category Set Changes
CHAPTER 21
File Reputation Filtering and File Analysis
This chapter contains the following sections:
• Overview of File Reputation Filtering and File Analysis , on page 481
• Configuring File Reputation and Analysis Features, on page 485
• File Reputation and File Analysis Reporting and Tracking , on page 503
• Taking Action When File Threat Verdicts Change , on page 505
• Troubleshooting File Reputation and Analysis , on page 505
Overview of File Reputation Filtering and File Analysis
Advanced Malware Protection protects against zero-day and targeted file-based threats in email attachments
by:
• Obtaining the reputation of known files.
• Analyzing behavior of certain files that are not yet known to the reputation service.
• Continuously evaluating emerging threats as new information becomes available, and notifying you
about files that are determined to be threats after they have entered your network.
This feature is available for incoming messages and outgoing messages.
The file reputation and file analysis services have options for either public- or private-cloud (on-premesis).
• The private-cloud file reputation service is provided by Cisco AMP Virtual Private Cloud appliance,
operating in either “proxy” or “air-gap” (on-premises) mode. See Configuring an On-premises File
Reputation Server, on page 486.
• The private-cloud file analysis service is provided by an on-premises Cisco AMP Malware Analytics
appliance. See Configuring an On-Premises File Analysis Server , on page 486.
File Threat Verdict Updates
Threat verdicts can change as new information emerges. A file may initially be evaluated as unknown or
clean, and the file may therefore be released to the recipient. If the threat verdict changes as new information
becomes available, you will be alerted, and the file and its new verdict appear in the AMP Verdict Updates
report. You can investigate the point-of-entry message as a starting point to remediating any impacts of the
threat.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
481
Verdicts can also change from malicious to clean.
When no dynamic content is found in a file after file analysis, the verdict is Low Risk. The file is not sent for
file analysis, and the message continues through the email pipeline.
When the appliance processes subsequent instances of the same file, the updated verdict is immediately
applied.
Information about the timing of verdict updatesisincluded in the file-criteria document referenced inSupported
Files for File Reputation and Analysis Services , on page 483.
Related Topics
• File Reputation and File Analysis Reporting and Tracking , on page 503
• Taking Action When File Threat Verdicts Change , on page 505
File Processing Overview
Evaluation of file reputation and sending of files for analysis occur immediately after anti-virus scanning,
regardless of verdicts from previous scanning engines, unless a final action has been taken on the message.
By default, if a message has malformed MIME headers, the file reputation service returns a verdict of
“unscannable.” The appliance will also attempt to extract the attachments from this message. If the
appliance is unable to extract the attachments, verdict will remain as “unscannable.” If the appliance is
able to extract the attachments, the file reputation of the attachments is evaluated. If the attachments are
malicious, the verdict is changed from “unscannable” to “malicious.”
Note
Communications between the appliance and the file reputation service are encrypted and protected from
tampering.
After a file’s reputation is evaluated:
• If a message does not contain any attachments, the file reputation service will return a verdict of “skipped.”
• If the file is known to the file reputation service and is determined to be clean, the message continues
through the workqueue.
• If the file reputation service returns a verdict of malicious, for any attachment in the message, then the
appliance applies the action that you have specified in the applicable mail policy.
• If the file is known to the reputation service but there is insufficient information for a definitive verdict,
the reputation service returns a reputation score based on characteristics of the file such asthreat fingerprint
and behavioral analysis. If this score meets or exceeds the configured reputation threshold, the appliance
applies the action that you have configured in the mail policy for files that contain malware .
• If the reputation service has no information about the file, and the file does not meet the criteria for
analysis(seeSupportedFilesforFile Reputation and AnalysisServices, on page 483), the file is considered
clean and the message continues through the workqueue.
• If you have enabled the File Analysis service, and the reputation service has no information about the
file, and the file meets the criteria for files that can be analyzed (see Supported Files for File Reputation
and Analysis Services , on page 483), then the message can be quarantined (see Quarantining Messages
with AttachmentsSent for Analysis, on page 498) and the file sent for analysis. If you have not configured
the appliance to quarantine messages when attachments are sent for analysis, or the file is not sent for
analysis, then the message is released to the user.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
482
File Reputation Filtering and File Analysis
File Processing Overview
• For deployments with on-premises file analysis, the reputation evaluation and file analysis occur
simultaneously. If the reputation service returns a verdict, that verdict is used, as the reputation service
includes inputs from a wider range of sources. If the file is unknown to the reputation service, the file
the file analysis verdict is used.
• If the file reputation verdict information is unavailable because the connection with the server timed out,
the file is considered as Unscannable and the actions configured are applied.
Figure 33: Advanced Malware Protection Workflow for Public-Cloud File Analysis Deployments
If the file is sent for analysis:
• If the file is sent to the cloud for analysis: Files are sent over HTTPS.
• Analysis normally takes minutes, but may take longer.
• A file that is flagged as malicious afterFile Analysis may not be identified as malicious by the reputation
service. File reputation is determined by a variety of factors over time, not necessarily by a single file
analysis verdict.
• Results for files analyzed using an on premises Cisco Secure Endpoint Malware Analytics appliance are
cached locally.
For information about verdict updates, see File Threat Verdict Updates , on page 481.
Supported Files for File Reputation and Analysis Services
The reputation service evaluates most file types. File type identification is determined by file content and is
not dependent on the filename extension.
Some files with unknown reputation can be analyzed for threat characteristics. When you configure the file
analysis feature, you choose which file types are analyzed. New types can be added dynamically; you will
receive an alert when the list of uploadable file types changes, and can select added file types to upload.
Details about what files are supported by the reputation and analysis services are available only to registered
Cisco customers.For information about which files are evaluated and analyzed, see File Criteria for Advanced
Malware Protection Services for Cisco Content Security Products, available from https://www.cisco.com/c/
en/us/support/security/email-security-appliance/products-user-guide-list.html. The criteria for evaluating a
file’s reputation and for sending files for analysis may change at any time.
In order to access this document, you must have a Cisco customer account with a support contract. To register,
visit https://tools.cisco.com/RPF/register/register.do.
You should configure policiesto block delivery of filesthat are not addressed by Advanced MalwareProtection.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
483
File Reputation Filtering and File Analysis
Supported Files for File Reputation and Analysis Services
A file (either in incoming mail or outgoing mail) that has already been uploaded for analysis from any
source will not be uploaded again. To view analysis results for such a file, search for the SHA-256 from
the File Analysis reporting page.
Note
Related Topics
• Enabling and Configuring File Reputation and Analysis Services , on page 487
• Ensuring That You Receive Alerts About Advanced Malware Protection Issues, on page 502
• Archive or Compressed File Processing, on page 484
Archive or Compressed File Processing
If the file is compressed or archived,
• Reputation of the compressed or archive file is evaluated.
For information about which archived and compressed files are examined, including file formats, see the
information linked from Supported Files for File Reputation and Analysis Services , on page 483.
In this scenario,
• If one of the extracted files is malicious, the file reputation service returns a verdict of Malicious for the
compressed or the archive file.
• If the compressed or archive file is malicious and all the extracted files are clean, the file reputation
service returns a verdict of Malicious for the compressed or the archive file.
• If the verdict of any of the extracted files is unknown, the extracted files are optionally (if configured
and the file type is supported for file analysis) sent for file analysis.
• If the verdict of any of the extracted files or attachments is low risk, the file is not sent for file analysis.
• If the extraction of a file fails while decompressing a compressed or an archive file, the file reputation
service returns a verdict of Unscannable for the compressed or the archive file. Keep in mind that, in this
scenario, if one of the extracted files is malicious, the file reputation service returns a verdict of Malicious
for the compressed or the archive file (Malicious verdict takes precedence over Unscannable verdict).
• An archive or compressed file is treated as unscannable in the following scenarios:
• The data compression ratio is more than 20.
• The archive file contains more than five levels of nesting.
• The archive file contains more than 200 child files.
• The archive file size is more than 50 MB.
• The archive file is password protected or unreadable.
Note Reputation of the extracted files with safe MIME types, for example, text/plain, are not evaluated.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
484
File Reputation Filtering and File Analysis
Archive or Compressed File Processing
Privacy of Information Sent to the Cloud
• Only the SHA that uniquely identifies a file is sent to the reputation service in the cloud. The file itself
is not sent.
• If you are using the file analysis service in the cloud and a file qualifies for analysis, the file itself is sent
to the cloud.
• Information about every file that is sent to the cloud for analysis and has a verdict of "malicious" is added
to the reputation database. This information is used along with other data to determine a reputation score.
Information about files analyzed by an on premises CiscoSecure Endpoint Malware Analytics appliance
is not shared with the reputation service.
Configuring File Reputation and Analysis Features
• Requirements for Communication with File Reputation and Analysis Services , on page 485
• Configuring an On-premises File Reputation Server, on page 486
• Configuring an On-Premises File Analysis Server , on page 486
• Enabling and Configuring File Reputation and Analysis Services
• (Public Cloud File Analysis Services Only) Configuring Appliance Groups , on page 493
• Configuring the Mail Policy for File Reputation Scanning and File Analysis, on page 495
• Quarantining Messages with Attachments Sent for Analysis, on page 498
• Using the File Analysis Quarantine, on page 499
• Centralized File Analysis Quarantine , on page 501
• X-Headers for File Reputation and Analysis , on page 501
• Sending Notifications to End Users about Dropped Messages or Attachments , on page 501
• Advanced Malware Protection and Clusters , on page 501
• Ensuring That You Receive Alerts About Advanced Malware Protection Issues, on page 502
• Configuring Centralized Reporting for Advanced Malware Protection Features , on page 502
Requirements for Communication with File Reputation and Analysis Services
• All Email Security appliances that use these services must be able to connect to them directly over the
internet (excluding File Analysis services configured to use an on-premises Cisco Secure Endpoint
Malware Analytics Appliance.)
• By default, communication with file reputation and analysis services .
• By default, communication with file reputation and cloud-based analysis services is routed through the
interface that is associated with the default gateway. To route this traffic through a different interface,
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
485
File Reputation Filtering and File Analysis
Privacy of Information Sent to the Cloud
create a static route for each address in the Advanced section of the Security Services > File Reputation
and Analysis page.
• The following firewall ports must be open:
Appliance
Interface
Firewall Description Protocol In/Out Hostname
Ports
Management,
unless a static
route is
configured to
route this traffic
through a data
port.
As configured in Security
Services > Anti-Malware and
Reputation, Advanced section,
Cloud Server Pool parameter.
Access to cloud TCP Out
servicesfor obtaining
file reputation.
32137
(default) or
443
As configured in Security
Services > Anti-Malware and
Reputation, Advanced section.
Access to cloud TCP Out
services for file
analysis.
443
Configuring an On-premises File Reputation Server
If you will use a Cisco AMP Virtual Private Cloud appliance as a private-cloud file analysis server:
• You can obtain the Cisco Advanced MalwareProtection VirtualPrivate Cloud Appliance documentation,
including the Installation and Configuration of FireAMP Private Cloud guide, from
http://www.cisco.com/c/en/us/support/security/fireamp-private-cloud-virtual-appliance/tsd-products-support-series-home.html
Use that documentation to perform the tasks described in this topic.
Additional documentation is available using the Help link in the AMP Virtual Private Cloud appliance.
• Set up and configure the Cisco AMP Virtual Private Cloud appliance in either “proxy” or “air-gap”
(on-premises) mode.
• Ensure the Cisco AMP VirtualPrivate Cloud appliance software version is 2.2, which enablesintegration
with Cisco Email Security appliance .
• Download the AMP Virtual Private Cloud certificate and keys on that appliance for upload to this Email
Security appliance
• Use the Root Certificate option to skip standard validation when the root authority, trusted by the Email
Security Appliance, does not sign the tunnel proxy server certificate.
After you have set up the on-premises file-reputation server, you will configure connection to it from
this Email Security appliance ; see Step 6 of Enabling and Configuring File Reputation and Analysis
Services , on page 487
Note
Configuring an On-Premises File Analysis Server
If you will use a Cisco Secure Endpoint Malware Analytics Appliance as a private-cloud file analysis server:
• Obtain the CiscoSecure Endpoint Malware Analytics ApplianceSetup and Configuration Guide and the
Cisco Secure Endpoint Malware Analytics Appliance Administration Guide. Cisco Secure Endpoint
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
486
File Reputation Filtering and File Analysis
Configuring an On-premises File Reputation Server
Malware Analytics Appliance documentation is available from
http://www.cisco.com/c/en/us/support/security/amp-threat-grid-appliances/products-installation-guides%20-list.html.
Use this documentation to perform the tasks described in this topic.
Additional documentation is available from the Help link in the CiscoSecure Endpoint Malware Analytics
appliance.
In the Administration Guide, search for information about all of the following: integrations with other
Cisco appliances, CSA, Cisco Sandbox API, ESA, and Email Security Appliances, .
• Set up and configure the Cisco Secure Endpoint Malware Analytics Appliance.
• If necessary, update your CiscoSecure Endpoint Malware Analytics Appliance software to version 1.2.1,
which supports integration with Cisco Email Security appliances.
See the AMP Malware Analytics documentation for instructions for determining the version number
and for performing the update.
• Ensure that your appliances can communicate with each other over your network. Cisco Email Security
appliances must be able to connect to the CLEAN interface of the Cisco Secure Endpoint Malware
Analytics appliance.
• If you will deploy a self-signed certificate: Generate a self-signed SSL certificate from the Cisco Secure
Endpoint Malware Analytics appliance to be used on your Email Security appliance . See instructions
for downloading SSL certificates and keys in the administrator’s guide for your Cisco Secure Endpoint
Malware Analytics appliance. Be sure to generate a certificate that hasthe hostname of your CiscoSecure
Endpoint Malware Analytics appliance as CN. The default certificate from the Cisco Secure Endpoint
Malware Analytics appliance does NOT work.
• Registration of your EmailSecurity appliance with your Malware Analytics appliance occurs automatically
when you submit the configuration for File Analysis, as described in Enabling and Configuring File
Reputation and Analysis Services . However, you must activate the registration as described in the same
procedure.
Enabling and Configuring File Reputation and Analysis Services
Before you begin
• Acquire feature keys for the file reputation service and the file analysis service and transfer them to this
appliance.
• Meet the Requirements for Communication with File Reputation and Analysis Services , on page 485.
• Verify connectivity to the update servers configured on the Updates page .
• If you will use a Cisco AMP Virtual Private Cloud Appliance as a private cloud file reputation server,
see Configuring an On-premises File Reputation Server, on page 486.
• If you will use a Cisco Secure Endpoint Malware Analytics Appliance as a private cloud file analysis
server, see Configuring an On-Premises File Analysis Server , on page 486.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
487
File Reputation Filtering and File Analysis
Enabling and Configuring File Reputation and Analysis Services
Procedure
Step 1 Select Security Services > File Reputation and Analysis.
Step 2 Click Edit Global Settings.
Step 3 Click Enable File Reputation Filtering and optionally Enable File Analysis.
• If Enable File Reputation Filtering is checked, you must configure the section File ReputationServer
(in Step 6), by either choosing the URL of an external public-reputation cloud server, or by providing
the Private reputation cloud server connection information.
• Similarly, if Enable File Analysisis checked, you must configure the section File AnalysisServer URL
(inStep7), providing either the URL of an external cloud server, or thePrivate analysis cloud connection
information.
New file types may be added after an upgrade and are not enabled by default. If you have
enabled file analysis, and require the new file types to be included in analysis, you must enable
them.
Note
Step 4 Accept the license agreement if presented.
Step 5 In the File Analysis section, select the required file types from the appropriate file groups (for example,
“Microsoft Documents”) to send for file analysis.
For information about supported file types, see the document described inSupportedFiles forFile Reputation
and Analysis Services , on page 483
Cisco periodically checks for potentially malicious file types to prevent zero day threats. If new
threats are identified, details of such file types are sent to your appliance through updater servers.
Select the Other potentially malicious file types option to enable this functionality. If you enable
this functionality, your appliance will send such file types for analysis in addition to the file types
you have selected.
Note
Step 6 Expand the Advanced Settings for File Reputation panel and adjust the following options as needed:
Option Description
Cloud Domain The name of the domain to be used for file reputation queries.
Choose either: the host name of the public reputation cloud server, or Private
reputation cloud.
If you choose Private reputation cloud, provide the following:
• Server – The host name or IP address of the Cisco AMP Virtual Private
Cloud appliance.
• Public Key – Provide a valid public key for encrypted communications
between this appliance and your private cloud appliance. This must be the
same key used by the private cloud server: locate the key file on this
appliance, and then click Upload File.
You must have already downloaded the key file from the server to
this appliance.
Note
File Reputation Server
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
488
File Reputation Filtering and File Analysis
Enabling and Configuring File Reputation and Analysis Services
Option Description
Click Register the Appliance with AMP for Endpoints to integrate your
appliance with AMP for Endpoints console. For detailed instructions, see
Integrating the Appliance with AMP for Endpoints Console, on page 491.
AMP for Endpoints
Console Integration
Check Use SSL (Port 443) to communicate on port 443 instead of the default
port, 32137. Refer to the Cisco AMP Virtual Private Cloud Appliance user
guide for information about enabling SSH access to the server.
SSL communication over port 32137 may require you to open that
port in your firewall.
Note
This option also allows you to configure an upstream proxy for communication
with the file reputation service. If checked, provide the appropriate Server,
Username and Passphrase information.
When Use SSL (Port 443) is selected, you can also check Relax Certificate
Validation to skip standard certificate validation if the tunnel proxy server's
certificate is not signed by a trusted root authority. For instance, select this
option if using a self-signed certificate on a trusted internal tunnel proxy server.
If you checked Use SSL (Port 443) in the SSL Communication for
File Reputation section of the AdvancedSettingsforFile Reputation,
you must add the AMPon-premises reputation server CA certificate
to the certificate store on this appliance, using either the CLI
command certconfig > CERTAUTHORITY > CUSTOM, or Network
> Certificates (Custom Certificate Authorities) in the Web interface.
Obtain this certificate from the server (Configuration > SSL > Cloud
server > download).
Note
SSL Communication for
File Reputation
Heartbeat Interval The frequency, in minutes, with which to ping for retrospective events.
Query Timeout The number of elapsed seconds before the reputation query times out.
Processing Timeout The number of elapsed seconds before the file processing times out.
File Reputation Client ID The client ID for this appliance on the File Reputation server (read-only).
Check Suppress the retrospective verdict alerts to suppress the retrospective
verdict alerts for messages that are not delivered to the message recipient,
dropped or quarantined.
File Retrospective
Note Do not change any other settings in this section without guidance from Cisco support.
Step 7 If you will use the cloud service for file analysis, expand the Advanced Settings for File Analysis panel and
adjust the following options as needed:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
489
File Reputation Filtering and File Analysis
Enabling and Configuring File Reputation and Analysis Services
Option Description
Choose either: the name (URL) of an external cloud server, or Private analysis
cloud.
Ifspecifying an external cloud server, choose the server that is physically nearest
to your appliance. Newly available servers will be added to this list periodically
using standard update processes.
Choose Private analysis cloud to use an on-premises Cisco Secure Endpoint
Malware Analytics appliance for file analysis, and provide the following:
• TG Servers – Enter the IPv4 address or hostname of the standalone or
clustered Cisco Secure Endpoint Malware Analytics appliances. You can
add a maximum of seven Cisco Secure Endpoint Malware Analytics
appliances.
The Serial Number indicates the order in which you add the
standalone or clustered Cisco Secure Endpoint Malware
Analytics appliances. It does not denote the priority of the
appliances.
Note
You cannot add standalone and cluster servers in one instance.
It must be either standalone or cluster.
You can add only one standalone server in an instance. If it is a
cluster mode, you can add multiple servers upto seven and all
the servers must belong to the same cluster. You cannot add
multiple clusters.
Note
• Certificate Authority – Choose either Use Cisco Default Certificate
Authority, or Use Uploaded Certificate Authority.
If you choose Use Uploaded Certificate Authority, click Browse to upload
a valid certificate file for encrypted communications between this appliance
and your private cloud appliance. This must be the same certificate used
by the private cloud server.
If you have configured the CiscoSecure Endpoint Malware Analytics
portal on your appliance for file analysis, you can access the Cisco
Secure Endpoint Malware Analytics portal (for example,
https://panacea.threatgrid.eu) to view and track the files submitted
for file analysis. For more information on how to access the Cisco
Secure Endpoint Malware Analytics portal, contact Cisco TAC.
Note
File Analysis Server URL
Check Use File Reputation Proxy checkbox to use the same File Reputation
tunnel proxy that you have already configured, as an upstream proxy for file
analysis.
If you want to configure a different upstream proxy, uncheck the Use File
Reputation Proxy checkbox and enter the appropriateServer, Port, Username,
and Passphrase information.
Proxy Settings
File Analysis Client ID The client ID for this appliance on the File Analysis server (read-only).
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
490
File Reputation Filtering and File Analysis
Enabling and Configuring File Reputation and Analysis Services
Step 8 (Optional) Expand the CacheSettings panel, if you want to configure the cache expiry period forFile Reputation
disposition values.
Step 9 Expand the Threshold Settings panel, if you want to set the upper limit for the acceptable file analysis score.
The score above this threshold indicates that the file is infected. Choose any one of the following options:
• Use value from Cloud Service (95)
• Enter Custom Value – defaults to 95
Step 10 Submit and commit your changes.
Step 11 If you are using an on-premises Cisco Secure Endpoint Malware Analytics appliance, activate the account
for this appliance on the Cisco Secure Endpoint Malware Analytics appliance.
Complete instructions for activating the “user” account are available in the Cisco Secure Endpoint Malware
Analytics documentation.
a) Note the File Analysis Client ID that appears at the bottom of the page section. This identifies the “user”
that you will activate.
b) Sign in to the Cisco Secure Endpoint Malware Analytics appliance.
c) Select Welcome... > Manage Users and navigate to User Details.
d) Locate the “user” account based on the File Analysis Client ID of your Email Security appliances .
e) Activate this “user” account for your appliance.
Integrating the Appliance with AMP for Endpoints Console
You can integrate your appliance with AMPfor Endpoints console, and perform the following actionsin AMP
for Endpoints console:
• Create a simple custom detection list.
• Add new malicious file SHAs to the simple custom detection list.
• Create an application allowed list.
• Add new file SHAs to the application allowed list.
• Create a custom policy.
• Attach the simple custom detection list and the application allowed list to the custom policy.
• Create a custom group.
• Attach the custom policy to the custom group.
• Move your registered appliance from the default group to the custom group.
• View the file trajectory details of a particular file SHA.
To integrate your appliance with AMP for Endpoints console, you need to register your appliance with the
console.
After the integration, when a file SHA is sent to the File Reputation server, the verdict obtained for the file
SHA from the File Reputation Server is overridden by the verdict already available for the same file SHA in
the AMP for Endpoints console.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
491
File Reputation Filtering and File Analysis
Integrating the Appliance with AMP for Endpoints Console
If a file SHA is already marked as malicious globally, and if the same file SHA is added to the blocked list
in Secure Endpoint console, the file disposition is malicious.
The Advanced MalwareProtection report page includes a new section -Incoming Malware Filesby Category
to view the percentage of block listed file SHAs received from the AMP for Endpoints console that are
displayed as Custom Detection. The threat name of a block listed file SHA is displayed as Simple Custom
Detection in the Incoming Malware Threat Files section of the report. You can click the link in the More
Details section of the report to view the file trajectory details of a block listed file SHA in the AMP for
Endpoints console.
Before you begin
Make sure you have a user account in AMP for Endpoints console with admin access rights. For more details
on how to create an AMP for Endpoints console user account, contact Cisco TAC.
[For clustered configuration] In a clustered configuration, you can only register your logged-in appliance with
AMP for Endpoints console. If you have already registered your appliance with AMP for Endpoints console
in the standalone mode, make sure to deregister the appliance manually before you join it to a cluster.
Make sure you have enabled and configured File Reputation Filtering. See Enabling and Configuring File
Reputation and Analysis Services to know how to enable and configure File Reputation Filtering.
Procedure
Step 1 Select Security Services > File Reputation and Analysis.
Step 2 Click Edit Global Settings.
Step 3 Click Register Appliance with AMP for Endpoints in the Advanced Settings panel for File Reputation in
the File Reputation and File Analysis page of the web interface.
Once you click Register Appliance with AMP for Endpoints, the AMP for Endpoints console login page
appears.
Step 4 Log in to the AMP for Endpoints console with your user credentials.
Step 5 Click Allow in the AMP for Endpoints authorization page to register your appliance.
What to do next
Next Steps:
• You can go to Accounts > Applicationssection of the AMPfor Endpoints console page, to verify whether
your appliance is registered with AMP for Endpoints console. Your appliance name is displayed in the
Applications section of the AMP for Endpoints console page.
• After registration, your appliance is added to the default group (Audit Group) which has a default policy
(Network Policy) attached to it. The default policy contains file SHAs that are added to the blocked list
or the allowed list. If you want to customize the AMP for Endpoints settings for your appliance, and add
your own file SHAs that are added to the blocked list or the allowed list, see the AMP for Endpoints user
documentation at https://console.amp.cisco.com/docs.
• Make sure that the ‘File Reputation Client ID’ value in theFile ReputationSettings page and the ‘Device
GUID’ value of your registered appliance in the AMP for Endpoints console portal is the same. If the
values are different, the integration of your appliance with AMP for Endpoints will not work properly
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
492
File Reputation Filtering and File Analysis
Integrating the Appliance with AMP for Endpoints Console
at the machine or cluster level. You will need to deregister and register your appliance again to use the
AMP for Endpoints functionality.
• To deregister your appliance connection from AMP for Endpoints console, you can click Deregister in
the Advanced Settings for File Reputation section in your appliance, or you need to go to the AMP for
Endpoints console page at https://console.amp.cisco.com/. For more information, see the AMP for
Endpoints user documentation at https://console.amp.cisco.com/docs.
When you change your File Reputation server to a different data center, your appliance is automatically
deregistered from the AMP for Endpoints console. You must re-register your appliance with AMP for
Endpoints console with the same data center selected for the File Reputation server.
Note
If you change your file reputation server at the cluster level, your logged-in appliance is automatically
deregistered from the AMP for Endpoints console. Ensure that you deregister all the other machines in
the cluster. You must re-register all your appliances with AMP for Endpoints console with the same
data center selected for the File Reputation server
Note
If a malicious file SHA gets a clean verdict, then verify whether the same file SHA is added to the
allowed list in AMP for Endpoints console.
Note
Important! Changes Needed in File Analysis Setting
If you plan to use a new public cloud File Analysis service, make sure you read the following instructions to
maintain datacenter isolation:
• The existing appliance grouping information is not preserved in the new File Analysis server. You must
regroup your appliances on the new File Analysis server.
• Messages that are quarantined to the File Analysis Quarantine are retained until the retention period.
After the quarantine retention period, the messages are released from the File Analysis Quarantine, and
re-scanned by the AMP engine. The file is then uploaded to the new File Analysis server for analysis
but the message is not sent to the File Analysis Quarantine again.
For more details, refer to the Cisco AMP Malware Analytics documentation from
http://www.cisco.com/c/en/us/support/security/amp-threat-grid-appliances/products-installation-guides
-list.html.
(Public Cloud File Analysis Services Only) Configuring Appliance Groups
To allow all content security appliances in your organization to view file analysis result details in the cloud
for files sent for analysis from any appliance in your organization, you need to join all appliances to the same
appliance group. You can configure appliance groups at the machine or the cluster level.
Before you begin:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
493
File Reputation Filtering and File Analysis
Important! Changes Needed in File Analysis Setting
• Ensure that all the machines in the cluster are working.
• Ensure that you have connected to the configured File Analysis server of your region and the server is
working.
If you load a license keys file that does not contain the 'cloud admin feature' key in the on-premises
virtual email gateway, you can still perform auto-registration of Threat Group File Analysis using the
Smart License Account ID.
Note
Procedure
Step 1 Select Security Services > File Reputation and Analysis.
Step 2 Click the Click here to group or view Email Gateway for File Analysis reporting option to create the
Appliance Group.
Step 3 [Applicable if Smart Licensing is disabled on your email gateway] Enter the group ID manually in the
Appliance ID/Name field and click Group Now.
Or
[Applicable if Smart Licensing is enabled on your email gateway] The system automatically registers the
Smart Account ID as group ID and displays it in the Appliance Group ID/Name field.
Notes:
• An appliance can belong to only one group.
• You can add a machine to a group at any time.
• You can configure appliance groups at the machine and the cluster levels.
• If this is the first appliance being added to the group, provide a useful identifier for the group. This ID
is case-sensitive and cannot contain spaces.
• The appliance group ID you provide must be identical on all appliances that will share data about files
that are uploaded for analysis. However, the ID is not validated on subsequent appliances in the group.
• If you update the appliance group ID, the change takes effect immediately, and it does not require a
Commit.
• You must configure all appliances in a group to use the same File Analysis server in the cloud.
• If Smart Licensing is enabled, the appliances are grouped using the Smart Account ID.
Updating Appliance Group Name for File Analysis Reporting
Procedure
Step 1 Select Security Services> File Reputation and Analysis.
Step 2 Click the Click here to group or view Email Gateway for File Analysis reporting option.
Step 3 Click Change Group in the Appliance Grouping for File Analysis Reporting page.
Note You can also use the ampconfig > setgroup sub command in the CLI to change the group ID.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
494
File Reputation Filtering and File Analysis
Updating Appliance Group Name for File Analysis Reporting
Step 4 Enter a name or ID in the Appliance Group ID/Name field and click Group Now.
Note You must individually update the group name for all the appliances in a specific group.
Which Appliances Are In the Analysis Group?
Procedure
Step 1 Select Security Services> File Reputation and Analysis.
Step 2 Click the Click here to group or view Email Gateway for File Analysis reporting option.
Step 3 Click View Appliances to view the appliances added in a specific File Analysis Group.
Viewing Alerts for File Analysis Grouping
The following table lists the system alerts generated for the Appliance Grouping for File Analysis reporting,
including a description of the alert and the alert severity.
Component/Alert Name Message and Description Parameter
Alert text:Failed to register the file Parameters: Reason for the failure
analysis group name with Cisco
Threat Grid server. Contact Cisco
TAC for assistance.
Alert level: WARNING.
Description: Alert is sent when the
email gateway fails to register the
Appliance Group name using the
Smart Account ID with the Cisco
Thread Grid server.
AMP.ENGINE.ALERT.WARN
Configuring the Mail Policy for File Reputation Scanning and File Analysis
Procedure
Step 1 Select Mail Policies > Incoming Mail Policies or Mail Policies > Outgoing Mail Policies, whichever is
applicable.
Step 2 Click the link in the Advanced Malware Protection column of the mail policy to modify.
Step 3 Choose options.
• If you do not have an on-premises Cisco AMP Threat Grid Appliance and you do not want to send files
to the cloud, for example for confidentiality reasons, uncheck Enable File Analysis.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
495
File Reputation Filtering and File Analysis
Which Appliances Are In the Analysis Group?
• Select the actions that the appliance must perform if an attachment is considered as Unscannable.
Attachments are considered Unscannable when the appliance is unable to scan the file for the following
reasons:
• Message Errors:
• Password-protected archived or compressed file
• Messages with RFC violation.
• Messages that contain more than 200 child files
• Messages that contain more than five nested levels of child files
• Messages with extraction failure
• Rate Limit - The files that are not scanned by the File Analysis server because the appliance has
reached the file upload limit.
• AMP Service not available:
• File Reputation service is not available
• File Analysis service is not available
• File reputation query timeout
• File upload query timeout
• You can configure any one of the following message handling actions on messages that are not scanned
by the AMP engine:
• Drop the message
• Deliver the message as it is
• Send the message to the policy quarantine
• Select the following additional actions, if you choose to deliver the message:
• Whether to archive the original message. Archived messages are stored as an mbox-format log file
in the amparchive directory on the appliance. The preconfigured AMP Archive ( amparchive ) log
subscription is required.
• Whether to warn the end user by modifying the message subject, for example, [WARNING:
ATTACHMENT(S) MAY CONTAIN MALWARE].
• Whether to add a custom header to provide granular controls to the administrator.
• Whether to modify the message recipient causing the message to be delivered to a different address.
Click Yes and enter the new recipient address.
• Whether to send the unscannable messages to an alternate destination host. Click Yes and enter an
alternate IP address or hostname.
• Select the following additional actions, if you choose to send the message to the policy quarantine:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
496
File Reputation Filtering and File Analysis
Configuring the Mail Policy for File Reputation Scanning and File Analysis
• Whether to select a policy quarantine from the drop-down. When flagged for quarantine, the message
is placed in the quarantine when it reaches the end of the email pipeline, and is scanned by all the
other engines in the email pipeline.
• Whether to archive the original message. Archived messages are stored as an mbox-format log file
in the amparchive directory on the appliance. The preconfigured AMP Archive ( amparchive ) log
subscription is required.
• Whether to warn the end user by modifying the message subject, for example, [WARNING:
ATTACHMENT(S) MAY CONTAIN MALWARE].
• Whether to add a custom header to provide granular controls to the administrator.
• Select the actions that AsyncOS must perform if an attachment is considered Malicious. Select the
following:
• Whether to deliver or drop the message.
• Whether to archive the original message. Archived messages are stored as an mbox-format log file
in the amparchive directory on the appliance. The preconfigured AMP Archive ( amparchive ) log
subscription is required.
• Whether to deliver the message after removing the malware attachments.
• Whether to warn the end user by modifying the message subject, for example, [WARNING:
MALWARE DETECTED IN ATTACHMENT(S)].
• Whether to add a custom header to provide granular controls to the administrator.
• Whether to modify the message recipient causing the message to be delivered to a different address.
Click Yes and enter the new recipient address.
• Whether to send the malicious messages to an alternate destination host. Click Yes and enter an
alternate IP address or hostname.
• Select the actions that AsyncOS must perform if an attachment is sent for File Analysis. Select the
following:
• Whether to deliver or quarantine the message.
• Whether to archive the original message. Archived messages are stored as an mbox-format log file
in the amparchive directory on the appliance. The preconfigured AMP Archive ( amparchive ) log
subscription is required.
• Whether to warn the end user by modifying the message subject, for example, “ [WARNING:
ATTACHMENT(S) MAY CONTAIN MALWARE] .”
• Whether to add a custom header to provide granular controls to the administrator.
• Whether to modify the message recipient causing the message to be delivered to a different address.
Click Yes and enter the new recipient address.
• Whether to send the messages that are sent for file analysis to an alternate destination host. Click
Yes and enter an alternate IP address or hostname.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
497
File Reputation Filtering and File Analysis
Configuring the Mail Policy for File Reputation Scanning and File Analysis
• (For Incoming Mail Policy only) Configure the remedial actions to be performed on messages delivered
to end users when the threat verdict changes to malicious. Select Enable Mailbox Auto Remediation and
select one of the following actions:
• Forward to an email address. Select this option to forward the message with malicious attachment
to a specified user, for example, an email administrator.
• Delete the message.Select this option to permanently delete the message with malicious attachment
from the end user’s mailbox.
• Forward to an email address and delete the message. Select this option to forward the message with
malicious attachment to a specified user, for example, an email administrator and permanently delete
that message from the end user’s mailbox.
Messages from certain folders (for example, Deleted Items) cannot be deleted as Office
365 services do not support deletion of messages from these folders.
Note
Before configuring the Mailbox Auto Remediation settings, review Remediating Messages
in Mailboxes, on page 577
Important
Step 4 Submit and commit your changes.
Quarantining Messages with Attachments Sent for Analysis
You can configure the appliance to quarantine files sent for analysis instead of releasing them immediately
to the workqueue. Quarantined messages and their attachments are rescanned for threats upon release from
quarantine. If the message is released after file analysis results are available to the reputation scanner, any
identified threats will be caught during rescanning.
Procedure
Step 1 Select Mail Policies > Incoming Mail Policies or Mail Policies > Outgoing Mail Policies, whichever is
applicable.
Step 2 Click the link in the Advanced Malware Protection column of the mail policy to modify.
Step 3 Under Messages with File Analysis Pending section, select Quarantine from the Action Applied to Message
drop-down.
The quarantined messages are stored in the File Analysis quarantine. See Using the File Analysis Quarantine,
on page 499.
Step 4 (Optional) Under Messages with File Analysis Pending section, choose the following options:
• Whether to archive the original message. Archived messages are stored as an mbox-format log file in
the amparchive directory on the appliance. The preconfigured AMP Archive ( amparchive ) log
subscription is required.
• Whether to warn the end user by modifying the message subject, for example, “ [WARNING:
ATTACHMENT(S) MAY CONTAIN MALWARE] .”
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
498
File Reputation Filtering and File Analysis
Quarantining Messages with Attachments Sent for Analysis
• Whether to drop attachmentsin case of any pending file analysis verdict while delivering the final message
from the appliance. The default option is ‘No’
• Whether to add a custom header to provide granular controls to the administrator.
The above actions mentioned in step4 are applicable only when a message is released from the
quarantine and not when the message is sent to the quarantine:
• Archiving the original message.
• Modifying a message subject.
• Adding a custom header.
Note
Step 5 Submit and commit your changes.
What to do next
Related Topics
Using the File Analysis Quarantine, on page 499
Using the File Analysis Quarantine
• Edit File Analysis Quarantine Settings, on page 499
• Manually Processing Messages in the File Analysis Quarantine, on page 500
Edit File Analysis Quarantine Settings
Procedure
Step 1 Select Monitor > Policy, Virus, and Outbreak Quarantines.
Step 2 Click the File Analysis quarantine link.
Step 3 Specify the retention period.
Changing the default from one hour is not recommended.
Step 4 Specify the default action that AsyncOS must take after the retention period has passed.
Step 5 If you do not want messages in this quarantine to be processed before the end of the Retention Period you
specify, even when quarantine disk space is full, deselect Free up space by applying default action on
messages upon space overflow.
Step 6 If you select Release as the Default Action, optionally specify additional actions to apply to messages that
are released before their retention period has passed:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
499
File Reputation Filtering and File Analysis
Using the File Analysis Quarantine
Option Information
Type the text to add and specify whether to add it to the beginning or the end
of the original message subject.
For example, you might want to warn the recipient that the message may contain
malware attachments.
In order for a subject with non-ASCII charactersto display correctly
it must be represented according to RFC 2047.
Note
Modify Subject
An X-Header can provide a record of actions taken on a message. This can be
helpful for example when handling inquiries about why a particular message
was delivered.
Enter a name and value.
Example:
Name = Inappropriate-release-early
Value = True
Add X-Header
Strip Attachments Stripping attachments protects against malware attachments in messages.
Step 7 Specify the users who can access this quarantine:
User Information
The list of local usersincludes only users with rolesthat can access quarantines.
The list excludes users with Administrator privileges, because all Administrators
have full access to quarantines.
Local Users
Externally Authenticated You must have configured external authentication.
Users
You see this option only if you have created at least one custom user role with
quarantine access.
Custom User Roles
Step 8 Submit and commit your changes.
Manually Processing Messages in the File Analysis Quarantine
Procedure
Step 1 Select Monitor > Policy, Virus, and Outbreak Quarantines.
Step 2 In the row for File Analysis quarantine, click the blue number in the Messages column of the table.
Step 3 Depending on your requirements, perform the following actions on messages:
• Delete
• Release
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
500
File Reputation Filtering and File Analysis
Manually Processing Messages in the File Analysis Quarantine
• Delay Scheduled Exit from quarantine
• Send a copy of messages to email addresses that you specify
Centralized File Analysis Quarantine
For information about the centralized File Analysis quarantine, see chapter "Centralized Policy, Virus and
Outbreak Quarantine" of the Cisco Email Security Appliance Guide.
X-Headers for File Reputation and Analysis
You can use X-Headers to mark messages with actions and results of message processing steps. You tag
messages with X-Headersin mail policies, then use content filtersto choose handling options and final actions
for these messages.
Values are case-sensitive.
Possible Values (Case Description
Sensitive)
Header Name
Verdict applied to messages processed by the file
reputation service.
Clean
Malicious
Unscannable
X-Amp-Result
Verdict before adjustment based on reputation
threshold. This header exists only if the original
verdict is one of the possible values.
file unknown
verdict unknown
X-Amp-Original-Verdict
If any file attached to a message was sent for
analysis, this header is "true."
true
false
X-Amp-File-Uploaded
Sending Notifications to End Users about Dropped Messages or Attachments
To send notifications to end users when a suspect attachment or its parent message has been dropped based
on file reputation scanning, use an X-header or Custom Header and Content Filters.
Advanced Malware Protection and Clusters
If you use centralized management, you can enable Advanced Malware Protection and mail policies at the
cluster, group and machine level.
Feature keys must be added at the machine level.
Appliance Groups should not be configured at cluster level.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
501
File Reputation Filtering and File Analysis
Centralized File Analysis Quarantine
Ensuring ThatYouReceiveAlertsAbout AdvancedMalwareProtection Issues
Ensure that the appliance is configured to send you alerts related to Advanced Malware Protection.
You will receive alerts when:
Alert Description Type Severity
You are setting up a connection to an on-premises Anti-Malware Warning
(private cloud) Cisco Secure Endpoint Malware
Analytics appliance and you need to activate the
account as described in Enabling and Configuring
File Reputation and Analysis Services .
Feature keys expire (As is standard for all features)
The file reputation or file analysis service is Anti-Virus and AMP Warning
unreachable.
Communication with cloud services is established. Anti-Virus and AMP Info
The reputation and analysis engine is restarted by a Anti-Virus and AMP Info
watchdog service
A file reputation verdict changes. Anti-Virus and AMP Info
File types that can be sent for analysis have changed. Anti-Virus and AMP Info
You may want to enable upload of new file types.
Analysis ofsome file typesistemporarily unavailable. Anti-Virus and AMP Warning
Analysis of all supported file types is restored after a Anti-Virus and AMP Info
temporary outage.
InvalidFile Analysis service key. You need to contact AMP Error
Cisco TAC with the file analysis id details to fix this
error.
Related Topics
• Several Alerts About Failure to Connect to File Reputation or File Analysis Servers , on page 506
• Taking Action When File Threat Verdicts Change , on page 505
ConfiguringCentralizedReporting for AdvancedMalwareProtection Features
If you will centralize reporting on aSecurity Management appliance,see important configuration requirements
in the Advanced Malware Protection sections in theemail reporting topic of the online help or user guide for
your management appliance.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
502
File Reputation Filtering and File Analysis
Ensuring That You Receive Alerts About Advanced Malware Protection Issues
File Reputation and File Analysis Reporting and Tracking
• Identifying Files by SHA-256 Hash , on page 503
• File Reputation and File Analysis Report Pages, on page 503
• Viewing File Reputation Filtering Data in Other Reports , on page 504
• About Message Tracking and Advanced Malware Protection Features , on page 504
Identifying Files by SHA-256 Hash
Because filenames can easily be changed, the appliance generates an identifier for each file using a Secure
Hash Algorithm (SHA-256). If an appliance processes the same file with different names, all instances are
recognized as the same SHA-256. If multiple appliances process the same file, all instances of the file have
the same SHA-256 identifier.
In most reports, files are listed by their SHA-256 value (in an abbreviated format
File Reputation and File Analysis Report Pages
Report Description
Shows file-based threats that were identified by the file reputation
service.
For files with changed verdicts, see the AMP Verdict updates report.
Those verdicts are not reflected in the Advanced MalwareProtection
report.
If a file extracted from a compressed or archived file is malicious,
only the SHA value of the compressed or archived file is included in
the Advanced Malware Protection report.
The Incoming Malware Files by Category section shows the
percentage of file SHAs on the blocked list received from the AMP
for Endpoints console that are categorised as Custom Detection.
The threat name of file SHA on the blocked list obtained from AMP
for Endpoints console is displayed as Simple Custom Detection in
the Incoming Malware Threat Files section of the report.
You can click the link in the More Details section of the report to
view the file trajectory details about file SHA on the blocked list in
the AMP for Endpoints console.
You can view the Low Risk verdict details in the Incoming Files
Handed by AMP section of the report.
Advanced Malware Protection
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
503
File Reputation Filtering and File Analysis
File Reputation and File Analysis Reporting and Tracking
Report Description
Displays the time and verdict (or interim verdict) for each file sent
for analysis. The appliance checks for analysis results every 30
minutes.
To view more than 1000 File Analysis results, export the data as a
.csv file.
Drill down to view detailed analysis results, including the threat
characteristics for each file.
You can also search for additional information about an SHA, or
click the link at the bottom of the file analysis details page to view
additional details on the server that analyzed the file.
If extracted files from a compressed or an archive file are
sent for file analysis, only SHA values of these extracted
files are included in the File Analysis report.
Note
Advanced Malware Protection File
Analysis
Because Advanced Malware Protection is focused on targeted and
zero-day threats, threat verdicts can change as aggregated data
provides more information.
The AMP Reputation report liststhe files processed by this appliance
for which the verdict has changed since the message was received.
For more information about this situation, see File Threat Verdict
Updates , on page 481.
To view more than 1000 verdict updates, export the data as a .csv
file.
In the case of multiple verdict changes for a single SHA-256, this
report shows only the latest verdict, not the verdict history.
To view all affected messages for a particular SHA-256 within the
maximum available time range (regardless of the time range selected
for the report) click a SHA-256 link.
Advanced Malware Protection
Reputation
Viewing File Reputation Filtering Data in Other Reports
Data for file reputation and analysis is available in other reports where relevant. A Detected by Advanced
Malware Protection" column may be hidden by default in applicable reports. To display additional columns,
click the Columns link below the table.
About Message Tracking and Advanced Malware Protection Features
When searching for file threat information in Message Tracking, keep the following points in mind:
• To search for malicious files found by the file reputation service, select Advanced Malware Protection
Positive for the Message Event option in the Advanced section in Web Message Tracking.
• Message Tracking includes only information about file reputation processing and the original file reputation
verdicts returned at the time a transaction message was processed. For example, if a file was initially
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
504
File Reputation Filtering and File Analysis
Viewing File Reputation Filtering Data in Other Reports
found to be clean, then a verdict update found the file to be malicious, only the clean verdict appears in
Tracking results.
In Message Tracking details, the Processing Details section shows:
• The SHA-256 of each attachment in the message, and
• The final Advanced Malware Protection verdict for the message as a whole, and
• Any attachments which were found to contain malware.
• Verdict updates are available only in the AMP Verdict Updates report. The original message details in
Message Tracking are not updated with verdict changes. To see transactions messagesthat have a particular
attachment, click a SHA-256 in the verdict updates report.
• Information aboutFile Analysis, including analysisresults and whether or not a file wassent for analysis,
are available only in the File Analysis report.
Additional information about an analyzed file may be available from the cloud or on-premises File
Analysis server. To view any available File Analysis information for a file, select Reporting Monitor
> File Analysis and enter the SHA-256 to search for the file . If the File Analysis service has analyzed
the file from any source, you can see the details. Results are displayed only for files that have been
analyzed.
If the appliance processed a subsequent instance of a file that was sent for analysis, those instances will
appear in Message Tracking search results.
Taking Action When File Threat Verdicts Change
Procedure
Step 1 View the AMP Verdict Updates report.
Step 2 Click the relevant SHA-256 link to viewmessage tracking data for allmessages that contained that file that
may have been delivered to end users.
Step 3 Using the tracking data, identify the users that may have been compromised, as well as information such as
the file names involved in the breach and sender of the file.
Step 4 Check the File Analysis report to see if this SHA-256 was sent for analysis, to understand the threat behavior
of the file in more detail.
What to do next
Related Topics
File Threat Verdict Updates , on page 481
Troubleshooting File Reputation and Analysis
• Log Files , on page 506
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
505
File Reputation Filtering and File Analysis
Taking Action When File Threat Verdicts Change
• Using Trace , on page 506
• Several Alerts About Failure to Connect to File Reputation or File Analysis Servers , on page 506
• API Key Error (On-Premises File Analysis) , on page 507
• Files are Not Uploaded As Expected , on page 508
• Alerts about File Types That Can Be Sent for Analysis , on page 508
Log Files
In logs:
• AMP and amp refer to the file reputation service or engine.
• Retrospective refers to verdict updates.
• VRT and sandboxing refer to the file analysis service.
Information about Advanced Malware Protection including File Analysis is logged in AMP Engine Logs.
File reputation filtering and analysis events are logged in AMP Engine logs and Mail logs.
In the log message “Response received for file reputation query” possible values for “upload action” are:
• 1: SEND. In this case, you must send the file for File Analysis.
• 2: DON’T SEND. In this case, you do not send the file for File Analysis.
• 3: SEND ONLY METADATA. In this case, you send only the metadata and not the entire file for File
Analysis.
• 0: NO ACTION. In this case, no other action is required.
For “Disposition” in mail logs:
• 1: No malware detected or presumed clean (treated as clean)
• 2: Clean
• 3: Malware
Spyname is threat name.
Using Trace
Trace is not available for the file reputation filtering and analysis features. Instead, send a test message from
an account outside your organization.
Several Alerts About Failure to Connect to File Reputation or File Analysis
Servers
Problem
You receive several alerts about failures to connect to the file reputation or analysis services in the cloud. (A
single alert may indicate only a transient issue.)
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
506
File Reputation Filtering and File Analysis
Log Files
Solution
• Ensure that you have met the requirements in Requirements for Communication with File Reputation
and Analysis Services , on page 485.
• Check for network issues that may prevent the appliance from communicating with the cloud services.
• Increase the Query Timeout value:
SelectSecurityServices > File Reputationand Analysis. The Query Timeout value is in the Advanced
settings area .
API Key Error (On-Premises File Analysis)
Problem
You receive an API key alert when attempting to view File Analysis report details, or the Email Security
appliance is unable to connect to the AMP Malware Analytics server to upload files for analysis.
Solution
This error can occur if you change the hostname of the AMP Malware Analytics server and you are using a
self-signed certificate from the AMP Malware Analyticsserver, as well as possibly under other circumstances.
To resolve the issue:
• Generate a new certificate from the AMP Malware Analytics appliance that has the new hostname.
• Upload the new certificate to the Email Security appliance .
• Reset the API key on the AMP Malware Analytics appliance. For instructions, see the online help on
the AMP Malware Analytics appliance.
Related Topics
• Enabling and Configuring File Reputation and Analysis Services
API Key Error (Public Cloud File Analysis)
Problem
You receive an API key alert when attempting to view or group the appliances for File Analysis reporting or
when your email gateway cannot connect to the Cisco Threat Grid server to upload files for analysis.
Solution
This error can occur if the Cisco Threat Grid server is not reachable. Check the following and try to connect
again:
• You have connected to the correct Threat Grid server for your region.
• The Threat Grid server is currently working.
Related Topics
• (Public Cloud File Analysis Services Only) Configuring Appliance Groups , on page 493
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
507
File Reputation Filtering and File Analysis
API Key Error (On-Premises File Analysis)
Files are Not Uploaded As Expected
Problem
Files are not evaluated or analyzed as expected. There is no alert or obvious error.
Solution
Consider the following:
• The file may have been sent for analysis by another appliance and thus already be present on the File
Analysis server or in the cache of the appliance that is processing the file.
Alerts about File Types That Can Be Sent for Analysis
Problem
You receive alerts of severity Info about file types that can be sent for file analysis.
Solution
This alert is sent when supported file types change, or when the appliance checks to see what file types are
supported. This can occur when:
• You or another administrator changes the file types selected for analysis.
• Supported file types change temporarily based on availability in the cloud service. In this case, support
for the file typesselected on the appliance will be restored assoon as possible. Both processes are dynamic
and do not require any action from you.
• The appliance restarts, for example as part of an AsyncOS upgrade.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
508
File Reputation Filtering and File Analysis
Files are Not Uploaded As Expected
CHAPTER 22
Data Loss Prevention
This chapter contains the following sections:
• Overview of Data Loss Prevention , on page 509
• System Requirements for Data Loss Prevention , on page 511
• How to Set Up Data Loss Prevention , on page 511
• Enabling Data Loss Prevention (DLP) , on page 512
• Policies for Data Loss Prevention, on page 512
• Message Actions, on page 530
• Displaying Sensitive DLP Data in Message Tracking , on page 535
• About Updating the DLP Engine and Content Matching Classifiers, on page 536
• Working with DLP Incident Messages and Data , on page 537
• Troubleshooting Data Loss Prevention, on page 538
Overview of Data Loss Prevention
The Data Loss Prevention (DLP) feature secures your organization’s proprietary information and intellectual
property and enforces compliance with government regulations by preventing users from maliciously or
unintentionally emailing sensitive data from your network. You define the types of data that your employees
are not allowed to email by creating DLP policies that are used to scan outgoing messages for any data that
may violate laws or corporate policies.
Related Topics
• Overview of the DLP Scanning Process , on page 509
• How Data Loss Prevention Works , on page 510
Overview of the DLP Scanning Process
Action More Information
The email gateway processes messages that
are entering or leaving your network.
Messages sent to other users within your
network are not scanned.
A user in your organization sends an email
message to a recipient outside of your
organization.
1.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
509
Action More Information
Pre-DLP-scanning processes ensure, for
example, that the message includes no spam
or malware.
To see where DLP processing occurs in the
workqueue, see the workqueue flow diagram
in Email Pipeline Flows, on page 57.
The email gateway processesthe message through
the stages of its email “work queue” before it
reaches the DLP scanning stage.
2.
See How Data Loss Prevention Works , on
page 510.
The email gateway scans the message body,
header, and attachments for sensitive content that
you have identified in DLP Policies.
3.
You define the actions to be taken. See
Message Actions, on page 530.
If sensitive content is found, the email gateway
takes action to protect the data, such as
quarantining the message, dropping it, or
delivering it with restrictions.
Otherwise, the message continues through the
email gateway's work queue and if no issues are
found, the email gateway delivers it to the
recipient.
4.
How Data Loss Prevention Works
When someone in your organization sends a message to a recipient outside your organization, the email
gateway determines which outgoing mail policy applies to the sender or recipient of that message, based on
rules that you defined. The email gateway evaluates the content of the message using the DLP policies that
are specified in that outgoing mail policy.
Specifically, the email gateway scans the message content (including headers and attachments) for text that
matches words, phrases, predefined patterns such as social security numbers, or a regular expression that you
identified as sensitive content in an applicable DLP policy.
The email gateway also evaluatesthe context of disallowed content in order to minimize false positive matches.
For example, a number matching a credit card number pattern is only a violation if it is accompanied by an
expiration date, credit card company name (Visa, AMEX, etc.), or a person’s name and address.
If message content matches more than one DLPpolicy, the first matching DLPpolicy in the list applies, based
on the order that you specified. If an outgoing mail policy has multiple DLP policies that use the same criteria
to determine whether content is a violation, all policies use the result from a single content scan.
When potentially sensitive content appearsin a message, the email gateway assigns a risk factorscore between
0 - 100 to the potential violation. This score indicates the likelihood that the message contains a DLPviolation.
The email gateway then assigns the severity level (such as Critical or Low) that you have defined for that risk
factor score, and performs the message action that you have specified for that severity level in the applicable
DLP Policy.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
510
Data Loss Prevention
How Data Loss Prevention Works
System Requirements for Data Loss Prevention
Data Loss Prevention is supported on all supported C-Series and X-Series appliances except appliances using
D-Mode licenses.
How to Set Up Data Loss Prevention
Perform these steps in order:
Procedure
Command or Action Purpose
Enabling Data LossPrevention (DLP) , on page
512
Step 1 Enable the DLP feature.
Define the possible actions that can be taken Message Actions, on page 530
for messages in which violations are found or
Step 2
suspected. For example, you can quarantine
such messages.
Step 3 Create DLP policies, which: Choose a method:
• identify the content that must not be
emailed from your organization, and
• Setting Up DLP Prevention Using a
Wizard , on page 513
• Creating a DLPPolicy Using aPredefined
Template , on page 515
• specify which actions will be taken for
each violation.
• Creating a Custom DLPPolicy (Advanced)
, on page 516
Arranging the Order of the Email DLPPolicies
for Violation Matching , on page 529
Set the order of the DLP policies to determine
which DLPpolicy is used to evaluate messages
for DLP violations when the content could
match more than one DLP policy.
Step 4
Ensure that you have created Outgoing Mail See Mail Policies, on page 259
Policiesfor each group ofsenders and recipients
Step 5
To further refine permitted and restricted
message senders and recipients in individual whose messages will be scanned for DLP
violations. DLP policies, see Filtering Messages for DLP
Policies, on page 527.
Associating DLP Policies with Outgoing Mail
Policies, on page 529
Specify which DLP policies apply to which
senders and recipients by assigning DLP
policies to Outgoing Mail Policies.
Step 6
Configure settings for storage of and access to
sensitive DLP information.
Step 7 • DisplayingSensitive DLP Data in Message
Tracking , on page 535
• Controlling Access to Sensitive
Information in Message Tracking, on page
981
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
511
Data Loss Prevention
System Requirements for Data Loss Prevention
Enabling Data Loss Prevention (DLP)
Procedure
Step 1 Select Security Services > Data Loss Prevention.
Step 2 Click Enable.
Step 3 Scroll to the bottom of the license agreement page and click Accept to accept the agreement.
Note If you do not accept the license agreement, DLP is not enabled on the email gateway.
Step 4 Under Data Loss Prevention Global Settings, select Enable Data Loss Prevention.
Step 5 (Recommended) For now, deselect the other options on this page.
You can change these settings later, following instructions discussed elsewhere in this chapter.
Step 6 Submit and commit your changes.
What to do next
See How to Set Up Data Loss Prevention , on page 511.
Related Topics
• Displaying Sensitive DLP Data in Message Tracking , on page 535
• Setting Up DLP Prevention Using a Wizard , on page 513
• About Updating the DLP Engine and Content Matching Classifiers, on page 536
Policies for Data Loss Prevention
Related Topics
• DLP Policy Description , on page 513
• Predefined DLP Policy Templates, on page 513
• Setting Up DLP Prevention Using a Wizard , on page 513
• Creating a DLP Policy Using a Predefined Template , on page 515
• Creating a Custom DLP Policy (Advanced) , on page 516
• About Defining Disallowed Content Using Content Matching Classifiers , on page 517
• Filtering Messages for DLP Policies, on page 527
• About Assessing Violation Severity , on page 528
• Arranging the Order of the Email DLP Policies for Violation Matching , on page 529
• Associating DLP Policies with the Default Outgoing Mail Policy , on page 529
• Important Information About Editing or Deleting DLP Policies , on page 530
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
512
Data Loss Prevention
Enabling Data Loss Prevention (DLP)
DLP Policy Description
A DLP policy includes:
• a set of conditions that determine whether an outgoing message contains sensitive data, and
• the actions to be taken when a message contains such data.
You specify how message content is evaluated, based on:
• Specific disallowed content or patterns of information. Depending on the policy, you may need to create
a regular expression to search for identification numbers.See About Defining Disallowed Content Using
Content Matching Classifiers , on page 517.
• A list of specific senders and recipients for filtering messages. See Filtering Messages for DLP Policies,
on page 527.
• A list of attachment file types for filtering messages. See Filtering Messages for DLP Policies, on page
527.
• Settings that allow different actions to occur based on the severity of the violation. See About Assessing
Violation Severity , on page 528.
You determine the message senders and recipients that each policy applies to when you enable DLP policies
in Outgoing Mail Policies.
Predefined DLP Policy Templates
To simplify creation of DLP policies, your email gateway includes a large collection of predefined policy
templates.
Template categories include:
• Regulatory Compliance. These templates identify messages and attachments that contain personally
identifiable information, credit information, or other protected or non-public information.
• Acceptable Use. These templates identify messages sent to competitors or restricted recipients that
contain sensitive information about an organization.
• Privacy Protection. These templates identify messages and attachments that contain identification
numbers for financial accounts, tax records, or national IDs.
• Intellectual Property Protection. These templates identify popular publishing and design document
file types that may contain intellectual property that an organization would want to protect.
• Company Confidential. These templates identify documents and messages that contain information
about corporate accounting information and upcoming mergers and acquisitions.
• Custom Policy. This “template” lets you create your own policy from scratch using either pre-defined
content matching classifiers or violation identification criteria specified by your organization. This option
is considered advanced and should be used only in the rare cases when the predefined policy templates
do not meet the unique requirements of your network environment.
Some of these templates require customization.
Setting Up DLP Prevention Using a Wizard
The DLP Assessment Wizard helps you configure commonly-used DLPpolicies and enable them in the email
gateway's default outgoing mail policy.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
513
Data Loss Prevention
DLP Policy Description
By default, DLP policies added using the DLP Assessment Wizard deliver all messages, regardless of
the severity of detected DLP violations. You will need to edit the policies created using the wizard.
Note
Before You Begin
• Remove any existing DLP policies from the email gateway. You can only use the DLP Assessment
Wizard if there are no existing DLP policies on the email gateway.
• If you need to detect messages that include student identification numbers or account numbers other than
credit card numbers, US Social Security numbers, and US Drivers License numbers, create a regular
expression that identifies those numbers. For more information, see Regular Expressions for Identifying
Identification Numbers , on page 521.
Procedure
Step 1 Choose Security Services > Data Loss Prevention.
Step 2 Click Edit Settings.
Step 3 Select the Enable and configure DLP using the DLP Assessment Wizard check box.
Step 4 Click Submit.
Step 5 Complete the wizard.
Keep the following in mind:
• Any business that operates in California and owns or licenses computerized personally identifying
information (PII) data for California residents, regardless of their physical location, isrequired to comply
with US State Regulations (California SB-1386). This law is one of the policy choices in the wizard.
• If you do not enter an email addressto receive automatically-generated scheduled DLPIncidentSummary
report, the report will not be generated.
• When you review your configured settings, if you return to a step to make a change, you must proceed
through the remaining steps until you reach the review page again. Allsettingsthat you previously entered
will be remembered.
• When you complete the wizard, the Outgoing MailPolicies page displays, with your DLPpolicies enabled
in the default outgoing mail policy. A summary of your DLP policy configuration is displayed at the top
of the page.
Step 6 Commit your changes.
What to do next
• (Optional) To edit these DLP policies, create additional policies, change the overall action on messages,
or change the severity level settings, choose Mail Policies > DLP Policy Manager. For information,
see Creating a DLP Policy Using a Predefined Template , on page 515, Creating a Custom DLP Policy
(Advanced) , on page 516, and Adjusting the Severity Scale , on page 528.
• (Optional) To enable existing DLP policies for other outgoing mail policies, see Using Outgoing Mail
Policies to Assign DLP Policies to Senders and Recipients , on page 529.
Related Topics
• Creating a DLP Policy Using a Predefined Template , on page 515
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
514
Data Loss Prevention
Setting Up DLP Prevention Using a Wizard
• Creating a Custom DLP Policy (Advanced) , on page 516
Creating a DLP Policy Using a Predefined Template
Procedure
Step 1 Select Mail Policies > DLP Policy Manager.
Step 2 Click Add DLP Policy.
Step 3 Click the name of a category to display a list of the available DLP policy templates.
Note To view descriptions of each template, click Display Policy Descriptions.
Step 4 Click Add for the DLP policy template that you want to use.
Step 5 (Optional) Change the predefined name and description of the template.
Step 6 If the policy requires or recommends customizing one or more content matching classifiers, enter a regular
expression to define the pattern of your organization’s identification numbering system and a list of words or
phrases related to the identification numbers that identify them as such or are typically associated with them.
For information, see:
About Defining Disallowed Content Using Content Matching Classifiers, on page 517and Regular Expressions
for Identifying Identification Numbers , on page 521.
Note You cannot add or remove content matching classifiers for policies based on a predefined template.
Step 7 (Optional) Apply the DLP policy only to messages with specific recipients, senders, attachment types, or
previously-added message tags.
For more information, see Filtering Messages for DLP Policies, on page 527.
You can separate multiple entries using a line break or a comma.
Step 8 In the Severity Settings section:
• Choose an action to take for each level of violation severity.For more information, see About Assessing
Violation Severity , on page 528.
• (Optional) Click Edit Scale to adjust the violation severity scale for the policy. For more information,
see Adjusting the Severity Scale , on page 528.
Step 9 Submit and commit your changes.
What to do next
Related Topics
• Setting Up DLP Prevention Using a Wizard , on page 513
• Creating a Custom DLP Policy (Advanced) , on page 516
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
515
Data Loss Prevention
Creating a DLP Policy Using a Predefined Template
Creating a Custom DLP Policy (Advanced)
Creating custom policies is very complex; create custom policies only if the predefined DLP policy
templates do not meet the needs of your organization.
Note
You can create a custom DLPpolicy from scratch using the Custom Policy template and add either a predefined
content matching classifier or a custom classifier to the policy.
Custom policies can return a DLPviolation if the content matches a single classifier or all classifiers, depending
on how the policy is defined.
Before You Begin
Suggested: Define the criteria that identify a content violation. See Creating a Content Matching Classifier
for Custom DLP Policies , on page 519. You can also define these criteria from within this procedure.
Procedure
Step 1 Select Mail Policies > DLP Policy Manager.
Step 2 Click Add DLP Policy.
Step 3 Click Custom Policy.
Step 4 Click Add for the Custom Policy template.
Step 5 Enter a name and description for the policy.
Step 6 Identify the content and context that constitute a DLP violation:
a) Select a content matching classifier.
b) Click Add.
• If you selected Create a Classifier, see Creating a Content Matching Classifier for Custom DLP
Policies , on page 519 .
• Otherwise, the selected classifier is added to the table.
c) (Optional) Add additional classifiers to the policy.
For example, you might be able to eliminate known likely false positive matches by adding another
classifier and selecting NOT.
d) If you added multiple classifiers: Choose an option in the table heading to specify whether any or all of
the classifiers must match in order to count the instance as a violation.
Step 7 (Optional) Apply the DLP policy only to messages with specific recipients, senders, attachment types, or
previously-added message tags.
For more information, see Filtering Messages for DLP Policies, on page 527.
You can separate multiple entries using a line break or a comma.
Step 8 In the Severity Settings section:
• Choose an action to take for each level of violation severity. For more information, see About Assessing
Violation Severity , on page 528.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
516
Data Loss Prevention
Creating a Custom DLP Policy (Advanced)
• (Optional) Click Edit Scale to adjust the violation severity scale for the policy. For more information,
see Adjusting the Severity Scale , on page 528
Step 9 Submit and commit your changes.
What to do next
Related Topics
• Setting Up DLP Prevention Using a Wizard , on page 513
• Creating a DLP Policy Using a Predefined Template , on page 515
About Defining Disallowed Content Using Content Matching Classifiers
Content matching classifiers define the content that cannot be emailed and optionally the context in which
that content must occur in order to be considered a data loss prevention violation.
Suppose you want to prevent patient identification numbers from being emailed from your organization.
In order for the email gateway to recognize these numbers, you must specify the patterns of the record
numbering system used by your organization, using one or more regular expressions. You can also add a list
of words and phrases that might accompany the record number as supporting information. If the classifier
detects the number pattern in an outgoing message, it searches for the supporting information to verify that
the pattern is an identification number and not a random numberstring. Including context matching information
results in fewer false positive matches.
For this example, you might create a DLP policy that uses the HIPAA and HITECH template. This template
includes the Patient Identification Numbers content matching classifier, which you can customize to detect a
patient’s identification number. To detect numbers in the pattern of 123-CL456789, you would enter the
regular expression [0-9]{3}\-[A-Z]{2}[0-9]{6} for the classifier. Enter “Patient ID” for a related phrase.
Finish creating the policy and enable it in an outgoing mail policy. Submit and commit your changes. Now,
if the policy detects the number pattern in an outgoing message with the phrase “Patient ID” in close proximity
to the number pattern, the DLP policy returns a DLP violation.
About Using Content Matching Classifiers in DLP Policies
Many of the predefined DLP policy templates include content matching classifiers. Some of these classifiers
require customization in order to identify the patterns that are used for data in your organization.
If you create a custom DLP policy you can choose a predefined classifier or create one of your own.
Related Topics
• Content Matching Classifier Examples, on page 518
• Creating a Content Matching Classifier for Custom DLP Policies , on page 519
• Classifier Detection Rules for Identifying Sensitive Content (Custom DLP Policies Only) , on page 520
• Regular Expressions for Identifying Identification Numbers , on page 521
• Using Custom Dictionaries of Sensitive DLP Terms (Custom DLP Policies Only) , on page 522
• Determiners of the Risk Factor of a Suspected Violation , on page 524
• Viewing the Policies in Which Custom Content Classifiers are Used , on page 527
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
517
Data Loss Prevention
About Defining Disallowed Content Using Content Matching Classifiers
Content Matching Classifier Examples
The following examples show how classifiers match message content:
• Credit Card Number, on page 518
• US Social Security Number, on page 518
• ABA Routing Numbers, on page 518
• Driver License Numbers (US) , on page 518
• National Provider IDs (US), on page 519
• Academic Records (English), on page 519
• Financial Statements (English), on page 519
Credit Card Number
Several DLP policy templates include the Credit Card Number classifier. The credit card number itself is
subject to various constraints, such as the pattern of digits and punctuation, the issuer-specific prefix, and the
final check digit. The classifier requires additional supporting information to make a match, such as an
expiration date, or the name of the card issuer. This reduces the number of false positives.
Examples:
• 378734493671000 (No match because of no supporting information)
• 378734493671000 VISA (Match)
• 378734493671000 exp: 12/2019 (Match)
US Social Security Number
The US Social Security Number classifier requires a properly formatted number as well as supporting data,
such as a date of birth, name, or the string SSN .
Examples:
• 321-02-3456 (No match because of no supporting information)
• SSN: 132-45-6788 (Match)
ABA Routing Numbers
The ABA Routing Number classifier is similar to the Credit Card Number classifier.
Examples:
• 119999992 (No match because of no supporting information)
• ABA No. 800000080 (Match)
Driver License Numbers (US)
Many policies use a US Drivers License classifier. By default, this classifier searches for drivers licenses
issued in the US. USstate-specific policies such as California AB-1298 and Montana HB-732 search for their
respective state US drivers' licenses only.
The individual state classifiers match against the patterns for that state, and require the corresponding state
name or abbreviation, and additional supporting data.
Examples:
• CA DL# C3452362 (Match because it has the correct pattern for the number and supporting data)
• California DL# C3452362 (Match)
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
518
Data Loss Prevention
Content Matching Classifier Examples
• DL: C3452362 (No match because there is not enough supporting data)
• California C3452362 (No match because there is not enough supporting data)
• OR DL# C3452362 (Match)
• OR DL# 3452362 (Match because it is the correct pattern for Oregon)
• WV DL# D654321 (Match because it is the correct pattern for West Virginia)
• WV DL# G654321 (Match)
National Provider IDs (US)
The US National Provider Identifier classifier scans for a US National Provider Identifier (NPI) numbers,
which is a 10-digit number with a check digit.
Examples:
• NPI No. 1245319599 (Match for NPI)
• NPI No. 1235678996 (Match for NPI)
• 3459872347 (No match because of no supporting information)
• NPI: 3459872342 (No match because of incorrect check digit)
Academic Records (English)
The predefined FERPA (Family Educational Rights and Privacy Act) DLP policy template uses the Student
Records classifier. Combine it with a customized Student Identification Number classifier to detect specific
student ID patterns for better accuracy.
Example:
• Fall Semester Course Numbers: CHEM101, ECON102, MATH103 (Match)
Financial Statements (English)
The predefined Sarbanes-Oxley (SOX) policy template uses the Corporate Financials classifier to search for
non-public corporate financial information.
Example:
Gross Profits, Current Assets, and Cash Flow Statement for the Quarter ended June 30, 2016.
(Match)
Creating a Content Matching Classifier for Custom DLP Policies
Custom classifiers that you create are added to the list of classifiers that you can use when creating custom
DLP policies.
Procedure
Command or Action Purpose
Understand how content matching classifiers See:
are used to identify potential DLP violations.
Step 1
• About Defining Disallowed Content Using
Content Matching Classifiers, on page 517
• Content Matching Classifier Examples, on
page 518
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
519
Data Loss Prevention
National Provider IDs (US)
Command or Action Purpose
Select Mail Policies > DLP Policy —
Customizations and click Add Custom
Step 2
Classifier. Enter a classifier name and
description.
See Determiners of the Risk Factor of a
Suspected Violation , on page 524
Step 3 Enter a proximity and a minimum total score.
Choose one of the following detection rule types See:
and define the associated content matching
criteria:
Step 4
• Classifier Detection Rules for Identifying
Sensitive Content (Custom DLP Policies
• words or phrases Only) , on page 520
• Using Custom Dictionaries of Sensitive
DLP Terms (Custom DLP Policies Only)
, on page 522
• text from a dictionary
• a regular expression, or
• an existing data loss prevention entity
• Regular Expressions for Identifying
Identification Numbers , on page 521
For information about Weight and Max Score,
see Determiners of the Risk Factor of a
Suspected Violation , on page 524.
(Optional) Add additional rules by clicking Add
Rule.
Step 5
If you include multiple rules, specify whether This setting is at the top of the Rules section.
All or Any rules must match.
Step 6
Step 7 Submit and commit your changes. —
What to do next
Use your custom content classifier in a custom DLP Policy. See Creating a Custom DLP Policy (Advanced)
, on page 516.
Related Topics
• Viewing the Policies in Which Custom Content Classifiers are Used , on page 527
Classifier Detection Rules for Identifying Sensitive Content (Custom DLP Policies Only)
Content matching classifiers require rules for detecting DLP violations in a message or document. Classifiers
can use one or more of the following detection rules:
• Words or Phrases. A list of words and phrases for which the classifier should look. Separate multiple
entries with a comma or line break.
• Regular Expression. A regular expression to define a search pattern for a message or attachment. You
can also define a pattern to exclude from matching to prevent false positives. See Regular Expressions
for Identifying Identification Numbers, on page 521and Examples of Regular Expressionsfor Identifying
Identification Numbers , on page 522for more information.
• Dictionary. A dictionary of related words and phrases. Your email gateway includes pre-defined
dictionaries, or you can create your own.See Using Custom Dictionaries ofSensitive DLP Terms(Custom
DLP Policies Only) , on page 522.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
520
Data Loss Prevention
Classifier Detection Rules for Identifying Sensitive Content (Custom DLP Policies Only)
• Entity. A predefined pattern that identifies common types of sensitive data, such as credit card numbers,
addresses, social security numbers, or ABA routing numbers. For descriptions of the entities, go to Mail
Policies > DLP Policy Manager, click Add DLP Policy, click Privacy Protection, then click Display
Policy Descriptions.
Regular Expressions for Identifying Identification Numbers
Some policy templates require customization of one or more content matching classifiers, which involves
creating a regular expression to search for identification numbersthat may be linked to confidential information,
such as a custom account number, patient identification number or Student ID. You can use the Perl
Compatible Regular Expression(PCRE2)syntax to add regular expressionsfor content matching classifiers
or the DLP policy templates. The regular expressions are validated for PCRE2 compatibility only when the
DLP feature is enabled on your email gateway.
Regular expressions are case sensitive, so they should include upper and lower case, such as [a-zA-Z]
. If only certain letters are used, you can define the regular expression accordingly.
Note
The less specific the pattern, such as an 8-digit number, the more likely you will want the policy to search for
additional words and phrases to distinguish a random 8-digit number from an actual customer number.
Use the following table as a guide for creating regular expressions for classifiers:
Element Description
Regular expressions for classifiers match a string if the sequence of
directives in the regular expression match any part of the string.
For example, the regular expression ACC matchesthe string ACCOUNT
as well as ACCT .
Regular expression ( abc )
Use brackets to indicate a set of characters. Characters can defined
individually or within a range.
For example, [a-z] matches all lowercase letters from a to z , while
[a-zA-Z] matches all uppercase and lowercase letters from A to Z
. [xyz] matches only the letters x , y , or z .
[ ]
The backslash character escapesspecial characters. Thusthe sequence
\. only matches a literal period, the sequence \$ only matches a literal
dollar sign, and the sequence \^ only matches a literal caret symbol.
The backslash character also begins tokens, such as \d .
Important Note: The backslash is also a special escape character for
the parser. As a result, if you want to include a backslash in your
regular expression, you must use two backslashes — so that after
parsing, only one “real” backslash remains, which is then passed to
the regular expression system.
Backslash special characters ( \ )
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
521
Data Loss Prevention
Regular Expressions for Identifying Identification Numbers
Element Description
Token that matches a digit ( 0 - 9 ). To match more than one digit,
enter an integer in {} to define the length of the number.
For example, \d matches only a single digit such as 5 , but not 55 .
Using \d{2} matches a number consisting of two digits, such as 55 ,
but not 5 .
\d
Token that matches any non-digit character. To match more than one
non-digit character, enter an integer in {} to define the length.
\D
Token that matches any alphanumeric character and the underscore (
a - z , A - Z , 0 - 9 , and _ ).
\w
The regular expression notation that indicatesthe number of repetitions
of the previous token is supported.
For example, the expression “ \d{8} ” matches 12345678 and
11223344 but not 8 .
Number of repetitions {min,max}
Alternation, or the “or” operator. If A and B are regular expressions,
the expression “ A|B ” will match any string that matches either “A”
or “B.” Can be used to combine number patterns in a regular
expression.
For example, the expression “ foo|bar ” will match either foo or bar ,
but not foobar .
Or ( | )
Related Topics
• Examples of Regular Expressions for Identifying Identification Numbers , on page 522
Examples of Regular Expressions for Identifying Identification Numbers
Simple regular expressions that describe patterns of numbers and letters in identification or account numbers
might look like the following:
• An 8-digit number: \d{8}
• Identification code with hyphens between sets of numbers: \d{3}-\d{4}-\d
• Identification code that begins with a single letter that can be upper or lower case: [a-zA-Z]\d{7}
• Identification code that begins with three digits and is followed by nine uppercase letters: \d{3}[A-Z]{9}
• Using | to define two different number patterns to search for: \d{3}[A-Z]{9}|\d{2}[A-Z]{9}-\d
Using Custom Dictionaries of Sensitive DLP Terms (Custom DLP Policies Only)
AsyncOS comes with a set of predefined dictionaries, but you can also create custom DLP dictionaries to
specify terms for the DLP scanning feature to match.
You can create a custom DLP dictionary in several ways:
• Adding Custom DLP Dictionaries Directly , on page 523
• Creating DLP Dictionaries as TextFiles, on page 523and then Importing DLP Dictionaries, on page 523.
• Exporting DLP Dictionaries, on page 523 from another email gateway and then Importing DLP Dictionaries
, on page 523.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
522
Data Loss Prevention
Examples of Regular Expressions for Identifying Identification Numbers
Adding Custom DLP Dictionaries Directly
Procedure
Step 1 Select Mail Policies > DLP Policy Manager.
Step 2 In the Advanced Settings section, click the link beside Custom DLP Dictionaries.
Step 3 Click Add Dictionary.
Step 4 Enter a name for the custom dictionary.
Step 5 Enter new dictionary entries (words and phrases) into the list of terms.
Dictionary terms are case-sensitive and can contain non-ASCII characters.
When entering multiple entries, separate the entries with line breaks.
Step 6 Click Add.
Step 7 Submit and commit your changes.
Creating DLP Dictionaries as Text Files
You can create your own dictionary as a text file on your local machine and import it onto the email gateway.
Use line breaks for each term in the dictionary text file. Dictionary terms are case-sensitive and can contain
non-ASCII characters.
Exporting DLP Dictionaries
Note Predefined DLP dictionaries cannot be exported.
Procedure
Step 1 Select Mail Policies > DLP Policy Manager.
Step 2 Click the link for the Custom DLP Dictionaries section under Advanced Settings.
Step 3 Click Export Dictionary.
Step 4 Select a dictionary to export.
Step 5 Enter a file name for the dictionary.
Step 6 Choose where to save the exported dictionary, either on your local computer or in the configuration directory
on the email gateway.
Step 7 Select an encoding for the file.
Step 8 Click Submit and save the file.
Importing DLP Dictionaries
Before You Begin
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
523
Data Loss Prevention
Adding Custom DLP Dictionaries Directly
If you will import a file that you exported from a non-DLP dictionary on an email gateway, you must first
strip the weight values from the text file and convert any regular expressions to words or phrases.
Procedure
Step 1 Select Mail Policies > DLP Policy Manager.
Step 2 In the Advanced Settings section, click the link beside Custom DLP Dictionaries.
Step 3 Click Import Dictionary.
Step 4 Select a file to import from either your local machine or the configuration directory on the email gateway.
Step 5 Select an encoding.
Step 6 Click Next.
A “Success” message appears and the imported dictionary is displayed in the Add Dictionary page. However,
the process is not yet complete.
Step 7 Name and edit the dictionary.
Step 8 Click Submit.
Determiners of the Risk Factor of a Suspected Violation
When the email gateway scans a message for DLP violations, it assigns a risk factor score to the message.
This score indicates the likelihood that the message contains a DLPviolation. A score of 0 means the message
almost certainly does not contain a violation. A score of 100 means it almost certainly does contain a violation.
For DLP Policies Based On Predefined Templates
You cannot view or modify risk factorscoring parametersfor DLPpolicies created from predefined templates.
However, if there are too many false positive matches for a particular DLP policy, you can adjust the severity
scale for that policy. See About Assessing Violation Severity , on page 528. For policies based on templates
that do not have a content matching classifier, such as the SOX (Sarbanes-Oxley) template, the scanning
engine always returns a risk factor value of “75” when a message violates the policy.
For Custom DLP Policies
When you create content matching classifiers for custom DLP policies, you specify values that are used to
determine the risk factor score:
• Proximity. How close the rule matches must occur in the message or attachment to count as a violation.
For example, if a numeric pattern similar to a social security number appears near the top of a long
message and an address appearsin the sender’ssignature at the bottom, they are presumed to be unrelated
and the data does not count as a match.
• Minimum Total Score. The minimum risk factor score required for sensitive content to be labeled a
DLP violation. If the score of a message’s matches does not meet the minimum total score, its data is
not considered sensitive.
• Weight. For each custom rule you create, you specify a “weight” to indicate the importance of the rule.
A score is obtained by multiplying the number of detection rule matches by the weight of the rule. Two
instances of a rule with a weight of 10 results in a score of 20 . If one rule is more important for the
classifier than the others, it should be assigned a greater weight.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
524
Data Loss Prevention
Determiners of the Risk Factor of a Suspected Violation
• Maximum Score. A rule’s maximum score prevents a large number of matches for a low-weight rule
from skewing the final score of the scan.
• Minimum Score. You can use the recommended minimum score or choose to use the weight depending
on the Use recommended minimum scores for entity-based rules check box selected in the Custom
Classifiers Settings section of the DLP Policy Customizations page. For more information, see Using
Minimum Score for Entity-based Rules (Custom DLP Policies Only), on page 526
To calculate the risk factor, the classifier multiplies the number of matches for a detection rule by the weight
of the rule. If this value exceeds the detection rule’s maximum score, the classifier uses the maximum score
value. If the classifier has more than one detection rule, it adds the scores for all of its detection rules into a
single value. The classifier maps the detection rules score (10 - 10000) on a scale of 10 -100 using the
logarithmic scale shown in the following table to create the risk factor:
Table 42: How Risk Factor Scores Are Calculated From Detection Rule Scores
RuleScores Risk Factor
0 0
1 1
2 2
3 3
5 6
6 7
7 8
8 9
9 10
10 11
15 16
20 20
25 24
30 26
40 32
50 36
75 44
100 50
125 54
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
525
Data Loss Prevention
Determiners of the Risk Factor of a Suspected Violation
RuleScores Risk Factor
150 58
257 67
300 70
400 75
500 78
750 84
1000 87
5000 98
8000 99
10000 99
20000 100
Using Minimum Score for Entity-based Rules (Custom DLP Policies Only)
Procedure
Step 1 Go to Mail Policies > DLP Policy Customizations.
Step 2 In the Custom ClassifiersSettings section, select the Use recommended minimum scores for entity-based
rules check box.
If you select this option, the score for the entity-based rule is calculated using the configured minimum score
instead of the weight.
For example, when you disable this option and a message has five rule matches of a certain entity with the
weight configured as 10, the rule calculates the score as five matches times 10 occurrences, which is 50. If
you enable this option with a minimum score for an entity as 10, the score is calculated based on the configured
minimum score and the number of partial and full matches.
You must review the minimum total score of all the classifiers with entity-based rules when you
select the Use recommended minimum scores for entity-based rules option.
Note
Step 3 Click Submit and commit your changes.
After you enable this option, you must review the minimum scoresfor entity-based rules of a custom classifier.
For more information, see Creating a Content Matching Classifier for Custom DLP Policies , on page 519.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
526
Data Loss Prevention
Using Minimum Score for Entity-based Rules (Custom DLP Policies Only)
Viewing the Policies in Which Custom Content Classifiers are Used
Procedure
Step 1 Select Mail Policies > DLP Policy Customizations.
Step 2 In the Custom Classifiers section, click the Policies link in the heading of the Custom Classifiers table.
What to do next
Related Topics
• Creating a Content Matching Classifier for Custom DLP Policies , on page 519
Filtering Messages for DLP Policies
To improve performance or accuracy, you can limit a DLP policy to apply only to certain messages based on
the following criteria:
Option Description
You can limit the DLP policy to apply to messages that do or do not include
recipients or senders that you specify using one of the following:
• Full email address: user@example.com
• Partial email address: user@
• All users in a domain: @example.com
• All users in a partial domain: @.example.com
Separate multiple entries using a line break or a comma.
AsyncOS first matches the recipient or sender of an outgoing message to an
outgoing mail policy, then matches the sender or recipient to the sender and
recipient filters specified in the DLP policies enabled for that mail policy.
For example, you might want to disallow all senders from sending a certain
type of information, except to recipientsin a partner domain. You would create
a DLP policy for that information, including a filter that exempts all users in
the partner domain, then include this DLP policy in an Outgoing Mail Policy
that applies to all senders.
Filtering by Senders and
Recipients
You can limit the DLP policy to scanning only messages that do or do not
include specific attachment types. Choose an attachment category, then a
predefined file type, or specify file types that are not listed. If you specify a
file type that is not predefined, AsyncOS searches for the file type based on
the attachment’s extension.
You can also limit DLP scanning to attachments with a minimum file size.
Filtering by Attachment
Types
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
527
Data Loss Prevention
Viewing the Policies in Which Custom Content Classifiers are Used
Option Description
If you want to limit a DLP policy to messages containing a specific phrase,
you can use a message or content filter to search outgoing messages for the
phrase and insert a custom message tag into the message.For more information,
see Content Filter Actions, on page 282and Using Message Filters to Enforce
Email Policies, on page 131
Filtering by Message Tag
About Assessing Violation Severity
When the DLPscanning engine detects a potential DLPviolation, it calculates a risk factorscore that represents
the likelihood that the instance actually is a DLP violation. The policy compares the risk factor score to the
Severity Scale defined in that policy in order to determine the severity level (for example, Low or Critical.)
You specify the action to take for violations at each severity level (except Ignore, for which no action is ever
taken.) You can adjust the risk factor scores required to reach each severity level.
Related Topics
• Adjusting the Severity Scale , on page 528
Adjusting the Severity Scale
All policies have a default severity scale. You can adjust this scale for each policy.
For example, by default, a violation has a severity level of Critical if its risk factor score is between 90 and
100. However, for violations that match a particular policy, you may want increased sensitivity to potential
data loss. For this DLP policy, you could change the Critical severity level to any violation with a risk factor
score between 75 and 100.
Procedure
Step 1 Select Mail Policies > DLP Policy Manager.
Step 2 Click the name of the policy to edit.
Step 3 In the Severity Settings section, click Edit Scale.
Step 4 Use the scale’s arrows to adjust the scores for the severity levels.
Step 5 Click Done.
Step 6 In the Severity Scale table, verify that your scores are as you want them.
Step 7 Click Submit.
What to do next
Related Topics
• About Assessing Violation Severity , on page 528
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
528
Data Loss Prevention
About Assessing Violation Severity
Arranging the Order of the Email DLP Policies for Violation Matching
If a DLP violation matches more than one of the DLP policies enabled in the outgoing mail policy, only the
first matching DLP policy in the list is used.
Procedure
Step 1 On the DLP Policy Manager page, click Edit Policy Order.
Step 2 Click on the row for a policy you want to move and drag it to a new position in the order.
Step 3 Once you have finished reordering the policies, submit and commit your changes.
Associating DLP Policies with Outgoing Mail Policies
Related Topics
• Associating DLP Policies with the Default Outgoing Mail Policy , on page 529
• Using Outgoing Mail Policies to Assign DLP Policies to Senders and Recipients , on page 529
Associating DLP Policies with the Default Outgoing Mail Policy
The default outgoing mail policy is used when no other outgoing mail policy matchesthe sender or a recipient.
Before You Begin
Complete all activities up to this point in the table in How to Set Up Data Loss Prevention , on page 511. For
example, ensure that you have created the DLP policies that you want to include in the default Outgoing Mail
Policy.
Procedure
Step 1 Choose Mail Policies > Outgoing Mail Policies.
Step 2 In the Default Policy row of the table, click the Disabled link in the DLP column.
Step 3 Select Enable DLP (Customize Settings).
Step 4 Select the DLP policies to enable for the default outgoing mail policy.
Step 5 Submit and commit your changes.
What to do next
Choose the DLP policies for additional Outgoing Mail Policies. See Using Outgoing Mail Policies to Assign
DLP Policies to Senders and Recipients , on page 529.
Using Outgoing Mail Policies to Assign DLP Policies to Senders and Recipients
Specify which DLPpolicies apply to which senders and recipients by enabling them in outgoing mail policies.
You can use DLP policies only in outgoing mail policies.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
529
Data Loss Prevention
Arranging the Order of the Email DLP Policies for Violation Matching
Before You Begin
Configure the DLP policy settings for the default Outgoing Mail policy. See Associating DLP Policies with
the Default Outgoing Mail Policy , on page 529.
Procedure
Step 1 Choose Mail Policies > Outgoing Mail Policies.
Step 2 Click the link in the DLP column in any row of the table.
Step 3 Select the DLP policies to associate with this outgoing mail policy.
Step 4 Submit your changes.
Step 5 Repeat as needed for other Outgoing Mail Policies.
Step 6 Commit your changes.
What to do next
See How to Set Up Data Loss Prevention , on page 511.
Important Information About Editing or Deleting DLP Policies
Action Information
Editing a DLP policy If you rename a policy, you must re-enable it in your outgoing mail policies.
If you delete a policy, you will receive a notification if the DLP policy is used in
one or more outgoing mail policies. Deleting a DLP policy removes it from these
mail policies.
Deleting a DLP policy
Message Actions
You specify primary and secondary actions that the email gateway will take when it detects a possible DLP
violation in an outgoing message. Different actions can be assigned for different violation types and severities.
Primary actions include:
• Deliver
• Drop
• Quarantine
Secondary actions include:
• Sending a copy to a policy quarantine if you choose to deliver the message. The copy is a perfect clone
of the original, including the Message ID. Quarantining a copy allows you to test the DLP system before
deployment in addition to providing another way to monitor DLP violations. When you release the copy
from the quarantine, the email gateway delivers the copy to the recipient, who will have already received
the original message.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
530
Data Loss Prevention
Important Information About Editing or Deleting DLP Policies
• Encrypting messages. The email gateway only encryptsthe message body. It does not encrypt the message
headers.
• Altering the subject header of messages containing a DLP violation.
• Adding disclaimer text to messages.
• Sending messages to an alternate destination mailhost.
• Sending copies(bcc) of messagesto other recipients. (For example, you could copy messages with critical
DLP violations to a compliance officer’s mailbox for examination.)
• Sending a DLP violation notification message to the sender or other contacts, such as a manager or DLP
compliance officer. See Drafting DLP Notifications , on page 533.
These actions are not mutually exclusive: you can combine some of them within different DLP policies
for various processing needs for different user groups. You can also configure different treatments based
on the different severity levels in the same policy. For example, you may want to quarantine messages
with critical DLP violations and send a notification to a compliance officer, but you may want to deliver
messages with low severity levels.
Note
Related Topics
• Defining Actions to Take for DLP Violations (Message Actions) , on page 531
• Viewing and Editing Message Actions , on page 532
• Drafting DLP Notifications , on page 533
Defining Actions to Take for DLP Violations (Message Actions)
Before You Begin
• Create at least one dedicated quarantine to hold messages (or copies of messages) that violate DLP
policies.
This can be a local quarantine on an email gateway or a centralized quarantine on a Cisco Secure Email
and Web Manager.
For information, see Policy, Virus, and Outbreak Quarantines, on page 927
• If you want to encrypt messages before delivery, make sure you have set up an encryption profile. See
Cisco Email Encryption, on page 539
• To include disclaimer text when delivering messages with DLPviolations orsuspected violations,specify
disclaimer text in Mail Policies > Text Resources. For information, see Disclaimer Template, on page
655
• To send a notification to the sender of a DLP violation or to another person such as a compliance officer,
first create the DLP notification template. See Drafting DLP Notifications , on page 533.
Procedure
Step 1 Select Mail Policies > DLP Policy Customizations.
Step 2 In the Message Actions section, click Add Message Action.
Step 3 Enter a name for the message action.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
531
Data Loss Prevention
Defining Actions to Take for DLP Violations (Message Actions)
Step 4 Enter a description of the message action.
Step 5 Choose whether to drop, deliver, or quarantine messages containing DLP violations.
If you select Deliver, you can choose to have a copy of the message sent to a policy quarantine. The
copy of the message is a perfect clone, including the Message ID.
Note
Step 6 If you want to encrypt the message upon delivery or itsrelease from quarantine,select the Enable Encryption
check box and select the following options:
• Encryption Rule. Always encrypts the message or only encrypt it if an attempt to send it over a TLS
connection first fails.
• Encryption Profile. Encrypts the message using the specified encryption profile and delivers it if you
use a Cisco IronPort Encryption Appliance or a hosted key service.
• Encrypted Message Subject. Subject for the encrypted message. Use the value is $Subject to keep
the existing message subject.
Step 7 If you select Quarantine asthe action, choose the policy quarantine that you want to use for messages containing
DLP violations.
Step 8 Click Advanced if you want to modify the message using any of the following options:
• Add a custom header
• Modify the message subject
• Deliver it to alternate host
• Send a copy (bcc) to another recipient
• Send a DLP notification message
Step 9 Submit and commit your changes.
Viewing and Editing Message Actions
Procedure
Step 1 Select Mail Policies > DLP Policy Customizations.
Step 2 In the Message Actions section, choose an action:
To Do This
Click the Policies link in the heading of the Message
Actions table.
View the mail policies to which each action is
assigned
Click the Descriptionlink in the heading of the Message
Actions table.
View the description that you entered for each
action
View or edit details of a Message Action Click the name of the Message Action.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
532
Data Loss Prevention
Viewing and Editing Message Actions
To Do This
Click the trash can icon next to the message action you
want to delete.
A confirmation message notifies you if the message
action is used in one or more DLP policies.
Delete a Message Action
Click the Duplicate icon next to the message action that
you want to duplicate.
Duplicate a Message Action
You can use this feature to create a backup copy of
a Message Action before changing it, or to use as
a starting point for a new, similar Message Action.
Step 3 Submit and commit any changes.
Drafting DLP Notifications
Use this procedure to create a template for the notification that will be sent when an email message contains
information that violates your organization’s data loss prevention policies. You can send this notification to
the sender of the message that violated DLP policy, or to another address, for example a manager or DLP
Compliance officer.
Before You Begin
• Familiarize yourself with the DLP Notification Template Variable Definitions, on page 534. You can use
these variables to customize the notification with specific details about each violation.
Procedure
Step 1 Select Mail Policies > Text Resources.
Step 2 Click Add Text Resource.
Step 3 For Type, select DLP Notification Template.
DLP variables are not available for the plain Notification template.
Step 4 Enter notification text and variables.
The notification should inform its recipients that an outgoing message may contain sensitive data that violates
your organization’s data loss prevention policies.
What to do next
Specify this DLP notification template in a Message Action in a DLP policy in the DLP Policy Manager.
Related Topics
• DLP Notification Template Variable Definitions, on page 534
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
533
Data Loss Prevention
Drafting DLP Notifications
DLP Notification Template Variable Definitions
Use the following variables to include specific information about each DLP violation in the notification.
Variable Substituted With
$DLPPolicy Replaced by the name of the email DLP policy violated.
$DLPSeverity Replaced by the severity of violation. Can be “Low,” “Medium,” “High,” or “Critical.”
$DLPRiskFactor Replaced by the risk factor of the message’s sensitive material (score 0 - 100).
$To Replaced by the message To: header (not the Envelope Recipient).
$From Replaced by the message From: header (not the Envelope Sender).
$Subject Replaced by the subject of the original message.
$Date Replaced by the current date, using the format MM/DD/YYYY.
$Time Replaced by the current time, in the local time zone.
Replaced by the current time and date, as would be found in the Received: line of an
email message, using GMT.
$GMTimestamp
Replaced by the Message ID, or “MID” used internally to identify the message. Not
to be confused with the RFC822 “Message-Id” value (use $Header to retrieve that).
$MID
Replaced by the name of the sender group the sender matched on when injecting the
message. If the sender group had no name, the string “>Unknown<” is inserted.
$Group
Replaced by the IP Reputation score of the sender. If there is no reputation score, it is
replaced with “None”.
$Reputation
$filenames Replaced with a comma-separated list of the message’s attachments’ filenames.
$filetypes Replaced with a comma-separated list of the message's attachments' file types.
$filesizes Replaced with a comma-separated list of the message’s attachment’s file sizes.
$remotehost Replaced by the hostname of the system that sent the message to the Cisco appliance.
$AllHeaders Replaced by the message headers.
$EnvelopeFrom Replaced by the Envelope Sender (Envelope From, ) of the message.
$Hostname Replaced by the hostname of the email gateway.
$bodysize Replaced by the size, in bytes, of the message.
Replaced by the value of the quoted header, if the original message contains a matching
header. Note that double quotes may also be used.
$header[‘string ’]
$remoteip Replaced by the IP address of the system that sent the message to the email gateway.
$recvlistener Replaced by the nickname of the listener that received the message.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
534
Data Loss Prevention
DLP Notification Template Variable Definitions
Variable Substituted With
$dropped_filenames Same as $filenames , but displays list of dropped files.
$dropped_filename Returns only the most recently dropped filename.
$recvint Replaced by the nickname of the interface that received the message.
Replaced by the current time and date, as would be found in the Received: line of an
email message, in the local time zone.
$timestamp
$Time Replaced by the current time, in the local time zone.
$orgid Replaced by the SenderBase Organization ID (an integer value).
$enveloperecipients Replaced by all Envelope Recipients (Envelope To, ) of the message.
$dropped_filetypes Same as $filetypes , but displays list of dropped file types.
$dropped_filetype Returns only the file type of the most recently dropped file.
Displaying Sensitive DLP Data in Message Tracking
DLPdeployment offersthe option to log the content that violates your DLPpolicies, along with the surrounding
content, which can then be viewed in Message Tracking. This content may include sensitive data such as
credit card numbers and social security numbers.
Before You Begin
Enable Message Tracking. See Enabling Message Tracking, on page 915
Procedure
Step 1 Select Security Services > Data Loss Prevention.
Step 2 Click Edit Settings.
Step 3 Select the Enable Matched Content Logging check box.
Step 4 Submit and commit your changes.
What to do next
Specify which administrative users can view thisinformation.See Controlling AccesstoSensitive Information
in Message Tracking, on page 981.
Related Topics
• Message Tracking Details , on page 922
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
535
Data Loss Prevention
Displaying Sensitive DLP Data in Message Tracking
About Updating the DLP Engine and Content Matching
Classifiers
Updates for the Cisco DLP engine and the predefined content matching classifiers on your email gateway are
independent of updates for other security services.
Related Topics
• Determining the Current Version of the DLP Engine , on page 536
• Updating the DLP Engine and Content Matching Classifiers Manually , on page 536
• Enabling Automatic Updates (Not Recommended) , on page 537
• DLP Updates on Centralized (Clustered) Email Gateways , on page 537
Determining the Current Version of the DLP Engine
Procedure
Step 1 Select Security Services > Data Loss Prevention.
Step 2 Look in the Current DLP Version Files section.
You can also use the dlpstatus CLI command to view the current version of the DLP engine. See
the CLI Reference Guide for AsyncOS for Cisco Secure Email Gateway for more information.
Note
Updating the DLP Engine and Content Matching Classifiers Manually
Before you Begin
See the following:
• (If applicable) DLP Updates on Centralized (Clustered) Email Gateways , on page 537
Procedure
Step 1 Select Security Services > Data Loss Prevention.
Step 2 Click Update Now in the Current DLP Version Files section.
This button is available only when there are new updates available for download.
You can also use the dlpupdate CLI command to update the DLP engine. See the CLI Reference
Guide for AsyncOS for Cisco Secure Email Gateway for more information.
Note
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
536
Data Loss Prevention
About Updating the DLP Engine and Content Matching Classifiers
Enabling Automatic Updates (Not Recommended)
Use this procedure to enable the email gateway to check for and download updates at a regular interval.
Cisco recommends that you do not enable automatic updates. These updates may change the content
matching classifiers used in your DLP policies. Instead, manually download DLP updates and test them
in a lab environment before updating email gateways used in production.
Note
Before You Begin
• On the Security Settings > Service Updates page, make sure you have enabled automatic updates and
specified an update interval for all service updates.
• See DLP Updates on Centralized (Clustered) Email Gateways , on page 537.
Procedure
Step 1 Select Security Services > Data Loss Prevention.
Step 2 Click Edit Settings.
Step 3 Select the Enable automatic updates check box.
Step 4 Submit and commit your changes.
DLP Updates on Centralized (Clustered) Email Gateways
Note the following:
• You cannot enable automatic DLP updates for email gateways in clustered deployments.
• DLP updates are always performed at the machine level, irrespective of DLP configured at the cluster,
machine or group level.
• You can only check the status of an email gateway's DLP engine using the dlpstatus CLI command
at the machine level.
Working with DLP Incident Messages and Data
See also the documentation for the Cisco Secure Email and Web Manager, as applicable to your
deployment.
Note
To Do This
Search for messages containing DLP violations using See Tracking Messages, on page 915.
criteria such as DLP policy name, violation severity,
and action taken, and view details of messages found
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
537
Data Loss Prevention
Enabling Automatic Updates (Not Recommended)
To Do This
See Working with Messages in Policy, Virus, or
Outbreak Quarantines, on page 937.
View or manage messages that have been quarantined
as suspected DLP violations
See information about DLP Incident Summary
reports in Using Email Security Monitor, on page
833.
View a summary of DLP incidents
See information about DLPIncident reportsin Using
Email Security Monitor, on page 833.
View information about DLP violations discovered in
outgoing mail
Related Topics
• Displaying Sensitive DLP Data in Message Tracking , on page 535
• Controlling Access to Sensitive Information in Message Tracking, on page 981
Troubleshooting Data Loss Prevention
• DLP Fails to Detect Violations in Email Attachments, on page 538
DLP Fails to Detect Violations in Email Attachments
Problem
When using predefined DLP policies, DLP fails to detect violations in email attachments. This can be caused
by:
• The small value of the proximity parameter in the predefined DLP policies
Note You cannot change the proximity of a predefined DLP policy.
• The high severity scale parameter defined in the predefined DLP policies
Solution
• Create a custom policy and adjust the proximity as required. See Creating a Custom DLP Policy
(Advanced) , on page 516
• Lower the severity scale parameter of the predefined DLP policy. See Adjusting the Severity Scale , on
page 528
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
538
Data Loss Prevention
Troubleshooting Data Loss Prevention
CHAPTER 23
Cisco Email Encryption
This chapter contains the following sections:
• Overview of Cisco Email Encryption, on page 539
• How to Encrypt Messages with Cisco Secure Email Encryption Service, on page 540
• Encrypting Messages using the Email Gateway, on page 541
• Determining Which Messages to Encrypt, on page 546
• Inserting Encryption Headers into Messages, on page 549
Overview of Cisco Email Encryption
AsyncOS supports using encryption to secure inbound and outbound email. To use this feature, you create
an encryption profile that specifies characteristics of the encrypted message and connectivity information for
the Cisco Secure Email Encryption Service (managed service) key server.
Next, you create content filters, message filters, and Data LossPrevention policiesto determine which messages
to encrypt.
1. An outgoing message that meetsthe filter condition is placed in a queue on the email gateway for encryption
processing.
2. Once the message is encrypted, the key used to encrypt it is stored on the key server and the encrypted
message is queued for delivery.
3. If a temporary condition existsthat prohibitsthe encryption of emailsin the queue (i.e., temporary C-Series
busyness or Cisco Secure Email Encryption Service unavailability), messages are re-queued and retried
at a later time.
You can also set up the email gateway to first attempt to send a message over a TLS connection before
encrypting it. For more information, see Using a TLS Connection as an Alternative to Encryption, on
page 546.
Note
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
539
How to Encrypt Messages with Cisco Secure Email Encryption
Service
Table 43: How to Encrypt Messages with Cisco Secure Email Encryption Service
Steps Do This More Info
Step 1 Set up the Cisco IronPort Encryption appliance on the network. See Setup and Installation, on page 17
Enabling Message Encryption on the Email Gateway,
on page 542.
Step 2 Enable message encryption.
Configuring How the Key Service Handles Encrypted
Messages, on page 542.
Specify the encryption key server and the security settingsfor
the encrypted messages by creating an encryption profile.
Step 3
Define the conditions that messages must meet in order for Determining Which Messages to Encrypt, on page 546.
the email gateway to encrypt them.
Step 4
• Encrypting and Immediately Delivering Messages
using a Content Filter, on page 547.
or
• Encrypting a Message upon Delivery using a
Content Filter, on page 548.
Step 5 Determine when to encrypt messages in the email workflow.
Inserting Encryption Headers into Messages, on page
549.
Step 6 (Optional) Flag messages for additional security.
Create a mail policy.
See Mail Policies, on page 259
Define groups of users for whom you want to encrypt
messages.
Step 7
Associate the content filter with the mail policy.
See Mail Policies, on page 259
Associate the encryption actions that you defined with the
user groups you defined.
Step 8
Related Topics
• Encryption Workflow, on page 540
Encryption Workflow
When using email encryption, the email gateway encrypts a message and stores the message key on the Cisco
Secure Email Encryption Service (hosted key service). When the recipient opens an encrypted message, the
recipient is authenticated by the key service, and the decrypted message is displayed.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
540
Cisco Email Encryption
How to Encrypt Messages with Cisco Secure Email Encryption Service
Figure 34: Encryption Workflow
The basic workflow for opening encrypted messages is:
1. When you configure an encryption profile, you specify the parameters for message encryption. For an
encrypted message, the email gateway creates and stores a message key on the hosted key service (Cisco
Secure Email Encryption Service).
2. The recipient opens the secure envelope in a browser.
3. When a recipient opens an encrypted message in a browser, a password may be required to authenticate
the recipient’s identity. The key server returns the encryption key associated with the message.
When opening an encrypted email message for the first time, the recipient is required to register with
the key service to open the secure envelope. After registering, the recipient may be able to open encrypted
messages without authenticating, depending on settings configured in the encryption profile. The
encryption profile may specify that a password isn’t required, but certain features will be unavailable.
Note
4. The decrypted message is displayed.
Encrypting Messages using the Email Gateway
To use encryption with the email gateway, you must configure an encryption profile. You can enable and
configure an encryption profile using the encryptionconfig CLI command, or via Security Services > Cisco
IronPort Email Encryption in the GUI.
If PXE and S/MIME encryption is enabled on the email gateway, AsyncOS encrypts messages using
S/MIME first, and then using PXE.
Note
Related Topics
• Enabling Message Encryption on the Email Gateway, on page 542
• Configuring How the Key Service Handles Encrypted Messages, on page 542
• Configuring the Default Locale of the Envelope, on page 545
• Updating to the Latest Version of the PXE Engine, on page 546
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
541
Cisco Email Encryption
Encrypting Messages using the Email Gateway
Enabling Message Encryption on the Email Gateway
Procedure
Step 1 Click Security Services > Cisco IronPort Email Encryption.
Step 2 Click Enable.
Step 3 (Optional) Click Edit Settings to configure the following options:
• The maximum message size to encrypt. Cisco’s recommended message size is 10 MB. The maximum
message size the email gateway will encrypt is 25 MB.
Encrypting messageslarger than the recommended 10 MB limit may slow down the performance
of the email gateway. If you are using the Cisco Registered EnvelopeService, message recipients
will be unable to reply to an encrypted message that has attachments larger than 10 MB.
Note
• Email address of the encryption account administrator. When you provision an Encryption Profile, this
email address is registered automatically with the encryption server.
• Configure a proxy server.
You can configure the preferred storage to store a copy of the encrypted envelope by enabling the
Read from Message feature in the Secure Emali Encryption Service admin portal. The following
storage options are available:
• Cisco Storage
• Microsoft OneDrive Storage
For more details, see the Cisco Secure Email Encryption Service Account Administrator Guide on
this page.
Note
Configuring How the Key Service Handles Encrypted Messages
You can create one or more encryption profiles if you use a key service. You might want to create different
encryption profiles if you want to use different levels of security for different groups of email. For example,
you might want messages containing sensitive material to be sent with high security, but other messages to
be sent with medium security. In this case, you might create a high security encryption profile to associate
with the messages containing certain key words (such as ‘confidential’), and create another encryption profile
for other outgoing messages.
You can assign an encryption profile to a custom user role to allow delegated administrators assigned to that
role to use the encryption profile with their DLP policies and content filters. Only administrators, operators,
and delegated users can use encryption profiles when configuring DLPpolicies and content filters. Encryption
profiles that are not assigned to a custom role are available for use by all delegated administrators with mail
or DLP policy privileges. See Distributing Administrative Tasks, on page 977 for more information.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
542
Cisco Email Encryption
Enabling Message Encryption on the Email Gateway
You can configure multiple encryption profilesfor a hosted key service. If your organization has multiple
brands, this allows you to reference different logos stored on the key server for the PXE envelopes.
Note
An encryption profile stores the following settings:
• Key server settings. Specify a key server and information for connecting to that key server.
• Envelope settings. Specify details about the message envelope, such as the level of security, whether to
return read receipts, the length of time a message is queued for encryption before it times out, the type
of encryption algorithm to use, and whether to enable a decryption applet to run on the browser.
• Message settings.Specify details about messages, such as whether to enable secure message forwarding
and secure Reply All.
• Notification settings. Specify the notification template to use for text and HTML notifications, as well
as encryption failure notifications. You create the templates in text resources and select the templates
when creating the encryption profile. You can also localize envelopes and specify a message subject for
encryption failure notifications. For more information about notifications, see Encryption Notification
Templates, on page 664 and Bounce and Encryption Failure Notification Templates, on page 663.
Procedure
Step 1 In the Email Encryption Profiles section, click Add Encryption Profile.
Step 2 Enter a name for the Encryption Profile.
Step 3 Click the Used By (Roles) link, select the custom user role you want to have access to the encryption profile,
and click OK.
Delegated administrators assigned to this custom role can use the encryption profile for any DLP policies and
content filters for which they are responsible.
Step 4 In the Key Server Settings section, select Cisco Secure Email Encryption Service (hosted key service).
Step 5 If you select the Cisco Secure Email Encryption Service, enter the URL for the hosted key service. The key
service URL is https://res.cisco.com .
Step 6 Click Advanced under Key Server Settings to specify whether to use HTTP or HTTPS for transferring the
envelope’s encrypted payload when the recipient opens the envelope. Choose from one of the following:
• Use the Key Service with HTTP. Transfers the encrypted payload from the key service using HTTP
when the recipient opens the envelope. For Cisco Secure Email Encryption Service, this is the URL you
specified in Step 5.
• Since the payload is already encrypted, transporting it over HTTP is safe and faster than sending over
HTTPS. This provides better performance than sending image requests over HTTPS.
• Use the Key Service with HTTPS. Transfers the encrypted payload from the key service using HTTPS
when the recipient opens the envelope. For Cisco Secure Email Encryption Service, this is the URL you
specified in Step 5.
• Specify a separate URL forpayloadtransport. If you don’t want to use the key server for your encrypted
payload, you can use another URL and specify whether to use HTTP or HTTPS for the payload transfer.
Step 7 In the Envelope Settings section, select the level of message security:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
543
Cisco Email Encryption
Configuring How the Key Service Handles Encrypted Messages
• High Security. The recipient must always enter a passphrase to open encrypted messages.
• Medium Security. The recipient does not need to enter credentials to open the encrypted message if the
recipient credentials are cached.
• No Passphrase Required. This is the lowest level of encrypted message security. The recipient does
not need to enter a passphrase to open the encrypted message. You can still enable the read receipts,
Secure Reply All, andSecure MessageForwarding featuresfor envelopesthat are not passphrase-protected.
Step 8 To enable users to open your organization’s URL by clicking its logo, you can add a link to the logo. Choose
from the following options:
• No link. A live link is not added to the message envelope.
• Custom link URL. Enter the URL to add a live link to the message envelope.
Step 9 (Optional) Enable read receipts. If you enable this option, the sender receives a receipt when recipients open
the secure envelope.
Step 10 (Optional) Click Advanced under Envelope Settings to configure the following settings:
• Enter the length of time (in seconds) that a message can be in the encryption queue before timing out.
Once a message times out, the email gateway bounces the message and sends a notification to the sender.
• Select an encryption algorithm - 'AES 192' or 'AES 256.'
AES provides stronger encryption but also takes longer to decrypt, introducing delays for
recipients. AES is typically used in government and banking applications.
Note
• Enable or disable the decryption applet. Enabling this option causesthe message attachment to be opened
in the browser environment. Disabling this option causes message attachments to be decrypted at the
key server. If you disable this option, messages may take longer to open, but are not dependent on the
browser environment.
Step 11 In the Message Settings section, do the following:
• To enable secure reply all feature, check the Enable Secure Reply All check box.
• To enable secure message forwarding feature, check the Enable Secure Message Forwarding check
box.
Step 12 (Optional) If you have selected Cisco Secure Email Encryption Service and this service supports localization
of envelopes, enable localization of envelopes. In Notification Settings section, check the Use Localized
Envelope check box.
If you enable localization of envelopes, you cannot select encrypted message HTML or text
notification.
Note
If you want to set the default locale of the envelope, see Configuring the Default Locale of the Envelope, on
page 545.
Step 13 Select the HTML and text notification templates.
The key server uses an HTML or text notification based on the recipient’s email application. You
must configure notifications for both.
Note
Do the following:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
544
Cisco Email Encryption
Configuring How the Key Service Handles Encrypted Messages
a) Select an HTML notification template. Choose from HTML notifications you configured in text resources.
If you did not configure a template, the system uses the default template.
b) Select a text notification template. Choose from text notifications you configured in text resources. If you
did not configure a template, the system uses the default template.
Note These options are unavailable if you use localized envelopes.
Step 14 Enter a subject header for encryption failure notifications. The email gateway sends a notification if the
encryption process times out.
Step 15 Select an encryption failure notification template for the message body. Choose from an encryption failure
notification template you configured in text resources. If you did not configure a template, the system uses
the default template.
Step 16 Submit and commit your changes.
Step 17 If you use Cisco Registered Envelope Service, you must take the additional step of provisioning your email
gateway. Provisioning the email gateway registers the encryption profile with the hosted key service. To
provision the email gateway, click the Provision button for the encryption profile you want to register.
Configuring the Default Locale of the Envelope
The default locale of the envelope is English. If you have selected Cisco Secure Email Encryption Service
and this service supports localization of envelopes, you can change the locale of the envelope to any one of
the following:
• English
• French
• German
• Japanese
• Portuguese
• Spanish
• Italian
• Korean
• Dutch
• Polish
• Russian
• Chinese
Before You Begin
• Create an encryption profile with Cisco Secure Email Encryption Service as Key Service Type and
envelope localization enabled. See Configuring How the Key Service Handles Encrypted Messages, on
page 542.
• Make sure that Cisco Secure Email Encryption Service supports localization of envelopes.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
545
Cisco Email Encryption
Configuring the Default Locale of the Envelope
Procedure
Step 1 Click Security Services > Cisco IronPort Email Encryption.
Step 2 Open an existing encryption profile.
Step 3 In the Notification Settings section, choose the locale from the Localized Envelopes drop-down list.
Step 4 Click Submit.
Step 5 Click Commit Changes.
Updating to the Latest Version of the PXE Engine
The Cisco Email Encryption Settings page displays the current versions of the PXE engine and the Domain
Mappings file used by your email gateway. You can use the Security Services > Service Updates page (or
the updateconfig command in the CLI) to configure the email gateway to automatically update thePXE engine.
For more information, see Service Updates , on page 1033.
You can also manually update the engine using the Update Now button of the PXE Engine Updates section
of IronPort Email Encryption Settings page (or the encryptionupdate command in the CLI).
Determining Which Messages to Encrypt
After you create an encryption profile, you need to create an outgoing content filter that determines which
email messages should be encrypted. The content filter scans outgoing email and determines if the message
matches the conditions specified. Once the content filter determines a message matches the condition, the
email gateway encrypts the message and sends the generated key to the key server. It uses settings specified
in the encryption profile to determine the key server to use and other encryption settings.
You can also encrypt messages after they are released after Data Loss Prevention scanning. For more
information, see Defining Actions to Take for DLP Violations (Message Actions) , on page 531.
Related Topics
• Using a TLS Connection as an Alternative to Encryption, on page 546
• Encrypting and Immediately Delivering Messages using a Content Filter, on page 547
• Encrypting a Message upon Delivery using a Content Filter, on page 548
Using a TLS Connection as an Alternative to Encryption
Based on the destination controls specified for a domain, your email gateway can securely relay a message
over a TLS connection instead of encrypting it, if a TLS connection is available. The email gateway decides
whether to encrypt the message or send it over a TLS connection based on the TLS setting in the destination
controls (Required, Preferred, or None) and the action defined in the encryption content filter.
When creating the content filter, you can specify whether to always encrypt a message or to attempt to send
it over a TLS connection first, and if a TLS connection is unavailable, to encrypt the message. The following
table shows you how an email gatewaywillsend a message based on the TLSsettingsfor a domain’s destination
controls, if the encryption control filter attempts to send the message over a TLS connection first.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
546
Cisco Email Encryption
Updating to the Latest Version of the PXE Engine
Table 44: TLS Support on Email Gateways
Destination Controls TLS Action if TLSConnection Available Action if TLSConnection Unavailable
Setting
None Encrypt envelope and send Encrypt envelope and send
TLS Preferred Send over TLS Encrypt envelope and send
TLS Required Send over TLS Retry/bounce message
For more information about enabling TLS on destination controls, see Configuring the Gateway to Receive
Email, on page 69.
Encrypting and Immediately Delivering Messages using a Content Filter
Before You Begin
• To understand the concept of building conditions for content filters, see Overview of Content Filters ,
on page 273.
• (Optional) See Inserting Encryption Headers into Messages, on page 549.
Procedure
Step 1 Go to Mail Policies > Outgoing Content Filters.
Step 2 In the Filters section, click Add Filter.
Step 3 In the Conditions section, click Add Condition.
Step 4 Add a condition to filter the messages that you want to encrypt. For example, to encrypt sensitive material,
you might add a condition that identifies messages containing particular words or phrases, such as
“Confidential,” in the subject or body.
Step 5 Click OK.
Step 6 Optionally, click Add Action and select Add Header to insert an encryption header into the messages to
specify an additional encryption setting.
Step 7 In the Actions section, click Add Action.
Step 8 Select Encrypt and Deliver Now (Final Action) from the Add Action list.
Step 9 Select whether to always encrypt messages that meet the condition or to only encrypt messages if the attempt
to send it over a TLS connection fails.
Step 10 Select the encryption profile to associate with the content filter.
The encryption profile specifies settings about the key server to use, levels of security, formatting of the
message envelope, and other message settings. When you associate an encryption profile with the content
filter, the content filter uses these stored settings to encrypt messages.
Step 11 Enter a subject for the message.
Step 12 Click OK.
The content filter in the following figure shows a content filter that searches for ABA content in the message
body. The action defined for the content filter specifies that the email is encrypted and delivered.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
547
Cisco Email Encryption
Encrypting and Immediately Delivering Messages using a Content Filter
Figure 35: Encryption Content Filter
Step 13 After you add the encrypt action, click Submit.
Step 14 Commit your changes.
What to do next
After you add the content filter, you need to add the filter to an outgoing mail policy. You may want to enable
the content filter on the default policy, or you may choose to apply the filter to a specific mail policy, depending
on your organization’s needs.For information about working with mail policies,see Overview of MailPolicies,
on page 259.
Encrypting a Message upon Delivery using a Content Filter
Create a content filter to encrypt a message on delivery, which means that the message continues to the next
stage of processing, and when all processing is complete, the message is encrypted and delivered.
Before You Begin
• To understand the concept of building conditions for content filters, see Overview of Content Filters ,
on page 273.
• (Optional) See Inserting Encryption Headers into Messages, on page 549.
Procedure
Step 1 Go to Mail Policies > Outgoing Content Filters.
Step 2 In the Filters section, click Add Filter.
Step 3 In the Conditions section, click Add Condition.
Step 4 Add a condition to filter the messages that you want to encrypt. For example, to encrypt sensitive material,
you might add a condition that identifies messages containing particular words or phrases, such as
“Confidential,” in the subject or body.
Step 5 Click OK.
Step 6 Optionally, click Add Action and select Add Header to insert an encryption header into the messages to
specify an additional encryption setting.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
548
Cisco Email Encryption
Encrypting a Message upon Delivery using a Content Filter
Step 7 In the Actions section, click Add Action.
Step 8 Select Encrypt on Delivery from the Add Action list.
Step 9 Select whether to always encrypt messages that meet the condition or to only encrypt messages if the attempt
to send it over a TLS connection fails.
Step 10 Select the encryption profile to associate with the content filter.
The encryption profile specifies settings about the key server to use, levels of security, formatting of the
message envelope, and other message settings. When you associate an encryption profile with the content
filter, the content filter uses these stored settings to encrypt messages.
Step 11 Enter a subject for the message.
Step 12 Click OK.
Step 13 After you add the encrypt action, click Submit.
Step 14 Commit your changes.
What to do next
After you add the content filter, you need to add the filter to an outgoing mail policy. You may want to enable
the content filter on the default policy, or you may choose to apply the filter to a specific mail policy, depending
on your organization’s needs.For information about working with mail policies,see Overview of MailPolicies,
on page 259.
Inserting Encryption Headers into Messages
AsyncOS enables you to add encryption settings to a message by inserting an SMTP header into a message
using either a content filter or a message filter. The encryption header can override the encryption settings
defined in the associated encryption profile, and it can apply specified encryption features to messages.
Note The Cisco Ironport Encryption appliance must be set up to handle flagged messages.
Procedure
Step 1 Go to Mail Policies > Outgoing Content Filters or Incoming Content Filters.
Step 2 In the Filters section, click Add Filter.
Step 3 In the Actions section, click Add Action and select Add/Edit Header to insert an encryption header into the
messages to specify an additional encryption setting.
For example, if you want a Registered Envelope to expire in 24 hours after you send it, type
X-PostX-ExpirationDate as the header name and +24:00:00 as the header value.
What to do next
Related Topics
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
549
Cisco Email Encryption
Inserting Encryption Headers into Messages
• Encryption Headers, on page 550
• Encryption Headers Examples, on page 551
• For more information about creating an encryption content filter, see Encrypting and Immediately
Delivering Messages using a Content Filter, on page 547.
• For information about inserting a header using a message filter, see Using Message Filters to Enforce
Email Policies, on page 131.
Encryption Headers
The following table displays the encryption headers that you can add to messages.
Table 45: Email Encryption Headers
MIME Header Description Value
A Boolean for whether to display the Reply button.
Set to true to display the button. The default value
is false .
Indicates whether to enable secure reply for the
message and displays the Reply button in the
message bar. This header adds an encryption setting
to the message.
X-PostX-Reply- Enabled
A Boolean for whether to display Reply All button.
Set to true to display the button. The default value
is false .
Indicates whether to enable secure “reply all” for the
message and displays the Reply All button in the
message bar. This header overridesthe default profile
setting.
X-PostX-Reply-AllEnabled
A Boolean for whether to display the Forward
button. Set to true to display the button. The
default value is false .
Indicates whether to enable secure message
forwarding and displays the Forward button in the
message bar. This header overridesthe default profile
setting.
X-PostX-ForwardEnabled
A Boolean for whether to send a read receipt. Set
to true to display the button. The default value is
false .
Indicates whether to enable read receipts. The sender
receives a receipt when recipients open the Secure
Envelope. This header overrides the default profile
setting.
X-PostX-Send-ReturnReceipt
A string value containing relative date or time.
Use the +HH:MM:SS format for relative hours,
minutes, and seconds, and the +D format for
relative days. By default, there is no expiration
date.
Defines a Registered Envelope’s expiration date
before sending it. The key server restricts access to
the Registered Envelope after the expiration date.
The Registered Envelope displays a message
indicating that the message has expired. This header
adds an encryption setting to the message.
If you use Cisco Registered Envelope Service, you
can log in to the website at http://res.cisco.com and
use the message management features to set, adjust,
or eliminate the expiration dates of messages after
you send them.
X-PostX-Expiration Date
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
550
Cisco Email Encryption
Encryption Headers
MIME Header Description Value
A string value containing relative date or time.
Use the +HH:MM:SS format for relative hours,
minutes, and seconds, and the +D format for
relative days. By default, there is no expiration
date.
Defines the Registered Envelope’s “read by” date
before sending it. The local key server generates a
notification if the Registered Envelope has not been
read by this date. Registered Envelopes with this
header do not work with Cisco Registered Envelope
Service, only a local key server. This header adds an
encryption setting to the message.
X-PostX-ReadNotification
Date
A Boolean for whether to disable the decryption
applet.Set to true to disable the applet. The default
value is false .
Indicates whether to disable the decryption applet.
The decryption applet causes message attachments
to be opened in the browser environment. Disabling
the applet causes the message attachment to be
decrypted at the key server. If you disable this option,
messages may take longer to open, but they are not
dependent on the browser environment. This header
overrides the default profile setting.
X-PostX-Suppress-AppletFor-Open
A Boolean for whether the JavaScript applet
should be included or not. Set to false to send a
JavaScript-free envelope. The default value istrue
.
Indicates whether to send JavaScript-free envelopes.
A JavaScript-free envelope is a Registered Envelope
that does not include the JavaScript that is used to
open envelopes locally on the recipient's computer.
The recipient must use either the Open Online
method or the Open by Forwarding method to view
the message. Use this header if a recipient domain's
gateway strips JavaScript and makes the encrypted
message unopenable.This header adds an encryption
setting to the message.
X-PostX-Use-Script
A Boolean for whether to enable envelope key
caching and display the “Remember the password
for this envelope” check box. The default value is
false .
Indicates whether to allow envelope-specific key
caching for offline opening of envelopes. With
envelope key caching, the decryption key for a
particular envelope is cached on the recipient’s
computer when the recipient enters the correct
passphrase and selectsthe “Remember the password
for this envelope” check box. After that, the recipient
does not need to enter a passphrase again to reopen
the envelope on the computer. This header adds an
encryption setting to the message.
X-PostX-Remember-Envelope
-Key-Checkbox
Encryption Headers Examples
This section provides examples of encryption headers.
Related Topics
• Enabling JavaScript-Free Envelopes, on page 552
• Enabling Envelope Key Caching for Offline Opening, on page 552
• Enabling Message Expiration, on page 552
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
551
Cisco Email Encryption
Encryption Headers Examples
• Disabling the Decryption Applet, on page 552
Enabling Envelope Key Caching for Offline Opening
To send a Registered Envelope with envelope key caching enabled, insert the following header into the
message:
X-PostX-Remember-Envelope-Key-Checkbox: true
The “Remember the password for this envelope” check box is displayed on the Registered Envelope.
Enabling JavaScript-Free Envelopes
To send a Registered Envelope that is JavaScript-free, insert the following header into the message:
X-PostX-Use-Script: false
When the recipient opens the securedoc.html attachment, the Registered Envelope is displayed with an Open
Online link, and the Open button is disabled.
Enabling Message Expiration
To configure a message so that it expires 24 hours after you send it, insert the following header into the
message:
X-PostX-ExpirationDate: +24:00:00
The recipient can open and view the content of the encrypted message during the 24-hour period after you
send it. After that, the Registered Envelope displays a message indicating that the envelope has expired.
Disabling the Decryption Applet
To disable the decryption applet and have the message attachment decrypted at the key server, insert the
following header into the message:
X-PostX-Suppress-Applet-For-Open: true
The message may take longer to open when you disable the decryption applet, but it is not dependent
on the browser environment.
Note
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
552
Cisco Email Encryption
Enabling Envelope Key Caching for Offline Opening
CHAPTER 24
S/MIME Security Services
This chapter contains the following sections:
• Overview of S/MIME Security Services, on page 553
• S/MIME Security Services in Email Gateway, on page 553
• Signing, Encrypting, or Signing and Encrypting Outgoing Messages using S/MIME, on page 557
• Verifying, Decrypting, or Decrypting and Verifying Incoming Messages using S/MIME, on page 567
• S/MIME Certificate Requirements, on page 573
• Managing Public Keys, on page 574
Overview of S/MIME Security Services
Secure/Multipurpose Internet Mail Extensions(S/MIME) is a standards-based method forsending and receiving
secure, verified email messages. S/MIME uses public/private key pair to encrypt or sign messages. This way,
• If the message is encrypted, only the message recipient can open the encrypted message.
• If the message is signed, the message recipient can validate the identity of the sender’s domain and can
be assured that the message has not been altered while in transit.
For more information about S/MIME, review the following RFCs:
• RFC 5750: Secure/Multipurpose Internet Mail Extensions (S/MIME) Version 3.2 - Certificate Handling
• RFC 5751:Secure/Multipurpose Internet Mail Extensions(S/MIME) Version 3.2 - MessageSpecification
• RFC 3369: Cryptographic Message Syntax
S/MIME Security Services in Email Gateway
Organizations may want to communicate securely using S/MIME without requiring that all end users possess
their own certificates.For such organizations, the email gateway supportsS/MIME security services (signing,
encryption, verification, and decryption) at the gateway level using certificates that identify the organization
rather than the individual user.
The email gateway provides the following S/MIME security services for Business-to-Business (B2B) and
Business-to-Consumer (B2C) scenarios:
• Sign, encrypt, or sign and encrypt messages using S/MIME. See Signing, Encrypting, or Signing and
Encrypting Outgoing Messages using S/MIME, on page 557.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
553
• Verify, decrypt, or decrypt and verify messages usingS/MIME.See Verifying, Decrypting, or Decrypting
and Verifying Incoming Messages using S/MIME, on page 567.
Related Topics
• Understanding How S/MIME Security Services Works, on page 554
Understanding How S/MIME Security Services Works
• Scenario: Business-to-Business, on page 554
• Scenario: Business-to-Consumer, on page 556
Scenario: Business-to-Business
Organizations A and B want all the messages communicated between them to be signed and encrypted using
S/MIME. Organization A has configured Cisco Secure Email Gateway to perform S/MIME security services
at the gateway level. Organization B has configured a third-party application to perform S/MIME security
services at the gateway level.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
554
S/MIME Security Services
Understanding How S/MIME Security Services Works
The current example assumes that organization B is using a third-party application to perform S/MIME
security services. In the real world, this can be any application or email gateway (including CiscoSecure
Email Gateway) that can perform S/MIME security services at the gateway level.
Note
Organization A sending a message to Organization B:
1. Bob (Organization A) uses an email client to send an unsigned and unencrypted message to Dave
(Organization B).
2. Cisco Secure Email Gateway in the Organization A signs and encrypts the messages and sends it to
Organization B.
3. The third-party application at the gateway of Organization B decrypts and verifies the message.
4. Dave receives an unencrypted and signed message.
Organization B sending a message to Organization A:
1. Dave (Organization B) uses an email client to send an unsigned and unencrypted message to Bob
(Organization A).
2. The third-party application at the gateway of Organization B signs and encrypts the message and sends
it to Organization A.
3. Cisco Secure Email Gateway in the Organization A decrypts and verifies the message.
4. Bob receives an unencrypted and signed message.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
555
S/MIME Security Services
Scenario: Business-to-Business
Scenario: Business-to-Consumer
Organizations A and B want all the messages communicated between them to be signed and encrypted using
S/MIME. Organization A has configured Cisco Secure Email Gateway to perform S/MIME security services
at the gateway level. Organization B has configured the email clients of all the users to perform S/MIME
security services.
Organization A sending a message to Organization B:
1. Alice (Organization A) uses an email client to send an unsigned and unencrypted message to Erin
(Organization B).
2. Secure Email Gateway in the Organization A signs and encryptsthe messages and sendsit to Organization
B.
3. The email client in the Organization B decrypts and verifies the message and displays it to Erin.
Organization B sending a message to Organization A:
1. Erin (Organization B) usesthe email client to sign and encrypt a message and sendsit to Alice (Organization
A).
2. Secure Email Gateway in the Organization A decrypts and verifies the message.
3. Alice receives an unencrypted and unsigned message.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
556
S/MIME Security Services
Scenario: Business-to-Consumer
Signing, Encrypting, or Signing and Encrypting Outgoing
Messages using S/MIME
• S/MIME Signing and Encryption Workflow in Email Gateway, on page 557
• How to Sign, Encrypt, or Sign and Encrypt Outgoing Messages using S/MIME, on page 558
• Setting Up Certificates for S/MIME Signing, on page 559
• Setting Up Public Keys for S/MIME Encryption, on page 561
• Managing S/MIME Sending Profiles, on page 563
• Determining Which Messages to Sign, Encrypt, or Sign and Encrypt, on page 565
• Signing, Encrypting, or Signing and Encrypting and Immediately Delivering Messages using a Content
Filter, on page 566
• Signing, Encrypting, orSigning and Encrypting a Message upon Delivery using a ContentFilter, on page
566
Note You can use the email gateway to sign, encrypt, and sign and encrypt outgoing and incoming messages.
S/MIME Signing and Encryption Workflow in Email Gateway
• S/MIME Signing Workflow, on page 557
• S/MIME Encryption Workflow, on page 557
S/MIME Signing Workflow
The following process describes how the email gateway performs S/MIME signing.
1. Apply a hash algorithm to the message to create a message digest.
2. Encrypt the message digest using private key of the email gateway's S/MIME certificate.
3. Create a PKCS7 signature with the encrypted message digest and public key of the email gateway's
S/MIME certificate.
4. Sign the message by attaching the PKCS7 signature to the message.
5. Send the signed message to the recipient.
S/MIME Encryption Workflow
The following process describes how the email gateway performs S/MIME encryption.
1. Create a pseudo-random session key.
2. Encrypt the message body using the session key.
3. Encrypt the session key using the public key of the recipient's (gateway or consumer)S/MIME certificate.
4. Attach the encrypted session key to the message.
5. Send the encrypted message to the recipient.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
557
S/MIME Security Services
Signing, Encrypting, or Signing and Encrypting Outgoing Messages using S/MIME
If PXE and S/MIME encryption is enabled on the email gateway, it encrypts messages using S/MIME
first, and then using PXE.
Note
How to Sign, Encrypt, or Sign and Encrypt Outgoing Messages using S/MIME
Steps Do This More Info
SeeS/MIME Certificate Requirements, on
page 573.
Step 1 Understand the S/MIME certificate requirements.
See:
• Setting Up Certificates for S/MIME
Signing, on page 559
• Setting Up Public Keys for S/MIME
Encryption, on page 561
Depending on your requirements, do one of the
following:
• For S/MIME signing, set up an S/MIME
signing certificate.
• For S/MIME encryption, set up the public
key of the recipient’s S/MIME certificate.
• For S/MIME signing and encryption, set up
anS/MIME signing certificate and the public
key of the recipient’s S/MIME certificate,
respectively.
Step 2
See Create anS/MIME SendingProfile for
Signing, Encrypting, or Signing and
Encrypting Messages, on page 564.
Create a profile forsigning, encrypting, orsigning
and encrypting messages.
Step 3
See Determining Which MessagestoSign,
Encrypt, orSign and Encrypt, on page 565.
Define the conditions that messages must meet in
order for the email gateway to sign, encrypt, or
sign and encrypt them.
Step 4
See:
• Signing, Encrypting, or Signing and
Encrypting and Immediately
Delivering Messages using a Content
Filter, on page 566
• Signing, Encrypting, or Signing and
Encrypting a Message upon Delivery
using a Content Filter, on page 566
Determine when in the email workflow to sign,
encrypt, or sign and encrypt messages.
Step 5
Create a mail policy.
See Mail Policies, on page 259
Define groups of users for whom you want to sign
or encrypt messages.
Step 6
Associate the content filter with the mail
policy.
See Mail Policies, on page 259
Associate the signing or encryption actions that
you defined with the user groups you defined.
Step 7
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
558
S/MIME Security Services
How to Sign, Encrypt, or Sign and Encrypt Outgoing Messages using S/MIME
If you want to perform S/MIME signing, encryption, or signing and encryption using CLI, use the
smimeconfig command. See CLI Reference Guide for AsyncOS for Cisco Secure Email Gateway.
Note
Setting Up Certificates for S/MIME Signing
You mustset up anS/MIME certificate forsigning messages. The email gateway allows you to set upS/MIME
signing certificates using one of the following methods:
• Create a self-signed S/MIME certificate using the email gateway. See Creating a Self-Signed S/MIME
Certificate, on page 559.
• Import an existingS/MIME certificate to the email gateway.See Importing anS/MIME Signing Certificate,
on page 560.
Cisco recommends that you use self-signed S/MIME certificates for sending signed messages to the
users within your organization or in a testing environment. For sending signed messages to external
users or in a production environment, use a valid S/MIME certificate obtained from a trusted CA.
Note
For understanding the certificate requirements for S/MIME, see S/MIME Certificate Requirements, on page
573.
Creating a Self-Signed S/MIME Certificate
You can generate self-signed S/MIME certificates that are compliant to RFC 5750 (Secure/Multipurpose
Internet Mail Extensions (S/MIME) Version 3.2 - Certificate Handling) using the web interface or CLI.
Cisco recommends that you use self-signed S/MIME certificates for sending signed messages to the
users within your organization or in a testing environment.
Note
Procedure
Step 1 Click Network > Certificates.
Step 2 Click Add Certificate.
Step 3 Choose Create Self-Signed S/MIME Certificate.
Step 4 Enter the following information for the self-signed certificate:
Common Name The fully qualified domain name.
Organization The exact legal name of the organization.
Organizational Unit Section of the organization.
City (Locality) The city where the organization is legally located.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
559
S/MIME Security Services
Setting Up Certificates for S/MIME Signing
Common Name The fully qualified domain name.
State (Province) The state, county, or region where the organization islegally located.
The two letter ISO abbreviation of the country where the
organization is legally located.
Country
Duration before expiration The number of days before the certificate expires.
If you configure this field, any user from the specified domain can
send signed messages.
Name of the domain from which you plan to send signed messages.
Examples include domain.com and *.domain.net . For multiple
entries, use a comma-separated list.
Subject Alternative Name(Domains)
If you configure this field, only the specified users can send signed
messages.
Email address of the user who is planning to send signed messages,
for example, user@somedomain.com . For multiple entries, use a
comma-separated list.
Subject Alternative Name(Email)
Size of the private key to generate the certificate signing request
(CSR).
Private Key Size
An S/MIME signing certificate can contain both Subject Alternative Name (Domains) and Subject
Alternative Name (Email).
Note
Step 5 Click Next to view the certificate and signature information.
Step 6 Depending on your requirements, do the following:
• Select the FQDN Validation check box to allow the email gateway to check whether the 'Common
Name,' 'SAN: DNS Name' fields, or both present in the certificate, are in the FQDN format.
• Enter a name for the certificate.
• If you want to submit a CSR for the self-signed certificate to a certificate authority, click Download
Certificate Signing Request to save the CSR in PEM format to a local or network machine.
Step 7 Submit and commit your changes.
What to do next
Note Use the certconfig command to generate self-signed S/MIME certificates using CLI.
Importing an S/MIME Signing Certificate
If you already have an S/MIME certificate for signing messages, you can add it to the email gateway by
importing it.
Before You Begin
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
560
S/MIME Security Services
Importing an S/MIME Signing Certificate
Make sure that the S/MIME certificate that you plan to import meets the requirements described in S/MIME
Certificate Requirements, on page 573.
Procedure
Step 1 Click Network > Certificates.
Step 2 Click Add Certificate.
Step 3 Choose Import Certificate.
Step 4 Enter the path to the certificate file on your network or local machine.
Step 5 Enter the passphrase for the file.
Step 6 Click Next to view the certificate’s information.
Step 7 [Optional]Select the FQDN Validationcheck box to allow the email gateway to check whether the 'Common
Name,' 'SAN: DNS Name' fields, or both present in the certificate, are in the FQDN format.
Step 8 Enter a name for the certificate.
Step 9 Submit and commit your changes.
What to do next
Note Use the certconfig command to import S/MIME certificates using CLI.
Setting Up Public Keys for S/MIME Encryption
You must add the public key of the recipient'sS/MIME certificate to the email gateway for encrypting messages.
Depending on your organizational policies and processes, you can use one of the following methods to add
the public key to the email gateway:
• Request the recipient to send the public key using an electronic channel, for example, email. You can
then add the public key using the web interface or CLI.
For instructions to add the public key, see Adding a Public Key for S/MIME Encryption, on page 561.
• Enable public key harvesting using the web interface or CLI and request the recipient to send a signed
message. The Email Security email gateway can harvest the public key from the signed message.
For instructions to harvest public key from an incoming signed message, see Harvesting Public Keys,
on page 562.
Adding a Public Key for S/MIME Encryption
Before You Begin
• Make sure that the public key meets the requirements described in S/MIME Certificate Requirements,
on page 573.
• Make sure that the public key is in PEM format.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
561
S/MIME Security Services
Setting Up Public Keys for S/MIME Encryption
Procedure
Step 1 Click Mail Policies > Public Keys.
Step 2 Click Add Public Key.
Step 3 Enter the name of the public key.
Step 4 Enter the public key.
Step 5 Submit and commit your changes.
What to do next
Note Use the smimeconfig command to add public keys using CLI.
S/MIME Harvested Public Keys
You can configure the email gateway to retrieve (harvest) public keys from the incoming S/MIME signed
messages and use the harvested keys to send encrypted messages to the owners (business or consumer) of the
harvested keys.
Public key harvesting can be enabled on the Mail Flow Policies. All the harvested public keys are listed on
the S/MIME Harvested Public Keys page.
Related Topic
• Harvesting Public Keys, on page 562
Harvesting Public Keys
You can configure the email gateway to retrieve (harvest) public key from the incoming S/MIME signed
messages and use it to send encrypted messages to the owner (business or consumer) of the harvested key.
Note By default, public keys from expired or self-signed S/MIME certificates are not harvested.
Before You Begin
Make sure that the public key of the sender’sS/MIME certificate meetsthe requirements described inS/MIME
Certificate Requirements, on page 573.
Procedure
Step 1 Click Mail Policies > Mail Flow Policies.
Step 2 Create a new Mail Flow Policy or modify an existing one.
Step 3 Scroll down to the Security Features section.
Step 4 Under S/MIME Public Key Harvesting, do the following:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
562
S/MIME Security Services
S/MIME Harvested Public Keys
• Enable S/MIME public key harvesting.
• (Optional) Choose whether to harvest public keys if the verification of the incoming signed messages
fail.
• (Optional) Choose whether to harvest updated public keys.
If an email gateway receives more than one updated public key from the same domain or message
within 48 hours, it sends out a warning alert.
Note
Step 5 Submit and commit your changes.
What to do next
The size of the harvested public key repository on the email gateway is 512 MB. If repository is full,the
email gateway will automatically remove unused public keys.
Use the listenerconfig command to enable key harvesting using CLI.
Note
Next Step
Request the recipient to send a signed message to the email gateway administrator. The email gateway will
harvest the public key from the signed message and displays it on the Mail Policies > Harvested Public Keys
page.
Related Topics
• S/MIME Harvested Public Keys, on page 562
Managing S/MIME Sending Profiles
An S/MIME sending profile allows you define parameters such as:
• S/MIME mode to use, for example, sign, encrypt, and so on.
• S/MIME certificate for signing
• S/MIME signing mode to use, for example, opaque or detached.
• Action to take if the public key of the recipient'sS/MIME certificate is not available on the email gateway.
For example, one organization requires all the messages sent to them be signed and another one requires all
the messages sent to them be signed and encrypted. In this scenario, you must create two sending profiles,
one for signing alone and one for signing and encryption.
You to can create, edit, delete, import, export, and search S/MIME sending profiles using the web interface
or CLI.
Related Topics
• Create an S/MIME Sending Profile for Signing, Encrypting, or Signing and Encrypting Messages, on
page 564
• Edit an S/MIME Sending Profile, on page 565
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
563
S/MIME Security Services
Managing S/MIME Sending Profiles
Create an S/MIME Sending Profile for Signing, Encrypting, or Signing and Encrypting Messages
Procedure
Step 1 Click Mail Policies > Sending Profiles.
Step 2 Click Add Profile.
Step 3 Configure the following fields:
S/MIME Profile Name Enter the name of the sending profile.
Choose the S/MIME mode. Possible values are:
• Sign
• Encrypt
• Sign/Encrypt. Sign and then encrypt
• Triple. Sign, encrypt, and then sign again
If you are using one of the following S/MIME modes: Sign,
Sign/Encrypt, or Triple, messages will be bounced to the sender if the
signing fails.
Note
S/MIME Mode
Choose the signing certificate to use.
You need to set thisfield only if you choose one of the followingS/MIME
modes: Sign, Sign/Encrypt, or Triple.
Note
Signing Certificate
Choose the mode of S/MIME signing. Possible values are:
• Opaque. An opaque-signed message contains the message and signature
combined in a single part and can be read only by verifying the signature.
• Detached. The signature information is separate from the text being signed.
The MIME type for this is multipart/signed with the second part having a
MIME subtype of application/(x-)pkcs7-signature.
You need to set thisfield only if you choose one of the followingS/MIME
modes: Sign, Sign/Encrypt, or Triple.
Note
S/MIME Sign Mode
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
564
S/MIME Security Services
Create an S/MIME Sending Profile for Signing, Encrypting, or Signing and Encrypting Messages
S/MIME Profile Name Enter the name of the sending profile.
Choose the action that the email gateway must take if the recipient's public key is
not available. Possible values are:
• Bounce. The message is bounced to the sender if any one of the recipient’s
public key is not available.
• Drop. The message is dropped if any one of the recipient’s public key is not
available.
• Split. The message is split. The message to the recipients whose public keys
are not available are delivered without encryption and the message to the
recipients whose public keys are available are encrypted and delivered.
Example: Assume that you are sending a message to bob@example1.com and
dave@example2.com and the public key of dave@example2.com is not available.
In this scenario, if you have selected Split, the email gateway will:
• Deliver the message to bob@example1.com after encrypting it.
• Deliver the message to dave@example2.com without encrypting it.
You need to set thisfield only if you choose one of the followingS/MIME
modes: Encrypt, Sign/Encrypt, or Triple.
Note
S/MIME Action
Step 4 Submit and commit your changes.
What to do next
Note Use the smimeconfig command to create sending profiles using CLI.
Edit an S/MIME Sending Profile
Procedure
Step 1 Click Mail Policies > Sending Profiles.
Step 2 Click on the sending profile that you want to modify.
Step 3 Edit the fields as described in Create an S/MIME Sending Profile for Signing, Encrypting, or Signing and
Encrypting Messages, on page 564.
Step 4 Submit and commit your changes.
Determining Which Messages to Sign, Encrypt, or Sign and Encrypt
After you create a sending profile, you need to create an outgoing content filter that determines which email
messages should be signed, encrypted, or signed and encrypted. The content filter scans outgoing email and
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
565
S/MIME Security Services
Edit an S/MIME Sending Profile
determines if the message matches the conditions specified. Once the content filter determines a message
matches the condition, the email gateway signs, encrypts, or signs or encrypts the message.
Related Topics
• How to Filter Messages Based on Content, on page 291
Signing, Encrypting, or Signing and Encrypting and Immediately Delivering
Messages using a Content Filter
Before You Begin
Understand the concept of building conditionsfor content filters.See How ContentFilters Work, on page 273.
Procedure
Step 1 Go to Mail Policies > Outgoing Content Filters.
Step 2 In the Filters section, click Add Filter.
Step 3 In the Conditions section, click Add Condition.
Step 4 Add a condition to filter the messages that you want to sign, encrypt, or sign and encrypt. For example, to
encrypt sensitive material, you might add a condition that identifies messages containing particular words or
phrases, such as “Confidential,” in the subject or body.
Step 5 Click OK.
Step 6 In the Actions section, click Add Action.
Step 7 Select S/MIME Sign/Encrypt (Final Action) from the Add Action list.
Step 8 Select the sending profile to associate with the content filter.
Step 9 Click OK.
Step 10 Submit and commit your changes.
What to do next
After you add the content filter, you need to add the filter to an outgoing mail policy. You may want to enable
the content filter on the default policy, or you may choose to apply the filter to a specific mail policy, depending
on your organization’s needs.For information about working with mail policies,see Overview of MailPolicies,
on page 259.
Signing, Encrypting, or Signing and Encrypting aMessage uponDelivery using
a Content Filter
Create a content filter to sign, encrypt, or sign and encrypt a message on delivery, which means that the
message continuesto the nextstage of processing, and when all processing is complete, the message issigned,
encrypted, or signed and encrypted, and delivered.
Before You Begin
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
566
S/MIME Security Services
Signing, Encrypting, or Signing and Encrypting and Immediately Delivering Messages using a Content Filter
• Understand the concept of building conditions for content filters. See Overview of Content Filters , on
page 273.
Procedure
Step 1 Go to Mail Policies > Outgoing Content Filters.
Step 2 In the Filters section, click Add Filter.
Step 3 In the Conditions section, click Add Condition.
Step 4 Add a condition to filter the messages that you want to sign, encrypt, or sign and encrypt. For example, to
encrypt sensitive material, you might add a condition that identifies messages containing particular words or
phrases, such as “Confidential,” in the subject or body.
Step 5 Click OK.
Step 6 In the Actions section, click Add Action.
Step 7 Select S/MIME Sign/Encrypt on Delivery from the Add Action list.
Step 8 Select the sending profile to associate with the content filter.
Step 9 Click OK.
Step 10 Submit and commit your changes.
What to do next
After you add the content filter, you need to add the filter to an outgoing mail policy. You may want to enable
the content filter on the default policy, or you may choose to apply the filter to a specific mail policy, depending
on your organization’s needs.For information about working with mail policies,see Overview of MailPolicies,
on page 259.
Verifying, Decrypting, or Decrypting and Verifying Incoming
Messages using S/MIME
• S/MIME Verification and Decryption Workflow in Email Gateway, on page 567
• How to Verify, Decrypt, or Decrypt and Verify Incoming Messages Using S/MIME, on page 568
• Setting Up Certificates for Decrypting Messages, on page 569
• Setting Up Public Keys for Verifying Signed Messages, on page 570
• Enabling S/MIME Decryption and Verification, on page 572
• Configuring an Action for S/MIME Decrypted or Verified Message, on page 572
You can use the email gateway S/MIME security services to verify, decrypt, or decrypt and verify
outgoing and incoming messages.
Note
S/MIME Verification and Decryption Workflow in Email Gateway
• S/MIME Verification Workflow, on page 568
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
567
S/MIME Security Services
Verifying, Decrypting, or Decrypting and Verifying Incoming Messages using S/MIME
• S/MIME Decryption Workflow, on page 568
S/MIME Verification Workflow
The following process describes how the email gateway performs S/MIME verification.
1. Apply a hash algorithm to the signed message to create a message digest.
2. Decrypt thePKCS7 signature attached to the signed message using the public key of the sender'sS/MIME
certificate, and get the message digest.
3. Compare the generated message digest with the message digest retrieved from the signed message. If the
message digests match, the message is verified.
4. Validate the S/MIME certificate of the sender domain with the Certificate Authority.
S/MIME Decryption Workflow
The following process describes how the email gateway performs S/MIME decryption.
1. Decrypt the session key using the private key of the email gateway's S/MIME certificate
2. Decrypt the message body using the session key.
How to Verify, Decrypt, or Decrypt and Verify Incoming Messages Using
S/MIME
Steps Do This More Info
See S/MIME Certificate Requirements,
on page 573.
Step 1 Understand the S/MIME certificate requirements.
See
• Setting Up Certificates for
Decrypting Messages, on page 569
• Setting Up Public Keys for
Verifying Signed Messages, on
page 570
• Importing a Custom Certificate
Authority List, on page 693
Depending on your requirements, do one of the
following:
• ForS/MIME decryption, add your organization’s
S/MIME certificate (that containsthe private key
required to perform decryption) to the email
gateway.
• For S/MIME verification, add the public key of
the sender's S/MIME certificate required to
perform verification to the email gateway.
• For S/MIME decryption and verification, add
the following to the email gateway:
• Your organization’s S/MIME certificate
(that contains the private key required to
perform decryption) to the email gateway.
• Certificate Authority of the sender domain.
• Public key of the sender's S/MIME
certificate required to perform verification.
Step 2
See Enabling S/MIME Decryption and
Verification, on page 572.
Configure your mail flow policies to verify, decrypt,
or decrypt and verify incoming messages using
S/MIME.
Step 3
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
568
S/MIME Security Services
S/MIME Verification Workflow
Steps Do This More Info
See Configuring an Action for S/MIME
Decrypted or Verified Message, on page
572.
(Optional) Define the action that the email gateway
takes on decrypted or verified messages.
Step 4
If you want to perform S/MIME verification, decryption, or decryption and verification using CLI, use
the listenerconfig > hostaccess command. See the CLI inline help for more details.
Note
Setting Up Certificates for Decrypting Messages
You must add your organization’s S/MIME certificate (that contains the private key required to perform
decryption) to the email gateway.
Before You Begin
• Share the public key of the email gateway's S/MIME certificate with the sender (business or consumer)
in one of the following ways:
• Send the public key using an electronic channels, for example, email.
• Request the sender to the retrieve the public key using key harvesting.
The sender can use this public key to send encrypted messages to your email gateway.
In a B2C scenario, if your organization's S/MIME certificate is a domain
certificate, some email clients (for example, Microsoft Outlook) may not
be able to send encrypted messages using the public key of your
organization's S/MIME certificate. This is because these email clients do
not support encryption using public keys of domain certificates.
Note
• Make sure that the S/MIME certificate that you plan to import meets the requirements described in
S/MIME Certificate Requirements, on page 573.
Procedure
Step 1 Click Network > Certificates.
Step 2 Click Add Certificate.
Step 3 Choose Import Certificate.
Step 4 Enter the path to the certificate file on your network or local machine.
Step 5 Enter the passphrase for the file.
Step 6 Click Next to view the certificate’s information.
Step 7 Enter a name for the certificate.
Step 8 Submit and commit your changes.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
569
S/MIME Security Services
Setting Up Certificates for Decrypting Messages
What to do next
Note Use the certconfig command to add the S/MIME certificates using CLI.
Setting Up Public Keys for Verifying Signed Messages
You must add the public key of the sender’s S/MIME certificate to the email gateway for verifying signed
messages. Depending on your organizational policies and processes, you can use one of the following methods
to add the public key to the email gateway:
• Request the sender to send their public key using an electronic channels, for example, email. You can
then add the public key using the web interface or CLI.
For instructions to add the public key, see Adding a Public Key for S/MIME Encryption, on page 561.
• Retrieve the public key using key harvesting. See Harvesting Public Keys, on page 562.
Adding a Public Key for S/MIME Verification
Before You Begin
• Make sure that the public key meets the requirements described in S/MIME Certificate Requirements,
on page 573.
• Make sure that the public key is in PEM format.
Procedure
Step 1 Click Mail Policies > Public Keys.
Step 2 Click Add Public Key.
Step 3 Enter the name of the public key.
Step 4 Enter the public key.
Step 5 Submit and commit your changes.
What to do next
Note Use the smimeconfig command to add public keys using CLI.
Harvesting Public Keys for S/MIME Verification
You can configure the email gateway to retrieve (harvest) public key from the incoming S/MIME signed
messages and use it to verify signed messages from the owner (business or consumer) of the harvested key.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
570
S/MIME Security Services
Setting Up Public Keys for Verifying Signed Messages
Note By default, public keys from expired or self-signed S/MIME certificates are not harvested.
1. Enable public key harvesting using the web interface or CLI. See Enabling Public Key Harvesting, on
page 571.
2. Request the sender to send a signed message.
3. After the harvesting is complete, add the harvested public key to the email gateway.See Adding a Harvested
Public Key for S/MIME Verification, on page 571.
This step is to ensure that the message is verified at the gateway level.
Enabling Public Key Harvesting
Procedure
Step 1 Click Mail Policies > Mail Flow Policies.
Step 2 Create a new Mail Flow Policy or modify an existing one.
Step 3 Scroll down to the Security Features section.
Step 4 Under S/MIME Public Key Harvesting, do the following:
• Enable S/MIME public key harvesting.
• (Optional) Choose whether to harvest public keys if the verification of the incoming signed messages
fail.
• (Optional) Choose whether to harvest updated public keys.
If an email gateway receives more than one updated public key from the same domain or message
within 48 hours, it sends out a warning alert.
Note
Step 5 Submit and commit your changes.
What to do next
The size of the harvested public key repository on the email gateway is 512 MB. If the repository is full
used, the email gateway automatically removes unused public keys.
Use the listenerconfig command to enable key harvesting using CLI.
Note
Adding a Harvested Public Key for S/MIME Verification
Procedure
Step 1 Click Mail Policies > Harvested Public Keys.
Step 2 Click on the intended harvested public key and copy the public key.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
571
S/MIME Security Services
Enabling Public Key Harvesting
Step 3 Add the public key to the email gateway. See Adding a Public Key for S/MIME Verification, on page 570.
Step 4 Submit and commit your changes.
Enabling S/MIME Decryption and Verification
Procedure
Step 1 Click Mail Policies > Mail Flow Policies.
Step 2 Create a new Mail Flow Policy or modify an existing one.
Step 3 Scroll down to the Security Features section.
Step 4 Under S/MIME Decryption/Verification, do the following:
• Enable S/MIME decryption and verification.
• Choose whether to retain or remove the digital signature from the messages after S/MIME verification.
If you do not want your end users to know about S/MIME gateway verification, select Remove.
For triple wrapped messages, only the inner signature is retained or removed.
Step 5 Submit and commit your changes.
What to do next
If S/MIME Decryption and Verification is enabled in the Mail Flow Policies, all the S/MIME messages
are delivered irrespective of the status of the decryption and verification. If you want to configure an
action for handling S/MIME Decrypted or Verified Messages, you can use the message filter rules—
smime-gateway-verified and smime-gateway . For more information, see Configuring an Action for
S/MIME Decrypted or Verified Message, on page 572.
Tip
Configuring an Action for S/MIME Decrypted or Verified Message
After the email gateway performs S/MIME decryption, verification, or both, you may want to take different
actions depending on the results. You can use the message filter rules— smime-gateway-verified and
smime-gateway to perform actions on the messages based on the result of decryption, verification, or both.
For more information, see Using Message Filters to Enforce Email Policies, on page 131
You can also use the content filter conditions—S/MIME Gateway Message and S/MIME Gateway
Verified to perform actions on the messages based on the result of decryption, verification, or both. For
more information, see Content Filters, on page 273
Note
Example: Quarantine S/MIME Messages that failed Verification, Decryption, or Both
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
572
S/MIME Security Services
Enabling S/MIME Decryption and Verification
The following message filter checksif the message is anS/MIME message and quarantinesit if the verification
or decryption using S/MIME fails.
quarantine_smime_messages:if (smime-gateway-message and not smime-gateway-verified)
{ quarantine("Policy"); }
S/MIME Certificate Requirements
• Certificate Requirements for Signing, on page 573
• Certificate Requirements for Encryption, on page 574
Certificate Requirements for Signing
The S/MIME certificate for signing must contain the following information:
Common Name The fully qualified domain name.
Organization The exact legal name of the organization.
Organizational Unit Section of the organization.
City (Locality) The city where the organization is legally located.
State (Province) The state, county, or region where the organization islegally located.
The two letter ISO abbreviation of the country where the organization
is legally located.
Country
Duration before expiration The number of days before the certificate expires.
Name of the domain from which you plan to send signed messages.
Examples include domain.com and *.domain.net . For multiple
entries, use a comma-separated list.
Subject Alternative Name(Domains)
Email address of the user who is planning to send signed messages,
for example, user@somedomain.com . For multiple entries, use a
comma-separated list.
Subject Alternative Name(Email)
Private Key Size Size of the private key to generate for the CSR.
Key usage is a restriction method that determines what a certificate
can be used for. If the key usage extension isspecified, the following
bits: digitalSignature and nonRepudiation must be set.
If the key usage extension is not specified, receiving clients must
presume that the digitalSignature and nonRepudiation bits are set.
Key Usage
For detailed information about S/MIME certificates, see RFC 5750: Secure/Multipurpose Internet Mail
Extensions (S/MIME) Version 3.2 - Certificate Handling.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
573
S/MIME Security Services
S/MIME Certificate Requirements
Certificate Requirements for Encryption
The S/MIME certificate for encryption must contain the following information:
Common Name The fully qualified domain name.
Organization The exact legal name of the organization.
Organizational Unit Section of the organization.
City (Locality) The city where the organization is legally located.
State (Province) The state, county, or region where the organization islegally located.
The two letter ISO abbreviation of the country where the
organization is legally located.
Country
Duration before expiration The number of days before the certificate expires.
Name of the domain to which you plan to send encrypted messages.
Examples include domain.com and *.domain.net . For multiple
entries, use a comma-separated list.
If you plan to send encrypted messages to all the users in a domain,
the public key should include a SAN Domain.
Subject Alternative Name(Domains)
Email address of the user to whom you plan to send encrypted
messages, for example, user@somedomain.com . For multiple
entries, use a comma-separated list.
Subject Alternative Name(Email)
Private Key Size Size of the private key to generate for the CSR.
Key usage is a restriction method that determines what a certificate
can be used for. The key usage extension must be specified and the
following bit must be set: keyEncipherment .
Key Usage
For detailed information about S/MIME certificates, see RFC 5750: Secure/Multipurpose Internet Mail
Extensions (S/MIME) Version 3.2 - Certificate Handling.
Managing Public Keys
the email gateway requires:
• The public key of the recipient’s S/MIME encryption certificate for encrypting the outgoing messages.
• The public key of the sender’s S/MIME signing certificate for verifying incoming signed messages.
You can add public keys to your email gateway in one of the following ways:
• If you have the intended public key in PEM format, you can add it using the web interface or CLI. See
Adding a Public Key, on page 575.
• If you have an export file that contains the intended public keys, you can copy the export file to the
/configuration directory and import it using the web interface or CLI. See Importing Public Keys from
an Existing Export File, on page 575.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
574
S/MIME Security Services
Certificate Requirements for Encryption
The email gateway also supports key harvesting (automatically retrieving public keys from incoming signed
messages). For more information, see S/MIME Harvested Public Keys, on page 562.
Adding a Public Key
Before You Begin
• Make sure that the public key meets the requirements described in S/MIME Certificate Requirements,
on page 573.
• Make sure that the public key is in PEM format.
Procedure
Step 1 Click Mail Policies > Public Keys.
Step 2 Click Add Public Key.
Step 3 Enter the name of the public key.
Step 4 Enter the public key.
Step 5 Submit and commit your changes.
What to do next
Note Use the smimeconfig command to add public keys using CLI.
Importing Public Keys from an Existing Export File
Before You Begin
Copy the export file to the /configuration directory of the email gateway. For instructions to create an export
file, see Exporting Public Keys, on page 576.
Procedure
Step 1 Click Mail Policies > Public Keys.
Step 2 Click Import Public Keys.
Step 3 Select the export file and click Submit.
The import process may take longer if you are importing a file with large number of public keys.
Make sure that you adjust the web interface or CLI inactivity timeout accordingly.
Note
Step 4 Commit your changes.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
575
S/MIME Security Services
Adding a Public Key
Exporting Public Keys
All public keys on the email gateway are exported together in a single text file and stored in the /configuration
directory.
Procedure
Step 1 Choose Mail Policies > Public Keys.
Step 2 Click Export Public Keys.
Step 3 Enter a name for the file and click Submit.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
576
S/MIME Security Services
Exporting Public Keys
CHAPTER 25
Remediating Messages in Mailboxes
This chapter contains the following sections:
• Overview, on page 577
• Workflow, on page 578
• Performing Remedial Actions on Messages in Mailboxes , on page 580
• Configuring Mailbox Remediation on Email Gateway, on page 586
• Upgrading to AsyncOS 13.0 and Later Releases, on page 596
• Monitoring Mailbox Remediation Results, on page 596
• Viewing Mailbox Remediation Details in Message Tracking, on page 596
• Troubleshooting Mailbox Remediation, on page 596
Overview
The email gateway provides the capability to remediate the malicious messages that are already delivered to
the user mailbox. You can configure your email gateway to remediate the messages in the following ways:
• automatically remediate the messages when the AMPsends the retrospective alert to your email gateway
• manually search and remediate the messages using the Message Tracking filter
A file can turn malicious anytime, even after it has reached user’s mailbox. AMP can identify this as new
information emerges and push retrospective alerts to your email gateway. You can configure your email
gateway to perform auto-remedial actions on the messages in user mailbox when the threat verdict changes.
For example, you can configure your email gateway to delete the message from the recipient’s mailbox when
the verdict of the attachment changes from clean to malicious.
You can also use the Message Tracking page to search and remediate the messages that are delivered to the
user mailbox. The Message Tracking page is a unified place to search for all messages delivered to the
mailboxes. From the search result, you can choose the messages you want to remediate and apply the action
you want to perform on the messages.
The email gateway can perform remedial actions(manually or automatically) on the messagesin the following
mailbox deployments:
• Microsoft Exchange online – mailbox hosted on Microsoft Office 365
• Microsoft Exchange on-premise – a local Microsoft Exchange server
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
577
• Hybrid/Multiple tenant configuration – a combination of mailboxes configured across Microsoft Exchange
online and Microsoft Exchange on-premise deployments
Workflow
Mailbox Auto Remediation Workflow
1. Message with an attachment reaches the email gateway.
2. The email gateway queries the public file reputation cloud server to evaluate the reputation of the
attachment.
3. The public file reputation cloud server sends the verdict to the email gateway. The verdict is clean or
unknown.
4. The email gateway releases the message to the recipient.
5. After a certain period, the email gateway receives a verdict update from the public file reputation cloud
server. The new verdict is malicious.
6. The email gateway performs the configured remedial action on the message (with malicious attachment)
residing in the recipient’s mailbox.
Search and Remediate Messages Workflow
1. Message reaches the email gateway.
2. Message is delivered to the recipient.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
578
Remediating Messages in Mailboxes
Workflow
3. The administrator searches for the message delivered to the recipient using the Message Tracking filter.
4. The userselectsthe message to be remediated from the recipient's mailbox and appliesthe remedial action
on the message.
5. The email gateway performs the configured remedial action on the message residing in the recipient’s
mailbox.
How the Email Gateway Performs Auto-Remedial Actions
1. [Only to search and remediate messages] The usersearchesfor the messages delivered to the user mailbox
using the Message Tracking filter.
2. [Only to search and remediate messages] The user selects the messages to be remediated and applies
remedial action on the messages.
3. [Only to automatically remediate messages] When the email gateway receives a retrospective verdict
from the public file reputation cloud server, the email gateway initiates the mailbox remediation process.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
579
Remediating Messages in Mailboxes
How the Email Gateway Performs Auto-Remedial Actions
4. [Only to automatically remediate messages] The email gateway determines the email addresses to which
the malicious message was delivered.
5. The appliance identifies the recipient domains to which the email addresses belong.
6. Based on the recipient domains, the email gateway collects the account profile that is mapped to the
domains.
An account profile defines the mailbox settings that are used by the appliance to connect to the mailbox
and perform the auto-remedial actions. You must create an account profile and map it to the recipient
domains to successfully remediate the message from the mailbox.
7. The email gateway checks for the profile mapped to the domains:
• [Only for hybrid or multi-tenant deployment] If it is a chained profile, the email gateway attempts
to perform remedial actions using all the account profiles in the chained profile.
A chained profile is a combination of multiple account profiles. In case of a hybrid or multi-tenant
deployment, where there are mailboxes present across multiple deployments, you must create a
chained profile to combine all the profiles defined for mailboxes in the deployment. The email
gateway attempts to perform remedial actions based on the order in which the account profiles are
added in the chained profile.
• If it is not a chained profile, the email gateway checks the profile type to know if it is an Microsoft
Exchange online profile or an Microsoft Exchange on-premise profile.
8. The email gateway performs remedial actions using the identified profile and remediates the message.
Mailbox remediation may fail for various reasons. For more information, see Troubleshooting Mailbox
Remediation, on page 596.
Note
Contents
• Performing Remedial Actions on Messages in Microsoft Exchange Online Mailboxes, on page 581
• Performing Remedial Actions on Messages in Microsoft Exchange On-Premise Mailboxes , on page 583
• Performing Remedial Actions on Messages in Mailboxes on Hybrid Deployment, on page 584
Performing Remedial Actions on Messages in Mailboxes
You can perform remedial actions on messages in the following mailbox deployments:
• Microsoft Exchange Online (Office 365) - Performing Remedial Actions on Messages in Microsoft
Exchange Online Mailboxes, on page 581
• Microsoft Exchange On-Premise - Performing Remedial Actions on Messages in Microsoft Exchange
On-Premise Mailboxes , on page 583
• Hybrid/Multi-tenant Deployment - Performing Remedial Actions on Messages in Mailboxes on Hybrid
Deployment, on page 584
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
580
Remediating Messages in Mailboxes
Performing Remedial Actions on Messages in Mailboxes
Performing Remedial Actions on Messages in Microsoft Exchange Online
Mailboxes
You can configure your email gateway to perform remediation of messages from user mailbox.
If your organization is using Microsoft Exchange online to manage mailboxes, you can configure your email
gateway to perform auto-remedial actions on the messages in user mailbox when the threat verdict changes.
For example, you can configure your email gateway to delete the message from the recipient’s mailbox when
the verdict of the attachment changes from clean to malicious.
You can perform remedial actions manually on messages that are already delivered to the user mailbox. For
example, an administrator monitoring the incoming messages can perform remedial actions on messages in
the user mailbox using the Message Tracking filter.
Contents
• How to Configure Remedial Action on Messages in Microsoft Exchange Online Mailboxes, on page 581
How to Configure Remedial Action on Messages in Microsoft Exchange Online Mailboxes
Do This More Info
Prerequisites for Remediating Messages in
Microsoft Exchange Online Mailboxes, on page
586
Step 1 Review the prerequisites.
Registering Your Email Gateway as an
Application on Azure AD, on page 588
Register email gateway as an application on
Azure AD (Azure Management Portal).
Step 2
Enable mailbox remediation on your email
gateway.
Enabling Account Settings on Email Gateway ,
on page 590
Enable the account settings on your email
gateway.
Step 3
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
581
Remediating Messages in Mailboxes
Performing Remedial Actions on Messages in Microsoft Exchange Online Mailboxes
Do This More Info
Create an Office 365 profile for the user mailbox
and define the mailbox settings on the email
gateway.
Before you begin, make sure that you have:
• The values of the following parameters -
Client ID and Tenant ID of the application
that you registered on the Azure
Management Portal. See Step 9 of
Registering Your Email Gateway as an
Application on Azure AD, on page 588.
• For Client Certificate based communication,
obtain the values of the following
parameters:
• Private key of the certificate in .pem
format. See Certificate for Secure
Communication
• Certificate thumbprint
($base64Thumbprint). See Step 8 of
Registering Your Email Gateway as an
Application on Azure AD, on page 588.
• For Client Secret based communication,
obtain the value of the generated client
secret of the application that you created on
the Azure Management Portal. See Step 8
of Registering Your Email Gateway as an
Application on Azure AD, on page 588.
See Creating an Account Profile , on page 591.
Create an account profile of type Office
365/Hybrid (Graph API) on your email
gateway.
Step 4
Add the domain that the recipient mailbox
belongs and map the domain to the Office 365
account profile.
See Mapping Domains to the Account Profile ,
on page 593.
Add the recipient domain and map the
domain to the Office 365 profile.
Step 5
Configure Auto-Remedial Actions on Messages
in the Mailboxes, on page 594
[Only to automatically remediate messages]
Configure your email gateway to perform
remedial actions on messages delivered to
end users when the threat verdict changes
to malicious.
Step 6
Search and Remediate Messages in the
Mailboxes, on page 594
[Only to search and remediate messages]
Configure your email gateway to perform
remedial actions manually on messages
delivered to end users.
Step 7
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
582
Remediating Messages in Mailboxes
How to Configure Remedial Action on Messages in Microsoft Exchange Online Mailboxes
PerformingRemedialActionsonMessagesinMicrosoftExchangeOn-Premise
Mailboxes
You can configure the email gateway to remediate messages from a mailbox on an Exchange on-premise
server. The messages can be remediated automatically by the email gateway or manually by the user using
the Message Tracking filter.
The email gateway uses a user account with impersonator privileges to access the Exchange on-premise
mailbox and perform remedial actions on the message. You must create this user account with impersonator
privileges on the mail exchange server to which the email gateway has to connect and remediate the message.
Note Cisco has validated Mailbox Auto Remediation only on Microsoft Exchange 2013, 2016, and 2019.
Contents
• How to Configure Remedial Actions on Messages in Microsoft Exchange On-Premise Mailboxes, on
page 583
How to Configure Remedial Actions on Messages in Microsoft Exchange On-Premise Mailboxes
Do This More Info
Prerequisites for Remediating Messages in an
On-Premise Account, on page 587
Step 1 Review the prerequisites.
Enable mailbox remediation on your email
gateway.
Enabling Account Settings on Email Gateway ,
on page 590
Enable the account settings on your email
gateway.
Step 2
Create an On-Premise profile for the user mailbox
and define the mailbox settings on your email
gateway.
Before you begin, make sure that you have:
• The impersonator user account details
• The host name of the local mail exchange
server
Creating an Account Profile , on page 591.
Create an account profile of type
On-Premise on your email gateway.
Step 3
Add the domain that the recipient mailbox
belongs and map the domain to the On-premise
account profile.
See Mapping Domains to the Account Profile ,
on page 593.
Add the recipient domain and map the
domain to the On-premise account profile.
Step 4
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
583
Remediating Messages in Mailboxes
Performing Remedial Actions on Messages in Microsoft Exchange On-Premise Mailboxes
Do This More Info
Configure Auto-Remedial Actions on Messages
in the Mailboxes, on page 594
[Only to automatically remediate messages]
Configure your email gateway to perform
remedial actions on messages delivered to
end users when the threat verdict changes
to malicious.
Step 5
Search and Remediate Messages in the
Mailboxes, on page 594
[Only to search and remediate messages]
Configure remedial actions on messages in
the on premise mailbox.
Step 6
PerformingRemedialActionsonMessagesinMailboxesonHybridDeployment
You can configure a single email gateway to remediate messages from a hybrid exchange deployment or
multiple exchange tenants. For example, if your organization is in a process of moving the mailbox from
Microsoft Exchange on-premise to Microsoft Exchange online, there will be mailboxes deployed on Microsoft
Exchange online and Microsoft Exchange on-premise until the migration is complete. The messages can be
remediated automatically by the email gateway or manually by the user using the Message Tracking filter.
To automatically remediate messagesfrom multiple mailboxes configured across different deployments, create
a chained profile. A chained profile combines all the account profiles of a hybrid or multi-tenant deployment.
The order in which the profiles are added to the chained profile definesthe priority in which the email gateway
checks the profile to remediate messages.
When the email gateway receives a retrospective verdict from the AMP server, the appliance attempts to
perform the remediation action using each profile present in the chained profile in the order of priority defined
in the chained profile.
To manually search and remediate the messages that are delivered to the user mailbox, use the Message
Tracking filter. You can use this filter to select the messages you want to remediate, configure the remedial
action, and apply the remedial action on the messages.
Contents
• How to Perform Remedial Actions on Messages in Mailboxes on Hybrid Deployment, on page 584
How to Perform Remedial Actions on Messages in Mailboxes on Hybrid Deployment
Do This More Info
Ensure that all the prerequisites for performing
auto-remedial actions on Microsoft Exchange
online and Microsoft Exchange on-premise
mailboxes are met for a hybrid or multi-tenant
deployment.
See Prerequisites, on page 586.
Step 1 Review the prerequisites.
Registering Your Email Gateway as an
Application on Azure AD, on page 588
Register email gateway as an application on
Azure AD (Azure Management Portal).
Step 2
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
584
Remediating Messages in Mailboxes
Performing Remedial Actions on Messages in Mailboxes on Hybrid Deployment
Do This More Info
Enable mailbox remediation on your email
gateway.
See Enabling AccountSettings on Email Gateway
, on page 590.
Enable the account settings on your email
gateway.
Step 3
Create account profiles for the user mailboxes
and define mailbox settings on the email gateway.
Before you begin, make sure that you have:
• The values of the following parameters -
Client ID and Tenant ID of the application
that you registered on the Azure
Management Portal. See Step 9 of
Registering Your Email Gateway as an
Application on Azure AD, on page 588.
• For Client Certificate based communication,
obtain the values of the following
parameters:
• Private key of the certificate in .pem
format. See Certificate for Secure
Communication
• Certificate thumbprint
($base64Thumbprint). See Step 8 of
Registering Your Email Gateway as an
Application on Azure AD, on page 588.
• For Client Secret based communication,
obtain the value of the generated client
secret of the application that you created on
the Azure Management Portal. See Step 8
of Registering Your Email Gateway as an
Application on Azure AD, on page 588.
• The impersonator user account details.
• The host name of the local mail exchange
server.
See Creating an Account Profile , on page 591.
Create account profilesfor all the mailboxes
in the hybrid/multi-tenant deployment.
Step 4
Create a chained profile and add all the profiles
of a hybrid/multi- tenant deployment.
See Creating a Chained Profile , on page 592.
Step 5 Create a chained profile.
Add the domains that the recipients’ mailboxes
belong and map the domains to the chained
profile.
See Mapping Domains to the Account Profile ,
on page 593.
Add the recipients’ domains and map them
to the chained profile.
Step 6
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
585
Remediating Messages in Mailboxes
How to Perform Remedial Actions on Messages in Mailboxes on Hybrid Deployment
Do This More Info
Configure Auto-Remedial Actions on Messages
in the Mailboxes, on page 594
[Only to automatically remediate messages]
Configure your email gateway to perform
remedial actions on messages delivered to
end users when the threat verdict changes
to malicious.
Step 7
Search and Remediate Messages in the
Mailboxes, on page 594
[Only to search and remediate messages]
Apply the remedial actions on the messages.
Step 8
Configuring Mailbox Remediation on Email Gateway
• Prerequisites, on page 586
• Registering Your Email Gateway as an Application on Azure AD, on page 588
• Enabling Account Settings on Email Gateway , on page 590
• Creating an Account Profile , on page 591
• Creating a Chained Profile , on page 592
• Mapping Domains to the Account Profile , on page 593
• Configure Auto-Remedial Actions on Messages in the Mailboxes, on page 594
• Search and Remediate Messages in the Mailboxes, on page 594
Prerequisites
• Prerequisites for Remediating Messages in Microsoft Exchange Online Mailboxes, on page 586
• Prerequisites for Remediating Messages in an On-Premise Account, on page 587
Prerequisites for Remediating Messages in Microsoft Exchange Online Mailboxes
• [Only for Mailbox Auto Remediation] - Feature Keys for File Reputation Service and the File Analysis
Service, on page 586
• Office 365 Accounts, on page 587
• Client Secret or Certificate for Secure Communication, on page 587
Feature Keys for File Reputation Service and the File Analysis Service
The File Reputation Service and the File Analysis Service feature keys are not required for performing
Search and Remediate actions on messages in the user mailbox.
Note
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
586
Remediating Messages in Mailboxes
Configuring Mailbox Remediation on Email Gateway
To configure remedial actions for Mailbox Auto Remediation on messages in the user mailbox, make sure
that you have:
• Added the feature keys for the file reputation service and the file analysis service to you email gateway.
• Enabled File Reputation and Analysis feature on your email gateway. See File Reputation Filtering and
File Analysis, on page 481.
Office 365 Accounts
Make sure that you have the following accounts that are required to register your email gateway with Azure
AD:
• An Office 365 business account
• An Azure AD subscription associated with your Office 365 business account
For more information, contact your Office 365 administrator.
Client Secret or Certificate for Secure Communication
To secure the communication between Office 365 services and your email gateway, you must perform any
one of the following tasks:
• Generate a Client Secret of the application that you created on the Azure Management Portal.
• Set up a certificate in one of the following ways: create a self-signed certificate or obtain a certificate
from a trusted CA.
You must have:
• A public key in .crt or .p12 format. Make sure that the emailAddress is set to the email address of
the Office 365 administrator ( @.com )
• An associated private key in .pem format, with keysize at least 2048 bit.
Note Private keys with passphrase are not supported in this release.
For more information, see https://www.cisco.com/c/en/us/support/docs/security/email-security-appliance/
211404-How-to-configure-Azure-AD-and-Office-365.html.
Prerequisites for Remediating Messages in an On-Premise Account
• [Only for Mailbox Auto Remediation] - Feature Keys for File Reputation Service and the File Analysis
Service, on page 586
• (Optional) Import Microsoft Exchange Web Service (EWS) Certificate, on page 588
• Add a User to the Impersonator Role, on page 588
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
587
Remediating Messages in Mailboxes
Office 365 Accounts
Feature Keys for File Reputation Service and the File Analysis Service
The File Reputation Service and the File Analysis Service feature keys are not required for performing
Search and Remediate actions on messages in the user mailbox.
Note
To configure remedial actions for Mailbox Auto Remediation on messages in the user mailbox, make sure
that you have:
• Added the feature keys for the file reputation service and the file analysis service to you email gateway.
• Enabled File Reputation and Analysis feature on your email gateway. See File Reputation Filtering and
File Analysis, on page 481.
(Optional) Import Microsoft Exchange Web Service (EWS) Certificate
If you are using a self-signed certificate on an Microsoft Exchange on-premise server for the EWS service,
you must import the certificate from the Microsoft Exchange on-premise server into the email gateway. To
import a certificate, see Importing a Certificate , on page 680.
Add a User to the Impersonator Role
The email gateway uses a user account that has impersonator privileges to access the Microsoft Exchange
on-premise mailbox. The mail exchange administrator must create a user account with impersonator privileges
on the local exchange server. The email gateway used this user account to remediate messages from the
mailbox.
Procedure
Step 1 Create a user account for which impersonator privileges must be assigned. This user account is used by the
email gateway to access and operate the mailbox to remediate the messages.
Step 2 Log in to the Microsoft Exchange Control Panel interface using administrator credentials.
Step 3 Navigate to Permissions -> Admin Roles.
Step 4 Create a role and assign the ‘ApplicationImpersonation’ privileges for the role.
Step 5 Add the user account for which the impersonator privileges must be assigned as a member of this new role.
Registering Your Email Gateway as an Application on Azure AD
Office 365 services use Azure Active Directory (Azure AD) to provide secure access to users' mailboxes. For
your email gateway to access the Office 365 mailboxes, you must register your email gateway with Azure
AD. The following are the high level steps you need to perform to register your email gateway with Azure
AD. For detailed instructions, see Microsoft documentation ( https://docs.microsoft.com/en-us/azure/
active-directory/develop/quickstart-register-app ).
Before You Begin
Perform the tasks described in Prerequisites for Remediating Messages in Microsoft Exchange Online
Mailboxes, on page 586.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
588
Remediating Messages in Mailboxes
Feature Keys for File Reputation Service and the File Analysis Service
Procedure
Step 1 Sign into the Azure Management Portal using your Office 365 business account credentials.
Step 2 Add a new application to the directory linked to your Office 365 subscription.
Step 3 Navigate to App Registrations > New Registration to add a new application.
Step 4 While adding a new application, make sure that you:
• Specify the application name and the account types the application must support.
• (Optional) Select the application type as Web and provide the URL where users can sign-in and use your
email gateway.
Step 5 Assign the permissions that the application requires. Click API permissions on the navigation pane and click
Add a permission.
Step 6 Select Microsoft Graph >Application permissions and assign the following permissions:
• Mail.Read – Read mail in all mailboxes
• Mail. ReadWrite - Read and write mail in all mailboxes
• Mail.Send - Send mail as any user
Step 7 Grant admin consent for all the requested permissions for all accounts in the organization.
Step 8 Secure the communication between the Office 365 services and the email gateway by performing any one of
the following tasks:
• Generate a Client Secret of the application that you created on the Azure Management Portal.
Make sure that you copy the client secret value because it is not displayed during a subsequent
login to the Azure Management portal.
Note
• Update the application manifest with the key credentials from the public key certificate. Perform the
following steps:
a. Using a Windows PowerShell prompt, get the values for $base64Thumbprint , $base64Value , and
$keyid from the public key certificate. See the example below. From the Windows PowerShell
prompt, navigate to the directory containing the public key certificate and run the following:
Example
$cer = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2
$cer.Import(".\mycer.cer")
$bin = $cer.GetRawCertData()
$base64Value = [System.Convert]::ToBase64String($bin)
$bin = $cer.GetCertHash()
$base64Thumbprint = [System.Convert]::ToBase64String($bin)
$keyid = [System.Guid]::NewGuid().ToString()
After running the above commands, run the following commands to extract their values:
$keyid
$base64Value
$base64Thumbprint
b. Click Manifest on left pane of the registered application pane to open the manifest of the application.
c. In the manifest text editor, replace the empty KeyCredentials property with the following JSON:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
589
Remediating Messages in Mailboxes
Registering Your Email Gateway as an Application on Azure AD
Example
"keyCredentials": [
{
"customKeyIdentifier": "$base64Thumbprint_from_step_1",
"keyId": "$keyid_from_step1",
"type": "AsymmetricX509Cert",
"usage": "Verify",
"value": "$base64Value_from_step1"
}
],
Example:
In the above JSON snippet, make sure that you replace the values of $base64Thumbprint , $base64Value,
and $keyid with the values you obtained in step a. Each value must be entered in a single line
Step 9 After registering your appliance with Azure AD, note down the following detailsfrom the Azure Management
Portal from the Overview pane of the registered application:
• Client ID
• Tenant ID. The Tenant ID is the unique value that will available on all the URLs listed on this page. For
instance, the URLs listed on this page are:
• https://login.microsoftonline.com/abcd1234-bcdd-469d-8545-a0662708cbc3/
federationmetadata/2007-06/federationmetadata.xml
• https://login.microsoftonline.com/abcd1234-bcdd-469d-8545-a0662708cbc3/wsfed
• https://login.microsoftonline.com/abcd1234-bcdd-469d-8545-a0662708cbc3/saml2
In this case, the Tenant ID is abcd1234-bcdd-469d-8545-a0662708cbc3 .
What to do next
Enabling Account Settings on Email Gateway , on page 590
Enabling Account Settings on Email Gateway
Before You Begin
Make sure that you have:
• [Required only for Mailbox Auto Remediation] Enabled File Reputation and Analysis feature on your
email gateway. See File Reputation Filtering and File Analysis, on page 481.
Procedure
Step 1 Log in to the email gateway.
Step 2 Click System Administration > Account Settings.
Step 3 Click Enable.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
590
Remediating Messages in Mailboxes
Enabling Account Settings on Email Gateway
Step 4 Select Enable Account Settings.
Step 5 (Optional) Enter the maximum number of attempts the email gateway makes to connect to the mailbox to
remediate the message. The value must be an integer from 1 to 5.
Step 6 (Optional) Enter the number of seconds the email gateway must wait before the connection times out to the
hybrid mail exchange server. The value must be an integer from 15 to 90.
Step 7 (Optional) Enter the number of seconds the email gateway must wait before the connection times out to the
local mail exchange server. The value must be an integer from 15 to 90.
Step 8 Submit and commit your changes.
What to do next
Creating an Account Profile , on page 591
Creating an Account Profile
An account profile defines the mailbox parameters that are required for the email gateway to connect to the
mailbox and perform remedial actions when the threat verdict of the message in the mailbox turns malicious.
Each profile credentials are related to one single tenant. If you want to perform remediation across multiple
tenants, then you have to configure one profile for each tenant and chain them together using a chained profile.
However, if you are using a load balancer for a multi-tenant deployment, you can still configure a single
profile and use the hostname of the load balancer while creating a profile.
Before You Begin
Make sure that you have:
• Enabled the account settings. See Enabling Account Settings on Email Gateway , on page 590.
• A valid email address in the Microsoft Exchange online or Microsoft Exchange on-premise server.
• The parameters required to configure the Microsoft Exchange online or Microsoft Exchange on-premise
account.
Procedure
Step 1 Log in to the email gateway.
Step 2 Click System Administration > Account Settings.
Step 3 Click Create Account Profile.
Step 4 Enter a name and description for the profile.
Step 5 Select the profile type based on the mailbox deployment:
• Office 365/Hybrid (Graph API) – Select this to configure a mailbox deployed on Microsoft Exchange
online and enter the following details:.
• Client ID and Tenant ID of the application that you registered on the Azure Management Portal.
• Select any one of the following methods to validate the client credentials:
• ClientSecret:Select this option and enter the ClientSecret of the application that you generated
on the Azure Management Portal.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
591
Remediating Messages in Mailboxes
Creating an Account Profile
• Client Certificate: Select this option, enter the Thumbprint of the certificate (value of
$base64Thumbprint ), and click Choose File to upload the private key of the certificate in the
.pem format.
• Exchange On-premise -Select thisto configure a mailbox deployed on Microsoft Exchange on-premise
and enter the following details:
• Enter the username and password of the user account with impersonator privileges. For more
information, see Add a User to the Impersonator Role, on page 588.
• Enter the hostname of the Microsoft Exchange on-premise server.
If you are using a load balancer for a multi-tenant deployment, you must configure the
hostname of your load balancer.
Note
Step 6 Verify whether the email gateway can connect to the Microsoft Exchange online or Exchange on-premsie
server.
a) Click Test Connection.
b) Enter an email address. This must be a valid email address in the Microsoft Exchange online or Microsoft
Exchange on-premise.
c) Click Test Connection.
The status is displayed confirming whether your appli email gatewayance can connect to the mailbox
server.
d) 4. Click Done. For troubleshooting the errors, see Troubleshooting Mailbox Remediation, on page 596.
Step 7 Submit and commit your changes.
What to do next
• Creating a Chained Profile , on page 592
• Mapping Domains to the Account Profile , on page 593
Creating a Chained Profile
This task is mandatory only if you want to remediate messages in a mailbox on a hybrid or multi-tenant
deployments.
Before You Begin
Make sure that you have at least one account profile added on your email gateway:
Procedure
Step 1 Log in to the email gateway.
Step 2 Click System Administration > Account Settings.
Step 3 Click Create Chained Profile.
Step 4 Enter a name and description for the chained profile.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
592
Remediating Messages in Mailboxes
Creating a Chained Profile
Step 5 Select the account profile you want to add to the chained profile from the drop-down menu. To add more
profiles, click Add Account Profile.
• You must add the profilesin the order of priority in which you want the email gateway to check
the profile for remediating the message.
• You can create a maximum of five chained profiles at a time on your email gateway.
• You can add a maximum of 10 account profiles per chained profile.
Note
Step 6 Submit and commit your changes.
What to do next
Mapping Domains to the Account Profile , on page 593
Mapping Domains to the Account Profile
You must define the domain to which the recipient’s mailbox belongs. The domain is then mapped to the
account profile which is used by the email gateway to remediate message in the mailbox.
• You can edit the domain mapping to add new domainsto the existing domain mapped to the profile.
• The domain mapping is unique to a profile. Domains mapped to one profile cannot be mapped to
another.
Note
Before You Begin
Make sure that you have at least one account profile added on your email gateway.
Procedure
Step 1 Log in to the email gateway.
Step 2 Click System Administration > Account Settings.
Step 3 Click Create Domain Mapping.
Step 4 Enter the domain names separated my commas. If you want to map the profile to all the domains, type the
string ‘ALL’.
Step 5 Select the profile to be mapped to the domain(s). You can also map a chained profile to the domain(s).
Step 6 Submit and commit your changes.
What to do next
• Configure Auto-Remedial Actions on Messages in the Mailboxes, on page 594
• Search and Remediate Messages in the Mailboxes, on page 594
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
593
Remediating Messages in Mailboxes
Mapping Domains to the Account Profile
Configure Auto-Remedial Actions on Messages in the Mailboxes
Perform the following steps if you want to configure remedial actions for Mailbox Auto Remediation
on messages in the mailboxes.
Note
Before You Begin
Make sure that you have enabled Mailbox Auto Remediation and configured the account settings on your
appliance. See Enabling Account Settings on Email Gateway , on page 590.
Procedure
Step 1 Select Mail Policies > Incoming Mail Policies.
Step 2 Click the link in the Advanced Malware Protection column of the mail policy to modify.
Step 3 Select Enable Mailbox Auto Remediation.
Step 4 Specify the action to be taken on messages delivered to end users when the threat verdict changes to malicious.
Depending on your requirements, choose one of the following remedial actions:
• Forward to an email address. Select this option to forward the message with malicious attachment to a
specified user, for example, an email administrator.
• Delete the message.Select this option to permanently delete the message with malicious attachment from
the end user’s mailbox.
• Forward to an email address and delete the message. Select this option to forward the message with
malicious attachment to a specified user, for example, an email administrator and permanently delete
that message from the end user’s mailbox.
Step 5 Submit and commit your changes.
What to do next
Related Topics
• Monitoring Mailbox Remediation Results, on page 596
• Viewing Mailbox Remediation Details in Message Tracking, on page 596
• Troubleshooting Mailbox Remediation, on page 596
Search and Remediate Messages in the Mailboxes
Before You Begin
• Make sure that you have enabled mailbox remediation and configured the account settings on your email
gateway. See Enabling Account Settings on Email Gateway , on page 590.
• Enable Message Tracking on your email gateway. See Enabling Message Tracking, on page 915.
• If you are using the Centralized Message Tracking service, make sure that you have enabled the trailblazer
port and AsyncOS API HTTP port on the managed email gateway and the Cisco Secure Email and Web
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
594
Remediating Messages in Mailboxes
Configure Auto-Remedial Actions on Messages in the Mailboxes
Manager can access the trailblazer port. If the trailblazer port is disabled, ensure that the Cisco Secure
Email and Web Manager can access the AsyncOS API HTTP port on the managed email gateway.
Note You can perform the following steps only in the new web interface of the email gateway.
Procedure
Step 1 Click the Email Security Appliance is getting a new look. Try it!! link on the legacy web interface. See
Accessing the Web-Based Graphical User Interface (GUI), on page 30.
Step 2 Click the Tracking tab.
Step 3 Click the Messagestab to narrow yoursearch results.For more information,seeSearching for Email Messages
on the New Web Interface, on page 919.
Step 4 Select the messages you want to remediate. You can select a maximum of 1000 messages at a time. You can
remediate the messages that are only in the delivered state.
Step 5 Click Remediate.
Step 6 Enter the following details:
• Enter a batch name for the remediation.
• Select anyone of the following remediation action:
• Delete the messages. Select this option to permanently delete the malicious messages from the end
user’s mailbox.
• Forward to an email address or multiple email addresses separated by a semicolon(;). Select this
option to forward the malicious messages to a specified user, for example, an email administrator.
• Forward to an email address or multiple email addresses separated by a semicolon(;) and delete the
messages. Select this option to forward the malicious messages to a specified user, for example, an
email administrator and permanently delete that messages from the end user’s mailbox.
Step 7 Click Apply.
After you click Apply, you can view the Remediation Report Status widget at the bottom-right corner of
the Message Tracking page. Use this widget to check the status of the Remediation Report generation. After
the Remediation Report generation is complete, click View Details on the widget to go to the Remediation
Report to view the remediation results.
You can also view Remediation Report directly by navigating to Reports > User Reports> Remediation
Report and click the Mailbox Search And Remediate tab.
Note
What to do next
Related Topics
• Monitoring Mailbox Remediation Results, on page 596
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
595
Remediating Messages in Mailboxes
Search and Remediate Messages in the Mailboxes
• Viewing Mailbox Remediation Details in Message Tracking, on page 596
• Troubleshooting Mailbox Remediation, on page 596
Upgrading to AsyncOS 13.0 and Later Releases
The mailbox settings defined in the previous AsyncOS versions are migrated seamlessly during the upgrade.
This mailbox is created with the profile name as ‘Default’ and mapped to ‘ALL’ domains. This profile can
be edited as required after the upgrade. Ensure that your application has access to Microsoft Graph API on
Azure Active Directory to remediate messages from Microsoft Exchange online mailboxes. For more
information, see Registering Your Email Gateway as an Application on Azure AD, on page 588.
Monitoring Mailbox Remediation Results
You can view the details of the mailbox remediation results using the Remediation report page. To view the
report:
1. Click the Email Security Appliance is getting a new look. Try it!! link on the legacy web interface.
2. Click the Monitoring tab.
3. Click the Reports drop-down menu and select Remediation Report.
Use this report to view the following details:
• Total number of messages attempted for remediation using Mailbox Auto Remediation and Mailbox
Search and Remediate.
• Number of messages successfully remediated for a configured remedial action.
• Number of messages for which the remediation failed.
• Details about the messages for which the remediation was attempted.
For more information, refer to the section Remediation Report Page, on page 905.
Viewing Mailbox Remediation Details in Message Tracking
You can view the details of messages remediated using Mailbox Search and Remediate in Message Tracking
page. Before you begin the remediation, ensure that the Message Tracking is enabled.
Messages attempted for remediation using Mailbox Auto Remediation are not included in the tracking
search results.
Note
For more information about the data displayed, see Message Tracking Details , on page 922.
Troubleshooting Mailbox Remediation
• Connection Errors, on page 597
• Viewing Logs, on page 598
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
596
Remediating Messages in Mailboxes
Upgrading to AsyncOS 13.0 and Later Releases
• Alerts, on page 599
• Configured Remedial Actions Are Not Performed, on page 599
Connection Errors
Problem
While trying to check the connection between your email gateway and recipent mailbox on the Account
Settings page (System Administration > Account Settings), you receive an error message: Connection
Unsuccessful.
Solution
Depending on the response from the server, do one of the following:
Error Message Reason and Solution
You have entered an email address that is not part of the associated
mail domain.
Enter a valid email address and check the connection again.
The SMTP address has no mailbox
associated with it
Verify that:
• You have the required permission to accessthe user mailbox. The
Micrsoft Exchange online account can be accessed only using the
Microsoft Graph API and the Microsoft Exchange on-premise
account using an user account with impersonator privileges.
• You have selected the incorrect profile type. Modify the profile
details on the Edit AccountProfile page and check the connection
again.
The mailbox cannot be accessed
using this profile or the
required permissions may be
missing
The Office 365 application configured in Microsoft Azure does not
have the required permission to access the Microsoft Exchange online
mailbox.
Access is denied. Check
credentials and try again
You have entered an invalid Client ID.
Modify the Client ID on the Account Profile page and check the
connection again.
Application with identifier
'' was not found in
the
directory
You have entered an invalid Tenant ID.
Modify the Tenant ID on the Account Profile page and check the
connection again.
No service namespace named
'' was found in the
data store.
You have entered an invalid certificate thumbprint.
Modify the certificate thumbprint on the Account Profile page and
check the connection again.
Error validating credentials.
Credential
validation failed
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
597
Remediating Messages in Mailboxes
Connection Errors
Error Message Reason and Solution
You have entered an incorrect certificate thumbprint or you have
uploaded an invalid or incorrect certificate private key.
Verify that:
• You have entered the correct thumbprint.
• You have uploaded the correct certificate private key.
• The certificate private key is not expired.
• The time zone of your email gateway matches the time zone in
the certificate private key.
Error validating credentials.
Client assertion
contains an invalid signature.
The email address entered does not match with the profile type of the
account profile. Enter a valid email address or modify the account
profile on the Account Profile page and check the connection again.
The requested user is invalid
• You have entered an invalid CA or self-signed certificate on the
Microsoft Exchange on-premise server. Verify the certificate and
check the connection again.
Ensure that the certificate you are using corresponds
to the hostname provided in the profile. For example,
if you have provided the IP address of the exchange
server in your profile setting and the certificate is based
on the hostname, then the connection will fail.
Note
• You have not imported the self-signed certificate from the
Microsoft Exchange on-premise server to your email gateway.
For more information, see Importing a Certificate , on page 680.
Failed to verify exchange
server(‘’)
certificate. If self-signed
certificate is used on exchange
server install its custom CA
certificate
You have entered an invalid user name or password for the
impersonator user account that is used to connect to the Microsoft
Exchange on-premise mailbox.)
Invalid username or password
entered for exchange server
(‘’)
The user account used to connect to the Microsoft Exchange on-premise
mailbox is not a member of the impersonator role (does not have
impersonator privileges).
The account does not have
permission to impersonate the
requested user
You have entered an incorrect hostname of the Microsoft Exchange
on-premise server. Modify the hostname on the Account Profile page
and check the connection again.
Please check host
is valid exchange server
address.
Viewing Logs
Mailbox remediation information is posted to the following logs:
• Mail Logs ( mail_logs ). The time at which the mailbox remediation process started is posted to this log.
Information about Mailbox Auto Remediation or Mailbox Search and Remediate action:
• The time at which the mailbox remediation process started is posted to this log.
• The remediation status.
• The reason for the unsuccessful remediation.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
598
Remediating Messages in Mailboxes
Viewing Logs
• The recipients for whom the remediation was successful and unsuccessful.
• The source from which the Search and Remediate action is initiated.
• The user who initiated the Search and Remediate action.
• The remedial action attempted on the messages.
• Remediation Logs. Information related to remediation status, actions performed, errors and so on are
posted to this log.
Alerts
Alert: Connectivity Issues Between Email Gateway and Microsoft Exchange Services Detected
Problem
You receive an info-level alert indicating that there are connectivity issues between your email gateway and
Microsoft Exchange online or Microsoft Exchange on-premise services and the email gateway is unable to
perform the configured remedial action.
Solution
Do the following:
• Check for network issues that might prevent the communication between your email gateway and
Microsoft Exchange online or Microsoft Exchange on-premise services.
Review the network settings of your email gateway. See Changing Network Settings, on page 1073.
• Ensure that your application has access to Microsoft Graph API on Azure Active Directory.
• Ensure that the user account used to accessthe Exchange on-premise mailbox hasimpersonator privileges.
• Verify that the parameters configured in the corresponding profiles are valid and test the connection.
• Check for firewall issues. See Firewall Information, on page 1335.
• Check whether the Microsoft Exchange online or Microsoft Exchange on-premise services are operational.
Configured Remedial Actions Are Not Performed
Problem
After receiving a retrospective alert from the AMP server, configured remedial actions are not performed on
the malicious messages in Exchange online and Exchange on-premise mailboxes.
Or
The user is unable to remediate the messages manually using the Remediate option on the Message Tracking
page.
Solution
Do the following:
• Test the connection between your email gateway and Exchange online and Exchange on-premise services.
See Creating an Account Profile , on page 591.
• [Only for Mailbox Auto Remediation] Check whether you have received the following alert: Connectivity
Issues Between Email Gateway and Exchange online and Exchange on-premise Services Detected. See
Alerts, on page 599.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
599
Remediating Messages in Mailboxes
Alerts
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
600
Remediating Messages in Mailboxes
Configured Remedial Actions Are Not Performed
CHAPTER 26
Email Authentication
This chapter contains the following sections:
• Email Authentication Overview, on page 601
• Configuring DomainKeys and DKIM Signing, on page 603
• How to Verify Incoming Messages Using DKIM, on page 616
• Overview of SPF and SIDF Verification, on page 622
• How to Verify Incoming Messages Using SPF/SIDF, on page 623
• Enabling SPF and SIDF, on page 624
• Determining the Action to Take for SPF/SIDF Verified Mail, on page 628
• Testing the SPF/SIDF Results, on page 631
• DMARC Verification, on page 632
• Forged Email Detection, on page 640
Email Authentication Overview
AsyncOSsupports email verification and signing to prevent email forgery. To verify incoming mail, AsyncOS
supports Sender Policy Framework (SPF), Sender ID Framework (SIDF), DomainKeys Identified Mail
(DKIM), Domain-based Message Authentication, Reporting and Conformance (DMARC), andForged Email
Detection. To authenticate outbound mail, AsyncOS supports DomainKeys and DKIM signing.
Related Topics
• DomainKeys and DKIM Authentication, on page 601
• Overview of SPF and SIDF Verification, on page 622
• DMARC Verification, on page 632
• Forged Email Detection, on page 640
DomainKeys and DKIM Authentication
With DomainKeys or DKIM email authentication, the sender signs the email using public key cryptography.
The verified domain can then be used to detect forgeries by comparing it with the domain in the From: (or
Sender:) header of the email.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
601
DomainKeys and DKIM consist of two main parts: signing and verification. AsyncOS supports the “signing”
half of the process for DomainKeys, and it supports both signing and verification for DKIM. You can also
enable bounce and delay messages to use DomainKeys and DKIM signing.
Related Topics
• DomainKeys and DKIM Authentication Workflow, on page 602
• DomainKeys and DKIM Signing in AsyncOS, on page 602
DomainKeys and DKIM Authentication Workflow
Figure 36: Authentication Work Flow
1. Administrator (domain owner) publishes a public key into the DNS name space.
2. Administrator loads a private key in the outbound Mail Transfer Agent (MTA).
3. Email submitted by an authorized user of that domain is digitally signed with the respective private key.
The signature is inserted in the email as a DomainKey or DKIM signature header and the email is
transmitted.
4. Receiving MTA extracts the DomainKeys or DKIM signature from the header and the claimed sending
domain (via the Sender: or From: header) from the email. The public key is retrieved from the claimed
signing domain which is extracted from DomainKeys or DKIM signature header fields.
5. The public key is used to determine whether the DomainKeys or DKIM signature was generated with the
appropriate private key.
To test your outgoing DomainKeys signatures, you can use a Yahoo! or Gmail address, as these services are
free and provide validation on incoming messages that are DomainKeys signed.
DomainKeys and DKIM Signing in AsyncOS
DomainKeys and DKIM signing in AsyncOSis implemented via domain profiles and enabled via a mail flow
policy (typically, the outgoing “relay” policy). For more information, see the “Configuring the Gateway to
Receive Mail” chapter. Signing the message is the last action performed by the email gateway before the
message is sent.
Domain profiles associate a domain with domain key information (signing key and related information). As
email is sent via a mail flow policy on the email gateway, sender email addresses that match any domain
profile are DomainKeys signed with the signing key specified in the domain profile. If you enable both DKIM
and DomainKeys signing, the DKIM signature is used. You implement DomainKeys and DKIM profiles via
the domainkeysconfig CLI command or via the Mail Policies > Domain Profiles and the Mail Policies >
Signing Keys pages in the GUI.
DomainKeys and DKIM signing works like this: a domain owner generates two keys — a public key stored
in the public DNS (a DNS TXT record associated with that domain) and a private key that is stored on the
email gateway is used to sign mail that is sent (mail that originates) from that domain.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
602
Email Authentication
DomainKeys and DKIM Authentication Workflow
As messages are received on a listener used to send messages (outbound), the email gateway checks to see if
any domain profiles exist. If there are domain profiles created on the email gateway (and implemented for
the mail flow policy), the message is scanned for a valid Sender: or From: address. If both are present, the
Sender: header is always used for Domain Keys and DKIM Signing, but the From: header is also required
even though it is not used for DKIM signing. When only the Sender: header is present, the DomainKeys or
DKIM Signing profiles are not matched. The From: header is only used when:
• There is no Sender: header.
• You select the Use From Header for DKIM Signing option in the DKIM Global Setting page in the web
interface.
From Async0S 10.0 and later, you can select whether you want to use the From: header for DKIM
Signing option in the DKIM Global Settings page of the web interface. It is mainly important to use the
From: header with DKIM Signing for proper DMARC verification.
Note
If a valid address is not found, the message is not signed and the event is logged in the mail_logs.
If you create both a DomainKey and DKIM profile (and enable signing on a mail flow policy), AsyncOS
signs outgoing messages with both a DomainKeys and DKIM signature.
Note
If a valid sending address is found, the sending address is matched against the existing domain profiles. If a
match is found, the message is signed. If not, the message is sent without signing. If the message has an
existing DomainKeys (a “DomainKey-Signature:” header) the message is only signed if a new sender address
has been added after the originalsigning. If a message has an existing DKIM signature, a new DKIM signature
is added to the message.
AsyncOS provides a mechanism for signing email based on domain as well as a way to manage (create new
or input existing) signing keys.
The configuration descriptions in this document represent the most common uses for signing and verification.
You can also enable DomainKeys and DKIM signing on a mail flow policy for inbound email, or enable
DKIM verification on a mail flow policy for outbound email.
When you configure domain profiles and signing keys in a clustered environment, note that the Domain
KeyProfile settings andSigning Key settings are linked. Therefore, if you copy, move or delete a signing
key, the same action is taken on the related profile.
Note
Configuring DomainKeys and DKIM Signing
Related Topics
• Signing Keys, on page 604
• Public Keys, on page 604
• Domain Profiles, on page 605
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
603
Email Authentication
Configuring DomainKeys and DKIM Signing
• Enabling Signing for Bounce and Delay Messages, on page 606
• Enabling Signing for Outgoing Mail, on page 606
• Configuring DomainKeys/DKIM Signing (GUI), on page 607
• Domain Keys and Logging, on page 616
Signing Keys
A signing key is the private key stored on the email gateway. When creating a signing key, you specify a key
size. Larger key sizes are more secure; however, larger keys also can impact performance. The email gateway
supports keys from 512 bits up to 2048 bits. The 768 - 1024 bit key sizes are considered secure and used by
most senders today. Keys based on larger key sizes can impact performance and are not supported above 2048
bits. For more information about creating signing keys, see Creating or Editing a Signing Key, on page 610.
If you are entering an existing key, simply paste it into the form. Another way to use existing signing keys is
to import the key as a text file. For more information about adding existing signing keys, see Importing or
Entering Existing Signing Keys , on page 611.
Once a key is entered, it is available for use in domain profiles, and will appear in theSigning Key drop-down
list in the domain profile.
Related Topics
• Exporting and Importing Signing Keys, on page 604
Exporting and Importing Signing Keys
You can export your signing keys to a text file on the email gateway. When you export keys, all of the keys
currently existing on the email gateway are put into a text file. For more information about exporting keys,
see Exporting Signing Keys, on page 611.
You can import keys that have been exported as well.
Note Importing keys causes all of the current keys on the email gateway to be replaced.
For more information, see Importing or Entering Existing Signing Keys , on page 611.
Public Keys
Once you have associated a signing key with a domain profile, you can create DNStext record which contains
your public key. You do this via the Generate link in the DNS Text Record column in the domain profile
listing (or via domainkeysconfig -> profiles -> dnstxt in the CLI):
For more information about generating a DNS Text Record, see Generating a DNS Text Record , on page
613.
You can also view the public key via the View link on the Signing Keys page:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
604
Email Authentication
Signing Keys
Figure 37: View Public Key Link on Signing Keys Page
Domain Profiles
A domain profile associates a sender domain with a signing key, along with some other information needed
for signing.
• A name for the domain profile.
• A domain name (the domain to be included in the “d=” header).
• A selector (a selector is used to form the query for the public key. In the DNS query type, this value is
prepended to the “_domainkey.” namespace of the sending domain).
• A canonicalization method (the method by which the headers and content are prepared for presentation
to the signing algorithm). AsyncOS supports both “simple” and “nofws” for DomainKeys and “relaxed”
and “simple” for DKIM.
• A signing key (see Signing Keys, on page 604 for more information).
• A list of headers and the body length to sign (DKIM only).
• A list of tags you want to include in the signature’s header (DKIM only). These tags store the following
information:
• The identity of the user or agent (e.g., a mailing list manager) on whose behalf the message issigned.
• A comma-separated list of query methods used to retrieve the public key.
• The timestamp of when the signature was created.
• The expiration time of the signature, in seconds.
• A vertical bar-separated (i.e., | ) list of header fields present when the message was signed.
• The tags you want to include in the signature (DKIM only).
• A list of Profile Users (addresses allowed to use the domain profile for signing).
The domain in the addressesspecified in the profile users must match the domain specified in the Domain
field.
Note
You can search through all of your existing domain profilesfor a specific term.SeeSearching DomainProfiles,
on page 615 for more information.
Additionally, you can choose whether to:
• Sign system-generated messages with DKIM signatures
• Use From header for DKIM signing
For instructions, see Editing DKIM Global Settings, on page 615.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
605
Email Authentication
Domain Profiles
Related Topics
• Exporting and Importing Domain Profiles, on page 606
Exporting and Importing Domain Profiles
You can export your existing domain profiles to a text file on the email gateway. When you export the domain
profiles, all of the profiles existing on the email gateway are put into a single text file. See Exporting Domain
Profiles, on page 614.
You can import domain profiles that you have previously exported. Importing domain profiles causes all of
the current domain profiles on the machine to be replaced. See Importing Domain Profiles, on page 614.
Enabling Signing for Outgoing Mail
DomainKeys and DKIM signing is enabled on mail flow policies for outbound mail. For more information,
see the “Configuring the Gateway to Receive Mail” chapter.
Procedure
Step 1 On the Mail Flow Policies page (from the Mail Policies menu), click on the RELAYED mail flow policy
(outgoing).
Step 2 From the Security Features section, enable DomainKeys/DKIM Signing by selecting On.
Step 3 Submit and commit your changes.
Enabling Signing for Bounce and Delay Messages
In addition to signing outbound messages, you may want to sign bounce and delay messages. You may want
to do thisto alert recipientsthat the bounce and delay messagesthey receive from your company are legitimate.
To enable DomainKeys and DKIM signing for bounce and delay messages, you enable DomainKeys/DKIM
signing for the bounce profile associated with the public listener.
Procedure
Step 1 On the bounce profile associated with the public listener where you will send signed outbound messages, go
to Hard Bounce and Delay Warning Messages.
Step 2 Enable “Use Domain Key Signing for Bounce and Delay Messages”:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
606
Email Authentication
Exporting and Importing Domain Profiles
You must have completed all steps listed in Configuring DomainKeys/DKIM Signing (GUI), on
page 607 to sign bounced and delay messages.
TheFrom: address in the domain profile must match the address used for the bounce return address.
To ensure these addresses match, you can configure a return address for the bounce profile (System
Administration > Return Addresses), and then use the same name in the Profile Users list in the
domain profile. For example, you would configure a return address of
MAILER-DAEMON@example.com for the bounce return address, and add
MAILER-DAEMON@example.com as a profile user in the domain profile.
Note
Configuring DomainKeys/DKIM Signing (GUI)
Procedure
Step 1 Create a new or import an existing private key. For information on creating or importing signing keys, see
Signing Keys, on page 604.
Step 2 Create a domain profile and associate the key with the domain profile. For information on creating a domain
profile, see Domain Profiles, on page 605.
Step 3 Create the DNS text record. For information about creating the DNS text record, see Generating a DNS Text
Record , on page 613.
Step 4 If you have not already done so, enable DomainKeys/DKIM signing on a mail flow policy for outbound mail
(see Enabling Signing for Outgoing Mail, on page 606).
Step 5 Optionally, enable DomainKeys/DKIM signing for bounced and delay messages. For information about
enabling signing for bounce and delay messages, see Enabling Signing for Bounce and Delay Messages, on
page 606.
Step 6 Send email. Mail sent from a domain that matches a domain profile will be DomainKeys/DKIM signed. In
addition, bounce or delay messages will be signed if you configured signing for bounce and delay messages.
If you create both a DomainKey and DKIM profile (and enable signing on a mail flow policy),
AsyncOS signs outgoing messages with both a DomainKeys and DKIM signature.
Note
What to do next
Related Topics
• Creating Domain Profiles for DomainKeys Signing, on page 608
• Creating a New Domain Profile for DKIM Signing, on page 608
• Creating or Editing a Signing Key, on page 610
• Importing or Entering Existing Signing Keys , on page 611
• Testing Domain Profiles, on page 613
• Editing DKIM Global Settings, on page 615
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
607
Email Authentication
Configuring DomainKeys/DKIM Signing (GUI)
Creating Domain Profiles for DomainKeys Signing
Procedure
Step 1 Choose Mail Policies > Signing Profiles.
Step 2 In the Domain Signing Profiles section, click Add Profile.
Step 3 Enter a name for the profile.
Step 4 For the Domain Key Type, choose Domain Keys.
Additional options appear on the page.
Step 5 Enter the domain name.
Step 6 Enter a selector.Selectors are arbitrary names prepended to the "_domainkey" namespace, used to help support
multiple concurrent public keys per sending domain. 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.
Step 7 Select the canonicalization (no forwarding whitespaces or simple).
Step 8 If you have already created a signing key, select a signing key. Otherwise, skip to the next step. You must
create (or import) at least one signing key in order to have signing keys to choose from in the list.See Creating
or Editing a Signing Key, on page 610.
Step 9 Enter users (email addresses, hosts, etc.) that will use the domain profile for signing.
Step 10 Submit and commit your changes.
Step 11 At this point (if you have not already) you should enable DomainKeys/DKIM signing on an outgoing mail
flow policy (see Enabling Signing for Outgoing Mail, on page 606).
If you create both a DomainKeys and DKIM profile, AsyncOS performs both DomainKeys and
DKIM signing on outgoing mail.
Note
Creating a New Domain Profile for DKIM Signing
Procedure
Step 1 Choose Mail Policies > Signing Profiles.
Step 2 In the Domain Signing Profiles section, click Add Profile.
Step 3 Enter a name for the profile.
Step 4 For the Domain Key Type, choose DKIM.
Additional options appear on the page.
Step 5 Enter the domain name.
Step 6 Enter a selector. Selectors are arbitrary names prepended to the "_domainkey." namespace, used to help
support multiple concurrent public keys per sending domain. 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.
Step 7 Select the canonicalization for the header. Choose from the following options:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
608
Email Authentication
Creating Domain Profiles for DomainKeys Signing
• Relaxed. The “relaxed” header canonicalization algorithm performs the following: header names are
changed to lowercase, headers are unfolded, linear white spaces are reduced to a single space, leading
and trailing spaces are stripped.
• Simple. No changes to headers are made.
Step 8 Select the canonicalization for the body. Choose from the following options:
• Relaxed. The “relaxed” header canonicalization algorithm performs the following: empty lines are
stripped at the end of the body, white spaces are reduced to a single space within lines, and trailing white
spaces are stripped in lines.
• Simple. Empty lines at the end of the body are stripped.
Step 9 If you have already created a signing key, select a signing key. Otherwise, skip to the next step. You must
create (or import) at least one signing key in order to have signing keys to choose from in the list.See Creating
or Editing a Signing Key, on page 610.
Step 10 Select the list of headers to sign. You can select from the following headers:
• All. AsyncOS signs all the headers present at the time of signature. You may want to sign all headers if
you do not expect headers to be added or removed in transit.
• Standard. You may want to select the standard headers if you expect that headers may be added or
removed in transit. AsyncOS signs only the following standard headers (if the header is not present in
the message, the DKIM signature indicates a null value for the header):
• From
• Sender, Reply To-
• Subject
• Date, Message-ID
• To, Cc
• MIME-Version
• Content-Type, Content-Transfer-Encoding, Content-ID, Content-Description
• Resent-Date, Resent-From, Resent-Sender, Resent-To, Resent-cc, Resent-Message-ID
• In-Reply-To, References
• List-Id, List-Help, List-Unsubscribe, LIst-Subscribe, List-Post, List-Owner, List-Archive
Note When you select “Standard”, you can add additional headers to sign.
Step 11 Specify how to sign the message body. You can choose to sign the message body, and/or how many bytes to
sign. Select one of the following options:
• Whole Body Implied. Do not use the “l=” tag to determine body length. The entire message is signed
and no changes are allowed.
• Whole Body Auto-determined. The entire message body is signed, and appending some additional data
to the end of body is allowed during transit.
• Sign first _ bytes. Sign the message body up to the specified number of bytes.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
609
Email Authentication
Creating a New Domain Profile for DKIM Signing
Step 12 Select the tags you want to include in the message signature’s header field. The information stored in these
tags are used for message signature verification. Select one or more of the following options:
• “i” Tag. The identity of the user or agent (e.g., a mailing list manager) on behalf of which this message
is signed. Enter the domain name prepended with the @ symbol, such as the domain @example.com .
• “q” Tag. A colon-separated list of query methods used to retrieve the public key. Currently, the only
valid value is dns/txt.
• “t” Tag. A timestamp for when the signature was created.
• “x” Tag. The absolute date and time when the signature expires. Specify an expiration time (in seconds)
for the signature. The default is 31536000 seconds.
• “z” Tag. A vertical bar-separated (i.e., | ) list of header fields present when the message was signed. This
includes the names of the header fields and their values. For example:
z=From:admin@example.come|To:joe@example.com|
Subject:test%20message|Date:Date:August%2026,%202011%205:30:02%20PM%20-0700
Step 13 Enter users (email addresses, hosts, etc.) that will use the domain profile for signing.
When you create domain profiles, be aware that a hierarchy is used in determining the profile to
associate with a particular user. For example, you create a profile for example.com and another
profile for joe@example.com. When mail is sent from joe@example.com, the profile for
joe@example.com is used. However, when mail is sent from adam@example.com, the profile for
example.com is used.
Note
Step 14 Submit and commit your changes.
Step 15 At this point (if you have not already) you should enable DomainKeys/DKIM signing on an outgoing mail
flow policy (see Enabling Signing for Outgoing Mail, on page 606).
If you create both a DomainKeys and DKIM profile, AsyncOS performs both DomainKeys and
DKIM signing on outgoing mail.
Note
Creating or Editing a Signing Key
• Create a New Signing Key, on page 610
• Edit an Existing Signing Key, on page 611
Create a New Signing Key
Signing keys are required for domain profiles for DomainKeys and DKIM signing.
Procedure
Step 1 Choose Mail Policies > Signing Keys.
Step 2 Click Add Key.
Step 3 Enter a name for the key.
Step 4 Click Generate and select a key size.
Step 5 Submit and commit your changes.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
610
Email Authentication
Creating or Editing a Signing Key
Note If you have not done so already, you may need to edit your domain profile to assign the key.
Edit an Existing Signing Key
Procedure
Step 1 Choose Mail Policies > Signing Keys.
Step 2 Click the intended signing key.
Step 3 Edit the intended fields as described in Create a New Signing Key, on page 610.
Step 4 Submit and commit your changes.
Exporting Signing Keys
All keys on the email gateway are exported together in a single text file.
Procedure
Step 1 Choose Mail Policies > Signing Keys.
Step 2 Click Export Keys.
Step 3 Enter a name for the file and click Submit.
Importing or Entering Existing Signing Keys
Related Topics
• Pasting a Key , on page 611
• Importing Keys from an Existing Export File , on page 612
Pasting a Key
Procedure
Step 1 Choose Mail Policies > Signing Keys.
Step 2 Click Add Key.
Step 3 Paste the key into the Paste Key field (must be PEM-formatted and must be RSA keys only).
Step 4 Submit and commit your changes.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
611
Email Authentication
Edit an Existing Signing Key
Importing Keys from an Existing Export File
Note To obtain a key file, see Exporting Signing Keys, on page 611.
Procedure
Step 1 Choose Mail Policies > Signing Keys.
Step 2 Click Import Keys.
Step 3 Select the file that contains the exported signing keys.
Step 4 Click Submit. You are warned that importing will replace all existing signing keys. All of the keys in the text
file are imported.
Step 5 Click Import.
Deleting Signing Keys
Related Topics
• Removing Selected Signing Keys , on page 612
• Removing All Signing Keys , on page 612
Removing Selected Signing Keys
Procedure
Step 1 Choose Mail Policies > Signing Keys.
Step 2 Mark the checkbox to the right of each signing key to remove.
Step 3 Click Delete.
Step 4 Confirm the deletion.
Removing All Signing Keys
Procedure
Step 1 Choose Mail Policies > Signing Keys.
Step 2 Click Clear All Keys on the Signing Keys page.
Step 3 Confirm the deletion.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
612
Email Authentication
Importing Keys from an Existing Export File
Generating a DNS Text Record
Procedure
Step 1 Choose Mail Policies > Signing Profiles.
Step 2 In the Domain Signing Profiles section, in the DNS Text Record column, click the Generate link for the
corresponding domain profile.
Step 3 Mark the checkbox for the attributes you wish to include in the DNS text record.
Step 4 Click Generate Again to re-generate the key with any changes you have made.
Step 5 The DNS text record is displayed in the text field at the bottom of the window (where you can now copy it).
In some cases, multi-string DNStext records are generated.See Multi-string DNS Text Records, on page 613.
Step 6 Click Done.
What to do next
Related Topics
• Multi-string DNS Text Records, on page 613
Multi-string DNS Text Records
Multi-string DNS text records may be generated if the key size of the signing key used to generate the DNS
text records are larger than 1024 bits. This is because not more than 255 characters are allowed in a single
string of a DNS text record. The DKIM authentication may fail as some of the DNS servers do not accept or
serve multi-string DNS text records.
To avoid this scenario, it is recommended that you use double quotes to break up the multi-string DNS text
record into smaller strings not exceeding 255 bytes. The following is an example.
s._domainkey.domain.com. IN TXT "v=DKIM1;"
"p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQE"
"A4Vbhjq2n/3DbEk6EHdeVXlIXFT7OEl81amoZLbvwMX+bej"
"CdxcsFV3uS7G8oOJSWBP0z++nTQmy9ZDWfaiopU6k7tzoi"
"+oRDlKkhCQrM4oP2B2F5sTDkYwPY3Pen2jgC2OgbPnbo3o"
"m3c1wMWgSoZxoZUE4ly5kPuK9fTtpeJHNiZAqkFICiev4yrkL"
"R+SmFsJn9MYH5+lchyZ74BVm+16Xq2mptWXEwpiwOxWI"
"YHXsZo2zRjedrQ45vmgb8xUx5ioYY9/yBLHudGc+GUKTj1i4"
"mQg48yCD/HVNfsSRXaPinliEkypH9cSnvgvWuIYUQz0dHU;"
DKIM implementations reassemble DNStext records broken down this way into the full original single string
before processing them.
Testing Domain Profiles
Once you have created a signing key, associated it with a domain profile, and generated and inserted the DNS
text into your authorized DNS, you can test your domain profile.
Procedure
Step 1 Choose Mail Policies > Signing Profiles.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
613
Email Authentication
Generating a DNS Text Record
Step 2 In the Domain Signing Profiles section, in the Test Profile column, click the Test link for the domain profile.
Step 3 A message is displayed at the top of the page, indicating success or failure. If the test fails, a warning message
is displayed, including the error text.
Exporting Domain Profiles
All domain profiles on the email gateway are exported together in a single text file.
Procedure
Step 1 Choose Mail Policies > Signing Profiles.
Step 2 Click Export Domain Profiles.
Step 3 Enter a name for the file and click Submit.
Importing Domain Profiles
Procedure
Step 1 Choose Mail Policies > Signing Profiles.
Step 2 Click Import Domain Profiles.
Step 3 Select the file that contains the exported domain profiles.
Step 4 Click Submit. You are warned that importing will replace all existing domain profiles. All of the domain
profiles in the text file are imported.
Step 5 Click Import.
Deleting Domain Profiles
Related Topics
• Removing Selected Domain Profiles , on page 614
• Removing All Domain Profiles , on page 615
Removing Selected Domain Profiles
Procedure
Step 1 Choose Mail Policies > Signing Profiles.
Step 2 Mark the checkbox to the right of each domain profile to remove.
Step 3 Click Delete.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
614
Email Authentication
Exporting Domain Profiles
Step 4 Confirm the deletion.
Removing All Domain Profiles
Procedure
Step 1 Choose Mail Policies > Signing Profiles.
Step 2 Click Clear All Profiles.
Step 3 Confirm the deletion.
Searching Domain Profiles
Procedure
Step 1 Choose Mail Policies > Signing Profiles.
Step 2 In the Find Domain Profiles section, specify the search term.
Step 3 Click Find Profiles.
Step 4 The search scans the following fields for each domain profile: email, domain, selector, and signing key name.
Note If you do not enter search terms, the search engine returns all domain profiles.
Editing DKIM Global Settings
You can use the DKIM Global Settings to choose whether to:
• Sign system-generated messages with a DKIM signature. The email gateway will sign the following
messages:
• Cisco IronPort Spam Quarantine notifications
• Content filter-generated notifications
• Configuration messages
• Support requests
• Use From header for DKIM signing
Procedure
Step 1 Choose Mail Policies > Signing Profiles.
Step 2 Under DKIM Global Settings, click Edit Settings.
Step 3 Depending on your requirements, configure the following fields:
• DKIM Signing of System Generated Messages
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
615
Email Authentication
Removing All Domain Profiles
• Use From header for DKIM Signing
If you are not using From header for DKIM signing or if a valid From header is missing, Sender
header will be used. For DMARC verification of DKIM signed messages, you must use the From
header during DKIM signing.
Note
Step 4 Submit and commit your changes.
Domain Keys and Logging
Lines such as the following are added to the mail logs upon DomainKeys signing:
Tue Aug 28 15:29:30 2007 Info: MID 371 DomainKeys: signing with dk-profile - matches
user123@example.com
Tue Aug 28 15:34:15 2007 Info: MID 373 DomainKeys: cannot sign - no profile matches
user12@example.com
Lines such as these are added to the mail logs upon DKIM signing:
Tue Aug 28 15:29:54 2007 Info: MID 372 DKIM: signing with dkim-profile - matches
user@example.com
Tue Aug 28 15:34:15 2007 Info: MID 373 DKIM: cannot sign - no profile matches
user2@example.com
How to Verify Incoming Messages Using DKIM
How to Verify Incoming Messages Using DKIM
Do This More Info
Creating a DKIM Verification Profile, on
page 618
Step 1 Create a profile for verifying messages using DKIM.
Defining Rules for Incoming Messages
Using a Mail Flow Policy, on page 107
(Optional) Create a custom mail flow policy to use
for verifying incoming messages using DKIM.
Step 2
Configuring DKIM Verification on the
Mail Flow Policy, on page 620
Configure your mail flow policiesto verify incoming
messages using DKIM.
Step 3
Configuring an Action for DKIM Verified
Mail, on page 621
Define the action that the email gateway takes on
verified messages.
Step 4
Associate the action with groups of specific senders Configuring Mail Policies, on page 265
or recipients.
Step 5
Related Topics
• DKIM Verification Checks Performed by AsyncOS, on page 617
• Managing DKIM Verification Profiles, on page 617
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
616
Email Authentication
Domain Keys and Logging
• Configuring DKIM Verification on the Mail Flow Policy, on page 620
• Configuring an Action for DKIM Verified Mail, on page 621
DKIM Verification Checks Performed by AsyncOS
When you configure an AsyncOS email gateway for DKIM verification, the following checks are performed:
Procedure
Step 1 AsyncOS checks for the DKIM-Signature field in incoming mail, the syntax of the signature header, valid
tag values, and required tags. If the signature fails any of these checks, AsyncOS returns a permfail .
Step 2 After the signature check is performed, the public key is retrieved from the public DNS record, and the TXT
record is validated. If errors are encountered during this process, AsyncOS returns a permfail . A tempfail
occurs if the DNS query for the public key fails to get a response.
Step 3 After retrieving the public key, AsyncOS checks the hashed values and verifies the signature. If any failures
occur during this step, AsyncOS returns a permfail .
Step 4 If the checks all pass, AsyncOS returns a pass .
Note When the message body is greater than the specified length, AsyncOSreturnsthe following verdict:
dkim = pass (partially verified [x bytes])
where X represents the number of bytes verified.
The final verification result is entered as an Authentication-Results header. For example, you might get a
header that looks like one of the following:
Authentication-Results: example1.com
header.from=From:user123@example.com; dkim=pass (signature verified)
Authentication-Results: example1.com
header.from=From:user123@example.com; dkim=pass (partially verified [1000 bytes])
Authentication-Results: example1.com
header.from=From:user123@example.com; dkim=permfail (body hash did not verify)
Current DKIM verification stops at the first valid signature. It is not possible to verify using the last
signature encountered. This functionality may be available in a later release.
When the domain hasits DNS TXT record in DKIM Test Mode (t=y), the email gateway completely
skips any DKIM Verifications and Actions.
Note
Managing DKIM Verification Profiles
A DKIM verification profile is a list of parameters that the email gateway's mail flow policies use for verifying
DKIM signatures. For example, you can create two verification profiles, one that allows 30 seconds before a
query times out and a second that allows only 3 seconds before a query times out. You can assign the second
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
617
Email Authentication
DKIM Verification Checks Performed by AsyncOS
verification profile to the Throttled mail flow policy to prevent connection starvation in case of a DDoS. A
verification profile consists of the following information:
• A name for the verification profile.
• The smallest and largest acceptable public key size. The default key sizes are 512 and 2048, respectively.
• The maximum number of signatures in the message to verify. If a message has more signatures than the
maximum amount you defined, the email gateway skips verification of the remaining signatures and
continues to process the message. The default is 5 signatures.
• The maximum allowed difference in time (in seconds) between the sender’s system time and verifier’s.
For example, if the message signature expires at 05:00:00 and the verifier’s system time is 05:00:30, the
message signature is still valid if the allowed difference in time is 60 seconds but it is invalid if the
allowed difference is 10 seconds. The default is 60 seconds.
• An option whether to use a body length parameter.
• The SMTP action to take in case of a temporary failure.
• The SMTP action to take in case of a permanent failure.
You can search through all of your existing verification profiles by the profile name.
You can export your DKIM verification profiles as a text file in your email gateway's configure directory.
When you export the verification profiles, all of the profiles existing on the email gateway are put into a single
text file. See Exporting DKIM Verification Profiles, on page 619 for more information.
You can import DKIM verification profilesthat you previously exported. Importing DKIM verification profiles
causes all of the current DKIM verification profiles on the machine to be replaced. See Importing DKIM
Verification Profiles, on page 619 for more information.
Related Topics
• Creating a DKIM Verification Profile, on page 618
• Exporting DKIM Verification Profiles, on page 619
• Importing DKIM Verification Profiles, on page 619
• Deleting DKIM Verification Profiles, on page 619
• Searching DKIM Verification Profiles, on page 620
Creating a DKIM Verification Profile
Procedure
Step 1 Click Mail Policies > Verification Profiles.
Step 2 Click Add Profile.
Step 3 Enter the name of the profile.
Step 4 Select the minimum key size you want the email gateway to accept for signing keys.
Step 5 Select the maximum key size you want the email gateway to accept for signing keys.
Step 6 Select the maximum number of signatures to verify in a single message. The default is five signatures.
Step 7 Select the number of seconds before the key query times out. The default is 10 seconds.
Step 8 Select maximum allowed difference in time (in seconds) between the sender’s system time and verifier’s. The
default is 60 seconds.
Step 9 Select whether to use the body-length parameter in the signature to verify the message.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
618
Email Authentication
Creating a DKIM Verification Profile
Step 10 Select whether the email gateway accepts or rejects the message if there is a temporary failure when verifying
its signature. If you want the email gateway to reject the message, you can choose to have it send the default
451 SMTP response code or another SMTP response code and text.
Step 11 Select whether the email gateway accepts or rejects the message if there is a permanent failure when verifying
its signature. If you want the email gateway to reject the message, you can choose to have it send the default
451 SMTP response code or another SMTP response code and text.
Step 12 Submit your changes.
The new profile appears in the DKIM Verification Profiles table.
Step 13 Commit your changes.
Step 14 At this point you should enable DKIM verification on an incoming mail flow policy and select the verification
profile you want to use.
Exporting DKIM Verification Profiles
All DKIM verification profiles on the email gateway are exported as a single text file and saved in the
configuration directory on the email gateway.
Procedure
Step 1 Choose Mail Policies > Verification Profiles.
Step 2 Click Export Profiles.
Step 3 Enter a name for the file and click Submit.
Importing DKIM Verification Profiles
Procedure
Step 1 Choose Mail Policies > Verification Profiles.
Step 2 Click Import Profiles.
Step 3 Select the file that contains the DKIM verification profiles.
Step 4 Click Submit. You are warned that importing will replace all existing DKIM verification profiles.
Step 5 Click Import.
Deleting DKIM Verification Profiles
Related Topics
• Removing Selected DKIM Verification Profiles , on page 620
• Removing All DKIM Verification Profiles, on page 620
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
619
Email Authentication
Exporting DKIM Verification Profiles
Removing Selected DKIM Verification Profiles
Procedure
Step 1 Choose Mail Policies > Verification Profiles.
Step 2 Mark the checkbox to the right of each DKIM verification profile you want to delete.
Step 3 Click Delete.
Step 4 Confirm the deletion.
Removing All DKIM Verification Profiles
Procedure
Step 1 Choose Mail Policies > Verification Profiles.
Step 2 Click Clear All Profiles.
Step 3 Confirm the deletion.
Searching DKIM Verification Profiles
To search all DKIM verification profiles for a specific term in the profile name:
Procedure
Step 1 Choose Mail Policies > Verification Profiles.
Step 2 In the Search DKIM Verification Profiles section, specify the search term.
Step 3 Click Find Profiles.
The search scans the profile name for each DKIM verification profile.
If you do not enter search terms, the search engine returns all DKIM verification profiles.
Configuring DKIM Verification on the Mail Flow Policy
DKIM verification is enabled on mail flow policies for incoming email.
Procedure
Step 1 Choose Mail Policies > Mail Flow Policies.
Step 2 Click the incoming mail policy for the listener where you want to perform verification.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
620
Email Authentication
Removing Selected DKIM Verification Profiles
Step 3 In the Security Features section of the mail flow policy, enable DKIM Verification by selecting On.
Step 4 Select the DKIM verification profile that you want to use for the policy.
Step 5 Commit your changes.
What to do next
Related Topics
• DKIM Verification and Logging, on page 621
DKIM Verification and Logging
Lines such as the following are added to the mail logs upon DKIM verification:
mail.current:Mon Aug 6 13:35:38 2007 Info: MID 17 DKIM: no signature
mail.current:Mon Aug 6 15:00:37 2007 Info: MID 18 DKIM: verified pass
Configuring an Action for DKIM Verified Mail
When you verify DKIM mail, an Authentication-Results header is added to the mail, but the mail is accepted
regardless of the authentication result. To configure actions based on these authentication results, you can
create a content filter to perform actions on the DKIM-verified mail. For example, if DKIM verification fails,
you may want configure the mail to be delivered, bounced, dropped, or sent to a quarantine. To do this, you
must configure an action using a content filter.
Procedure
Step 1 Choose Mail Policies > Incoming Content Filters.
Step 2 Click Add Filter.
Step 3 In the Conditions section, click Add Condition.
Step 4 Select DKIM Authentication from the list of conditions.
Step 5 Choose a DKIM condition. Select one of the following options:
• Pass. The message passed the authentication tests.
• Neutral. Authentication was not performed.
• Temperror. A recoverable error occurred.
• Permerror. An unrecoverable error occurred.
• Hardfail. The authentication tests failed.
• None. The message was not signed.
Step 6 Select an action to associate with the condition. For example, if the DKIM verification fails, you may want
to notify the recipient and bounce the message. Or, if DKIM verification passes, you may want to deliver the
message immediately without further processing.
Step 7 Submit the new content filter.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
621
Email Authentication
DKIM Verification and Logging
Step 8 Enable the content filter on the appropriate incoming mail policy.
Step 9 Commit your changes.
Overview of SPF and SIDF Verification
AsyncOS supports Sender Policy Framework (SPF) and Sender ID Framework (SIDF) verification. SPF and
SIDF are methods for verifying authenticity of email based on DNS records. SPF and SIDF allow the owner
of an Internet domain to use a special format of DNS TXT records to specify which machines are authorized
to transmit email for that domain. Compliant mail receivers then use the published SPF records to test the
authorization of the sending Mail Transfer Agent’s identity during a mail transaction.
When you useSPF/SIDFauthentication, the senders publishSPFrecordsspecifying which hosts are permitted
to use their names, and compliant mail receivers use the published SPF records to test the authorization of the
sending Mail Transfer Agent’s identity during a mail transaction.
BecauseSPFchecksrequire parsing and evaluation, AsyncOSperformance may be impacted. In addition,
be aware that SPF checks increase the load on your DNS infrastructure.
Note
When you work with SPF and SIDF, note that SIDF is similar to SPF, but it has some differences. To get a
full description of the differences between SIDF and SPF, see RFC 4406. For the purposes of this
documentation, the two terms are discussed together except in the cases where only one type of verification
applies.
Note AsyncOS does not support SPF for incoming relays.
Related Topics
• A Note About Valid SPF Records, on page 622
A Note About Valid SPF Records
To use SPF and SIDF with an email gateway, publish the SPF record according to the RFCs 4406, 4408, and
7208. Review RFC 4407 for a definition of how the PRA identity is determined. You may also want to refer
to the following website to view common mistakes made when creating SPF and SIDF records:
http://www.openspf.org/FAQ/Common_mistakes
Related Topics
• Valid SPF Records, on page 623
• Valid SIDF Records, on page 623
• Testing Your SPF Records, on page 623
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
622
Email Authentication
Overview of SPF and SIDF Verification
Valid SPF Records
To pass the SPF HELO check, ensure that you include a “v=spf1 a –all” SPF record for each sending MTA
(separate from the domain). If you do not include this record, the HELO check will likely result in a None
verdict for the HELO identity. If you notice that SPF senders to your domain return a high number of None
verdicts, these senders may not have included a “v=spf1 a –all” SPF record for each sending MTA.
Valid SIDF Records
To support the SIDF framework, you need to publish both “v=spf1” and “spf2.0” records. For example, your
DNS record may look like the following example:
example.com. TXT "v=spf1 +mx a:colo.example.com/28 -all"
smtp-out.example.com TXT "v=spf1 a -all"
example.com. TXT "spf2.0/mfrom,pra +mx a:colo.example.com/28 -all"
SIDF does not verify the HELO identity, so in this case, you do not need to publish SPF v2.0 records for each
sending MTA.
Note If you choose not to support SIDF, publish an “spf2.0/pra ~all” record.
Testing Your SPF Records
In addition to reviewing the RFCs, it is a good idea to test your SPF records before you implement SPF
verification on an email gateway. There are several testing tools available on the openspf.org website:
http://www.openspf.org/Tools
You can use the following tool to determine why an email failed an SPF record check:
http://www.openspf.org/Why
In addition, you can enable SPF on a test listener and use Cisco’s trace CLI command (or perform trace from
the GUI) to view the SPF results. Using trace, you can easily test different sending IPs.
How to Verify Incoming Messages Using SPF/SIDF
Do This More Info
Defining Rules for Incoming Messages
Using a Mail Flow Policy, on page 107
(Optional) Create a custom mail flow policy to use
for verifying incoming messages using SPF/SIDF.
Step 1
Configure your mail flow policiesto verify incoming Enabling SPF and SIDF, on page 624
messages using SPF/SIDF.
Step 2
Determining the Action to Take for
SPF/SIDF Verified Mail, on page 628
Define the action that the email gateway takes on
verified messages.
Step 3
Associate the action with groups ofspecific senders Configuring Mail Policies, on page 265
or recipients.
Step 4
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
623
Email Authentication
Valid SPF Records
Do This More Info
Testing the SPF/SIDF Results, on page
631
Step 5 (Optional) Test the results of message verification.
Although Cisco strongly endorses email authentication globally, at this point in the industry's adoption,
Cisco suggests a cautious disposition for SPF/SIDF authentication failures. Until more organizations
gain greater control of their authorized mail sending infrastructure, Cisco urges customers to avoid
bouncing emails and instead quarantine emails that fail SPF/SIDF verification.
Caution
The AsyncOS command line interface (CLI) provides more control settings for SPF level than the web
interface. Based on the SPF verdict, the email gateway can accept or reject a message, in SMTP
conversation, on a per listener basis. You can modify the SPF settings when editing the default settings
for a listener’s Host Access Table using the listenerconfig command. See the Enabling SPF and SIDF
via the CLI, on page 625 for more information on the settings.
Note
Enabling SPF and SIDF
To use SPF/SIDF, you must enable SPF/SIDF for a mail flow policy on an incoming listener. You can enable
SPF/SIDF on the listener from the default mail flow policy, or you can enable it for particular incoming mail
flow policies.
Procedure
Step 1 Choose Mail Policies > Mail Flow Policy.
Step 2 Click Default Policy Parameters.
Step 3 In the default policy parameters, view the Security Features section.
Step 4 In the SPF/SIDF Verification section, click On.
Step 5 Set the level of conformance (the default is SIDF-compatible). This option allows you to determine which
standard ofSPForSIDFverification to use. In addition toSIDFconformance, you can chooseSIDF-compatible,
which combines SPF and SIDF
SPF/SIDF Conformance Levels
Conformance Level Description
The SPF/SIDF verification behaves according to RFC4408 and RFC7208.
- No purported responsible address (PRA) identity verification takes place.
NOTE: Select this conformance option to test against the HELO identity.
SPF
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
624
Email Authentication
Enabling SPF and SIDF
Conformance Level Description
The SPF/SIDF verification behaves according to RFC4406.
-The PRA Identity is determined with full conformance to the standard.
- SPF v1.0 records are treated as spf2.0/mfrom,pra.
- For a nonexistent domain or a malformed identity, a verdict of Fail is returned.
SIDF
The SPF/SIDF verification behaves according to RFC4406 except for the following
differences:
- SPF v1.0 records are treated as spf2.0/mfrom.
- For a nonexistent domain or a malformed identity, a verdict of None is returned.
NOTE: This conformance option was introduced at the request of the OpenSPF
community (www.openspf.org).
SIDF Compatible
More settings are available via the CLI. See Enabling SPF and SIDF via the CLI, on page 625 for
more information.
Note
Step 6 If you choose a conformance level ofSIDF-compatible, configure whether the verification downgrades aPass
result of thePRA identity to None if there are Resent-Sender: or Resent-From: headers present in the message.
You might choose this option for security purposes.
Step 7 If you choose a conformance level of SPF, configure whether to perform a test against the HELO identity.
You might use this option to improve performance by disabling the HELO check. This can be useful because
the spf-passed filter rule checksthePRA or the MAIL FROM Identitiesfirst. The email gateway only performs
the HELO check for the SPF conformance level.
What to do next
Related Topics
• The Received-SPF Header, on page 627
• Enabling SPF and SIDF via the CLI, on page 625
Enabling SPF and SIDF via the CLI
The AsyncOS CLI supports more control settings for each SPF/SIDF conformance level. When configuring
the default settings for a listener’s Host Access Table, you can choose the listener’s SPF/SIDF conformance
level and the SMTP actions (ACCEPT or REJECT) that the email gateway performs, based on the SPF/SIDF
verification results. You can also define the SMTP response that the email gateway sends when it rejects a
message.
Depending on the conformance level, the email gateway performs a check against the HELO identity, MAIL
FROM identity, or PRA identity. You can specify whether the email gateway proceeds with the session
(ACCEPT) or terminates the session (REJECT) for each of the following SPF/SIDF verification results for
each identity check:
• None. No verification can be performed due to the lack of information.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
625
Email Authentication
Enabling SPF and SIDF via the CLI
• Neutral. The domain owner does not assert whether the client is authorized to use the given identity.
• SoftFail. The domain owner believes the host is not authorized to use the given identity but is not willing
to make a definitive statement.
• Fail. The client is not authorized to send mail with the given identity.
• TempError. A transient error occurred during verification.
• PermError. A permanent error occurred during verification.
The email gateway acceptsthe message for aPassresult unless you configure theSIDF Compatible conformance
level to downgrade a Pass result of the PRA identity to None if there are Resent-Sender: or Resent-From:
headers present in the message. The email gateway then takes the SMTP action specified for when the PRA
check returns None.
If you choose not to define the SMTP actions for an identity check, the email gateway automatically accepts
all verification results, including Fail.
The email gateway terminates the session if the identity verification result matches a REJECT action for any
of the enabled identity checks. For example, an administrator configures a listener to accept messages based
on all HELO identity check results, including Fail, but also configures it to reject messages for a Fail result
from the MAIL FROM identity check. If a message fails the HELO identity check, the session proceeds
because the email gateway accepts that result. If the message then fails the MAIL FROM identity check, the
listener terminates the session and then returns the STMP response for the REJECT action.
The SMTP response is a code number and message that the email gateway returns when it rejects a message
based on the SPF/SIDF verification result. The TempError result returns a different SMTP response from the
other verification results. For TempError, the default response code is 451 and the default message text is
#4.4.3 Temporary error occurred during SPF verification .For all other verification results, the default
response code is 550 and the default message text is #5.7.1 SPF unauthorized mail is prohibited . You
can specify your own response code and message text for TempError and the other verification results.
Optionally, you can configure the email gateway to return a third-party response from the SPF publisher
domain if the REJECT action is taken for Neutral, SoftFail, or Fail verification result. By default, the email
gateway returns the following response:
550-#5.7.1 SPF unauthorized mail is prohibited.
550-The domain example.com explains:
550
To enable these SPF/SIDF settings, use the listenerconfig -> edit subcommand and select a listener.
Then use the hostaccess -> default subcommand to edit the Host Access Table’s default settings.
The following SPF control settings are available for the Host Access Table
SPF Control Settings via the CLI
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
626
Email Authentication
Enabling SPF and SIDF via the CLI
Conformance Level Available SPF Control Settings
• Whether to perform HELO identity check
• SMTP actions taken based on the results of the following identity checks:
• HELO identity (if enabled)
• MAIL FROM Identity
• SMTP response code and text returned for the REJECT action
• Verification time out (in seconds)
SPF Only
• Whether to perform a HELO identity check
• Whether the verification downgrades a Pass result of the PRA identity to
None if the Resent-Sender: or Resent-From: headers are present in the
message.
• SMTP actions taken based on the results of the following identity checks:
• HELO identity (if enabled)
• MAIL FROM Identity
• PRA Identity
• SMTP response code and text returned for the REJECT action.
• Verification timeout (in seconds)
SIDF Compatible
• SMTP actions taken based on the results of the following identity checks:
• MAIL FROM Identity
• PRA Identity
• SMTP response code and text returned in case of SPF REJECT action.
• Verification timeout (in seconds)
SIDF Strict
The email gateway performs the HELO identity check and accepts the None and Neutral verification results
and rejects the others. The CLI prompts for the SMTP actions are the same for all identity types. The user
does not define the SMTP actions for the MAIL FROM identity. The email gateway automatically accepts
all verification results for the identity. The email gateway uses the default reject code and text for all REJECT
results.
You can also configure this in the command-line interface using the listenerconfig command.
The Received-SPF Header
When you configure AsyncOS for SPF/SIDF verification, it places an SPF/SIDF verification header (
Received-SPF ) in the email. The Received-SPF header contains the following information:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
627
Email Authentication
The Received-SPF Header
• verification result - the SPF verification result (see Verification Results, on page 629).
• identity - the identity that SPF verification checked: HELO, MAIL FROM, or PRA.
• receiver - the verifying host name (which performs the check).
• client IP address - the IP address of the SMTP client.
• ENVELOPE FROM - the envelope sender mailbox. (Note that this may be different from the MAIL
FROM identity, as the MAIL FROM identity cannot be empty.)
• x-sender - the value of the HELO, MAIL FROM, or PRA identity.
• x-conformance - the level of conformance (see Table - SPF/SIDF Conformance Levels ) and whether
a downgrade of the PRA check was performed.
The following example shows a header added for a message that passed the SPF/SIDF check:
Received-SPF: Pass identity=pra; receiver=box.example.com;
client-ip=1.2.3.4; envelope-from="alice@fooo.com";
x-sender="alice@company.com"; x-conformance=sidf_compatible
The spf-status and spf-passed filter rules use the received-SPF header to determine the status of the
SPF/SIDF verification.
Note
Determining the Action to Take for SPF/SIDF Verified Mail
When you receive SPF/SIDF verified mail, you may want to take different actions depending on the results
of the SPF/SIDF verification. You can use the following message and content filter rules to determine the
status of SPF/SIDF verified mail and perform actions on the messages based on the verification results:
• spf-status . This filter rule determines actions based on the SPF/SIDF status. You can enter a different
action for each valid SPF/SIDF return value.
• spf-passed . This filter rule generalizes the SPF/SIDF results as a Boolean value.
Note The spf-passed filter rule is only available in message filters.
You can use the spf-status rule when you want to address more granular results, and use the spf-passed rule
when you want to create a simple Boolean.
Related Topics
• Verification Results, on page 629
• Using the spf-status Filter Rule in the CLI, on page 629
• spf-status Content Filter Rule in the GUI, on page 630
• Using the spf-passed Filter Rule, on page 631
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
628
Email Authentication
Determining the Action to Take for SPF/SIDF Verified Mail
Verification Results
If you use the spf-status filter rule, you can check against the SPF/SIDF verification results using the
following syntax:
if (spf-status == "Pass")
If you want a single condition to check against multiple status verdicts, you can use the following syntax:
if (spf-status == "PermError, TempError")
You can also check the verification results against the HELO, MAIL FROM, and PRA identities using the
following syntax:
if (spf-status("pra") == "Fail")
You can only use the spf-status message filter rule to check results against HELO, MAIL FROM, and
PRA identities. You cannot use the spf-status content filter rule to check against identities. The
spf-status content filter checks only the PRA identity.
Note
You can receive any of the following verification results:
• None - no verification can be performed due to the lack of information.
• Pass - the client is authorized to send mail with the given identity.
• Neutral - the domain owner does not assert whether the client is authorized to use the given identity.
• SoftFail - the domain owner believes the host is not authorized to use the given identity but is not willing
to make a definitive statement.
• Fail - the client is not authorized to send mail with the given identity.
• TempError - a transient error occurred during verification.
• PermError - a permanent error occurred during verification.
Using the spf-status Filter Rule in the CLI
The following example shows the spf-status message filter in use:
skip-spam-check-for-verified-senders:
if (sendergroup == "TRUSTED" and spf-status == "Pass"){
skip-spamcheck();
}
quarantine-spf-failed-mail:
if (spf-status("pra") == "Fail") {
if (spf-status("mailfrom") == "Fail"){
# completely malicious mail
quarantine("Policy");
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
629
Email Authentication
Verification Results
} else {
if(spf-status("mailfrom") == "SoftFail") {
# malicious mail, but tempting
quarantine("Policy");
}
}
} else {
if(spf-status("pra") == "SoftFail"){
if (spf-status("mailfrom") == "Fail"
or spf-status("mailfrom") == "SoftFail"){
# malicious mail, but tempting
quarantine("Policy");
}
}
}
stamp-mail-with-spf-verification-error:
if (spf-status("pra") == "PermError, TempError"
or spf-status("mailfrom") == "PermError, TempError"
or spf-status("helo") == "PermError, TempError"){
# permanent error - stamp message subject
strip-header("Subject");
insert-header("Subject", "[POTENTIAL PHISHING] $Subject");
}
.
spf-status Content Filter Rule in the GUI
You can also enable the spf-status rule from the content filters in the GUI. However, you cannot check results
against HELO, MAIL FROM, and PRA identities when using the spf-status content filter rule.
To add the spf-status content filter rule from the GUI, click Mail Policies > Incoming Content Filters. Then
add the SPF Verification filter rule from the Add Condition dialog box. Specify one or more verification
results for the condition.
After you add the SPF Verification condition, specify an action to perform based on the SPF status. For
example, if the SPF status is SoftFail, you might quarantine the message.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
630
Email Authentication
spf-status Content Filter Rule in the GUI
Using the spf-passed Filter Rule
The spf-passed rule shows the results of SPF verification as a Boolean value. The following example shows
an spf-passed rule used to quarantine emails that are not marked as spf-passed:
quarantine-spf-unauthorized-mail:
if (not spf-passed) {
quarantine("Policy");
}
Unlike the spf-status rule, the spf-passed rule reduces the SPF/SIDF verification values to a simple
Boolean. The following verification results are treated as not passed in the spf-passed rule: None,
Neutral, Softfail, TempError, PermError, and Fail. To perform actions on messages based on more
granular results, use the spf-status rule.
Note
Testing the SPF/SIDF Results
Test the results of SPF/SIDF verification and use these results to determine how to treat SPF/SIDF failures
because different organizations implement SPF/SIDF in different ways. Use a combination of content filters,
message filters, and the Email Security Monitor - Content Filters report to test the results of the SPF/SIDF
verification.
Your degree of dependence on SPF/SIDF verification determines the level of granularity at which you test
SPF/SIDF results.
Related Topics
• Basic Granularity Test of SPF/SIDF Results, on page 631
• Greater Granularity Test of SPF/SIDF Results, on page 632
Basic Granularity Test of SPF/SIDF Results
To get a basic measure of the SPF/SIDF verification results for incoming mail, you can use content filters
and the Email Security Monitor - Content Filters page. This test provides a view of the number of messages
received for each type of SPF/SIDF verification result.
Procedure
Step 1 Enable SPF/SIDF verification for a mail flow policy on an incoming listener, and use a content filter to
configure an action to take.For information on enablingSPF/SIDF, see EnablingSPFandSIDF, on page 624.
Step 2 Create an spf-status content filter for each type of SPF/SIDF verification. Use a naming convention to
indicate the type of verification.For example, use “SPF-Passed” for messagesthat passSPF/SIDFverification,
or “SPF-TempErr” for messagesthat weren’t passed due to a transient error during verification.For information
about creating an spf-status content filter, see spf-status Content Filter Rule in the GUI, on page 630.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
631
Email Authentication
Using the spf-passed Filter Rule
Step 3 After you have processed a number of SPF/SIDF verified messages, click Monitor > Content Filters to see
how many messages triggered each of the SPF/SIDF verified content filters.
Greater Granularity Test of SPF/SIDF Results
For more comprehensive information aboutSPF/SIDFverification results, only enableSPF/SIDFverification
for specific groups of senders, and review the results for those specific senders. Then, create a mail policy for
that particular group and enable SPF/SIDF verification on the mail policy. Create content filters and review
the Content Filters report as explained in Basic Granularity Test of SPF/SIDF Results, on page 631. If you
find that the verification is effective, then you can use SPF/SIDF verification as a basis for deciding whether
to drop or bounce emails for this specified group of senders.
Procedure
Step 1 Create a mail flow policy for SPF/SIDF verification. Enable SPF/SIDF verification for the mail flow policy
on an incoming listener.For information about enablingSPF/SIDF, see EnablingSPFandSIDF, on page 624.
Step 2 Create a sender group forSPF/SIDFverification and use a naming convention to indicateSPF/SIDFverification.
For information about creating sender groups, see the “Configuring the Gateway to Receive Mail” chapter.
Step 3 Create an spf-status content filter for each type of SPF/SIDF verification. Use a naming convention to
indicate the type of verification.For example, use “SPF-Passed” for messagesthat passSPF/SIDFverification,
or “SPF-TempErr” for messagesthat weren’t passed due to a transient error during verification.For information
about creating an spf-status content filter, see spf-status Content Filter Rule in the GUI, on page 630.
Step 4 After you process a number of SPF/SIDF-verified messages, click Monitor > Content Filters to see how
many messages triggered each of the SPF/SIDF-verified content filters.
DMARC Verification
Domain-based Message Authentication, Reporting and Conformance (DMARC) is a technical specification
created to reduce the potential for email-based abuse. DMARC standardizes how email receivers perform
email authentication using SPF and DKIM mechanisms. To pass DMARC verification, an email must pass
at least one of these authentication mechanisms, and the Authentication Identifiers must comply with RFC
5322.
The email gateway allows you to:
• Verify incoming emails using DMARC.
• Define profiles to override (accept, quarantine, or reject) domain owners’ policies.
• Send feedback reports to domain owners, which helps to strengthen their authentication deployments.
• Send delivery error reports to the domain owners if the DMARC aggregate report size exceeds 10 MB
or the size specified in the RUA tag of the DMARC record.
AsyncOS can handle emails that are compliant with the DMARC specification as submitted to Internet
Engineering Task Force (IETF) on March 31, 2013. For more information, see
http://tools.ietf.org/html/draft-kucherawy-dmarc-base-02 .
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
632
Email Authentication
Greater Granularity Test of SPF/SIDF Results
The email gateway will not perform DMARC verification of messages from domains with malformed
DMARC records. However, the email gateway can receive and process such messages.
Note
Related Topics
• DMARC Verification Workflow, on page 633
• How to Verify Incoming Messages Using DMARC, on page 633
DMARC Verification Workflow
The following describes how AsyncOS performs DMARC verification.
1. A listener configured on AsyncOS receives an SMTP connection.
2. AsyncOS performs SPF and DKIM verification on the message.
3. AsyncOS fetches the DMARC record for the sender’s domain from the DNS.
• If no record is found, AsyncOS skips the DMARC verification and continues processing.
• If the DNS lookup fails, AsyncOS takes action based on the specified DMARC verification profile.
4. Depending on DKIM and SPF verification results, AsyncOS performs DMARC verification on the
message.
If DKIM and SPF verification is enabled, DMARC verification reuses the DKIM and SPF verification
results.
Note
5. Depending on the DMARC verification result and the specified DMARC verification profile, AsyncOS
accepts, quarantines, or rejects the message. If the message is not rejected due to DMARC verification
failure, AsyncOS continues processing.
6. AsyncOS sends an appropriate SMTP response and continues processing.
7. If sending of aggregate reports is enabled, AsyncOS gathers DMARC verification data and includes it in
the daily report sent to the domain owners. For more information about the DMARC aggregate feedback
report, see DMARC Aggregate Reports, on page 639.
If the aggregate report size exceeds 10 MB or the size specified in the RUA tag of the DMARC record,
AsyncOS sends delivery error reports to the domain owners.
Note
How to Verify Incoming Messages Using DMARC
How to Verify Incoming Messages Using DMARC
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
633
Email Authentication
DMARC Verification Workflow
Do This More Information
Create a DMARC VerificationProfile, on page
635
Edit a DMARC Verification Profile, on page
636
Create a new DMARC verification profile or
modify the default DMARC verification profile
to meet your requirements.
Step 1
Configure Global DMARC Settings, on page
637
(Optional) Configure global DMARC settings
to meet your requirements.
Step 2
Configuring DMARC Verification on the Mail
Flow Policy, on page 638
Configure your mail flow policies to verify
incoming messages using DMARC.
Step 3
Configure a Return Address for DMARC
Feedback Reports, on page 638
(Optional) Configure a return address for
DMARC feedback reports.
Step 4
• DMARC Verification Page, on page 852
• Incoming Mail Page, on page 841
• Searching for Messages on the Legacy
Interface , on page 916
(Optional) Review the following:
• DMARC Verification and Incoming Mail
reports
• Messagesthat failed DMARC verification
using Message Tracking
Step 5
Related Topics
• Managing DMARC Verification Profiles, on page 634
• DMARC Aggregate Reports, on page 639
• Configure Global DMARC Settings, on page 637
• Configuring DMARC Verification on the Mail Flow Policy, on page 638
• Configure a Return Address for DMARC Feedback Reports, on page 638
Managing DMARC Verification Profiles
A DMARC verification profile is a list of parameters that the mail flow policies of the email gateway use for
verifying DMARC. For example, you may want to create a stringent profile that rejects all non-compliant
messages from a particular domain and a less stringent profile that quarantines all non-compliant messages
from another domain.
A DMARC verification profile consists of the following information:
• A name for the verification profile.
• Message action to take when the policy in the DMARC record is reject.
• Message action to take when the policy in the DMARC record is quarantine.
• Message action in case of a temporary failure.
• Message action in case of a permanent failure.
Related Topics
• Create a DMARC Verification Profile, on page 635
• Edit a DMARC Verification Profile, on page 636
• Exporting DMARC Verification Profiles, on page 636
• Importing DMARC Verification Profiles, on page 636
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
634
Email Authentication
Managing DMARC Verification Profiles
• Deleting DKIM Verification Profiles, on page 619
Create a DMARC Verification Profile
Use this procedure to create a new DMARC verification profile.
By default, AsyncOSprovides a default DMARC verification profile. If you do not want to create a new
DMARC verification profile, you can use the default DMARC verification profile. The default DMARC
verification profile is available on Mail Policies > DMARC page. For instructions to edit the default
DMARC verification profile, see Edit a DMARC Verification Profile, on page 636.
Note
Procedure
Step 1 Choose Mail Policies > DMARC.
Step 2 Click Add Profile.
Step 3 Enter the name of the profile.
Step 4 Set the message action that AsyncOS takes when the policy in the DMARC record is reject. Choose one of
the following:
• No Action. AsyncOS does not take any action on the messages that fail DMARC verification.
• Quarantine. AsyncOSquarantinesthe messagesthat fail DMARC verification to a specified quarantine.
• Reject. AsyncOS rejects all messages that fail DMARC verification and returns a specified SMTP code
and response. The default values are, respectively: 550 and #5.7.1 DMARC unauthenticated mail is
prohibited.
Step 5 Set the message action that AsyncOS takes when the policy in the DMARC record is quarantine. Choose one
of the following:
• No Action. AsyncOS does not take any action on the messages that fail DMARC verification.
• Quarantine. AsyncOSquarantinesthe messagesthat fail DMARC verification to a specified quarantine.
Step 6 Set the message action that AsyncOS takes on the messages that result in temporary failure during DMARC
verification. Choose one of the following:
• Accept. AsyncOS accepts messages that result in temporary failure during DMARC verification.
• Reject. AsyncOS rejects messages that result in temporary failure during DMARC verification and
returns a specified SMTP code and response. The default values are, respectively: 451 and #4.7.1
Unable to perform DMARC verification.
Step 7 Set the message action that AsyncOS takes on the messages that result in permanent failure during DMARC
verification. Choose one of the following:
• Accept. AsyncOS accepts messages that result in permanent failure during DMARC verification.
• Reject. AsyncOS rejects messages that result in permanent failure during DMARC verification, and
returns a specified SMTP code and response. The default values are, respectively: 550 and #5.7.1
DMARC verification failed.
Step 8 Submit and commit your changes.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
635
Email Authentication
Create a DMARC Verification Profile
Edit a DMARC Verification Profile
Procedure
Step 1 Choose Mail Policies > DMARC.
Step 2 Click the intended verification profile name.
Step 3 Edit the intended fields as described in Create a DMARC Verification Profile, on page 635.
Step 4 Submit and commit your changes.
Exporting DMARC Verification Profiles
You can export all DMARC verification profiles on your email gateway to a single text file in the configuration
directory.
Procedure
Step 1 Choose Mail Policies > DMARC.
Step 2 Click Export Profiles.
Step 3 Enter a name for the file.
Step 4 Click Submit.
Importing DMARC Verification Profiles
Procedure
Step 1 Choose Mail Policies > DMARC.
Step 2 Click Import Profiles.
Step 3 Choose the file that contains the DMARC verification profiles.
Step 4 Click Submit. You are warned that importing will replace all existing DMARC verification profiles.
Step 5 Click Import.
Step 6 Commit your changes.
Deleting DMARC Verification Profiles
Procedure
Step 1 Choose Mail Policies > DMARC.
Step 2 Select the verification profiles that you want to delete.
Step 3 Click Delete.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
636
Email Authentication
Edit a DMARC Verification Profile
Step 4 Confirm the deletion.
Configure Global DMARC Settings
Procedure
Step 1 Choose Mail Policies > DMARC.
Step 2 Click Edit Global Settings.
Step 3 Make changes to the settings defined in the following table.
DMARC Global Settings
Global Setting Description
Skip DMARC verification of messages from specific senders. Choose an
address list from the drop-down list.
Address lists that are created using full email addresses or
domains only can be used to bypass DMARC verification.For
more information, see Using a List of Sender Addresses for
Incoming Connection Rules, on page 114.
Note
Specific senders bypass address
list
Skip DMARC verification of messages that contain specific headers.For
example, use this option to skip DMARC verification of messages from
mailing lists and trusted forwarders.
Enter a header or multiple headers separated by commas.
Bypass verification for messages
with headers
The time when you want AsyncOSto generate DMARC aggregate reports.
For example, you can choose non-peak hours for generating aggregate
reports to avoid impact on mail flow.
Schedule for report generation
The entity generating DMARC aggregate reports. This helps the domain
owners who receive DMARC aggregate reports to identify the entity that
generated the report.
Enter a valid domain name.
Entity generating reports
Additional contact information, for example, details of your organization’s
customer support, if the domain owners who receive DMARC aggregate
reports want to contact the entity that generated the report.
Additional contact information
for reports
Send a copy of all DMARC aggregate reports to specific users, for
example, internal users who perform analysis on the aggregate reports.
Enter an email address or multiple addresses separated by commas.
Send copy of all aggregate reports
to
Send delivery error reportsto the domain ownersif the DMARC aggregate
report size exceeds 10 MB or the size specified in the RUA tag of the
DMARC record.
Check the check box.
Error Reports
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
637
Email Authentication
Configure Global DMARC Settings
Step 4 Submit and commit your changes.
Configuring DMARC Verification on the Mail Flow Policy
Procedure
Step 1 Choose Mail Policies > Mail Flow Policies.
Step 2 Click the incoming mail policy for the listener where you want to perform verification.
Step 3 In the Security Features section of the mail flow policy, enable DMARC Verification by choosing On.
Step 4 Select the DMARC verification profile that you want to use for the policy.
Step 5 (Optional) Enable sending of DMARC aggregate feedback reports to email addresses in the RUA tag of
DMARC-enabled domains from whom messages are received.
Aggregate feedback reports are generated daily.
Step 6 Submit and commit your changes.
What to do next
Related Topics
• DMARC Verification Logs, on page 638
DMARC Verification Logs
Log messages are added to the mail logs during the following stages of DMARC verification.
• DMARC verification attempted on a message
• DMARC verification is complete
• DMARC verification details including DKIM and SPF alignment results
• DMARC verification on a message is skipped
• DMARC record is fetched and parsed or DNS failures
• DMARC aggregate report delivery for a domain failed
• Error report generated for a domain
• Error report delivery for a domain succeeded
• Error report delivery for a domain failed
Configure a Return Address for DMARC Feedback Reports
Procedure
Step 1 Choose System Administration > Return Addresses.
Step 2 Click Edit Settings.
Step 3 Provide a return address for DMARC aggregate feedback reports.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
638
Email Authentication
Configuring DMARC Verification on the Mail Flow Policy
Step 4 Submit and commit your changes.
DMARC Aggregate Reports
DMARC relies on a feedback mechanism to enforce domain owner policies safely and in a scalable manner.
This feedback mechanism helps the domain owners to strengthen their authentication deployments.
If you are using AsyncOS to perform DMARC verification and you have enabled sending of aggregate
feedback reports in the mail flow policy, AsyncOS generates aggregate feedback reports daily, and sends it
to the domain owners. These reports are in XML format and are archived into a GZip file.
Note All DMARC aggregate feedback reports that AsyncOS generates are DMARC compliant.
A DMARC aggregate feedback report contains the following sections:
• Metadata of the report sender such as email address and report ID number.
• Details of the published DMARC policy.
• Details of DMARC policy disposition such as source IP address and disposition summary.
• Domain identifiers
• DMARC verification results and authentication summary.
Related Topics
• Sample DMARC Aggregate Feedback Report, on page 639
Sample DMARC Aggregate Feedback Report
1.0
cisco.com
noreply-dmarc-support@cisco.com
http://cisco.com/dmarc/support
b1d925$4ecceab=0694614b826605cd@cisco.com
1335571200
1335657599
example.com
r
r
none
none
100
1.1.1.1
2
none
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
639
Email Authentication
DMARC Aggregate Reports
fail
pass
example.com
example.com
example.com
ny
fail
example.net
pass
example.com
mfrom
pass
Forged Email Detection
Email forging (also known as spoofing, CEO fraud, or business email compromise) is the process of altering
the message header to hide the real identity of the sender and to make it look like a legitimate message from
someone you know. Assume that a fraudster impersonating as an executive of an organization, is sending a
forged message to an employee asking to send a list of clients and their personally identifiable information
(PII). The employee, unaware of the real identity of the sender, provides a list of clients and their PII. The
fraudster uses the PII to perform identity theft.
The email gateway can detect fraudulent messages with forged sender address (From: header) and perform
specified actions on such messages.For example, your email gateway can detect messages with forged sender
address and replace the From: header with the Envelope Sender. In this case, the employee will see the email
address of the real sender (fraudster’s) instead of the forged email address.
Related Topics
• Setting Up Forged Email Detection, on page 640
• Monitoring Forged Email Detection Results, on page 641
• Displaying Forged Email Detection Details in Message Tracking, on page 642
Setting Up Forged Email Detection
1. Identify the users in your organization (for example, executives) whose messages are likely to be forged.
Create a new content dictionary and add the names of the identified users to it.
While creating a content dictionary,
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
640
Email Authentication
Forged Email Detection
• Enter the name of the user and not the email address. For example, enter “ Olivia Smith ” instead of
“ olivia.smith@example.com .”
• Do not configure Advanced Matching and Smart Identifiers.
• Do not choose weight for the terms used.
• Do not use regular expressions.
The following figure shows a sample content dictionary created for Forged Email Detection.
Figure 38: Content Dictionary for Forged Email Detection
For instructions to configure a content dictionary, see Adding Dictionaries, on page 647.
2. Create an incoming content or message filter to detect forged messages and the actions that the email
gateway must take on such messages. Use the following:
• Condition/Rule: Forged Email Detection (See Content Filter Conditions, on page 274 and Message
Filter Rules, on page 132)
If you want to skip the Forged email detection filter for messages from
specific senders, choose the addresslist from the Exception List drop-down
list. You can choose only the address lists that are created using the full
email addresses. For more information on adding exception address list,
refer to Using a List of Sender Addresses for Incoming Connection Rules,
on page 114.
Note
• Action: Forged Email Detection or any other actions based on your requirement. (See Content Filter
Conditions, on page 274 and Message Filter Rules, on page 132)
3. Add the newly created content filter to an incoming mail policy. See How to Enforce Mail Policies on a
Per-User Basis, on page 260.
Monitoring Forged Email Detection Results
To view data about forged messages detected, see the Forged Email Matches report page (Monitor > Forged
Email Matches). This report page includes the following reports:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
641
Email Authentication
Monitoring Forged Email Detection Results
• Top Forged Email Matches. Displays the top ten users in the content dictionary that matched the forged
From: header in the incoming messages.
• Forged Email Matches: Details. Displays a list of all the users in the content dictionary that matched
the forgedFrom: header in the incoming messages and for a given user, the number of messages matched.
Click on the number to view a list of messages in Message Tracking.
Displaying Forged Email Detection Details in Message Tracking
To display details of forged messages detected by the email gateway in Message Tracking, make sure that:
• Message Tracking is enabled. See Tracking Messages, on page 915.
• Content or message filters for detecting forged messages are operational.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
642
Email Authentication
Displaying Forged Email Detection Details in Message Tracking
CHAPTER 27
Text Resources
This chapter contains the following sections:
• Overview of Text Resources, on page 643
• Content Dictionaries, on page 644
• Using and Testing the Content Dictionaries Filter Rules, on page 649
• Understanding Text Resources, on page 651
• Overview of Text Resource Management, on page 652
• Using Text Resources, on page 655
Overview of Text Resources
This chapter discusses creating and managing various text resources, such as content dictionaries, disclaimers,
and templates.
Related Topics
• Content Dictionaries, on page 643
• Text Resources, on page 644
• Message Disclaimer Stamping, on page 644
• Using Custom Dictionaries of Sensitive DLP Terms (Custom DLP Policies Only) , on page 522
Content Dictionaries
Content dictionaries are groups of words or entries that work in conjunction with the Body Scanning feature
on the email gateway and are available to both content and message filters. Use the dictionaries you define
to scan messages, message headers, and message attachments for terms included in the dictionary in order to
take appropriate action in accordance with your corporate policies. For example, you could create a list of
confidential or profane words, and, using a filter rule to scan messages that contain words in the list, drop,
archive, or quarantine the message.
The AsyncOS operating system includes the ability to define a total of 100 content dictionaries using the GUI
(Mail Policies > Dictionaries) or the CLI’s dictionaryconfig command. You can create, delete, and
view dictionaries; add and delete entries from a dictionary; and import and export entire dictionaries.
You can use content dictionariesto scan messages against message or content filtersin order to take appropriate
action in accordance with your corporate policies. You can create, delete, and view dictionaries; add and
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
643
delete entries from a dictionary; and import and export entire dictionaries. You can also determine case
sensitivity and word boundary detection for each dictionary.For example, you could create a list of confidential
or profane words, and, using a filter rule to scan messages for words in the list, drop or archive messages
containing matching words. And you can add a “weight” terms in a dictionary so that certain terms trigger a
filter action more easily.
Dictionaries can contain non-ASCII characters.
Note that, for efficient processing, the following content dictionary entries are treated as words:
• Entries containing only alphanumeric characters
• Email addresses containing the following characters: 0-9, A-Z, a-z, dot, underscore, hyphen, and at
symbol
• Domain names containing the following characters: 0-9, A-Z, a-z, dot, underscore, hyphen, and atsymbol
If you want the email gateway to treat such a word as a regular expression, enclose the word in parenthesis,
for example, (user@example.com) .
Related Topics
• Dictionary Content, on page 645
• Importing and Exporting Dictionaries as Text Files, on page 646
• Adding Dictionaries, on page 647
• Deleting Dictionaries, on page 648
• Importing Dictionaries, on page 648
• Exporting Dictionaries, on page 649
Text Resources
Text resources are text objects, such as disclaimers, notification templates, and anti-virus templates. You can
create new objects for use in various components of AsyncOS. You can import and export text resources.
Message Disclaimer Stamping
Message disclaimer stamping allows you to add a disclaimer text resource to messages. For example, you
could append a copyright statement, promotional message, or disclaimer to every message sent from within
your enterprise.
Content Dictionaries
Content dictionaries are groups of words or entries that work in conjunction with the Body Scanning feature
on the email gateway and are available to both content and message filters. Use the dictionaries you define
to scan messages, message headers, and message attachments for terms included in the dictionary in order to
take appropriate action in accordance with your corporate policies. For example, you could create a list of
confidential or profane words, and, using a filter rule to scan messages that contain words in the list, drop,
archive, or quarantine the message.
The AsyncOS operating system includes the ability to define a total of 100 content dictionaries using the GUI
(Mail Policies > Dictionaries) or the CLI’s dictionaryconfig command. You can create, delete, and
view dictionaries; add and delete entries from a dictionary; and import and export entire dictionaries.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
644
Text Resources
Text Resources
You can use content dictionariesto scan messages against message or content filtersin order to take appropriate
action in accordance with your corporate policies. You can create, delete, and view dictionaries; add and
delete entries from a dictionary; and import and export entire dictionaries. You can also determine case
sensitivity and word boundary detection for each dictionary.For example, you could create a list of confidential
or profane words, and, using a filter rule to scan messages for words in the list, drop or archive messages
containing matching words. And you can add a “weight” terms in a dictionary so that certain terms trigger a
filter action more easily.
Dictionaries can contain non-ASCII characters.
Note that, for efficient processing, the following content dictionary entries are treated as words:
• Entries containing only alphanumeric characters
• Email addresses containing the following characters: 0-9, A-Z, a-z, dot, underscore, hyphen, and at
symbol
• Domain names containing the following characters: 0-9, A-Z, a-z, dot, underscore, hyphen, and atsymbol
If you want the email gateway to treat such a word as a regular expression, enclose the word in parenthesis,
for example, (user@example.com) .
Related Topics
• Dictionary Content, on page 645
• Importing and Exporting Dictionaries as Text Files, on page 646
• Adding Dictionaries, on page 647
• Deleting Dictionaries, on page 648
• Importing Dictionaries, on page 648
• Exporting Dictionaries, on page 649
Dictionary Content
Words in dictionaries are created with one text string per line, and entries can be in plain text or in the form
of regular expressions. Dictionaries can also contain non-ASCII characters. Defining dictionaries of regular
expressions can provide more flexibility in matching terms, but doing so requires you to understand how to
delimit words properly.For a more detailed discussion ofPython style regular expressions, consult thePython
Regular Expression HOWTO, accessible from
http://www.python.org/doc/howto/
To use the special character # at the beginning of a dictionary entry, you can use a character class [#]
to prevent it being treated as a comment.
Note
For each term, you specify a “weight,” so that certain terms can trigger filter conditions more easily. When
AsyncOSscans messages for the content dictionary terms, it “scores” the message by multiplying the number
of term instances by the weight of term. Two instances of a term with a weight of three would result in a score
of six. AsyncOS then compares this score with a threshold value associated with the content or message filter
to determine if the message should trigger the filter action.
You can also add smart identifiers to a content dictionary. Smart identifiers are algorithms that search for
patternsin data that correspond to common numeric patterns,such associalsecurity numbers and ABA routing
numbers. These identifiers can useful for policy enforcement.For more information about regular expressions,
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
645
Text Resources
Dictionary Content
see “Regular Expressions in Rules” in the “Using Message Filters to Enforce Email Policies” chapter. For
more information about smart identifiers, see “Smart Identifiers” in the “Using Message Filters to Enforce
Email Policies” chapter.
Dictionaries containing non-ASCII characters may or may not display properly in the CLI on your
terminal. The best way to view and change dictionaries that contain non-ASCII characters is to export
the dictionary to a text file, edit that text file, and then import the new file back into the email gateway.
For more information, see Importing and Exporting Dictionaries as Text Files, on page 646.
Note
Related Topics
• Word Boundaries and Double-byte Character Sets, on page 646
Word Boundaries and Double-byte Character Sets
In some languages (double-byte character sets), the concepts of a word or word boundary, or case do not exist.
Complex regular expressions that depend on concepts like what is or is not a character that would compose
a word (represented as “\w” in regex syntax) cause problems when the locale is unknown or if the encoding
is not known for certain. For that reason, you may want to disable word-boundary enforcement.
Importing and Exporting Dictionaries as Text Files
The content dictionary feature also includes, by default, the following text files located in the configuration
directory of the email gateway:
• config.dtd
• profanity.txt
• proprietary_content.txt
• sexual_content.txt
These text files are intended to be used in conjunction with the content dictionaries feature to aid you in
creating new dictionaries. These content dictionaries are weighted and use smart identifiers to better detect
patterns in data and trigger filters when the patterns indicate compliance issues.
Importing and exporting dictionaries does not preserve the Match Whole Words and Case Sensitive
settings. This settings are only preserved in the configuration file.
Note
See FTP, SSH, and SCP Access, on page 1307 for more information accessing on the configuration directory.
You can also create your own dictionary files and import them onto the email gateway. The best way to add
non-ASCII characters to dictionaries is to add the terms into the dictionary in a text file off the email gateway,
move that file onto the email gateway, and then import that file as a new dictionary. For more information
about importing dictionaries, see Importing Dictionaries, on page 648. For information about exporting
dictionaries, see Exporting Dictionaries, on page 649.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
646
Text Resources
Word Boundaries and Double-byte Character Sets
These text files contain terms that some persons may consider obscene, indecent or offensive. If you
import terms from these files into your content dictionaries, the terms will be displayed when you later
view the content dictionaries you have configured on the email gateway.
Caution
Adding Dictionaries
Procedure
Step 1 Navigate to the Mail Policies > Dictionaries page.
Step 2 Click Add Dictionary.
Step 3 Type a name for the dictionary.
Step 4 (Optional) Configure Advanced Matching.
AsyncOS preserves the Match Whole Words and Case Sensitive settings when you save them in
the configuration file. AsyncOS does not preserve these settings when importing and exporting
dictionaries.
Note
Step 5 (Optional) Add a smart-identifier to the dictionary.
Smart identifiers are algorithms that search for patterns in data that correspond to common numeric patterns,
such as social security numbers and ABA routing numbers. For more information about smart identifiers, see
the “Using Message Filters to Enforce Email Policies” chapter.
Step 6 Enter new dictionary entries into the list of terms.
If you have multiple new entries to add, and you want them to be equally likely trigger a filter action, put each
new term on its own line.
Content dictionary entries with the regular expression: “ .* ” at the beginning or end will cause the
system to lock if a match for the “word” MIME part is found. Cisco Systems recommends you do
not use “ .* ” at the beginning or end of a content dictionary entry.
Note
Step 7 Specify a weight for the term(s).
You can “weight” a dictionary term so that it is more likely than other terms to trigger a filter action. For more
information about how this weight is used to determine filter actions, see “Threshold Scoring for Content
Dictionaries” in the “Using Message Filters to Enforce Email Policies” chapter.
Step 8 Click Add.
Step 9 Submit and commit your changes.
What to do next
Related Topics
• Dictionary Content, on page 645.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
647
Text Resources
Adding Dictionaries
Deleting Dictionaries
Before You Begin
Be aware that AsyncOS marks any message filter that references the deleted dictionary as invalid. AsyncOS
leaves any content filter that references the deleted dictionary enabled, but will evaluate them to false.
Procedure
Step 1 Navigate to the Mail Policies > Dictionaries page.
Step 2 Click the trash can icon next to the dictionary to delete in the dictionary listing.
A confirmation message lists any filters that are currently referencing the dictionary.
Step 3 Click Delete in the confirmation message.
Step 4 Commit your changes.
Importing Dictionaries
Before You Begin
Verify that the file to import is present in the configuration directory on the email gateway.
Procedure
Step 1 Navigate to the Mail Policies > Dictionaries page.
Step 2 Click Import Dictionary.
Step 3 Select the location to import from.
Step 4 Select the file to import.
Step 5 Select the default weight to use for dictionary terms.
AsyncOS will assign a default weight to any terms with unspecified weights. You can edit the weights after
importing the file.
Step 6 Select an encoding.
Step 7 Click Next.
Step 8 Name and edit the dictionary.
Step 9 Submit and commit your changes.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
648
Text Resources
Deleting Dictionaries
Exporting Dictionaries
Procedure
Step 1 Navigate to the Mail Policies > Dictionaries page.
Step 2 Click Export Dictionary.
Step 3 Select the dictionary to export.
Step 4 Enter a file name for the exported dictionary.
This is the name of the file that will be created in the configuration directory on the email gateway.
Step 5 Select the location to export to.
Step 6 Select an encoding for the text file.
Step 7 Submit and commit your changes.
Using and Testing the Content Dictionaries Filter Rules
Dictionaries can be used along with the various dictionary-match() message filter rules and with content filters.
Related Topics
• Dictionary Match Filter Rule, on page 649
Dictionary Match Filter Rule
The message filter rule named dictionary-match(< dictionary_name >) (and its counterparts) evaluates to
true if the message body contains any of the regular expressions in the content dictionary named
dictionary_name . If that dictionary does not exist, the rule evaluates to false.
Note that the dictionary-match() rule functions similarly to the body-contains() body scanning rule: it
only scans the body and attachments of messages, and not the headers.
For scanning headers, you can use the appropriate *-dictionary-match() -type rule (there are rules for
specific headers,such as subject-dictionary-match() and a more generic rule, header-dictionary-match()
, in which you can specify any header including custom headers). See “Dictionary Rules” in the “Using
Message Filters to Enforce Email Policies” chapter for more information about dictionary matching.
Table 46: Message Filter Rules for Content Dictionaries
Rule Syntax Description
Does the message contain a word that matches all the
regular expressions listed in the named dictionary? dictionary-match
()
Dictionary
Match
In the following example, a new message filter using the dictionary-match() rule is created to blind carbon
copy the administrator when the email gateway scans a message that contains any words within the dictionary
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
649
Text Resources
Exporting Dictionaries
named “secret_words” (created in the previous example). Note that because of the settings, only messages
that contain the whole word “ codename ” matching the case exactly will evaluate to true for this filter.
bcc_codenames:
if (dictionary-match ('secret_words'))
{
bcc('administrator@example.com');
}
In this example, we send the message to the Policy quarantine:
quarantine_codenames:
if (dictionary-match ('secret_words'))
{
quarantine('Policy');
}
Related Topics
• Example Dictionary Entries, on page 650
• Testing Content Dictionaries, on page 650
Example Dictionary Entries
Table 47: Example Dictionary Entries
Description Example
Wildcard
Anchors Ends with: foo $ Begins with: ^ foo
foo@example.com, @example.com
example.com$ (ends with)@example.*
Email address(Do not escape the
period)
An email subject(keep in mind when using the ^ anchor in email subjects
that subjects are often prepended with “RE:” or “FW:” and the like)
Subject
Testing Content Dictionaries
The trace function can provide quick feedback on message filters that use the dictionary-match() rule.
See Debugging Mail Flow Using Test Messages: Trace, on page 1259 for more information. You can also use
the quarantine() action to test filters, as in the quarantine_codenames filter example above.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
650
Text Resources
Example Dictionary Entries
Understanding Text Resources
Text resources are text templates that can be attached to messages or sent as messages. Text resources can be
one of the following types:
• Messagedisclaimers — Text that is added to messages.For more information,see Disclaimer Template,
on page 655.
• Notificationtemplates — Messagesthat are sent as notifications, used with the notify() and notify-bcc()
actions. For more information, see Notification Templates, on page 660.
• Anti-virus Notification templates — Messages that are sent as notifications when a virus is found in a
message. You can create a template for a container (which appends the original message), or as a notice
that is sent without the appended message.For more information, see Anti-Virus Notification Templates,
on page 661.
• Bounce and Encryption Failure Notification templates — Messages that are sent as notifications
when a message is bounced or message encryption fails.For more information,see Bounce and Encryption
Failure Notification Templates, on page 663.
• Encryption Notification Templates — Messages that are sent when you configure the email gateway
to encrypt outgoing email. The message notifies recipients that they have received an encrypted message
and provides instructions for reading it. For more information, see Encryption Notification Templates,
on page 664.
You can use the CLI ( textconfig ) or the GUI to manage text resources, including: adding, deleting,
editing, importing, and exporting. For information on managing text resources using the GUI, see Overview
of Text Resource Management, on page 652.
Text resources can contain non-ASCII characters.
Text resources containing non-ASCII characters may or may not display properly in the CLI on your
terminal. To view and change text resources that contain non-ASCII characters, export the text resource
to a text file, edit that text file, and then import the new file back into the email gateway. For more
information, see Importing and Exporting Dictionaries as Text Files, on page 646.
Note
Related Topics
• Importing and Exporting Dictionaries as Text Files, on page 646
Importing and Exporting Text Resources as Text Files
You must have access to the configuration directory on the email gateway. Imported text files must be present
in the configuration directory on the email gateway. Exported text files are placed in the configuration directory.
See FTP, SSH, and SCP Access, on page 1307 for more information on accessing the configuration directory.
To add non-ASCII characters to text resources, add the terms into the text resource in a text file off the email
gateway, move that file onto the email gateway, and then import that file as a new text resource. For more
information about importing text resources,see Importing Text Resources, on page 653.For information about
exporting text resources, see Exporting Text Resources, on page 653.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
651
Text Resources
Understanding Text Resources
Overview of Text Resource Management
You can manage text resources using either the GUI or the CLI. This section focuses on the GUI.
Manage text resources from the CLI using the textconfig command.
Text resource management includes these tasks:
• Adding
• Editing and deleting
• Exporting, and importing
• Defining plain text messages for all text resource types
• Defining HTML-based messages for some text resource types
Related topics
• Adding Text Resources, on page 652
• Deleting Text Resources, on page 652
• Exporting Text Resources, on page 653
• Importing Text Resources, on page 653
• Overview of HTML-Based Text Resources, on page 654.
Adding Text Resources
Procedure
Step 1 Navigate to Mail Policies > Text Resources
Step 2 Click Add Text Resource.
Step 3 Enter a name for the text resource in the Name field.
Step 4 Select the type of text resource from the Type field.
Step 5 Enter the message text in either the Text or the HTML and Plain Text field.
If the text resource allows only plain text messages, use the Text field. If the text resource allows both HTML
and plain text messages, use the HTML and Plain Text fields.
Step 6 Submit and commit your changes.
What to do next
Related topics
• Overview of HTML-Based Text Resources, on page 654.
Deleting Text Resources
Before you begin
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
652
Text Resources
Overview of Text Resource Management
Note the impact of deleting text resources:
• Any message filters that reference the deleted text resource are marked as invalid.
• Any content filters that reference the deleted text resource are left enabled, but will evaluate to false.
Procedure
Step 1 On the Mail Policies > Text Resources page, click the trash can icon under the Delete column for the text
resource you want to delete. A confirmation message is displayed.
Step 2 Click Delete to delete the text resource.
You cannot delete a text resource that is referenced in any of the content or message filter
configurations.
Note
Step 3 Commit your changes.
Importing Text Resources
Before you begin
Ensure that the file to import is in the configuration directory on the email gateway.
Procedure
Step 1 On the Mail Policies > Text Resources page, click Import Text Resource.
Step 2 Select a file to import.
Step 3 Specify an encoding.
Step 4 Click Next.
Step 5 Choose a name, edit, and select the text resource type.
Step 6 Submit and commit your changes.
Exporting Text Resources
Before you begin
Be aware that when you export a text resource, a text file is created in the configuration directory on the email
gateway.
Procedure
Step 1 On the Mail Policies > Text Resources page, click Export Text Resource.
Step 2 Select a text resource to export.
Step 3 Enter a file name for the text resource.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
653
Text Resources
Importing Text Resources
Step 4 Select an encoding for the text file.
Step 5 Click Submit to create the text file containing the text resource in the configuration directory.
Overview of HTML-Based Text Resources
You can create some text resources with both HTML-based and plain text messages, such as Disclaimers.
When a text resource containing both HTML-based and plain text messages is applied to an email message,
the HTML-based text resource message is applied to the text/html part of the email message, and the plain
text message is applied to the text/plain part of the email message.
When you add or edit an HTML-based text resource, the GUI includes a rich text edit that allows you to enter
rich text without having to manually write HTML code.
Consider the following information when adding and editing an HTML-based text resource:
• You can choose to have the plain text version of the message to be automatically generated based on the
HTML version, or you can define the plain text version independently.
• You can switch between the rich text editor and HTML code by clicking the Code View button.
• To enter HTML code that is not supported in the rich text editor in the GUI, switch to code view and
manually enter HTML code. For example, you might want to do this to insert a reference to an image
file located on an external server using the
HTML tag.
Related Topics
• Importing and Exporting HTML-Based Text Resources, on page 654
Importing and Exporting HTML-Based Text Resources
You can export to and import from a text file HTML-based text resources. When you export an HTML-based
text resource to a file, the file contains the following sections for each version of the text resource:
• [html_version]
• [text_version]
The order of these sections does not matter.
For example, an exported file might contain the following text:
[html_version]
Sample message.
[text_version]
Sample message.
Consider the following rules and guidelines when exporting and importing HTML-based text resources:
• When you export an HTML-based text resource whose plain text message is automatically generated
from the HTML version, the exported file does not contain the [text_version] section.
• When you import from a text file, any HTML code under the [html_version] section is converted to the
HTML message in the created text resource if the text resource type supports HTML messages.Similarly,
any text under the [text_version] section is converted to the plain text message in the created text
resource.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
654
Text Resources
Overview of HTML-Based Text Resources
• When you import from a file that contains an empty or nonexistent [html_version] section to create a
HTML-based text resource, the email gateway creates both an HTML and plain text message using the
text in the [text_version] section.
Using Text Resources
All types of text resources are created in the same way, using the Text Resources page or the textconfig CLI
command. Once created, each type is used in a different way. Disclaimers and notification templates are used
with filters and listeners, while anti-virus notification templates are used with mail policies and anti-virus
settings.
Related Topics
• Disclaimer Template, on page 655
• Disclaimer Stamping and Multiple Encodings, on page 658
• Notification Templates, on page 660
• Anti-Virus Notification Templates, on page 661
• Bounce and Encryption Failure Notification Templates, on page 663
• Encryption Notification Templates, on page 664
Disclaimer Template
The email gateway can add a default disclaimer above or below the text (heading or footer) for some or all
messagesreceived by a listener. You can add disclaimersto messages on the email gateway using the following
methods:
• Via a listener, using the GUI or the listenerconfig command (see Adding Disclaimer Text via a Listener,
on page 656).
• Using the content filter action, Add Disclaimer Text (see Content Filter Actions, on page 282).
• Using the message filter action, add-footer() (see the “Using MessageFiltersto Enforce EmailPolicies”
chapter).
• Using a data loss prevention profile (see Data Loss Prevention, on page 509).
• Using message modification for Outbreak Filters to alert the user that the message may be an attempt at
phishing or malware distribution (see Modifying Messages, on page 430). Disclaimers added for thistype
of notification are added above the text.
For example, you can append a copyright statement, promotional message, or disclaimer to every message
sent from within your enterprise.
Prior to using disclaimer text you have to create the disclaimer template. Use the Text Resources page in the
GUI (see Adding Text Resources, on page 652) or the textconfig command (see the CLI Reference Guide
for AsyncOS for Cisco Secure Email Gateway) to create and manage a set of text strings to be used.
Related Topics
• Adding Disclaimers via Filters, on page 656
• Adding Disclaimer Text via a Listener, on page 656
• Disclaimers and Filter Action Variables, on page 656
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
655
Text Resources
Using Text Resources
Adding Disclaimer Text via a Listener
Once you have disclaimer text resources created, select which text strings will be appended to messages
received by the listener. You can add disclaimer text above or below a message. This feature is available on
both public (inbound) and private (outbound) listeners.
If you send a message that consists of text and HTML (Microsoft Outlook callsthistype of message a “multipart
alternative”), the email gateway will stamp the disclaimer on both parts of the message. However, if your
message has signed content, the content will not be modified because the modification will invalidate the
signature. Instead, a new part is created with a disclaimer stamp that says “ Content-Disposition inline
attachment .” For more information on multipart messages, see “Message Bodies vs. Message Attachments”
in the “Using Message Filters to Enforce Email Policies” chapter.
Adding Disclaimers via Filters
You can also append specific, predefined text strings to the disclaimers of messages using the filter action
add-footer() or the content filter action “Add Disclaimer Text.” For example, the following message filter
rule appends the text string named legal.disclaimer to all messages sent from users in the LDAP group
“Legal:”
Add-Disclaimer-For-Legal-Team:
if (mail-from-group == 'Legal')
{
add-footer('legal.disclaimer');
}
Disclaimers and Filter Action Variables
You can also use message filter action variables (see “Action Variables” in the “Using Message Filters to
Enforce Email Policies” chapter for more information).
The following variables are available for the Disclaimer Template:
Table 48: Anti-Virus Notification Variables
Variable Substituted With
$To Replaced by the message To: header (not the Envelope Recipient).
$From Replaced by the message From: header (not the Envelope Sender).
$Subject Replaced by the subject of the original message.
$Date Replaced by the current date, using the format MM/DD/YYYY.
$Time Replaced by the current time, in the local time zone.
Replaced by the current time and date, as would be found in the Received: line of
an email message, using GMT.
$GMTimestamp
Replaced by the Message ID, or “MID” used internally to identify the message. Not
to be confused with the RFC822 “Message-Id” value (use $Header to retrieve that).
$MID
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
656
Text Resources
Adding Disclaimer Text via a Listener
Variable Substituted With
Replaced by the name of the sender group the sender matched on when injecting
the message. If the sender group had no name, the string “>Unknown<” is inserted.
$Group
Replaced by the name of the HAT policy applied to the sender when injecting the
message. If no predefined policy name was used, the string “>Unknown<” isinserted.
$Policy
Replaced by the IP Reputation score of the sender. If there is no reputation score,
it is replaced with “None”.
$Reputation
$filenames Replaced with a comma-separated list of the message’s attachments’ filenames.
$filetypes Replaced with a comma-separated list of the message's attachments' file types.
$filesizes Replaced with a comma-separated list of the message’s attachment’s file sizes.
$remotehost Replaced by the hostname of the system that sent the message to the email gateway.
$AllHeaders Replaced by the message headers.
$EnvelopeFrom Replaced by the EnvelopeSender (EnvelopeFrom, ) of the message.
$Hostname Replaced by the hostname of the email gateway.
Replaced by the value of the quoted header, if the original message contains a
matching header. Note that double quotes may also be used.
$header[‘string ’]
$enveloperecipients Replaced by all Envelope Recipients (Envelope To, ) of the message.
$bodysize Replaced by the size, in bytes, of the message.
$FilterName Returns the name of the filter being processed.
Returns the content that triggered a scanning filter rule (including filter rules such
as body-contains and content dictionaries).
$MatchedContent
$DLPPolicy Replaced by the name of the email DLP policy violated.
Replaced by the severity of violation. Can be “Low,” “Medium,” “High,” or
“Critical.”
$DLPSeverity
$DLPRiskFactor Replaced by the risk factor of the message’s sensitive material (score 0 - 100).
Replaced with the type of Outbreak Filters threat, such as phishing, virus, scam, or
malware.
$threat_category
Replaced by a subcategory of the Outbreak Filters threat category. For example,
can be a charity scam, a financial phishing attempt, a fake deal, etc.
$threat_type
$threat_description Replaced by a description of the Outbreak Filters threat.
$threat_level Replaced by the message’s threat level (score 0 - 5).
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
657
Text Resources
Disclaimers and Filter Action Variables
Variable Substituted With
Replaced by Yes or No, depending on the Message Modification Threat Level
threshold. If the viral or non-viral threat level of a message is greater than or equal
to the message modification threat level threshold, the value of this variable is set
to Yes.
$threat_verdict
To use message filter action variables in disclaimers, create a message disclaimer (via the Text Resource page
in the GUI or the textconfig command), and reference the variable:
The add-footer() action supports non-ASCII text by adding the footer as an inline, UTF-8 coded, quoted
printable attachment.
Disclaimer Stamping and Multiple Encodings
AsyncOS includes a setting used to modify the way disclaimer stamping with different character encodings
works. By default, AsyncOS attempts to place the disclaimers it attaches within the body part of an email
message. You can use a setting configured within the localeconfig command to configure the behavior if
the encodings of the body part and the disclaimer are different. To understand this setting, it is helpful to view
an email message as consisting of several parts:
To: joe@example.com Headers
From: mary@example.com
Subject: Hi!
Hello! Body part
This message has been First attachment part
scanned...
Example.zip Second attachment part
The message body after the first blank line may contain many MIME parts. The second and following parts
are often called “attachments,” while the first is often called the “body” or “text.”
A disclaimer can be included in an email as either an attachment (above) or as part of the body
To: joe@example.com Headers
From: mary@example.com
Subject: Hi!
Hello! Body part
This message has been Disclaimer now included in body part
scanned...
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
658
Text Resources
Disclaimer Stamping and Multiple Encodings
Example.zip First attachment part
Typically, when there is an encoding mismatch between the message body and a disclaimer, AsyncOSattempts
to encode the entire message in the same encoding as the message body so that the disclaimer will be included
in the body (“inline”) and not included as a separate attachment. In other words, the disclaimer will be included
inline if the encoding of the disclaimer matches that of the body, or if the text in the disclaimer contains
characters that can be displayed inline (in the body).For example, it is possible to have a ISO-8859-1 encoded
disclaimer that only contains US-ASCII characters; consequently, this will display “inline” without problems.
However, if the disclaimer cannot be combined with the body, you can use the localeconfig command to
configure AsyncOS to attempt to promote, or convert, the body text to match the encoding of the disclaimer
so that the disclaimer can be included in the body of the message:
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 footer or heading encoding: Try both body and footer or heading
encodings
Behavior when decoding errors found: Disclaimer is displayed as inline content and the
message body is added as an attachment.
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 and is being used or
modified,
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.
Some MUAs handle headers encoded in character sets that differ from that of the main body
in an incorrect way.
Imposing the encoding of the body on the header may encode the header more precisely.
This will be used to interpret the content of headers for processing, it will not modify
or rewrite the
header unless that is done explicitly as part of the processing.) [Y]>
Disclaimers (as either footers or headings) are added in-line with the message body whenever
possible.
However, if the disclaimer is encoded differently than the message body, and if imposing a
single encoding
will cause loss of characters, it will be added as an attachment. The system will always
try to use the
message body's encoding for the disclaimer. If that fails, the system can try to edit the
message body to
use an encoding that is compatible with the message body as well as the disclaimer. Should
the system try to
re-encode the message body in such a case? [Y]>
If the disclaimer that is added to the footer or header of the message generates an error
when decoding the message body,
it is added at the top of the message body. This prevents you to rewrite a new message
content that must merge with
the original message content and the header/footer-stamp. The disclaimer is now added as
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
659
Text Resources
Disclaimer Stamping and Multiple Encodings
an additional MIME part
that displays only the header disclaimer as an inline content, and the rest of the message
content is split into
separate email attachments. Should the system try to ignore such errors when decoding the
message body? [N]>
Behavior when modifying headers: Use encoding of message body
Behavior for untagged non-ASCII headers: Impose encoding of message body
Behavior for mismatched footer or heading encoding: Try both body and footer or heading
encodings
Behavior when decoding errors found: Disclaimer is displayed as inline content and the
message body
is added as an attachment.
Choose the operation you want to perform:
- SETUP - Configure multi-lingual settings.
[]>
For more information about the localeconfig command,see the “Configuring the Email Gateway to Receive
Mail” chapter.
Notification Templates
Notification templates are used with the notify() and notify-copy() filter actions. Notification
templates may contain non-ascii text and action variables (see “Action Variables” in the “Using Message
Filters to Enforce Email Policies” chapter), including the anti-virus-related variables used by anti-virus
notifications. For example, you could use the $Allheaders action variable to include the headers from the
original message. You can configure the From: address for notifications, see Configuring the Return Address
for Email Gateway Generated Messages, on page 1048.
Once you have created a notification template, you can refer to it in content and message filters. The following
figure shows a content filter where the notify-copy() filter action is set to send the “grape_text”
notification to “grapewatchers@example.com:”
Figure 39: Notify Example in a Content Filter
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
660
Text Resources
Notification Templates
Anti-Virus Notification Templates
There are two types of anti-virus notification templates:
• anti-virusnotificationtemplate. The anti-virus notification template is used when the original message
is not attached to the virus notification.
• anti-virus container template. The container template is used when the original message is sent as an
attachment.
Anti-virus notification templates are used in basically the same way as notification templates except that they
are used with the anti-virus engine instead of filters. You can specify a custom notification to send while
editing a mail policy. You can configure the From: address for anti-virus notifications. For information, see
Configuring the Return Address for Email Gateway Generated Messages, on page 1048.
Related Topics
• Custom Anti-Virus Notification Templates, on page 661
Custom Anti-Virus Notification Templates
The following figure shows a mail policy where a custom anti-virus notification is specified.
Figure 40: Anti-Virus Container Template Notification Example in a Mail Policy
Related Topics
• Anti-Virus Notification Variables, on page 661
Anti-Virus Notification Variables
When creating an anti-virus notification, you can use any of the notification variables listed in the following
table:
Table 49: Anti-Virus Notification Variables
Variable Substituted With
$To Replaced by the message To: header (not the Envelope Recipient).
$From Replaced by the message From: header (not the Envelope Sender).
$Subject Replaced by the subject of the original message.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
661
Text Resources
Anti-Virus Notification Templates
Variable Substituted With
Replaced by the list of all the viruses found anywhere in the message:
“Unix/Apache.Trojan”, “W32/Bagel-F”
$AV_VIRUSES
Replaced by the table of MIME-Part/Attachment names and viruses in each
part:
“HELLO.SCR” : “W32/Bagel-F”
: “Unix/Apache.Trojan”
$AV_VIRUS_TABLE
$AV_VERDICT Replaced by the anti-virus verdict.
Replaced by the table of attachments that were dropped. Each row is composed
of a part or filename followed by the list of viruses associated with that part:
“HELLO.SCR” : “W32/Bagel-f”, “W32/Bagel-d” “Love.SCR” : “Netsky-c”,
“W32/Bagel-d”
$AV_DROPPED_TABLE
$AV_REPAIRED_VIRUSES Replaced by the list of all the viruses found and repaired.
Replaced by the table of all parts and virusesfound and repaired: “HELLO.SCR”
: “W32/Bagel-F”
$AV_REPAIRED_TABLE
Replaced by the list of filenames that were dropped:
“HELLO.SCR”, “CheckThisOut.exe”
$AV_DROPPED_PARTS
$AV_REPAIRED_PARTS Replaced by the list of filenames or parts that were repaired.
$AV_ENCRYPTED_PARTS Replaced by the list of filenames or parts that were encrypted.
Replaced by a comma-separated list of filenames for the files that contained a
virus.
$AV_INFECTED_PARTS
$AV_UNSCANNABLE_PARTS Replaced by the list of filenames or parts that were unscannable.
$Date Replaced by the current date, using the format MM/DD/YYYY.
$Time Replaced by the current time, in the local time zone.
Replaced by the current time and date, as would be found in the Received: line
of an email message, using GMT.
$GMTimestamp
Replaced by the Message ID, or “MID” used internally to identify the message.
Not to be confused with the RFC822 “Message-Id” value (use $Header to
retrieve that).
$MID
Replaced by the name of the sender group the sender matched on when injecting
the message. If the sender group had no name, the string “>Unknown<” is
inserted.
$Group
Replaced by the name of the HAT policy applied to the sender when injecting
the message. If no predefined policy name was used, the string “>Unknown<”
is inserted.
$Policy
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
662
Text Resources
Anti-Virus Notification Variables
Variable Substituted With
Replaced by the IP Reputation score of the sender. If there is no reputation
score, it is replaced with “None”.
$Reputation
$filenames Replaced with a comma-separated list of the message’s attachments’ filenames.
$filetypes Replaced with a comma-separated list of the message's attachments' file types.
$filesizes Replaced with a comma-separated list of the message’s attachment’s file sizes.
Replaced by the hostname of the system that sent the message to the email
gateway.
$remotehost
$AllHeaders Replaced by the message headers.
Replaced by the Envelope Sender (Envelope From, ) of the
message.
$EnvelopeFrom
$Hostname Replaced by the hostname of the email gateway.
Variable names are not case-sensitive. For example, specifying “$to” is equivalent to specifying “$To”
in the text resource. If an “AV_” variable is empty in the original message, the string is
substituted.
Note
After the text resource has been defined, use the Mail Policies > Incoming/Outgoing Mail Policies > Edit
Anti-Virus Settings page or the policyconfig -> edit -> antivirus command to specify that
the original message is to be included as an RFC 822 attachment for Repaired, Unscannable, Encrypted, or
Virus Positive messages. See Send Custom Alert Notification, on page 376 for more information.
Bounce and Encryption Failure Notification Templates
Bounce and encryption failure notification templates are used in basically the same way as notification
templates except that they are used with bounce notifications and message encryption failure notifications.
You can specify a custom bounce notification to send while editing a bounce profile and a custom message
encryption failure notification while editing an encryption profile.
The following figure shows a bounce notification template specified in a bounce profile.
Figure 41: Bounce Notification Example in a Bounce Profile
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
663
Text Resources
Bounce and Encryption Failure Notification Templates
Note You must use RFC-1891 DSNs to use custom templates.
The following figure shows an encryption failure template specified in an encryption profile.
Figure 42: Encryption Failure Notification Example in an Encryption Profile
Related Topics
• Bounce and Encryption Failure Notification Variables, on page 664
Bounce and Encryption Failure Notification Variables
When creating a bounce or encryption failure notification, you can use any of the notification variables listed
in the following table:
Table 50: Bounce Notification Variables
Variable Substituted With
$Subject The subject of the original message.
$Date Replaced by the current date, using the format MM/DD/YYYY.
$Time Replaced by the current time, in the local time zone.
Replaced by the current time and date, as would be found in the Received: line of
an email message, using GMT.
$GMTimeStamp
Replaced by the Message ID, or “MID” used internally to identify the message.
Not to be confused with the RFC822 “Message-Id” value (use $Header to retrieve
that).
$MID
$BouncedRecipient Bounced recipient address
$BounceReason Reason for this notification
$remotehost Replaced by the hostname of the system thatsent the message to the email gateway.
Encryption Notification Templates
Encryption notification templates are used when you configure Cisco Email Encryption to encrypt outbound
email. The notification informs recipients that they have received an encrypted message and provides
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
664
Text Resources
Bounce and Encryption Failure Notification Variables
instructions for reading it. You can specify a custom encryption notification to send with encrypted messages.
You specify both an HTML and a text encryption notification when you create an encryption profile. Therefore,
if you want to create a custom profile, you should create both text and HTML notifications.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
665
Text Resources
Encryption Notification Templates
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
666
Text Resources
Encryption Notification Templates
CHAPTER 28
Validating Recipients Using an SMTP Server
This chapter contains the following sections:
• Overview of SMTP Call-Ahead Recipient Validation, on page 667
• SMTP Call-Ahead Recipient Validation Workflow, on page 667
• How to Validate Recipients Using an External SMTP Server, on page 669
• Enabling a Listener to Validate Incoming Mail Via the SMTP Server, on page 672
• Configuring LDAP Routing Query Settings, on page 673
• SMTP Call-Ahead Query Routing, on page 673
• Bypassing SMTP Call-Ahead Validation for Certain Users or Groups, on page 674
Overview of SMTP Call-Ahead Recipient Validation
TheSMTPcall-ahead recipient validation feature queries an externalSMTPserver before accepting incoming
mail for a recipient. Use this feature to validate recipients when you cannot use LDAP Accept or the Recipient
Access Table (RAT). For example, suppose you host mail for many mailboxes, each using a separate domain,
and your LDAP infrastructure does not allow you to query the LDAP server to validate each recipient. In this
case, the email gateway can query the SMTP server and validate the recipient before continuing the SMTP
conversation.
You can use SMTP call-ahead recipient validation in order to reduce processing on messages for invalid
recipients. Typically, a message for an invalid recipient progresses through the work queue before it can be
dropped. Instead, an invalid message can be dropped or bounced during the incoming/receiving part of the
email pipeline without requiring additional processing.
SMTP Call-Ahead Recipient Validation Workflow
When you configure your email gateway forSMTPcall-ahead recipient validation, the email gateway suspends
theSMTPconversation with the sending MTA while it “calls ahead” to theSMTPserver to verify the recipient.
When the email gateway queriestheSMTPserver, it returnstheSMTPserver’sresponse to the EmailSecurity
appliance, and depending on the settings you have configured, you can accept the mail or drop the connection
with a code and custom response.
The following figure shows the basic workflow of the SMTP call-head validation conversation.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
667
Figure 43: SMTP Call Ahead Server Conversation Workflow
1. The sending MTA initiates an SMTP conversation.
2. The email gateway suspends the SMTP conversation while it sends a query to the SMTP server to verify
the recipient, validuser@recipient.com .
If SMTP routes or LDAP routing queries are configured, these routes will be used to query the SMTP
server.
Note
3. The SMTP Server returns a query response to the email gateway.
4. The email gateway resumes the SMTP conversation and sends a response to the sending MTA, allowing
the conversation to continue or dropping the connection based on the SMTP server response (and settings
you configure in the SMTP Call-Ahead profile).
Due to the order of processes in the email pipeline, if the message for a given recipient is rejected by the RAT,
then the SMTP call-ahead recipient validation will not occur. For example, if you specified in the RAT that
only mail for example.com is accepted, then mail for recipient@domain2.com is rejected before SMTP
call-ahead recipient validation can occur.
If you have configured Directory Harvest Attack Prevention (DHAP) in the HAT, be aware that SMTP
call-ahead server rejections are part of the number of rejections included in the maximum invalid
recipients per hour that you specify. You may need to adjust this number to account for additionalSMTP
server rejections. For more information about DHAP, see the “Configuring the Gateway to Receive
Email” chapter.
Note
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
668
Validating Recipients Using an SMTP Server
SMTP Call-Ahead Recipient Validation Workflow
How to Validate Recipients Using an External SMTP Server
Do This More Info
Configuring the Call-AheadServer
Profile, on page 669
Determine how the email gateway connects to the
SMTP server and interprets the server’s responses.
Step 1
Enabling a Listener to Validate
Incoming Mail Via the SMTP
Server, on page 672
Configure a public listener to use the SMTP server to
validate recipients
Step 2
Configuring LDAP Routing Query
Settings, on page 673
(Optional) Update your LDAP Routing query to
determine the SMTP server to use when routing mail
to a different host.
Step 3
Bypassing SMTP Call-Ahead
Validation for Certain Users or
Groups, on page 674
(Optional) Configure the email gateway to bypass
call-ahead validation for certain recipients
Step 4
Related Topics
• Configuring the Call-Ahead Server Profile, on page 669
Configuring the Call-Ahead Server Profile
When you configure the SMTP Call-Ahead Server Profile, you specify the settings that determine how the
email gateway connects with the SMTP server and how it interprets the responses sent back from the SMTP
server.
Procedure
Step 1 Click Network > SMTP Call-Ahead.
Step 2 Click Add Profile.
Step 3 Enter the settings for the profile. For more information, see Table - SMTP Call-Ahead Server Profile Settings.
Step 4 Configure the advanced settings for the profile. For more information, see Table - SMTP Call-Ahead Server
Profile Advanced Settings.
Step 5 Submit and commit your changes.
What to do next
• SMTP Call-Ahead Server Profile Settings, on page 670
• Call Ahead Server Responses, on page 672
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
669
Validating Recipients Using an SMTP Server
How to Validate Recipients Using an External SMTP Server
SMTP Call-Ahead Server Profile Settings
When you configure the SMTP Call-Ahead Server Profile, you need to configure settings that determine how
the email gateway connects with the SMTP server.
Table 51: SMTP Call-Ahead Server Profile Settings
Setting Description
Profile Name Name of the call-ahead server profile.
Choose from one of the following methods for connecting to the call-ahead
server:
• Use Delivery Host. Select this option to specify that the host for the
delivery email address is used for the SMTP call-ahead query. For
example, if the mail recipient address is recipient@example.com , the
SMTP query is executed against the SMTP server associated with
example.com . If you have configured SMTP routes or LDAP routing
queries, these routes are used to determine the SMTP server to query.
For details about configuring LDAP routing queries, see Configuring
LDAP Routing Query Settings, on page 673.
• Static Call-Ahead Server. Use this option to create a static list of
call-ahead servers to query. You may want to use this option if you do
not expect the names and locations of the call-ahead servers to change
often. When you use this option, the email gateway queries the hosts in
a round-robin fashion, starting with the first static call-ahead server
listed.
Note that when you choose the static call-ahead server type, no
SMTP routes are applied to the query. Instead an MX lookup is
performed, and then an A lookup is performed on the hosts to
obtain the call-ahead IP addresses for the static servers.
Note
Call-Ahead Server Type
If you choose to use the static call-ahead server type, enter a list of host and
port combinations in this field. List the server and port using the following
syntax:
ironport.com:25
Separate multiple entries with a comma.
Static Call-Ahead Servers
The following table describes the SMTP Call-Ahead Server Profile advanced settings:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
670
Validating Recipients Using an SMTP Server
SMTP Call-Ahead Server Profile Settings
Table 52: SMTP Call-Ahead Server Profile Advanced Settings
Setting Description
The interface used to initiate theSMTPconversation with theSMTPserver.
Choose to use the Management interface or Auto. When you select Auto,
the email gateway attempts to automatically detect an interface to use. The
Cisco IronPort interface attempts to connect to the SMTP server in the
following ways:
• If the call-ahead server is on the same subnet as one of the configured
interfaces, then the connection is initiated by the matching interface.
• Any configured SMTP routes are used to route the query.
• Otherwise, the interface that is on the same subnet as the default
gateway are used.
Interface
Select the Enabled radio button if you want to perform SMTP call-ahead
recipient validation using TLS.
The SMTP call-ahead recipient validation uses the same TLS
version selected in the ‘Other TLS Client Services’ option in the
'SSL Configuration' page in your email gateway.
Note
If you select the ‘TLS Support for Recipient Validation’ option,
make sure you add a valid client certificate in your email gateway
to establish SMTP call-ahead recipient validation using TLS.
Note
TLS support for SMTP call-ahead recipient validation uses the
DEFAULT SSL cipher list. The DEFAULT keyword is the
OpenSSL DEFAULT cipher string, which is generally
ALL:!EXPORT:!LOW:!aNULL:!eNULL:!SSLv2.
Note
TLS Support for Recipient
Validation
The MAIL FROM: address to be used for the SMTP conversation with the
SMTP server.
MAIL FROM Address
The number of seconds to wait for a result from the SMTP server. This
timeout value is for a single recipient validation request which may involve
contacting multiple call-ahead servers. See Call Ahead Server Responses,
on page 672.
Validation Request Timeout
The action to be taken when a recipient validation request fails (due to a
timeout, server failure, network issue, or unknown response). You can
configure how you want the email gateway to handle the different responses.
See Call Ahead Server Responses, on page 672.
Validation Failure Action
The action to be taken when a recipient validation request temporarily fails
(and a 4xx response is returned from the remote SMTP server). This can
occur when the mailbox is full, the mailbox is not available, or the service
is not available).
See Call Ahead Server Responses, on page 672.
Temporary Failure Action
Maximum number of recipients to be validated in a single SMTP session.
Specify between 1 - 25,000 sessions.
Max. Recipients per Session
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
671
Validating Recipients Using an SMTP Server
SMTP Call-Ahead Server Profile Settings
Setting Description
Maximum number of connections to a single call-ahead SMTP server.
Specify between 1-100 connections.
Max. Connections per Server
Size of the cache for SMTP responses. Specify between 100-1,000,000
entries
Cache
Time-to-live value for entriesin the cache. Thisfield defaultsto 900 seconds.
Specify between 60 - 86400 seconds.
Cache TTL
Call Ahead Server Responses
The SMTP server may return the following responses:
• 2xx: When anSMTPcode starting with 2 isreceived from the call-ahead server, the recipient is accepted.
For example, a response of 250 allows the mailing action to continue.
• 4xx: An SMTP code starting with a 4 means that a temporary failure has occurred in processing the
SMTP request. A retry may later be processed successfully. For example, a response of 451 means the
requested action was aborted or there was a local error in processing.
• 5xx: AnSMTPcode starting with 5 means a permanent failure in processing theSMTPrequest occurred.
For example, a response of 550 meansthe requested action was not taken or the mailbox was unavailable.
• Timeout. If no response is returned from the call-ahead server, you can configure how long to attempt
to retry before a timeout occurs.
• Connection error. If a connection to the call-ahead server fails, you can configure whether to accept or
reject a connection for the recipient address.
• Custom Response. You can configure to reject a connection with custom SMTP response (code and
text) for validation failures and temporary failures.
Enabling a Listener to Validate Incoming Mail Via the SMTP
Server
Once you create the SMTP Call-Ahead Server Profile, you need to enable it on a listener to allow the listener
to validate incoming mail via the SMTP server. SMTP call-ahead functionality is only available on public
listeners, as recipient validation is not necessary for private listeners.
Procedure
Step 1 Go to Network > Listeners.
Step 2 Click the name of the listener where you want to enable SMTP call-ahead functionality.
Step 3 In the SMTP Call Ahead Profile field, select the SMTP Call-Ahead profile you want to enable.
Step 4 Submit and commit your changes.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
672
Validating Recipients Using an SMTP Server
Call Ahead Server Responses
Configuring LDAP Routing Query Settings
If you use an LDAP routing query to route mail to a different mail host, AsyncOS uses the Alternate Mailhost
Attribute to determine the SMTP server to query. However, there are cases where you may not want that to
occur. For example, in the following schema, note that the mail host attribute ( mailHost ) has a different
SMTP address than the servers listed in the call-ahead SMTP server attribute ( callAhead ):
dn: mail=cisco.com, ou=domains
mail: cisco.com
mailHost: smtp.mydomain.com
policy: ASAV
callAhead: smtp2.mydomain.com,smtp3.mydomain.com:9025
In this case, you can use theSMTP Call-Aheadfield to create a routing query that directstheSMTPcall-ahead
query to the servers listed in the callAhead attribute. For example, you might create a routing query with the
following attributes:
Figure 44: LDAP Routing Query Configured for SMTP Call-Ahead
In this query, the {d} represents the domain part of the recipient address, and the SMTP Call-Ahead Server
Attribute returns the values for the call-ahead servers and the port that should be used for the query:
smtp2.mydomain.com, smtp3.mydomain.com on port 9025.
This example shows just one way to configure a query that enables you to use the LDAP routing query
to direct SMTP call-ahead queries to the correct SMTP servers. You are not required to use the query
string or specific LDAP attributes described in this example.
Note
SMTP Call-Ahead Query Routing
When routing an SMTP call-ahead query, AsyncOS checks for information in the following order:
1. Checks the domain name.
2. Checks for LDAP Routing queries.
3. Checks for SMTP Routes.
4. Performs a DNS Lookup (First an MX Lookup is performed, followed by an A lookup).
If there is no LDAProuting query or noSMTP Routes configured for the domain, the result of preceding state
is passed to next stage. In any case where there is no SMTP Route present, a DNS lookup is performed.
When you use an LDAP Routing query for an SMTP call-ahead query and you also have SMTP routes
configured, the routing behavior depends upon the values returned by the routing query.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
673
Validating Recipients Using an SMTP Server
Configuring LDAP Routing Query Settings
• If the LDAP routing query returns a single hostname without a port, the SMTP call-ahead query applies
SMTP routes. If the SMTP routes only lists the destination host as the hostname, a DNS lookup is
performed to obtain the IP address of the SMTP server.
• If the LDAP routing query returns a single hostname with a port, the SMTP route is used, but the port
returned by the LDAP query is used over any ports specified in SMTP routes. If the SMTP routes only
lists the destination host as the hostname, a DNS lookup is performed to obtain the IP address of the
SMTP server.
• If the LDAP routing query returns multiple hosts with or without ports, SMTP routes are applied, but
the ports returned by the LDAP routing query are used over those present in SMTP routes. If the SMTP
routes only lists the destination host as the hostname, a DNSlookup is performed to obtain the IPaddress
of the SMTP server.
Bypassing SMTP Call-Ahead Validation for Certain Users or
Groups
You may want to enable SMTP call-ahead validation on a listener but skip the SMTP call-ahead validation
for certain users or groups of users.
You may want to skip SMTP call-ahead validation for recipients for whom mail should not be delayed during
SMTPcall-ahead queries.For example, you could add a RAT entry for a customer service alias that you know
is valid and will likely need immediate attention.
To configure bypassing SMTP call-ahead validation via the GUI, select Bypass SMTP Call-Ahead when
you add or edit the RAT entry
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
674
Validating Recipients Using an SMTP Server
Bypassing SMTP Call-Ahead Validation for Certain Users or Groups
CHAPTER 29
Encrypting Communication with Other MTAs
This chapter contains the following sections:
• Overview of Encrypting Communication with Other MTAs, on page 675
• Working with Certificates, on page 676
• Enabling TLS on a Listener’s HAT, on page 681
• Enabling TLS and Certificate Verification on Delivery, on page 684
• DNS-based Authentication of Named Entities, on page 687
• Managing Lists of Certificate Authorities, on page 691
• Enabling a Certificate for HTTPS, on page 694
Overview of Encrypting Communication with Other MTAs
Enterprise Gateways (or Message Transfer Agents, i.e. MTAs) normally communicate “in the clear” over the
Internet. That is, the communications are not encrypted. In several scenarios, malicious agents can intercept
this communication without the knowledge of the sender or the receiver. Communications can be monitored
and even altered by a third party.
Transport Layer Security (TLS) is an improved version of the Secure Socket Layer (SSL) technology. It is a
widely used mechanism for encrypting SMTP conversations over the Internet. AsyncOS supports the
STARTTLS extension to SMTP (Secure SMTP over TLS), described in RFC 3207 (which obsoletes RFC
2487).
The TLS implementation in AsyncOS provides privacy through encryption. It allows you to import an X.509
certificate and private key from a certificate authority service or create a self-signed certificate to use on the
email gateway. AsyncOS supports separate TLS certificates for public and private listeners, secure HTTP
(HTTPS) management access on an interface, the LDAP interface, and all outgoing TLS connections.
Related Topics
• How to Encrypt SMTP Conversations using TLS, on page 675
How to Encrypt SMTP Conversations using TLS
How to Encrypt SMTP Conversations using TLS
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
675
Do This More Info
Obtain an X.509 certificate and private key from a Working with Certificates, on page 676
recognized certificate authority.
Step 1
Install a certificate by either:
• Creating a Self-Signed Certificate , on
page 678
• Importing a Certificate , on page 680
Step 2 Install the certificate on the email gateway
• Enabling TLS on a Listener’s HAT, on
page 681
• Enabling TLSand Certificate Verification
on Delivery, on page 684
Enable TLS for receiving messages, delivering
messages, or both
Step 3
Managing Lists of Certificate Authorities, on
page 691
(Optional) Customize the list of trusted certificate
authorities that the appliance uses to verify a
certificate from a remote domain to establish the
domain’s credentials.
Step 4
Sending Alerts When a Required TLS
Connection Fails, on page 686
(Optional) Configure the email gateway to send an
alert when it’s unable to deliver messages to a
domain that requires a TLS connection.
Step 5
Working with Certificates
To use TLS, the email gateway must have an X.509 certificate and matching private key for receiving and
delivery. You may use the same certificate for both SMTP receiving and delivery and different certificates
for HTTPS services on an interface, the LDAP interface, and all outgoing TLS connections to destination
domains, or use one certificate for all of them.
You can view the entire list of certificates on the Network > Certificates page in the web interface and in the
CLI by using the print command after you configure the certificates using certconfig . Note that the print
command does not display intermediate certificates.
Your email gateway ships with a demonstration certificate to test the TLS and HTTPS functionality,
but enabling either service with the demonstration certificate is not secure and is not recommended for
general use. When you enable eitherservice with the default demonstration certificate, a warning message
is printed in the CLI.
Caution
Related Topics
• Deploying a Signed Certificate , on page 677
• Deploying Self-Signed Certificates , on page 677
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
676
Encrypting Communication with Other MTAs
Working with Certificates
Deploying a Signed Certificate
Use a signed certificate when you cannot exchange self-signed certificates between the email gateway and
the other machine, for example because that machine is not in your domain. Your corporate security department
may have other requirements.
Do This More Info
Certificates and Centralized Management, on
page 678
If you are deploying in a cluster, follow
instructions.
Step 1
Generate a self-signed certificate and Certificate Creating a Self-Signed Certificate , on page 678
Signing Request (CSR).
Step 2
About Sending a Certificate Signing Request
(CSR) to a Certificate Authority , on page 679
Send the generated certificate to a recognized
Certificate Authority for signing.
Step 3
Uploading a Certificate Signed by a Certificate
Authority , on page 680
Step 4 Upload the signed certificate.
Managing Lists of Certificate Authorities, on page
691
Ensure that the certificate authority that signed the
certificate is on the list of trusted authorities.
Step 5
Step 6 If applicable, use an intermediate certificate. Intermediate Certificates, on page 678
Deploying Self-Signed Certificates
You can generally use self-signed certificates for communications between email gateways that are behind
your corporate firewall. Your corporate security department may have other requirements.
Do This More Info
If you are deploying in a cluster, follow Certificates and Centralized Management, on page 678
instructions.
Step 1
Generate a self-signed certificate from the Creating a Self-Signed Certificate , on page 678
email gateway.
Step 2
Step 3 Export the self-signed certificate. Exporting a Certificate , on page 681
Import the self-signed certificate to the See the documentation for the other machine.
machine with which the email gateway will
communicate.
Step 4
Generate and export a self-signed certificate See the documentation for the other machine.
from the other machine.
Step 5
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
677
Encrypting Communication with Other MTAs
Deploying a Signed Certificate
Do This More Info
Importing a Certificate , on page 680
or
See the chapter in this guide for configuring
communication with that machine.
For example, to configure secure communications with
a Cisco AMP Threat Grid Appliance, see instructions
for configuring Advanced settings in Configuring an
On-Premises File Analysis Server , on page 486.
Import the self-signed certificate from the
other machine into the email gateway.
Step 6
Certificates and Centralized Management
A certificate usually uses the local machine’s hostname for the certificate’s common name. If your email
gateways are part of a cluster, you will need to import a certificate for each cluster member as the machine
level, with the exception of a wild card certificate or a Subject Alternative Name (SAN) certificate that you
can install at the cluster level. Each cluster member’s certificate must use the same certificate name so the
cluster can refer to it when a member’s listener is communicating with another machine.
Intermediate Certificates
In addition to root certificate verification, AsyncOS supports the use of intermediate certificate verification.
Intermediate certificates are certificates issued by a trusted root certificate authority which are then used to
create additional certificates - effectively creating a chained line of trust. For example, a certificate may be
issued by godaddy.com who, in turn, is granted the rights to issue certificates by a trusted root certificate
authority. The certificate issued by godaddy.com must be validated against godaddy.com’s private key as
well as the trusted root certificate authority’s private key.
Creating a Self-Signed Certificate
You might want to create a self-signed certificate on the email gateway for any of the following reasons:
• To encryptSMTPconversations with other MTAs using TLS(both inbound and outbound conversations).
• To enable the HTTPS service on the email gateway for accessing the GUI using HTTPS.
• Use as a client certificate for LDAPS if the LDAP server asks for a client certificate.
• To allow secure communication between the email gateway and a Cisco AMP Threat Grid Appliance.
To create a self-signed certificate using the CLI, use the certconfig command.
Procedure
Step 1 Select Network > Certificates.
Step 2 Click Add Certificate.
Step 3 Select Create Self-Signed Certificate.
Step 4 Enter the following information for the self-signed certificate:
Common Name The fully qualified domain name.
Organization The exact legal name of the organization.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
678
Encrypting Communication with Other MTAs
Certificates and Centralized Management
Common Name The fully qualified domain name.
Organizational Unit Section of the organization.
City (Locality) The city where the organization is legally located.
State (Province) The state, county, or region where the organization is legally located.
The two letter ISO abbreviation of the country where the organization is
legally located.
Country
Duration before expiration The number of days before the certificate expires.
Size of the private key to generate for the CSR. Only 2048-bit and 1024-bit
are supported.
Private Key Size
Step 5 Click Next.
Step 6 Select the FQDN Validation check box to allow the email gateway to check whether the 'Common Name
present in the certificate is in the FQDN format.
Step 7 Enter a name for the certificate. By default, AsyncOS assigns the common name previously entered.
Step 8 If you will submit this certificate as a CertificateSigning Request (CSR), click Download CertificateSigning
Request to save the CSR in PEM format to a local or network machine.
Step 9 Submit and commit your changes.
What to do next
See the appropriate next step:
• Deploying a Signed Certificate , on page 677
• Deploying Self-Signed Certificates , on page 677
About Sending a Certificate Signing Request (CSR) to a Certificate Authority
A certificate authority is a third-party organization or company that issues digital certificates used to verify
identity and distributes public keys. This provides an additional level of assurance that the certificate is issued
by a valid and trusted identity. You may purchase certificates and private keys from a recognized certificate
authority. Cisco does not recommend one service over another.
The email gateway can create a self-signed certificate and generate a Certificate Signing Request (CSR) to
submit to a certificate authority to obtain the public certificate. The certificate authority will return a trusted
public certificate signed by a private key. Use the Network > Certificates page in the web interface or the
certconfig command in the CLI to create the self-signed certificate, generate the CSR, and install the trusted
public certificate.
If you are acquiring or creating a certificate for the first time, search the Internet for “certificate authority
services SSL Server Certificates,” and choose the service that best meets the needs of your organization.
Follow the service’s instructions for obtaining a certificate.
What To Do Next
See Deploying a Signed Certificate , on page 677.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
679
Encrypting Communication with Other MTAs
About Sending a Certificate Signing Request (CSR) to a Certificate Authority
Uploading a Certificate Signed by a Certificate Authority
When the certificate authority returnsthe trusted public certificate signed by a private key, upload the certificate
to the email gateway.
You can use the certificate with a public or private listener, an IP interface’s HTTPS services, the LDAP
interface, or all outgoing TLS connections to destination domains.
Procedure
Step 1 Make sure that the trusted public certificate that you receive is inPEM format or a format that you can convert
to PEM using before uploading to the email gateway. (Tools for doing this are included with OpenSSL, free
software from http://www.openssl.org.)
Step 2 Upload the signed certificate to the email gateway:
Note Uploading the certificate from the certificate authority overwritesthe existing self-signed certificate.
a) Select Network > Certificates.
b) Click the name of the certificate that you sent to the Certificate Authority for signing.
c) Enter the path to the file on your local machine or network volume.
Step 3 You can also upload an intermediate certificate related to the self-signed certificate.
What to do next
Related Topics
• Deploying a Signed Certificate , on page 677
Importing a Certificate
AsyncOS also allows you to import certificates from other machines that are saved in the PKCS #12 format
to use on your email gateway.
To import a certificate using the CLI, use the certconfig command.
If you are deploying a signed certificate, do not use this procedure to import the signed certificate.
Instead, see Uploading a Certificate Signed by a Certificate Authority , on page 680 .
Note
Procedure
Step 1 Select Network > Certificates.
Step 2 Click Add Certificate.
Step 3 Select the Import Certificate option.
Step 4 Enter the path to the certificate file on your network or local machine.
Step 5 Enter the passphrase for the file.
Step 6 Click Next to view the certificate’s information.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
680
Encrypting Communication with Other MTAs
Uploading a Certificate Signed by a Certificate Authority
Step 7 Select the FQDN Validation check box to allow the email gateway to check whether the 'Common Name,'
'SAN: DNS Name' fields, or both present in the certificate, are in the FQDN format.
Step 8 Enter a name for the certificate.
AsyncOS assigns the common name by default.
Step 9 Submit and commit your changes.
What to do next
• If you are deploying self-signed certificates, see Deploying Self-Signed Certificates , on page 677.
Exporting a Certificate
AsyncOS also allows you to export certificates and save them in the PKCS #12 format.
If you are deploying a signed certificate, do not use this procedure to generate a Certificate Signing
Request (CSR). Instead, see Deploying a Signed Certificate , on page 677.
Note
Procedure
Step 1 Navigate to the Network > Certificates page.
Step 2 Click Export Certificate.
Step 3 Select the certificate you want to export.
Step 4 Enter the file name for the certificate.
Step 5 Enter and confirm the passphrase for the certificate file.
Step 6 Click Export.
Step 7 Save the file to a local or network machine.
Step 8 You can export additional certificates or click Cancel to return to the Network > Certificates page.
What to do next
• If you are deploying self-signed certificates, see Deploying Self-Signed Certificates , on page 677.
Enabling TLS on a Listener’s HAT
You must enable TLSfor any listeners where you require encryption. You may want to enable TLSon listeners
facing the Internet (that is, public listeners), but not for listeners for internal systems (that is, private listeners).
Or, you may want to enable encryption for all listeners.
You can specify the following settings for TLS on a listener.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
681
Encrypting Communication with Other MTAs
Exporting a Certificate
Table 53: TLS Settings for a Listener
TLS Setting Meaning
TLSis not allowed for incoming connections. No connectionsto the listener will
require encryptedSMTPconversations. Thisisthe defaultsetting for all listeners
you configure on the email gateway.
1. No
2. Preferred TLS is allowed for incoming connections to the listener from MTAs.
TLS is allowed for incoming connections to the listener from MTAs, and until
a STARTTLS command is received, the email gateway responds with an error
message to every command other than NOOP , EHLO , or QUIT . This behavior
isspecified by RFC 3207, which definestheSMTPService Extension forSecure
SMTP over Transport Layer Security. “Requiring” TLS means that email which
the sender is not willing to encrypt with TLS will be refused by the email gateway
before it is sent, thereby preventing it from be transmitted in the clear.
3. Required
By default, neither private nor public listeners allow TLS connections. You must enable TLS in a listener’s
HAT to enable TLS for either inbound (receiving) or outbound (sending) email. In addition, all default mail
flow policy settings for private and public listeners have the tls setting set to “off.”
You can assign a specific certificate for TLSconnections to individual public listeners when creating a listener.
For more information, see Listening for Connection Requests by Creating a Listener Using Web Interface,
on page 75.
Related Topics
• Assigning a Certificate to a Public or Private Listener for TLS Connections Using the GUI, on page 682
• Assigning a Certificate to a Public or Private Listener for TLS Connections Using the CLI, on page 683
• Logging, on page 687
• GUI Example: Changing the TLS setting for Listeners HAT, on page 683
• CLI Example: Changing the TLS Setting for Listeners HAT, on page 683
Assigning a Certificate to a Public or Private Listener for TLS Connections
Using the GUI
Procedure
Step 1 Navigate to the Network > Listeners page.
Step 2 Click the name of the Listener to edit.
Step 3 In the Certificate field, choose a certificate.
Step 4 Submit and commit your changes.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
682
Encrypting Communication with Other MTAs
Assigning a Certificate to a Public or Private Listener for TLS Connections Using the GUI
Assigning a Certificate to a Public or Private Listener for TLS Connections
Using the CLI
Procedure
Step 1 Use the listenerconfig -> edit command to choose a listener you want to configure.
Step 2 Use the certificate command to see the available certificates.
Step 3 Choose the certificate you want to assign to the listener when prompted.
Step 4 When you are finished configuring the listener, issue the commit command to enable the change.
Logging
The Email Security appliance will note in the mail logs instances when TLS is required but could not be used
by the listener. The mail logs will be updated when the following conditions are met:
• TLS is set to “required” for a listener.
• The Email Security appliance has sent a “Must issue a STARTTLS command first” command.
• The connection is closed without having received any successful recipients.
Information on why the TLS connection failed will be included in the mail logs.
GUI Example: Changing the TLS setting for Listeners HAT
Procedure
Step 1 Navigate to the Mail Policies > Mail Flow Policies page.
Step 2 Choose a listener whose policies you want to modify, and then click the link for the name of policy to edit.
(You can also edit the Default Policy Parameters.)
Step 3 In the “Encryption and Authentication” section, for the “TLS:” field, choose the level of TLS you want for
the listener.
Step 4 Submit and commit your changes
The mail flow policy for the listener is updated with the TLS setting you chose
CLI Example: Changing the TLS Setting for Listeners HAT
Procedure
Step 1 Use the listenerconfig -> edit command to choose a listener you want to configure.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
683
Encrypting Communication with Other MTAs
Assigning a Certificate to a Public or Private Listener for TLS Connections Using the CLI
Step 2 Use the hostaccess -> default command to edit the listener’s default HAT settings.
Step 3 Change the TLS setting by entering one of the following choices when you are prompted with the following
questions:
Do you want to allow encrypted TLS connections?
1. No
2. Preferred
3. Required
[1]> 3
You have chosen to enable TLS. Please use the 'certconfig' command to
ensure that there is a valid certificate configured.
Step 4 Note that this example asks you to use the certconfig command to ensure that there is a valid certificate that
can be used with the listener. If you have not created any certificates, the listener uses the demonstration
certificate that is pre-installed on the email gateway. You may enable TLS with the demonstration certificate
for testing purposes, but it is not secure and is not recommended for general use. Use the listenerconfig
-> edit -> certificate command to assign a certificate to the listener. Once you have configured TLS,
the setting will be reflected in the summary of the listener in the CLI.
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: Required
Step 5 Issue the commit command to enable the change
Enabling TLS and Certificate Verification on Delivery
You can require that TLS is enabled for email delivery to specific domains using the Destination Controls
page or the destconfig command.
In addition to TLS, you can require that the domain’s server certificate is verified. This domain verification
is based on a digital certificate used to establish the domain’s credentials. The validation process involves
four validation requirements:
• The chain of issuer certificates for the SMTP session ends in a certificate issued by a trusted certificate
authority (CA)
• The Common Name (CN) listed on the certificate matches either the receiving machine's DNS name or
the message's destination domain.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
684
Encrypting Communication with Other MTAs
Enabling TLS and Certificate Verification on Delivery
-orThe message's destination domain matches one of the DNS names in the certificate's Subject Alternative
Name (subjectAltName) extension, as described in RFC 2459. The matching supports wildcards as
described in section 3.1 of RFC 2818.
• [Optional - Only ifFQDN validation enabled inSSL Configuration settings]: Check whether the 'Common
Name,' 'SAN: DNS Name' fields, or both present in the server certificate, are in the FQDN format.
• [Optional - Only if X 509 validation enabled in SSL Configuration settings]: Check for the signature
algorithm of the server certificate.
A trusted CA is a third-party organization or company that issues digital certificates used to verify identity
and distributes public keys. This provides an additional level of assurance that the certificate is issued by a
valid and trusted identity.
You can configure your email gateway to send messages to a domain over a TLS connection as an alternative
to envelope encryption. See the “Cisco Email Encryption” chapter for more information.
You can specify a certificate for the email gateway to use for all outgoing TLS connections. To specify the
certificate, click Edit Global Settings on the Destination Controls page or use destconfig -> setup in the
CLI. The certificate is a global setting, not a per-domain setting.
You can specify 5 different settings for TLS for a given domain when you include a domain using the
Destination Controls page or the destconfig command. In addition to specifying whether exchanges with a
domain are required or preferred to be TLS encoded, you can dictate whether validation of the domain is
necessary. See the following table for an explanation of the settings:
Table 54: TLS Settings for Delivery
TLS Setting Meaning
The default TLS setting set using the Destination Controls page or the destconfig ->
default subcommand used for outgoing connections from the listener to the MTA for the
domain.
The value “Default” is set if you answer “no” to the question: “Do you wish to apply a
specific TLS setting for this domain?”
Default
TLS is not negotiated for outgoing connections from the interface to the MTA for the
domain.
1. No
TLSis negotiated from the email gateway interface to the MTA(s) for the domain. However,
if the TLS negotiation fails (prior to receiving a 220 response), the SMTP transaction does
not fall back to clear text. No attempt is made to verify if the certificate originates from a
trusted certificate authority. If an error occurs and the TLS negotiation fails after the 220
response is received, the SMTP transaction will continue "in the clear" (not encrypted).
2. Preferred
TLS is negotiated from the email gateway interface to MTA(s) for the domain. No attempt
is made to verify the domain’s certificate. If the negotiation fails, no email is sent through
the connection. If the negotiation succeeds, the mail is delivered via an encrypted session.
3. Required
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
685
Encrypting Communication with Other MTAs
Enabling TLS and Certificate Verification on Delivery
TLS Setting Meaning
TLSis negotiated from the email gateway to the MTA(s) for the domain. The email gateway
attempts to verify the domain’s certificate.
Three outcomes are possible:
• TLSis negotiated and the certificate is verified. The mail is delivered via an encrypted
session.
• TLS is negotiated, but the certificate is not verified. The mail is delivered via an
encrypted session.
• No TLSconnection is made and, subsequently the certificate is not verified. The email
message is delivered in plain text.
4. Preferred
(Verify)
TLS is negotiated from the email gateway to the MTA(s) for the domain. Verification of
the domain certificate is required. The following outcomes are possible:
• A TLS connection is negotiated and the certificate is verified. The email message is
delivered via an encrypted session.
• A TLSconnection is negotiated, but the certificate is not verified by a trusted Cerfificate
Authority (CA). The mail is not delivered.
• A TLS connection is not negotiated. The mail is not delivered.
5. Required
(Verify)
The difference between TLS Required - Verify and TLS Required - Verify Hosted Domain
optionslaysin identity verification process. The way how the presented identity is processed
and what type of reference identifiers are allowed to be used make a difference about a final
result.
The presented identity is first derived from subjectAltName extension of type dNSName. If
there is no match between the dNSName and one of accepted reference identities (REF-ID),
the verification fails no matter if CN exist in subject field and could pass further identity
verification. The CN derived from subject field is validated only when the certificate does
not contain any of subjectAltName extension of type dNSName.
6. Required -
Verify Hosted
Domains
If there is no specific entry for a given recipient domain in the good neighbor table, or if there is a specific
entry but there is no specific TLSsetting for the entry, then the behavior is whatever isset using the Destination
Controls page or the destconfig -> default subcommand (“No,” “Preferred,” “Required,” “Preferred
(Verify),” or “Required (Verify)”).
Related Topics
• Sending Alerts When a Required TLS Connection Fails, on page 686
• Logging, on page 687
• Managing Lists of Certificate Authorities, on page 691
Sending Alerts When a Required TLS Connection Fails
You can specify whether the email gateway sends an alert if the TLSnegotiation fails when delivering messages
to a domain that requires a TLS connection. The alert message contains name of the destination domain for
the failed TLS negotiation. The email gateway sends the alert message to all recipients set to receive Warning
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
686
Encrypting Communication with Other MTAs
Sending Alerts When a Required TLS Connection Fails
severity level alerts for System alert types. You can manage alert recipients via the System Administration >
Alerts page in the GUI (or via the alertconfig command in the CLI).
Related Topics
• Enabling TLS Connection Alerts , on page 687
Enabling TLS Connection Alerts
Procedure
Step 1 Navigate to the Mail Policies Destination Controls page.
Step 2 Click Edit Global Settings.
Step 3 Click Enable for “Send an alert when a required TLS connection fails.”
This is a global setting, not a per-domain setting. For information on the messages that the email gateway
attempted to deliver, use the Monitor > Message Tracking page or the mail logs.
Step 4 Submit and commit your changes.
What to do next
You can also configure this in the command-line interface using the destconfig -> setup command to enable
TLS connection alerts using the CLI
Logging
The email gateway will note in the mail logs instances when TLS is required for a domain but could not be
used. Information on why the TLS connection could not be used will be included. The mail logs will be
updated when any of the following conditions are met:
• The remote MTA does not support ESMTP (for example, it did not understand the EHLO command
from the email gateway).
• The remote MTA supports ESMTP but “STARTTLS” was not in the list of extensions it advertised in
its EHLO response.
• The remote MTA advertised the “STARTTLS” extension but responded with an error when the email
gateway sent the STARTTLS command.
DNS-based Authentication of Named Entities
• Overview of SMTP DNS-based Authentication of Named Entities, on page 688
• Enabling TLS for Delivery with DANE Support, on page 690
• Sending Alerts When DANE Fails, on page 691
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
687
Encrypting Communication with Other MTAs
Enabling TLS Connection Alerts
Overview of SMTP DNS-based Authentication of Named Entities
TLS connections that are authenticated using certificates can become vulnerable to a security breach in any
one of the following ways:
• A trusted Certificate Authority (CA) can issue certificates to any domain name.
• An attacker can use a man-in-the-middle (MITM) attack to downgrade a TLS connection to plain text
communication.
• If DNSSEC is not configured on the DNS server, an attacker can forge a DNS response with fake DNS
MX records and redirect messages to an insecure server which can lead to DNS cache poisoning attacks.
• Self-signed certificates or certificates issued by a private Certificate Authority (CA) can be used when
a receiving Mail Transfer Agent (MTA) is not configured with a list of trusted Certificate Authority.
The SMTP DNS-based Authentication of Named Entities (DANE) protocol validates your X.509 certificates
with DNS names using a Domain Name System Security (DNSSEC) extension configured on your DNS
server and a DNS resource record, also known as a TLSA record.
The TLSA record is added in the cerificate that contains details about either the Certificate Authority (CA),
the end entity certificate, or the trust anchor used for the DNS name described in RFC 6698. For more
information,seeCreating TLSA Record, on page 689. The Domain NameSystem Security (DNSSEC) extensions
provide added security on the DNSby addressing vulnerabilitiesin DNSsecurity. DNSSEC using cryptographic
keys and digital signatures ensures that the lookup data is correct and connects to legitimate servers.
The following are the benefits of using SMTP DANE for outgoing TLS connections:
• Provides secure delivery of messages by preventing Man-in-the-Middle (MITM) downgrade attacks,
eavesdropping and DNS cache poisoning attacks.
• Provides authenticity of TLS certificates and DNS information, when secured by DNSSEC.
Related Topics
• SMTP DANE Workflow, on page 688
• Creating TLSA Record, on page 689
• Enabling TLS for Delivery with DANE Support, on page 690
• Sending Alerts When DANE Fails, on page 691
SMTP DANE Workflow
The following figure describes flow of messages using outgoing TLS connection with DANE support:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
688
Encrypting Communication with Other MTAs
Overview of SMTP DNS-based Authentication of Named Entities
Figure 45: Message Delivery Using TLS with DANE Support
1. Sender (Alice) sends a message to a recipient (Bob) outside the organization.
2. The message reaches the email gateway.
3. The email gateway requests for a DNS resource record, also known as a TLSA record of the DNS from
the DNS server.
4. The certificates and a TLSA record is retrieved from the DNS server, secured by DNSSEC.
5. The email gateway establishes a STARTTLS SMTP session to the recipient's address.
6. The X.509 certificates are validated against the complete TLSA record or hash value of the TLSA record,
of the recipient's address. After successful validation, the message is delivered to the recipient's Mail
Transfer Agent (MTA). If certificate verification fails, the message is delivered at a later time or the
message is bounced.
7. The MTA delivers the message to recipient's mailbox.
Creating TLSA Record
You can create a TLSA record of your preferred certificate authority (CA) on the DNS record signed with
DNSSEC. Below is a sample TLSA record for a Fully Qualified Domain Name (FQDN) www.example.com:
_443._tcp.www.example.com. IN TLSA (0 0 1
91751cee0a1ab8414400238a761411daa29643ab4b8243e9a91649e25be53ada)
The above example TLSA record has the following fields that are encrypted:
• Certificate Usage: Specifies the type of certificate.
• In the given sample, the first '0' digit specifies the CA certificate that must be matched to the PKIX
certification path, as described in RFC 6698.
• If it is '1', it specifies the end entity certificate that must be matched to the end entity certificate
given by the server in TLS.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
689
Encrypting Communication with Other MTAs
Creating TLSA Record
• If it is '2', it specifies a certificate that must be used as a trust anchor while validating the end entity
certificate given by the server in TLS.
• If it is '3', it specifies a certificate that must match the end entity certificate given by the server in
TLS.
• Selector Field: Specifies the part of TLS certificate that is matched with the association data.
• In the given sample, the second '0' specifies that the full certificate must be matched.
• If it is '1', it specifies that only the 'SubjectPublicKeyInfo' field must be matched.
• Matching Type: Specifies the type of HASH value that is used.
• In the given sample, the third '1' specifies the SHA-256 hash of the selected content.
• If it is '0', it specifies the exact match on the selected content.
• If it is '2' it specifies the SHA-512 hash of the selected content.
Enabling TLS for Delivery with DANE Support
Before you begin
• Ensure that the envelope sender and the TLSA resource record is DNSSEC verified.
• Ensure that you enable TLS to configure DANE on your email gateway. For more information, see
Enabling TLS and Certificate Verification on Delivery, on page 684.
Procedure
Step 1 Go to Mail Policies > Destination Controls page.
Step 2 Click Add Destination Controls or modify an existing entry.
Step 3 From the TLS Support field, you must select Preferred, Required or Mandatory to enable DANE support
on your email gateway.
Step 4 From the DANE Support field, you can specify the following settings for DANE for a given TLSconnection.
DANE Setting Description
The default DANE setting set using the Destination Controls
page is used for outgoing TLS connections from the listener to
the MTA for the domain.
The "Default" DANE setting is inherited from the default TLS
settings in Destination Controls. You can override this setting
to the custom Destination Control entry.
Default
Select "None", if you do not want DANE to be used for
negotiating outgoing connectionsfrom the interface to the MTA
for the domain.
None
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
690
Encrypting Communication with Other MTAs
Enabling TLS for Delivery with DANE Support
DANE Setting Description
If you select "Opportunistic" and the remote host does not
support DANE, opportunistic TLSis used for encryptingSMTP
conversations.
If you select "Opportunistic" and the remote host supports
DANE, it becomes the preferred mode for encrypting SMTP
conversations.
Opportunistic
If you select "Mandatory" and the remote host does not support
DANE, no connection is established to the destination host.
If you select "Mandatory" and the remote host supports DANE,
it becomes the preferred mode for encrypting SMTP
conversations.
Mandatory
Step 5 Submit and Commit your changes.
Sending Alerts When DANE Fails
You can specify whether the email gateway sends an alert if the DANE verification fails to all MX hosts when
delivering messages to a domain that requires a TLS connection with DANE support. The email gateway
sends the alert message to all recipients set to receive Warning severity level alerts for System alert types.
Enabling DANE Alerts
Procedure
Step 1 Go to System Administration > Alerts page.
Step 2 Select the alert recipient you want to enable the alert.
Step 3 Select the Message Delivery check box corresponding to the alert type.
Step 4 Submit and commit your changes.
Managing Lists of Certificate Authorities
The email gateway uses stored trusted certificate authorities that it uses to verify a certificate from a remote
domain to establish the domain’s credentials. You can configure the email gateway to use the following trusted
certificate authorities:
• Pre-installed list. The email gateway has a pre-installed list of trusted certificate authorities. This is
called the system list.
• User-defined list. You can customize a list of trusted certificate authorities and then import the list onto
the email gateway.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
691
Encrypting Communication with Other MTAs
Sending Alerts When DANE Fails
You can use either the system list or the customized list, and you can also use both lists to verify certificate
from a remote domain.
Manage the lists using the Network > Certificates > Edit Certificate Authorities page in the GUI or the
certconfig > certauthority command in the CLI.
On the Network > Certificates > Edit Certificate Authorities page, you can perform the following tasks:
• View the system list (pre-installed) of certificate authorities. For more information, see Viewing the
Pre-Installed list of Certificate Authorities, on page 692.
• Choose whether or not to use the system list. You can enable or disable the system list. For more
information, see Disabling the System Certificate Authority List, on page 692.
• Choose whether or not to use a custom certificate authority list. You can enable the email gateway
to use a custom list and then import the list from a text file.For more information,see Importing a Custom
Certificate Authority List, on page 693.
• Export the list of certificate authorities to a file. You can export either the system or customized list
of certificate authorities to a text file. For more information, see Exporting a Certificate Authorities List,
on page 693.
Related Topics
• Viewing the Pre-Installed list of Certificate Authorities, on page 692
• Disabling the System Certificate Authority List, on page 692
• Importing a Custom Certificate Authority List, on page 693
• Exporting a Certificate Authorities List, on page 693
• Certificate Updates, on page 694
• Managing Trusted Root Certificates, on page 694
Viewing the Pre-Installed list of Certificate Authorities
Procedure
Step 1 Navigate to the Network > Certificates page.
Step 2 Click Edit Settings in the Certificate Authorities section.
Step 3 Click View System Certificate Authorities.
Disabling the System Certificate Authority List
The pre-installed system certificate authorities list cannot be removed from the email gateway, but you can
enable or disable it. You might want to disable it to allow the email gateway to only use your custom list to
verify certificates from remote hosts.
Procedure
Step 1 Navigate to the Network > Certificates page.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
692
Encrypting Communication with Other MTAs
Viewing the Pre-Installed list of Certificate Authorities
Step 2 Click Edit Settings in the Certificate Authorities section.
Step 3 Click Disable for the System List.
Step 4 Submit and commit your changes.
Importing a Custom Certificate Authority List
You can create a custom of list trusted certificate authorities and import it onto the email gateway. The file
must be in the PEM format and include certificates for the certificate authorities that you want the email
gateway to trust.
Procedure
Step 1 Navigate to the Network > Certificates page.
Step 2 Click Edit Settings in the Certificate Authorities section.
Step 3 Click Enable for the Custom List.
Step 4 Enter the full path to the custom list on a local or network machine.
Step 5 Select the FQDN Validation check box to allow the email gateway to check whether the 'Common Name,'
'SAN: DNS Name' fields, or both present in the certificate, are in the FQDN format.
Step 6 Submit and commit your changes.
Exporting a Certificate Authorities List
If you want to use only a subset of the trusted certificate authorities in the system or edit an existing custom
list, you can export the list to a .txt file and edit it to add or remove certificate authorities. After you have
finished editing the list, import the file back onto the email gateway as a custom list.
Procedure
Step 1 Navigate to the Network > Certificates page.
Step 2 Click Edit Settings in the Certificate Authorities section.
Step 3 Click Export List.
AsyncOS displays the Export Certificate Authority List page.
Step 4 Select the list you want to export.
Step 5 Enter a filename for the list.
Step 6 Click Export.
AsyncOS displays a dialog box asking if want to open or save the list as a .txt file.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
693
Encrypting Communication with Other MTAs
Importing a Custom Certificate Authority List
Certificate Updates
The Updates section under Certificate Lists displays the version and last-updated information for the Cisco
trusted-root-certificate (system CA certificate) bundle on the email gateway. The bundle is updated periodically.
Click Update Now on the Certificates page to update the existing Cisco trusted-root-certificate (system CA
certificate) bundle to the latest available version.
Managing Trusted Root Certificates
You can view the count and details of the following certificates in your email gateway:
• Custom Trusted Root (custom CA) certificates
• Cisco Trusted Root (system CA) certificates
Procedure
Step 1 Navigate to Network > Certificates page.
Step 2 Click Manage Trusted Root Certificates under the Certificate Lists section to view the details of the custom
or system CA certificates.
Step 3 Click the required certificate link (for example, 'Admin-Root-CA') under the Cisco Trusted Root Certificate
List section to view the certificate details.
Step 4 [Optional] Click the Download Certificate link below the certificate (for example, 'Admin-Root-CA') details
to download the certificate.
You can also click the required certificate link under the Custom Trusted Root Certificates List
section to view or download the certificate details.
Note
Note You can also delete a Custom Trusted Root (custom CA) certificate, if required.
Enabling a Certificate for HTTPS
You can enable a certificate for HTTPS services on an IP interface using either the Network > IP Interfaces
page in the GUI or the interfaceconfig command in the CLI.
Procedure
Step 1 Navigate to the Network > IP Interfaces page.
Step 2 Select the interface you want to enable the HTTPS service.
Step 3 Under Appliance Management, check the HTTPS check box and enter the port number.
Step 4 Submit and commit your changes.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
694
Encrypting Communication with Other MTAs
Certificate Updates
What to do next
The demonstration certificate that is pre-installed on the email gateway. You may enable HTTPSservices
with the demonstration certificate for testing purposes, but it is not secure and is not recommended for
general use.
You can enable HTTPS services using the System Setup Wizard in the GUI. For more information , see
Setup and Installation, on page 17.
Note
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
695
Encrypting Communication with Other MTAs
Enabling a Certificate for HTTPS
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
696
Encrypting Communication with Other MTAs
Enabling a Certificate for HTTPS
CHAPTER 30
Configuring Routing and Delivery Features
This chapter contains the following sections:
• Routing Email for Local Domains, on page 697
• Rewriting Addresses, on page 702
• Creating Alias Tables, on page 703
• Configuring Masquerading, on page 710
• The Domain Map Feature, on page 720
• Directing Bounced Email, on page 726
• Controlling Email Delivery Using Destination Controls, on page 734
• Bounce Verification, on page 743
• Set Email Delivery Parameters, on page 746
• Configuring Mail Gateways for all Hosted Domains Using Virtual Gateway™ Technology, on page 749
• Using Global Unsubscribe, on page 758
• Review: Email Pipeline, on page 761
Routing Email for Local Domains
In Configuring the Gateway to Receive Email, on page 69 you customized private and public listeners to
service SMTP connections for an Enterprise Gateway configuration. Those listeners were customized to
handle specific connections (via HAT modification) and receive mail for specific domains (via RAT
modification of public listeners).
The email gateway routes mail to local domains to hosts specified via the Network > SMTP Routes page
(or the smtproutes command). This feature is similar to the sendmail mailertable feature.
If you have completed the GUI’s System Setup Wizard (or the Command Line Interface systemsetup
command) as described in the “Setup and Installation” chapter and committed the changes, you defined
the first SMTP route entries on the email gateway for each RAT entry you entered at that time.
Note
Related Topics
• SMTP Routes Overview, on page 698
• Default SMTP Route, on page 698
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
697
• Defining an SMTP Route, on page 699
• SMTP Routes Limits, on page 699
• SMTP Routes and DNS, on page 699
• SMTP Routes and Alerts, on page 700
• SMTP Routes, Mail Delivery, and Message Splintering, on page 700
• SMTP Routes and Outbound SMTP Authentication, on page 700
• Managing SMTP Routes to Send Outbound Email Using the GUI, on page 700
SMTP Routes Overview
SMTP Routes allow you to redirect all email for a particular domain to a different mail exchange (MX) host.
For example, you could make a mapping from example.com to groupware.example.com . This mapping
causes any email with @example.com in the Envelope Recipient addressto go instead to groupware.example.com
. The system performs an “MX” lookup on groupware.example.com , and then performs an “A” lookup on
the host, just like a normal email delivery. This alternate MX host does not need to be listed in DNS MX
records and it does not even need to be a member of the domain whose email is being redirected. The AsyncOS
operating system allows up to forty thousand (40,000)SMTP Route mappings to be configured for your email
gateway. (See SMTP Routes Limits, on page 699)
This feature also allows host “globbing.” If you specify a partial domain, such as .example.com , then any
domain ending in example.com matches the entry. For instance, fred@foo.example.com and
wilma@bar.example.com both match the mapping.
If a host is not found in the SMTP Routes table, an MX lookup is performed using DNS. The result is not
re-checked against the SMTP Routes table. If the DNS MX entry for foo.domain is bar.domain , any email
sent to foo.domain is delivered to the host bar.domain . If you create a mapping for bar.domain to some
other host, email addressed to foo.domain is not affected.
In other words, recursive entries are not followed. If there is an entry for a.domain to redirect to b.domain ,
and a subsequent entry to redirect email for b.domain to a.domain , a mail loop will not be created. In this
case, email addressed to a.domain will be delivered to the MX host specified by b.domain , and conversely
email addressed to b.domain will be delivered to the MX host specified by a.domain .
The SMTP Routes table is read from the top down for every email delivery. The most specific entry that
matches a mapping wins.For example, if there are mappings for both host1.example.com and .example.com
in the SMTP Routes table, the entry for host1.example.com will be used because it is the more specific entry
— even if it appears after the less specific .example.com entry. Otherwise, the system performs a regular MX
lookup on the domain of the Envelope Recipient.
Default SMTP Route
You can also define a defaultSMTProute with the special keyword ALL . If a domain does not match a previous
mapping in the SMTP Routes list, it defaults to being redirected to the MX host specified by the ALL entry.
When you print the SMTP Routes entries, the default SMTP route is listed as ALL: . You cannot delete the
default SMTP route; you may only clear any values entered for it.
Configure the default SMTP route via the Network > SMTP Routes page or the smtproutes command.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
698
Configuring Routing and Delivery Features
SMTP Routes Overview
Defining an SMTP Route
Use the Network > SMTP Routes page (or the smtproutes command) to construct routes. When you create
a new route, you first specify the domain or partial domain for which you want to create a permanent route.
You then specify destination hosts. Destination hosts can be entered as fully-qualified hostnames or as IP
addresses. IP addresses can be either Internet Protocol version 4 (IPv4) or version 6 (IPv6).
For IPv6 addresses, AsyncOS supports the following formats:
• 2620:101:2004:4202::0-2620:101:2004:4202::ff
• 2620:101:2004:4202::
• 2620:101:2004:4202::23
• 2620:101:2004:4202::/64
You can also specify a a special destination host of /dev/null to drop the messages that match the entry. (So,
in effect, specifying /dev/null for the default route is will ensure that no mail received by the email gateway
is ever delivered.)
A receiving domain can have multiple destination hosts, each assigned a priority number, much like an MX
record. The destination host with the lowest number identifies asthe primary destination host for the receiving
domain. Other destination hosts listed will be used as backup.
Destinations with identical priority will be used in a “round-robin” fashion. The round-robin process is based
on SMTP connections, and is not necessarily message-based. Also, if one or more of the destination hosts are
not responding, messages will be delivered to one of the reachable hosts. If all the configured destination
hosts are not responding, mail is queued for the receiving domain and delivery to the destination hosts is
attempted later. (It does not fail over to using MX records).
When constructing routes using the smtproutes command in the CLI, you can prioritize each destination host
by using /pri= , followed by an integer between 0 and 65535 to assign priority ( 0 is the highest priority)
after the hostname or IP address. For example, host1.example.com/pri=0 has a higher priority than
host2.example.com/pri=10. Separate multiple entries with commas.
SMTP Routes Limits
You can define up to 40,000 routes. The final default route of ALL is counted as a route against this limit.
Therefore, you can define up to 39,999 custom routes and one route that uses the special keyword ALL .
SMTP Routes and DNS
Use the special keyword USEDNS to tell the email gateway to do MX lookups to determine next hops for
specific domains. This is useful when you need to route mail for subdomains to a specific host. For example,
if mail to example.com is to be sent to the company’s Exchange server, you might have something similar to
the following SMTP route:
example.com exchange.example.com
However, for mail to various subdomains (foo.example.com), add an SMTP route that looks like this:
.example.com USEDNS
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
699
Configuring Routing and Delivery Features
Defining an SMTP Route
SMTP Routes and Alerts
Alerts sent from the email gateway to addresses specified in the System Administration > Alerts page (or the
alertconfig command) follow SMTP Routes defined for those destinations.
SMTP Routes, Mail Delivery, and Message Splintering
Incoming: if one message has 10 recipients and they are all on the same Exchange server, AsyncOS will open
one TCP connection and present exactly one message to the mail store, not 10 separate messages.
Outgoing: works similarly, but if one message is going to 10 recipients in 10 different domains, AsyncOS
will open 10 connections to 10 MTAs and deliver them one email each.
Splintering: if one incoming message has 10 recipients and they are each in separate Incoming Policy groups
(10 groups), the message will splinter even if all 10 recipients are on the same Exchange server. Thus, 10
separate emails will be delivered over a single TCP connection.
SMTP Routes and Outbound SMTP Authentication
If an Outbound SMTP Authentication profile has been created, you can apply it to an SMTP Route. This
allows authentication for outgoing mail in cases where the email gateway sits behind a mail relay server that
is at the edge of the network. For more information about Outbound SMTP Authentication, see Outgoing
SMTP Authentication, on page 811.
Managing SMTP Routes to Send Outbound Email Using the GUI
Use the Network > SMTP Routes page to manageSMTP Routes on your email gateway. You can add, modify,
and delete mappings in the table. You can export or import the SMTP Routes entries.
Related Topics
• Adding SMTP Routes, on page 700
• Exporting SMTP Routes, on page 701
• Importing SMTP Routes, on page 701
Adding SMTP Routes
Procedure
Step 1 Click Add Route on the Network > SMTP Routes page.
Step 2 Enter a receiving domain. This can be a hostname, domain, IPv4 address, or IPv6 address.
Step 3 Enter a destination host. This can be a hostname, IPv4 address, or IPv6 address. You can add multiple
destination hosts by clicking Add Row and entering the next destination host in the new row.
Note You can specify a port number by adding “: ” to the destination host: example.com:25.
Step 4 If you add multiple destination hosts, enter an integer between 0 and 65535 to assign priority to the hosts. 0
is the highest priority. See Defining an SMTP Route, on page 699for more information.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
700
Configuring Routing and Delivery Features
SMTP Routes and Alerts
Step 5 Submit and commit your changes.
Exporting SMTP Routes
Similar to the Host Access Table (HAT) and the Recipient Access Table (RAT), you can also modify SMTP
routes mappings by exporting and importing a file. To export the SMTP Routes:
Procedure
Step 1 Click Export SMTP Routes on the SMTP Routes page.
Step 2 Enter a name for the file and click Submit.
Importing SMTP Routes
Similar to the Host Access Table (HAT) and the Recipient Access Table (RAT), you can also modify SMTP
routes mappings by exporting and importing a file. To import SMTP Routes:
Procedure
Step 1 Click Import SMTP Routes on the SMTP Routes page.
Step 2 Select the file that contains the exported SMTP Routes.
Step 3 ClickSubmit. You are warned that importing will replace all existingSMTP Routes. All of theSMTP Routes
in the text file are imported.
Step 4 Click Import.
You can place “comments” in the file. Lines that begin with a ‘#’ character are considered comments and are
ignored by AsyncOS. For example:
# this is a comment, but the next line is not
ALL:
What to do next
At this point, our Email Gateway configuration looks like this:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
701
Configuring Routing and Delivery Features
Exporting SMTP Routes
Figure 46: SMTP Routes Defined for a Public Listene
Rewriting Addresses
AsyncOS provides several methods for rewriting Envelope Sender and Recipient addresses in the email
pipeline. Rewriting addresses can be used, for example, to redirect mail sent to a partner domain or to hide
(“mask”) your internal infrastructure.
The following table provides an overview of the various features used for rewriting sender and recipient email
addresses.
Table 55: Methods for Rewriting Addresses
Original Address Change to Feature Works on
• Envelope Recipients only
• Applied globally
• Maps aliases to email
addresses or other aliases
Alias Tables (see Creating
Alias Tables, on page 703 )
*@anydomain user@domain
• Envelope Recipients only
• Applied per listener
Domain Mapping (see The
Domain MapFeature, on page
720)
*@olddomain *@newdomain
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
702
Configuring Routing and Delivery Features
Rewriting Addresses
Original Address Change to Feature Works on
• Envelope Sender and the
To:, From:, and/or CC:
headers
• Applied per listener
Masquerading (see
Configuring Masquerading, on
page 710)
*@olddomain *@newdomain
Creating Alias Tables
Aliastables provide a mechanism to redirect messagesto one or more recipients. You can construct a mapping
table of aliases to usernames and other aliases in a similar fashion to the /etc/mail/aliases feature of a
sendmail configuration on some Unix systems.
When the Envelope Recipient (also known as the Envelope To, or RCPT TO ) of an email accepted by a listener
matches an alias as defined in an alias table, the Envelope Recipient address of the email will be rewritten.
A listener checks the alias table and modifies the recipients after checking the RAT and before message
filters. See the “Understanding the Email Pipeline” chapter.
Note
The Alias Table functionality actually rewrites the Envelope Recipient of the email. This is different
than the smtproutes command (see Directing Bounced Email, on page 726), which does not rewrite the
Envelope Recipient of the email, but instead simply reroutes the email to specified domains.
Note
Related Topics
• Configuring an Alias Table from the Command Line, on page 703
• Exporting and Importing an Alias Table , on page 704
• Deleting Entries from the Alias Table, on page 705
Configuring an Alias Table from the Command Line
Alias tables are defined in sections as follows: each section is headed by a domain context, which is a list of
domains that the section is relevant to, followed by a list of maps.
A domain context is a list of one or more domains or partial domains, separated by commas and enclosed in
square brackets (' [ ' and ' ] '). A domain is a string containing letters, digits hyphens, and periods as defined
in RFC 1035, section 2.3.1., “Preferred name syntax.” A partial domain, such as .example.com is a domain
that begins with a period. All domains that end with a substring matching the partial domain are considered
a match. For example, the domain context .example.com would match mars.example.com and
venus.example.com . Below the domain context is a list of maps, which are aliases followed by a list of
recipients. A map is constructed as follows:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
703
Configuring Routing and Delivery Features
Creating Alias Tables
Table 56: Alias Table Syntax
Left-hand Side (LHS) Separator Right-hand Side (RHS)
the colon character (“ : a list of one or more recipient addresses or aliases
”)
a list of one or more aliases to
match
An alias in the left-hand side can contain the following formats:
Specifies an alias to match. There must be a preceding “domains” attribute
specified in the table. The lack of this parameter will produce an error.
username
user@domain Specifies an exact email address to match on.
You can enter multiple aliases, separated by commas on a single left-hand side line.
Each recipient in the right-hand side can be a full user@domain email address, or another alias.
An alias file can contain “global” aliases (aliases that are applied globally instead of to a specific domain)
with no implied domain, domain contexts within which aliases have one or more implied domains, or both.
“Chains” (or recursive entries) of aliases may be created, but they must end in a full email address.
A special destination of /dev/null is supported to drop the message in order to be compatible with context
of a sendmail configuration. If a message is mapped to /dev/null via an alias table, the dropped counter is
increased. (See the “Managing and Monitoring via the CLI” chapter.) The recipient is accepted but not
enqueued.
Related Topics
• Example Alias Table, on page 705
• Example aliasconfig Command, on page 707
Exporting and Importing an Alias Table
To import an alias table, first see FTP, SSH, and SCP Access, on page 1307to ensure that you can access the
email gateway.
Use the export subcommand of the aliasconfig command to save any existing alias table. A file (whose
name you specify) will be written to the /configuration directory for the listener. You can modify this file
outside of the CLI and then re-import it. (If you have malformed entries in the file, errors are printed when
you try to import the file.)
Place the alias table file in the /configuration directory, and then use the import subcommand of the
aliasconfig command to upload the file.
Comment out lines in the table using a number symbol (#) at the beginning of each line.
Remember to issue the commit command after you import an alias table file so that the configuration changes
take effect.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
704
Configuring Routing and Delivery Features
Exporting and Importing an Alias Table
Deleting Entries from the Alias Table
If you delete entries from the alias table from the command line interface (CLI), you are prompted to choose
a domain group first. Choose the “ALL (any domain)” entry to see a numbered list of aliases that apply to all
domains. Then choose the number(s) of the aliases you want to delete.
Example Alias Table
Note All entries in this example table have been commented out.
# sample Alias Table file
# copyright (c) 2001-2005, IronPort Systems, Inc.
#
# Incoming Envelope To addresses are evaluated against each
# entry in this file from top to bottom. The first entry that
# matches will be used, and the Envelope To will be rewritten.
#
# Separate multiple entries with commas.
#
# Global aliases should appear before the first domain
# context. For example:
#
# admin@example.com: administrator@example.com
# postmaster@example.net: administrator@example.net
#
# This alias has no implied domain because it appears
# before a domain context:
#
# someaddr@somewhere.dom: specificperson@here.dom
#
# The following aliases apply to recipients @ironport.com and
# any subdomain within .example.com because the domain context
# is specified.
#
# Email to joe@ironport.com or joe@foo.example.com will
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
705
Configuring Routing and Delivery Features
Deleting Entries from the Alias Table
# be delivered to joseph@example.com.
#
# Similarly, email to fred@mx.example.com will be
# delivered to joseph@example.com
#
# [ironport.com, .example.com]
#
# joe, fred: joseph@example.com
#
# In this example, email to partygoers will be sent to
# three addresses:
#
# partygoers: wilma@example.com, fred@example.com, barney@example.com
#
# In this example, mail to help@example.com will be delivered to
# customercare@otherhost.dom. Note that mail to help@ironport.com will
# NOT be processed by the alias table because the domain context
# overrides the previous domain context.
#
# [example.com]
#
# help: customercare@otherhost.dom
#
# In this example, mail to nobody@example.com is dropped.
#
# nobody@example.com: /dev/null
#
# "Chains" may be created, but they must end in an email address.
# For example, email to "all" will be sent to 9 addresses:
#
# [example.com]
#
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
706
Configuring Routing and Delivery Features
Example Alias Table
# all: sales, marketing, engineering
# sales: joe@example.com, fred@example.com, mary@example.com
# marketing:bob@example.com, advertising
# engineering:betty@example.com, miles@example.com, chris@example.com
# advertising:richard@example.com, karen@advertising.com
Example aliasconfig Command
In this example, the aliasconfig command is used to construct an alias table. First, the domain context of
example.com is specified. Then, an alias of customercare is constructed so that any email sent to
customercare@example.com isredirected to bob@example.com , frank@example.com , and sally@example.com.
Next, a global alias of admin is constructed so that an email sent to admin is redirected to
administrator@example.com. Finally, the alias table is printed to confirm.
Note that when the table is printed, the global alias for admin appears before the first domain context of
example.com .
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.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
707
Configuring Routing and Delivery Features
Example aliasconfig Command
[]> customercare
Enter address(es) for "customercare".
Separate multiple addresses with commas.
[]> bob@example.com, frank@example.com, sally@example.com
Adding alias customercare: bob@example.com,frank@example.com,sally@example.com
Do you want to add another alias? [N]> n
There are currently 1 mappings defined.
Choose the operation you want to perform:
- NEW - Create a new entry.
- EDIT - Modify an entry.
- DELETE - Remove an entry.
- PRINT - Display the table.
- IMPORT - Import aliases from a file.
- EXPORT - Export table to a file.
- CLEAR - Clear the table.
[]> new
How do you want your aliases to apply?
1. Globally
2. Add a new domain context
3. example.com
[1]> 1
Enter the alias(es) to match on.
Separate multiple aliases with commas.
Allowed aliases:
- "user@domain" - This email address.
- "user" - This user for any domain
- "@domain" - All users in this domain.
- "@.partialdomain" - All users in this domain, or any of its sub domains.
[]> admin
Enter address(es) for "admin".
Separate multiple addresses with commas.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
708
Configuring Routing and Delivery Features
Example aliasconfig Command
[]> administrator@example.com
Adding alias admin: administrator@example.com
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: administrator@example.com
[ example.com ]
customercare: bob@example.com, frank@example.com, sally@example.com
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.
[]>
At this point, our Email Gateway configuration looks like this:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
709
Configuring Routing and Delivery Features
Example aliasconfig Command
Figure 47: Alias Tables Defined for the Email Gateway
Configuring Masquerading
Masquerading is a feature that rewrites the Envelope Sender (also known as the sender, or MAIL FROM )
and the To:,From:, and/or CC: headers on email processed by a listener according to a table that you construct.
A typical example implementation of this feature is “Virtual Domains,” which allows you to host multiple
domains from a single site. Another typical implementation is “hiding” your network infrastructure by
“stripping” the subdomains from strings in email headers. The Masquerading feature is available for both
private and public listeners.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
710
Configuring Routing and Delivery Features
Configuring Masquerading
The Masquerading feature is configured on a per-listener basis, as opposed to the Alias Tables
functionality, which is configured for the entire system.
A listener checks the masquerading table for matches and modifies the recipients while the message is
in the work queue, immediately after LDAP recipient acceptance queries and before LDAP routing
queries. See the “Understanding the Email Pipeline” chapter.
Note
The Masquerading feature actually rewrites addresses for the Envelope Sender and the To:, From:, and CC:
fields of the email that has been received. You can specify different masquerading parameters for each listener
you create in one of two ways:
• via a static table of mappings you create
• via an LDAP query.
This section discusses the static table method. The table format is forward-compatible with the
/etc/mail/genericstable feature of a sendmail configuration on some Unix systems. See LDAP Queries, on
page 775for more information on LDAP masquerading queries.
Related Topics
• Masquerading and altsrchost, on page 711
Masquerading and altsrchost
Generally, the masquerading feature rewritesthe EnvelopeSender, and any subsequent actionsto be performed
on the message will be “triggered” from the masqueraded address. However, when you run the altscrchost
command from the CLI, the altsrchost mappings are triggered from the original address(and not the modified,
masqueraded address).
For more information, see Configuring Mail Gateways for all Hosted Domains Using Virtual Gateway™
Technology, on page 749and Review: Email Pipeline, on page 761.
Related Topics
• Configuring Static Masquerading Tables, on page 711
• Sample Masquerading Table for a Private Listener, on page 712
• Importing a Masquerading Table , on page 713
• Example Masquerading , on page 713
Configuring Static Masquerading Tables
You configure the static masquerading table of mappings by using the edit -> masquerade subcommand of
the listenerconfig command. Alternatively, you can import a file containing the mappings. See Importing a
Masquerading Table , on page 713. The subcommand creates and maintains a table that maps input addresses,
usernames, and domainsto new addresses and domains.See LDAP Queries, on page 775for more information
on LDAP masquerading queries.
When messages are injected into the system, the table is consulted, and the message is rewritten if a match in
the header is found.
A domain masquerading table is constructed as follows:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
711
Configuring Routing and Delivery Features
Masquerading and altsrchost
Table 57: Masquerading Table Syntax
Left-hand Side (LHS) Separator Right-hand Side (RHS)
whitespace (space or tab the rewritten username and/or domain
character)
a list of one or more
usernames and/or domainsto
match
The following table lists valid entries in the masquerading table:
Left-hand Side (LHS) Right-hand Side (RHS)
username username@domain
This entry specifies a username to match. Incoming email messages matching a username on the left-hand
side are matched and rewritten with the address on the right-hand size. The right-hand side must be a full
address.
user@domain username@domain
The entry specifies an exact address to match. Incoming messages matching a full address on the left-hand
side are rewritten with the address listed on the right-hand side. The right-hand side must be a full address.
@domain @domain
This entry specifies any address with the specified domain. The original domain on the left-hand side is
replaced with the domain in the right-hand side, leaving the username intact.
@.partialdomain @domain
This entry specifies any address with the specified domain. The original domain on the left-hand side is
replaced with the domain in the right-hand side, leaving the username intact.
ALL @domain
The ALL entry matches bare addresses and rewrites them with the address on the right-hand side. The
right-hand side must be a domain preceded by an “ @ ”. This entry always has the lowest precedence
regardless of its location in the table.
Note You can use the ALL entry for private listeners only.
• Rules are matched by the order in which they appear in the masquerading table.
• Addresses in the From:, To:, and CC: fields in the headers are matched and rewritten upon receiving by
default. You can also configure the option to match and rewrite the Envelope Sender. Enable and disable
the Envelope Sender and which headers to rewrite using the config subcommand.
• You can comment out linesin the table using a numbersymbol (#) at the beginning of each line. Everything
following a # to the end of the line will be considered a comment and ignored.
• A masquerading table is limited to 400,000 entries, whether you create them via the new subcommand
or import them from a file.
Sample Masquerading Table for a Private Listener
# sample Masquerading file
@.example.com @example.com # Hides local subdomains in the header
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
712
Configuring Routing and Delivery Features
Sample Masquerading Table for a Private Listener
sales sales_team@success.com
@techsupport tech_support@biggie.com
user@localdomain user@company.com
ALL @bigsender.com
Importing a Masquerading Table
A traditional sendmail /etc/mail/genericstable file can be imported. To import a genericstable file, first
see FTP, SSH, and SCP Access, on page 1307to ensure that you can access the email gateway.
Place the genericstable file in the configuration directory, and then use the import subcommand of the
masquerade subcommand to upload the file. Use the commands in this order:
listenerconfig -> edit -> listener_number -> masquerade -> import
Alternatively, you can use the export subcommand to download the existing configuration. A file (whose
name you specify) will be written to the configuration directory. You can modify this file outside of the CLI
and then import it again.
When you use the import subcommand, ensure that the file contains only valid entries. If there is an invalid
entry (for example, a left-hand side with no right-hand side), the CLI reports syntax errors when you import
the file. If there is a syntax error during import, no mappings in the entire file are imported.
Remember to issue the commit command after you import a genericstable file so that the configuration
changes for the listener take effect.
Example Masquerading
In this example, the masquerade subcommand of listenerconfig is used to construct a domain masquerading
table for the private listener named “OutboundMail” on the PrivateNet interface.
First, the option to use LDAP for masquerading is declined. (For information on configuring LDAP
masquerading queries,see LDAP Queries, on page 775for more information on LDAP masquerading queries.)
Then, a partial domain notation of @.example.com is mapped to @example.com so that any email sent from
any machine in the subdomain of .example.com will be mapped to example.com . Then, the username joe
is mapped to the domain joe@example.com. The domain masquerading table is then printed to confirm both
entries, and then exported to a file named masquerade.txt . The config subcommand is used to disable
re-writing addresses in the CC: field, and finally, the changes are committed.
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.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
713
Configuring Routing and Delivery Features
Importing a Masquerading Table
[]> 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.
- LDAPACCEPT - Configure an LDAP query to determine whether a recipient address should
be accepted or bounced/dropped.
- LDAPROUTING - Configure an LDAP query to reroute messages.
- LDAPGROUP - Configure an LDAP query to determine whether a sender or
recipient is in a specified group.
- SMTPAUTH - Configure an SMTP authentication.
[]> masquerade
Do you want to use LDAP for masquerading? [N]> n
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
714
Configuring Routing and Delivery Features
Example Masquerading
Domain Masquerading Table
There are currently 0 entries.
Masqueraded headers: To, From, Cc
Choose the operation you want to perform:
- NEW - Create a new entry.
- DELETE - Remove an entry.
- PRINT - Display all entries.
- IMPORT - Import all entries from a file.
- EXPORT - Export all entries to a file.
- CONFIG - Configure masqueraded headers.
- CLEAR - Remove all entries.
[]> new
Enter the source address or domain to masquerade.
Usernames like "joe" are allowed.
Full addresses like "user@example.com" are allowed.
Full addresses with subdomain wildcards such as "username@.company.com" are allowed.
Domains like @example.com and @.example.com are allowed.
Hosts like @training and @.sales are allowed.
[]> @.example.com
Enter the masqueraded address or domain.
Domains like @example.com are allowed.
Full addresses such as user@example.com are allowed.
[]> @example.com
Entry mapping @.example.com to @example.com created.
Domain Masquerading Table
There are currently 1 entries.
Masqueraded headers: To, From, Cc
Choose the operation you want to perform:
- NEW - Create a new entry.
- DELETE - Remove an entry.
- PRINT - Display all entries.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
715
Configuring Routing and Delivery Features
Example Masquerading
- IMPORT - Import all entries from a file.
- EXPORT - Export all entries to a file.
- CONFIG - Configure masqueraded headers.
- CLEAR - Remove all entries.
[]> new
Enter the source address or domain to masquerade.
Usernames like "joe" are allowed.
Full addresses like "user@example.com" are allowed.
Full addresses with subdomain wildcards such as "username@.company.com" are allowed.
Domains like @example.com and @.example.com are allowed.
Hosts like @training and @.sales are allowed.
[]> joe
Enter the masqueraded address.
Only full addresses such as user@example.com are allowed.
[]> joe@example.com
Entry mapping joe to joe@example.com created.
Domain Masquerading Table
There are currently 2 entries.
Masqueraded headers: To, From, Cc
Choose the operation you want to perform:
- NEW - Create a new entry.
- DELETE - Remove an entry.
- PRINT - Display all entries.
- IMPORT - Import all entries from a file.
- EXPORT - Export all entries to a file.
- CONFIG - Configure masqueraded headers.
- CLEAR - Remove all entries.
[]> print
@.example.com @example.com
joe joe@example.com
Domain Masquerading Table
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
716
Configuring Routing and Delivery Features
Example Masquerading
There are currently 2 entries.
Masqueraded headers: To, From, Cc
Choose the operation you want to perform:
- NEW - Create a new entry.
- DELETE - Remove an entry.
- PRINT - Display all entries.
- IMPORT - Import all entries from a file.
- EXPORT - Export all entries to a file.
- CONFIG - Configure masqueraded headers.
- CLEAR - Remove all entries.
[]> export
Enter a name for the exported file:
[]> masquerade.txt
Export completed.
Domain Masquerading Table
There are currently 2 entries.
Masqueraded headers: To, From, Cc
Choose the operation you want to perform:
- NEW - Create a new entry.
- DELETE - Remove an entry.
- PRINT - Display all entries.
- IMPORT - Import all entries from a file.
- EXPORT - Export all entries to a file.
- CONFIG - Configure masqueraded headers.
- CLEAR - Remove all entries.
[]> config
Do you wish to masquerade Envelope Sender?
[N]> y
Do you wish to masquerade From headers?
[Y]> y
Do you wish to masquerade To headers?
[Y]> y
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
717
Configuring Routing and Delivery Features
Example Masquerading
Do you wish to masquerade CC headers?
[Y]> n
Do you wish to masquerade Reply-To headers?
[Y]> n
Domain Masquerading Table
There are currently 2 entries.
- NEW - Create a new entry.
- DELETE - Remove an entry.
- PRINT - Display all entries.
- IMPORT - Import all entries from a file.
- EXPORT - Export all entries to a file.
- CONFIG - Configure masqueraded headers.
- CLEAR - Remove all entries.
[]>
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.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
718
Configuring Routing and Delivery Features
Example Masquerading
- BOUNCECONFIG - Choose the bounce profile to use for messages injected on this
listener.
- MASQUERADE - Configure the Domain Masquerading Table.
- DOMAINMAP - Configure domain mappings.
- LDAPACCEPT - Configure an LDAP query to determine whether a recipient address should
be accepted or bounced/dropped.
- LDAPROUTING - Configure an LDAP query to reroute messages.
- LDAPGROUP - Configure an LDAP query to determine whether a sender or
recipient is in a specified group.
- SMTPAUTH - Configure an SMTP authentication.
[]>
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.
[]>
Our Enterprise Gateway configuration now looks like this:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
719
Configuring Routing and Delivery Features
Example Masquerading
Figure 48: Masquerading Defined for a Private Listene
The Domain Map Feature
You can configure a “domain map” for listeners. For each listener you configure, you can construct a domain
map table which rewrites the Envelope Recipient for each recipient in a message that matches a domain in
the domain map table. This feature is similar to the sendmail “Domain Table” or Postfix “Virtual Table”
feature. Only the Envelope Recipient is affected; the “To:” headers are not re-written by this feature.
The processing of the domain map feature happens immediately before the RAT and right after Default
Domain is evaluated. See the “Understanding the Email Pipeline” chapter.
Note
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
720
Configuring Routing and Delivery Features
The Domain Map Feature
A common implementation of the domain map feature is to accept incoming mail for more than one legacy
domain. For example, if your company has acquired another company, you could construct a domain map on
the email gateway to accept messages for the acquired domain and rewrite the Envelope Recipients to your
company’s current domain.
Note You can configure up to 20,000 separate, unique domain mappings.
Table 58: Domain Map Table Example Syntax
Left Side Right Side Comments
username@example.com username2@example.net Only complete address for the right side
user@.example.com user2@example.net
user@example.net Complete address or fully-qualified domain name.
or
@example.net
@example.com
user@example.net
or
@example.net
@.example.com
In the following example, the domainmap subcommand of the listenerconfig command is used to create a
domain map for the public listener “InboundMail.” Mail for the domain and any subdomain of
oldcompanyname.com is mapped to the domain example.com . The mapping is then printed for confirmation.
Contrast this example with the configuration of placing both domains in the listener’s RAT: the domain map
feature will actually rewrite the Envelope Recipient of joe@oldcomapanyname.com to joe@example.com ,
whereas placing the domain oldcompanyname.com in the listener’s RAT will simply accept the message for
joe@oldcompanyname.com and route it without rewriting the Envelope Recipient. Also, contrast this example
with the alias table feature. Alias tables must resolve to an explicit address; they cannot be constructed to map
“any username @domain ” to “the same username @newdomain .”
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.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
721
Configuring Routing and Delivery Features
The Domain Map Feature
[]> 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:
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.
[]> domainmap
Domain Map Table
There are currently 0 Domain Mappings.
Domain Mapping is: disabled
Choose the operation you want to perform:
- NEW - Create a new entry.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
722
Configuring Routing and Delivery Features
The Domain Map Feature
- IMPORT - Import domain mappings from a file.
[]> new
Enter the original domain for this entry.
Domains such as "@example.com" are allowed.
Partial hostnames such as "@.example.com" are allowed.
Email addresses such as "test@example.com" and "test@.example.com"
are also allowed.
[]> @.oldcompanyname.com
Enter the new domain for this entry.
The new domain may be a fully qualified
such as "@example.domain.com" or a complete
email address such as "test@example.com"
[]> @example.com
Domain Map Table
There are currently 1 Domain Mappings.
Domain Mapping is: enabled
Choose the operation you want to perform:
- NEW - Create a new entry.
- EDIT - Modify an entry.
- DELETE - Remove an entry.
- PRINT - Display all domain mappings.
- IMPORT - Import domain mappings from a file.
- EXPORT - Export domain mappings to a file.
- CLEAR - Clear all domain mappings.
[]> print
@.oldcompanyname.com --> @example.com
Domain Map Table
There are currently 1 Domain Mappings.
Domain Mapping is: enabled
Choose the operation you want to perform:
- NEW - Create a new entry.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
723
Configuring Routing and Delivery Features
The Domain Map Feature
- EDIT - Modify an entry.
- DELETE - Remove an entry.
- PRINT - Display all domain mappings.
- IMPORT - Import domain mappings from a file.
- EXPORT - Export domain mappings to a file.
- CLEAR - Clear all domain mappings.
[]>
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: Enabled
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.
[]>
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
724
Configuring Routing and Delivery Features
The Domain Map Feature
Related Topics
• Importing and Exporting a Domain Map Table , on page 725
Importing and Exporting a Domain Map Table
To import or export a domain map table, first see FTP, SSH, and SCP Access, on page 1307to ensure that you
can access the email gateway.
Create a text file of entries of domains to map. Separate the entries with white space (either a tab character
or spaces). Comment out lines in the table using a number symbol (#) at the beginning of each line.
Place the file in the configuration directory, and then use the import subcommand of the domain subcommand
to upload the file. Use the commands in this order:
listenerconfig -> edit -> inejctor_number -> domainmap -> import
Alternatively, you can use the export subcommand to download the existing configuration. A file (whose
name you specify) will be written to the configuration directory. You can modify this file outside of the CLI
and then import it again.
When you use the import subcommand, ensure that the file contains only valid entries. If there is an invalid
entry (for example, a left-hand side with no right-hand side), the CLI reports syntax errors when you import
the file. If there is a syntax error during import, no mappings in the entire file are imported.
Remember to issue the commit command after you import a domain map table file so that the configuration
changes for the listener take effect.
Our Enterprise Gateway configuration now looks like this:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
725
Configuring Routing and Delivery Features
Importing and Exporting a Domain Map Table
Figure 49: Domain Map Defined for a Public Listener
Directing Bounced Email
Bounced email is an inevitable part of any email delivery. Your email gateway is able to process bounced
email in a number of highly configurable ways.
Please note, this section describes how to control how your email gateway generates outgoing bounces (based
on incoming mail). To control how your email gateway controls incoming bounces (based on outgoing mail)
use Bounce Verification (see Bounce Verification, on page 735).
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
726
Configuring Routing and Delivery Features
Directing Bounced Email
Related Topics
• Handling Undeliverable Email, on page 727
• Creating a New Bounce Profile, on page 733
• Applying Bounce Profiles to Listeners, on page 733
Handling Undeliverable Email
The AsyncOS operating system classifies undeliverable email, or “bounced messages,” into the following
categories:
“Conversational” bounces:
The remote domain bounces the message during the initial SMTP conversation.
A message that is temporarily undeliverable. For example, a user’s mailbox may be
full. These messages can be retried at a later time. (e.g. An SMTP 4XX error code.)
Soft bounces
A message that is permanently undeliverable. For example, the user no longer exists
for that domain. These messages will not be retried. (e.g. An SMTP 5XX error code.)
Hard bounces
“Delayed” (or “Non-conversational”) bounces:
The remote domain accepts the message for delivery, only to bounce it at a later time.
A message that is temporarily undeliverable. For example, a user’s mailbox may be
full. These messages can be retried at a later time. (e.g. An SMTP 4XX error code.)
Soft bounces
A message that is permanently undeliverable. For example, the user no longer exists
for that domain. These messages will not be retried. (e.g. An SMTP 5XX error code.)
Hard bounces
You use the Bounce Profiles page on the Network menu in the GUI (or the bounceconfig command) to
configure how AsyncOShandles hard and soft conversational bouncesfor each listener you create. You create
bounce profiles and then apply profiles to each listener via the Network > Listeners page (or the
listenerconfig command). You can also assign bounce profiles to specific messages using message filters.
(See Using Message Filters to Enforce Email Policies, on page 131for more information.)
Related Topics
• Notes on Soft and Hard Bounces, on page 727
• Bounce Profile Parameters, on page 728
• Hard Bounces and the status Command, on page 731
• Conversational Bounces and SMTP Routes Message Filter actions, on page 731
• Example Bounce Profiles, on page 731
• Delivery Status Notification Format, on page 732
• Delay Warning Messages, on page 732
• Delay Warning Messages and Hard Bounces, on page 732
Notes on Soft and Hard Bounces
• For conversationalsoft bounces, a soft bounce event is defined as each time a recipient delivery temporarily
fails. A single recipient may incur several soft bounce events. You use the Bounce Profiles page or the
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
727
Configuring Routing and Delivery Features
Handling Undeliverable Email
bounceconfig command to configure parameters for each soft bounce event. (See Bounce Profile
Parameters, on page 728.)
• By default, the system generates a bounce message and sends it to the original sender for each hard
bounced recipient. (The message is sent to the address defined in the Envelope Sender address of the
message envelope. EnvelopeFrom is also commonly referred to asthe EnvelopeSender.) You can disable
thisfeature and instead rely on log filesfor information about hard bounces. (See the “Logging” chapter.)
• Soft bounces become hard bounces after the maximum time in queue or the maximum number of retries,
whichever comes first.
Bounce Profile Parameters
When configuring a bounce profile, the following parameters control how conversational bounces are handled
per message:
Table 59: Bounce Profile Parameters
The number of timesthe system should try to reconnect to the recipient host to re-deliver
the soft bounced message before treating it as a hard bounced message. The default is
100 retries.
Maximum number
of retries
The amount of time the system should spend trying connect to the recipient host to
re-deliver the soft bounced message before treating it as a hard bounced message. The
default is 259,200 seconds (72 hours).
Maximum number
ofsecondsinqueue
The amount of time the system should wait before the first attempt to re-deliver the
soft bounced message. The default is 60 seconds. Set the initial retry time to a high
value to reduce the frequency of soft bounce attempts. Conversely, to increase the
frequency, lower the value.
Initial number of
seconds to wait
before retrying a
message
The maximum amount of time the system should wait before trying to re-deliver the
soft bounced message. The default is 3,600 seconds (1 hour). This is not the interval
between each subsequent try; rather, it is another parameter that can be used to control
the number of retries. The initial retry interval is limited on the high end by the
maximum retry interval. If the calculated retry interval period exceeds the maximum
retry interval then the maximum retry interval is used instead.
Maximum number
of seconds to wait
before retrying a
message
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
728
Configuring Routing and Delivery Features
Bounce Profile Parameters
Specify whether to send bounce message for hard bounce. If this option is enabled,
you can choose the format of the bounce message. By default, bounce messages use
the DSN format (RFC 1894).
You can also send customized bounce messages based on the language of the original
message (subject and body). For example, you may want to send bounce messages in
Chinese for messages in Chinese and bounce messages in English for all the messages
in other languages.
Under Notification Template, click Add Row and choose the message language and
the template that you want to use.
Make sure that you do not delete the default entry (Message Language set
to Default). You can change the bounce notification template for the default
entry.
Note
The language of a message is considered Default in the following scenarios:
• If the language of the message is different from the language selected in the other
Notification Template entries.
• If the language of the message is not supported by the email gateway.
• If the email gateway is unable to detect the language of the message.
• If the content (subject and body) in the message is less than 50 bytes.
While configuring the above example (send bounce messages in Chinese for messages
in Chinese and bounce messages in English for all the messages in other languages,)
the Notification Template table will look like this:
You can also choose whether to parse the DSN status field from the bounce response.
If you choose “Yes,” the email gateway searches the bounce response for a DSN status
code (RFC 3436) and usesthe code in theStatusfield of the delivery status notification.
Send Hard Bounce
Messages
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
729
Configuring Routing and Delivery Features
Bounce Profile Parameters
Specify whether to send warning message for delayed delivery. If this option is enabled,
you can configure custom delay warning messages based on the language of the original
message (subject and body). For example, you may want to send delay warning
messages in Chinese for the messages in Chinese and delay warning messages in
English for all the messages in other languages.
Under Notification Template, click Add Row and choose the message language and
the template that you want to use.
Make sure that you do not delete the default entry (Message Language set
to Default). You can change the bounce notification template for the default
entry.
Note
The language of a message is considered Default in the following scenarios:
• If the language of the message is different from the language selected in the other
Notification Template entries.
• If the language of the message is not supported by the email gateway.
• If the email gateway is unable to detect the language of the message.
• If the content (subject and body) in the message is less than 50 bytes.
While configuring the above example (send delay warning messages in Chinese for
the messages in Chinese and delay warning messages in English for all the messages
in other languages,) the Notification Template table will look like this:
You can also specify the minimum interval between messages as well as the maximum
number of retries to send.
Send Delay
Warning Messages
You can bounce messagesto an alternate addressrather than the default of the Envelope
Sender address.
Specify Recipient
for Bounces
You can select a DomainKeys profile to use for signing bounce and delay messages.
For information on DomainKeys,see DomainKeys and DKIM Authentication, on page
601.
Use DomainKeys
signing for bounce
anddelay messages
Global Settings
Configure these settings via the Edit Global Settings link on the Bounce Profiles page or by editing
the default bounce profile via the bounceconfig command in the CLI.
The amount of time the system should wait before
retrying a host that is unreachable. The default is 60 seconds.
Initial number of
seconds to wait
before retrying an
unreachable host
The maximum amount of time the system should wait before retrying a host that is
unreachable. The default is 3,600 seconds (1 hour). When the delivery initially fails
due to the host being down, it will start with the minimum number of seconds retry
value, and for each subsequent retry to the downed host, will increase the duration, up
to this maximum number of seconds value.
Max interval
allowed between
retries to an
unreachable host
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
730
Configuring Routing and Delivery Features
Bounce Profile Parameters
Hard Bounces and the status Command
When hard bounce message generation is enabled, the following counters in the status and status detail
commands increment each time the email gateway generates a hard bounce message for delivery:
Counters: Reset Uptime Lifetime
Receiving
Messages Received 0 0 0
Recipients Received 0 0 0
Gen. Bounce Recipients 0 0 0
For more information, see the “Monitoring and Managing via the CLI” chapter. When hard bounce message
generation is disabled, none of these counters increments when a recipient hard bounces.
The EnvelopeSender address of the message envelope is different than theFrom: in the message headers.
AsyncOScan be configured to send hard bounce messagesto an email address different than the Envelope
Sender address.
Note
Conversational Bounces and SMTP Routes Message Filter actions
MappingsforSMTP Routes and message filter actions are not applied to the routing ofSMTPbounce messages
generated by the email gateway as a result of a conversational bounce. When an email gateway receives a
conversational bounce message, it generates an SMTP bounce message back to the Envelope Sender of the
original message. In this case, the email gateway is actually generating the message, so any SMTP Routes
that apply to an injected message for relaying do not apply.
Example Bounce Profiles
Consider these two examples using different bounce profile parameters:
Table 60: Example 1: Bounce Profile Parameters
Parameter Value
Max number of retries 2
Max number of seconds in queue 259,200 seconds (72 hours)
Initial number of seconds before retrying 60 seconds
Max number of seconds to wait before retrying 60 seconds
In Example 1, the first recipient delivery attempt is made at t=0, immediately after the message is injected
into the email gateway. With the default initial retry time of 60 seconds, the first retry attempt is made
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
731
Configuring Routing and Delivery Features
Hard Bounces and the status Command
approximately one minute later at t=60. The retry interval is calculated and it is determined to use the maximum
retry interval of 60 seconds. Thus, the second retry attempt is made at approximately t=120. Immediately after
thisretry attempt, the system generates a hard bounce message for that recipient because the maximum number
of retries is two.
Table 61: Example 2: Bounce Profile Parameters
Parameter Value
Max number of retries 100
Max number of seconds in queue 100 seconds
Initial number of seconds before retrying 60 seconds
Max number of seconds to wait before retrying 120 seconds
In Example 2, the first delivery attempt is made at t=0 and the first retry is made at t=60. The system hard
bounces the message immediately before the next delivery attempt (scheduled to occur at t=120) because it
has exceeded the maximum time in queue of 100 seconds.
Delivery Status Notification Format
Bounce messages generated by the system, by default, use the Delivery Status Notification (DSN) format for
both hard and soft bounces. DSN is a format defined by RFC 1894 (see http://www.faqs.org/rfcs/rfc1894.html
) that “defines a MIME content-type that may be used by a message transfer agent (MTA) or electronic mail
gateway to report the result of an attempt to deliver a message to one or more recipients.” By default, the
delivery status notification includes an explanation of the delivery status and the original message if the
message size is less than 10k. If the message size is greater than 10k, the delivery status notification includes
the message headers only. If the message headers exceed 10k, the delivery status notification truncates the
headers. If you want include messages (or message headers) that are greater than 10k in the DSN, you can
use the max_bounce_copy parameter in the bounceconfig command (this parameter is only available from
the CLI).
Delay Warning Messages
Time in Queue Messages (delay notification messages) generated by the system also use the DSN format.
Change the default parameters by using the Bounce Profiles page on the Network menu (or the bounceconfig
command) to edit existing or create new bounce profiles and change the default values for:
• The minimum interval between sending delay warning messages.
• The maximum number of delay warning messages to send per recipient.
Delay Warning Messages and Hard Bounces
Note that it is possible to receive both a delay warning and a hard bounce for the same message simultaneously
, if you have set a very small durations for both the “Maximum Time in Queue” setting and the minimum
interval setting for “Send Delay Warning Messages.” Cisco Systems recommends using the default values
for these settings as a minimum if you choose to enable sending of delay warning messages.
Further, delay warning messages and bounce messages originated by the email gateway may be delayed by
as much as 15 minutes during processing.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
732
Configuring Routing and Delivery Features
Delivery Status Notification Format
Creating a New Bounce Profile
In the following example, a bounce profile named bouncepr1 is created using the Bounce Profiles page. In
this profile, all hard bounced messages are sent to the alternate address bounce-mailbox@example.com .
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.
Related Topics
• Editing the Default Bounce Profile, on page 733
• Example of a Minimalist Bounce Profile, on page 733
Editing the Default Bounce Profile
You can edit any bounce profile by clicking its name in the Bounce Profiles listing. 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):
Example of a Minimalist Bounce Profile
In the following example, a bounce profile named minimalist is created. In this profile, messages are not
retried when they bounce (zero maximum retries), and the maximum time to wait before retrying is specified.
Hard bounce messages are disabled, and soft bounce warnings are not sent.
Applying Bounce Profiles to Listeners
Once you have created a bounce profile, you can apply that profile to a listener using the Network > Listeners
page or the listenerconfig command.
In the following example, the bouncepr1 profile is applied to the OutgoingMail listener.
At this point, our Email Gateway configuration looks like this:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
733
Configuring Routing and Delivery Features
Creating a New Bounce Profile
Figure 50: Applying a Bounce Profile to a Private Listener
Controlling Email Delivery Using Destination Controls
Uncontrolled high-volume email delivery can overwhelm recipient domains. AsyncOS gives you full control
of message delivery by defining the number of connections your email gateway will open or the number of
messages your email gateway will send to each destination domain.
Using the Destination Controls feature (Mail Policies > Destination Controls in the GUI, or the destconfig
command in the CLI), you can control:
• Rate Limiting, on page 735
• TLS, on page 735
• Bounce Verification, on page 735
• Bounce Profile, on page 735
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
734
Configuring Routing and Delivery Features
Controlling Email Delivery Using Destination Controls
Rate Limiting
• Concurrent Connections: number of simultaneous connections to remote hosts the email gateway will
attempt to open.
• Maximum Messages Per Connection: number of messages your email gateway will send to a destination
domain before the email gateway initiates a new connection.
• Recipients: number of recipients the email gateway will send to a given remote host in a given time
period.
• Limits: how to apply the limits you have specified on a per-destination and per MGA hostname basis.
TLS
• Whether TLS connections to remote hosts will be accepted, allowed, or required (see Controlling TLS,
on page 738).
• Whether to send an alert when TLS negotiation fails when delivering a message to a remote host that
requires a TLS connection. This is a global setting, not a per-domain setting.
• Assign a TLS certificate to use for all outbound TLS connections to remote hosts.
Bounce Verification
• Whether or not to perform address tagging via Bounce Verification (see Bounce Verification, on page
743).
Bounce Profile
• Which bounce profile should be used by the email gateway for a given remote host (the default bounce
profile is set via the Network > Bounce Profiles page).
You can also control the default settings for unspecified domains.
Related Topics
• Determining Which Interface is Used for Mail Delivery, on page 735
• Default Delivery Limits, on page 736
• Working with Destination Controls, on page 736
Determining Which Interface is Used for Mail Delivery
Unless you specify the output interface via the deliveryconfig command or via a message filter (
alt-src-host ), or through the use of a virtual gateway, the output interface is selected by the AsyncOS
routing table. Basically, selecting “auto” means to let AsyncOS decide.
In greater detail: local addresses are identified by applying the interface netmask to the interface IP address.
Both of these are set via the Network > Interfaces page or by the interfaceconfig command (or during
system setup). If the address space overlaps, the most specific netmask is used. If a destination is local, packets
are sent via the appropriate local interface.
If the destination is not local, packets are sent to the default router (set via the Network > Routing page or
with the setgateway command). The IPaddress of the default router islocal. The output interface is determined
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
735
Configuring Routing and Delivery Features
Rate Limiting
by the rule for selecting the output interface for local addresses. For example, AsyncOS chooses the most
specific IP address and netmask that include the default router's IP address.
The routing table is configured via the Network > Routing page (or via the routeconfig command). A
matching entry in the routing table takes precedence over the default route. A more specific route take
precedence over a less specific route.
Default Delivery Limits
Each outbound destination domain has its own outbound queue. Therefore, each domain has a separate set of
concurrency limits as specified in the Destination Controls table. Further, each unique domain not listed
specifically in the Destination Controls table uses another set of the “Default” limits as set in the table.
Working with Destination Controls
Use the MailPolicies > Destination Controls page in the GUI or the destconfig command in the CLI to create,
edit, and delete Destination Control entries.
Related Topics
• Controlling the Version of Internet Protocol Addresses, on page 736
• Controlling the Number of Connections, Messages, and Recipients to a Domain, on page 736
• Controlling TLS, on page 738
• Controlling Bounce Verification Tagging, on page 739
• Controlling Bounces, on page 739
• Adding a New Destination Control Entry, on page 739
• Importing and Exporting Destination Control Configurations, on page 739
• Destination Controls and the CLI, on page 742
Controlling the Version of Internet Protocol Addresses
You can configure which version of Internet Protocol addresses to use for the connection to a domain. The
email gateway uses both Internet Protocol version 4 (IPv4) and Internet Protocol version (IPv6). You can
configure a listener on the email gateway to use one version of the protocol or both.
If the “Required” setting for either IPv4 or IPv6 is specified, the email gateway will negotiation a connection
to the domain using an address of the specified version. If the domain does not use that IP address version,
no email will be sent. If the “Preferred” setting for either IPv4 or IPv6 is specified, the email gateway will
first attempt to negotiation a connection to the domain using an address of the specified version then fall back
to the other if the first is not reachable.
Controlling the Number of Connections, Messages, and Recipients to a Domain
You may want to limit how your appliance will deliver email to avoid overwhelming remote hosts or your
own internal groupware servers with email from your email gateway.
For each domain, you can assign a maximum number of connections, outbound messages, and recipients that
will never be exceeded by the system in a given time period. This “good neighbor” table is defined through
the Destination Controls feature (Mail Policies > Destination Controls or the destconfig command —
previously the setgoodtable command). You can specify the domain name using the following syntax:
domain.com
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
736
Configuring Routing and Delivery Features
Default Delivery Limits
or
.domain.com
Thissyntax enables AsyncOSto specify destination controlsforsub-domainssuch assample.server.domain.com
without entering each full subdomain address individually.
For connections, messages, and recipients, you set whether the limits you define are enforced for each Virtual
Gateway address, or for the entire system. (Virtual Gateway address limits control the number of concurrent
connections per IP interface. System-wide limits control the total number of connections the email gateway
will allow.)
You also set whether the limits you define are enforced for the entire domain.
Note The current system default is 500 connections per domain and 50 messages per connection.
These values are explained in the following table.
Table 62: Values in the Destination Controls Table
Field Description
The maximum number of outbound connections that will be made by the email gateway
to a given host. (Note that the domain can include your internal groupware hosts.)
Concurrent
Connections
The maximum number of messages allowed for a single outbound connection from the
email gateway to a given host before initiating a new connection.
Maximum
Messages Per
Connection
The maximum number of recipients allowed within the given period of time. “None”
denotes that there is no recipient limit for the given domain.
The minimum period of time — between 1 and 60 minutes — that the email gateway
will count the number of recipients. Specifying a time period of “0” disables the feature.
If you change the recipient limit, AsyncOSresetsthe countersfor all messages
already in the queue. The email gateway delivers the messages based on the
new recipient limit.
Note
Recipients
Specifies whether the limit will be applied (enforces) to the entire domain.
This setting applies to connection, message, and recipient limits.
Specifies whether the limit will be applied system-wide or for each Virtual Gateway
address.
If you have configured groups of IP addresses, but you have not configured
virtual gateways, do not configure apply limits per each virtual gateway. This
setting is intended only for systems configured to use virtual gateways. For
information on configuring virtual gateways,see Configuring Mail Gateways
for all Hosted Domains Using Virtual Gateway™ Technology, on page 749.
Note
Apply Limits
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
737
Configuring Routing and Delivery Features
Controlling the Number of Connections, Messages, and Recipients to a Domain
If limits are applied per each Virtual Gateway address, you can still effectively implement system-wide
limits by setting the Virtual Gateway limit to the system-wide limit you want divided by the number of
possible virtual gateways. For example, if you have four Virtual Gateway addresses configured, and
you do not want to open more than 100 simultaneous connections to the domain yahoo.com , set the
Virtual Gateway limit to 25 simultaneous connections.
The delivernow command, when acting on all domains, resets all counters tracked in the destconfig
command.
Note
Controlling TLS
You can also configure the TLS (Transport Layer Security) on a per-domain basis. If the “Required” setting
is specified, a TLS connection will be negotiated from the email gateway listener to MTA(s) for the domain.
If the negotiation fails, no email will be sent through the connection.For more information, see Enabling TLS
and Certificate Verification on Delivery, on page 684.
You can specify whether the email gateway sends an alert if the TLSnegotiation fails when delivering messages
to a domain that requires a TLS connection. The alert message contains name of the destination domain for
the failed TLS negotiation. The email gateway sends the alert message to all recipients set to receive Warning
severity level alerts for System alert types. You can manage alert recipients via the System Administration >
Alerts page in the GUI (or via the alertconfig command in the CLI).
To enable TLS connection alerts, click Edit Global Settings on the Destination Controls page or destconfig
-> setup subcommand. This is a global setting, not a per-domain setting. For information on the messages
that the email gateway attempted to deliver, use the Monitor > Message Tracking page or the mail logs.
You must specify a certificate to use for all outgoing TLS connections. You can edit the ‘Default' destination
controls entry in the web interface or use the destconfig > setup subcommand in the CLI to specify the
certificate to use for all destination controls.. For information on obtaining a certificate, see Working with
Certificates, on page 676.
You can also choose a different certificate other than the certificate configured in the ‘Default' destination
control entry for specific domains.
You can choose a different certificate in any one of the following ways:
• Edit the corresponding destination control entry and select a different certificate using the TLScertificate
option in the web interface.
• Use the destconfig > new or edit sub commands to select a certificate when you create or edit a
destination control entry.
You can create a maximum of 100 destination control entries with a different certificate than the certificate
configured in the 'Default' destination control entry.
Note
For more information on alerts, see the “System Administration” chapter.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
738
Configuring Routing and Delivery Features
Controlling TLS
Controlling Bounce Verification Tagging
You can specify whether or not mailsent istagged for bounce verification. You can specify thisfor the default,
as well as specific destinations. Cisco suggests enabling bounce verification for the default, and then creating
new destinations for specific exclusions. See Bounce Verification, on page 743for more information.
Controlling Bounces
In addition to controlling the number of connections and recipients will deliver to a remote host, you can also
specify a bounce profile to be used for that domain. If specified, the bounce profile appears in the fifth column
of the destconfig command. If you do not specify a bounce profile, the default bounce profile will be used.
For more information, see Creating a New Bounce Profile, on page 733.
Adding a New Destination Control Entry
Procedure
Step 1 Click Add Destination:
Step 2 Configure the entry.
Step 3 Submit and commit your changes.
Importing and Exporting Destination Control Configurations
If you are managing multiple domains, you can create a single configuration file to define Destination Control
entries for all of the domains and import it onto the email gateway. The format of the configuration file is
similar to a Windows INI configuration file. The parameters for a domain are grouped in a section with the
domain name as the section name. For example, use the section name [example.com] to group the parameters
for the domain example.com. Any parameter that is not defined will be inherited from the default Destination
Control entry. You can define the parametersfor the default Destination Control entry by including a [DEFAULT]
section in the configuration file.
Importing the configuration file overwrites all of email gateway's Destination Control entries, except for the
default entry unless the configuration file includes the [DEFAULT] section. All other existing Destination
Control entries will be deleted.
You can define any of the following parameters for a domain in the configuration file. All parameters are
required for the [DEFAULT] section except for the bounce_profile parameter:
Table 63: Destination Control Configuration File Parameters
Parameter Name Description
Specifies the Internet Protocol version for the domain.
Enter one of the following values:
• PREFER_V6 for “IPv6 Preferred”
• REQUIRE_v6 for “IPv6 Required”
• PREFER_V4 for “IPv4 Preferred”
• REQUIRE_v4 for “IPv4 Required”
ip_sort_pref
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
739
Configuring Routing and Delivery Features
Controlling Bounce Verification Tagging
Parameter Name Description
The maximum number of outbound connections that will be made by the email
gateway to a given host.
If you define this parameter for a domain, the limit_type and limit_apply
parameters must also be defined.
max_host_concurrency
The maximum number of messages allowed for a single outbound connection from
the email gateway to a given host before initiating a new connection.
max_messages_per_connection
The period of time — between 1 and 60 minutes — that the email gateway will
count the number of recipients. Leave undefined if no recipient limit should be
applied.
recipient_minutes
The maximum number of recipients allowed within the given period of time. Leave
undefined if no recipient limit should be applied.
If you define this parameter for a domain, the recipient_minutes , limit_type
, and limit_apply parameters must also be defined.
recipient_limit
Specifies whether the limit will be applied to the entire domain or to each mail
exchange IP address specified for that domain.
Enter one of the following values:
• 0 (or host ) for the domain
• 1 (or MXIP ) for the mail exchange IP address
limit_type
Specifies whether the limit will be applied system-wide or for each Virtual Gateway
address.
Enter one of the following values:
• 0 (or system ) for system-wide
• 1 (or VG ) for Virtual Gateway
limit_apply
Specifies whether to turn on bounce validation address tagging.
Enter one of the following values:
• 0 (or off )
• 1 (or on )
bounce_validation
Specifies the TLS setting for the domain. See Enabling TLS and Certificate
Verification on Delivery, on page 684for more information.
Enter one of the following values:
• 0 (or off )
• 1 (or on ) for “Preferred”
• 2 (or required ) for “Required”
• 3 (or on_verify ) for “Preferred (Verify)”
• 4 (or require_verify ) for “Required (Verify)”
Strings are not case sensitive.
table_tls
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
740
Configuring Routing and Delivery Features
Importing and Exporting Destination Control Configurations
Parameter Name Description
Name of the bounce profile to use. This cannot be used in the [DEFAULT] destination
control entry.
bounce_profile
Whether to send an alert if the required TLS connection fails.
Enter one of the following values:
• 0 (or off )
• 1 (or on )
This is a global setting and can only be used in the [DEFAULT] destination control
entry.
send_tls_req_alert
Certificate used for outgoing TLS connections. If you do not specify a certificate,
then the certificate in the [DEFAULT] destination control entry is used.
If you do not specify a certificate, AsyncOS assigns the demonstration
certificate, but using the demonstration certificate is not secure and not
recommended for general use.
Note
certificate
The following example shows a configuration file for the domains example1.com and example2.com along
with the default Destination Control entry:
[DEFAULT]
ip_sort_pref = PREFER_V6
max_host_concurrency = 500
max_messages_per_connection = 50
recipient_minutes = 60
recipient_limit = 300
limit_type = host
limit_apply = VG
table_tls = off
bounce_validation = 0
send_tls_req_alert = 0
certificate = example.com
[example1.com]
ip_sort_pref = PREFER_V6
recipient_minutes = 60
recipient_limit = 100
table_tls = require_verify
limit_apply = VG
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
741
Configuring Routing and Delivery Features
Importing and Exporting Destination Control Configurations
bounce_profile = tls_failed
limit_type = host
[example2.com]
certificate = example2.com
table_tls = on
bounce_profile = tls_failed
The above example resultsin the following Destination Control entriesfor example1.com and example2.com:
example1.com
IP Address Preference: IPv6 Preferred
Maximum messages per connection: 50
Rate Limiting:
500 concurrent connections
100 recipients per 60 minutes
Limits applied to entire domain, across all virtual gateways
TLS: Required (Verify)
TLS Certificate: example.com
Bounce Profile: tls_failed
example2.com
IP Address Preference: IPv6 Preferred
Maximum messages per connection: Default
Rate Limiting: Default
TLS: Preferred
TLS Certificate: example2.com
Bounce Profile: tls_failed
Use the Import Table button on the Destination Controls page or the destconfig -> import command to
import a configuration file.You can also export your Destination Control entriesto an INI file using the Export
Table button on the Destination Controls page or the destconfig -> export command. AsyncOS includes
the [Default] domain control entry in the exported INI file.
Destination Controls and the CLI
You can use the destconfig command in the CLI to configure Destination Control entries. This command is
discussed in the CLI Reference Guide for AsyncOS for Cisco Secure Email Gateway.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
742
Configuring Routing and Delivery Features
Destination Controls and the CLI
Bounce Verification
A “bounce” message is a new message that is sent by a receiving MTA, using the Envelope Sender of the
original email as the new Envelope Recipient. This bounce is sent back to the Envelope Recipient (usually)
with a blank Envelope Sender (MAIL FROM: < >) when the original message is undeliverable (typically due
to a non-existent recipient address).
Increasingly,spammers are attacking email infrastructure via misdirected bounce attacks. These attacks consist
of a flood of bounce messages, sent by unknowing, legitimate mail servers. Basically, the process spammers
use isto send email via open relays and “zombie” networksto multiple, potentially invalid addresses(Envelope
Recipients) at various domains. In these messages, the Envelope Sender is forged so that the spam appears
to be coming from a legitimate domain (this is known as a “Joe job”).
In turn, for each incoming email with an invalid Envelope Recipient, the receiving mail servers generate a
new email — a bounce message — and send it along to the Envelope Sender at the innocent domain (the one
whose Envelope Sender address was forged). As a result, this target domain receives a flood of “misdirected”
bounces — potentially millions of messages. This type of distributed denial of service attack can bring down
email infrastructure and render it impossible for the target to send or receive legitimate email.
To combat these misdirected bounce attacks, AsyncOS includes Bounce Verification. When enabled, Bounce
Verification tags the Envelope Sender address for messages sent via your email gateway. The Envelope
Recipient for any bounce message received by the email gateway is then checked for the presence of this tag.
Legitimate bounces (which should contain this tag) are untagged and delivered. Bounce messages that do not
contain the tag can be handled separately.
Note that you can use Bounce Verification to manage incoming bounce messages based on your outgoing
mail. To control how your email gateway generates outgoing bounces(based on incoming mail),see Directing
Bounced Email, on page 726.
Related Topics
• Overview: Tagging and Bounce Verification, on page 743
• Preventing a Bounced Message Storm Using Bounce Verification, on page 745
• Accepting Legitimate Untagged Bounced Messages, on page 744
Overview: Tagging and Bounce Verification
When sending email with bounce verification enabled, your email gateway will rewrite the Envelope Sender
address in the message. For example, MAIL FROM: joe@example.com becomes MAIL FROM:
prvs=joe=123ABCDEFG@example.com . The 123... string in the example is the “bounce verification tag”
that gets added to the Envelope Sender as it is sent by your email gateway. The tag is generated using a key
defined in the Bounce Verification settings (see Bounce Verification Address Tagging Keys, on page 744for
more information about specifying a key). If this message bounces, the Envelope Recipient address in the
bounce will typically include this bounce verification tag.
You can enable or disable bounce verification tagging system-wide as a default. You can also enable or disable
bounce verification tagging for specific domains. In most situations, you would enable it by default, and then
list specific domains to exclude in the Destination Controls table (see Working with Destination Controls, on
page 736).
If a message already contains a tagged address, AsyncOS does not add another tag (in the case of an email
gateway delivering a bounce message to an email gateway inside the DMZ).
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
743
Configuring Routing and Delivery Features
Bounce Verification
Related Topics
• Handling Incoming Bounce Messages, on page 744
• Bounce Verification Address Tagging Keys, on page 744
Handling Incoming Bounce Messages
Bounces that include a valid tag are delivered. The tag is removed and the Envelope Recipient is restored.
This occurs immediately after the Domain Map step in the email pipeline. You can define how your email
gateways handle untagged or invalidly tagged bounces — reject them or add a custom header.See Configuring
Bounce Verification Settings, on page 746 for more information.
If the bounce verification tag is not present, or if the key used to generate the tag has changed, or if the message
is more than seven days old, the message is treated as per the settings defined for Bounce Verification.
For example, the following mail log shows a bounced message rejected by the email gateway:
Fri Jul 21 16:02:19 2006 Info: Start MID 26603 ICID 125192
Fri Jul 21 16:02:19 2006 Info: MID 26603 ICID 125192 From: <>
Fri Jul 21 16:02:40 2006 Info: MID 26603 ICID 125192 invalid bounce, rcpt address
rejected by bounce verification.
Fri Jul 21 16:03:51 2006 Info: Message aborted MID 26603 Receiving aborted by sender
Fri Jul 21 16:03:51 2006 Info: Message finished MID 26603 aborted
When delivering non-bounce mail to your own internal mail server (Exchange, etc.), you should disable
Bounce Verification tagging for that internal domain.
Note
AsyncOSconsiders bounces as mail with a null MailFrom address (<>).For non-bounce messages that might
contain a tagged Envelope Recipient, AsyncOSapplies a more lenient policy. In such cases, AsyncOSignores
the seven-day key expiration and tries to find a match with older keys as well.
Bounce Verification Address Tagging Keys
The tagging key is a text string your email gateway uses when generating the bounce verification tag. Ideally,
you would use the same key across all of your email gateways so that all mail leaving your domain is tagged
consistently. That way, if one email gateway tags the Envelope Sender on an outgoing message an incoming
bounce will be verified and delivered even if the bounce is received by a different email gateway.
There is a seven day grace period for tags. For example, you may choose to change your tagging key multiple
times within a seven-day period. In such a case, your email gateway will try to verify tagged messages using
all previous keys that are less than seven days old.
Accepting Legitimate Untagged Bounced Messages
AsyncOSalso includes a HAT setting related to Bounce Verification for considering whether untagged bounces
are valid. The default setting is “No,” which means that untagged bounces are considered invalid and the
email gateway either rejects the message or applies a customer header, depending on the action selected on
the Mail Policies > Bounce Verification page. If you select “Yes,” the email gateway considers untagged
bounces to be valid and accepts them. This may be used in the following scenario:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
744
Configuring Routing and Delivery Features
Handling Incoming Bounce Messages
Suppose you have a user that wants to send email to a mailing list. However, the mailing list accepts messages
only from a fixed set of EnvelopeSenders. In such a case, tagged messagesfrom your user will not be accepted
(as the tag changes regularly).
Procedure
Step 1 Add the domain to which the user is trying to send mail to the Destination Controls table and disable tagging
for that domain. At this point, the user can send mail without problems.
Step 2 However, to properly support receiving bounces from that domain (since they will not be tagged) you can
create a sender group for that domain and enable the Consider Untagged Bounces to be Valid parameter in
an “Accept” mail flow policy.
Preventing a Bounced Message Storm Using Bounce Verification
Procedure
Step 1 Enter a tagging key. For more information, see Configuring Bounce Verification Address Tagging Keys, on
page 745.
Step 2 Edit the bounce verification settings. For more information, see Configuring Bounce Verification Settings,
on page 746.
Step 3 Enable bounce verification via Destination Controls. For more information, see Working with Destination
Controls, on page 736.
What to do next
Related Topics
• Configuring Bounce Verification Address Tagging Keys, on page 745
• Configuring Bounce Verification Settings, on page 746
• Configuring Bounce Verification Using the CLI, on page 746
• Bounce Verification and Cluster Configuration, on page 746
Configuring Bounce Verification Address Tagging Keys
The Bounce Verification Address Tagging Keys listing shows your current key and any unpurged keys you
have used in the past. To add a new key:
Procedure
Step 1 On the Mail Policies > Bounce Verification page, click New Key.
Step 2 Enter a text string and click Submit.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
745
Configuring Routing and Delivery Features
Preventing a Bounced Message Storm Using Bounce Verification
Step 3 Commit your changes.
What to do next
Related Topics
• Purging Keys, on page 746
Purging Keys
You can purge your old address tagging keys by selecting a rule for purging from the pull-down menu and
clicking Purge.
Configuring Bounce Verification Settings
The bounce verification settings determine which action to take when an invalid bounce is received.
Procedure
Step 1 Choose Mail Policies > Bounce Verification.
Step 2 Click Edit Settings.
Step 3 Select whether to reject invalid bounces, or to add a custom header to the message. If you want to add a header,
enter the header name and value.
Step 4 Optionally, enable smart exceptions. This setting allows incoming mail messages, and bounce messages
generated by internal mail servers, to be automatically exempted from bounce verification processing (even
when a single listener is used for both incoming and outgoing mail).
Step 5 Submit and commit your changes.
Configuring Bounce Verification Using the CLI
You can use the bvconfig and destconfig commands in the CLI to configure bounce verification. These
commands are discussed in the CLI Reference Guide for AsyncOS for Cisco Secure Email Gateway .
Bounce Verification and Cluster Configuration
Bounce verification works in a cluster configuration as long as both email gateways use the same "bounce
key." When you use the same key, either systems should be able to accept a legitimate bounce back. The
modified header tag/key is not specific to each email gateway.
Set Email Delivery Parameters
The deliveryconfig command sets parameters to be used when delivering email from the email gateway.
The email gateway accepts email using multiple mail protocols: SMTP and QMQP. However, all outgoing
email is delivered using SMTP, which is why the deliveryconfig command does not require that the protocol
be specified.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
746
Configuring Routing and Delivery Features
Purging Keys
Several of the features or commands described in this section will affect, or be affected by routing
precedence. Please see the “Assigning Network and IP Addresses” appendix for more information.
Note
Related Topics
• Default Delivery IP Interface, on page 747
• Possible Delivery Feature, on page 747
• Default Maximum Concurrency, on page 747
• deliveryconfig Example, on page 748
Default Delivery IP Interface
By default, the system uses an IP interface or IP interface group for email delivery. Any currently configured
IP interface or IP interface group can be set. If no specific interface is identified, AsyncOS will use the
hostname associated with the default delivery interface in the SMTP HELO command when communicating
with recipient hosts. To configure IP interfaces, use the interfaceconfig command.
These are the rules for using Auto selection of email delivery interfaces:
• If the remote email server is on the same subnet as one of the configured interfaces, then traffic will go
out on the matching interface.
• When set to auto-select, static routes you have configured using routeconfig take effect.
• Otherwise, the interface that is on the same subnet as the default gateway will be used. If all of the IP
addresses have an equivalent route to the destination, then the system uses the most efficient interface
available.
Possible Delivery Feature
If you enable this feature, message delivery will not be reliable and may lead to loss of messages. Also,
your email gateway will not be RFC 5321-compliant. For more information, see http://tools.ietf.org/
html/rfc5321#section-6.1..
Caution
When the Possible Delivery feature is enabled, AsyncOS treats any message that times-out after the body of
the message is delivered, but before recipient host acknowledges receipt of the message, as a “possible
delivery.” This functionality prevents recipients from receiving multiple copies of a message if continuous
errors at their recipient host prevent acknowledgment of receipt. AsyncOS logs this recipient as a possible
delivery in the mail logs and counts the message as completed.
Default Maximum Concurrency
You also specify the default maximum number of concurrent connections the email gateway makes for
outbound message delivery. (The system-wide default is 10,000 connections to separate domains.) The limit
is monitored in conjunction with the per-listener maximum outbound message delivery concurrency (the
default per listener is 600 connections for private listeners and 1000 connections for public listeners). Setting
the value lower than the default preventsthe gateway from dominating weaker networks.For example, certain
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
747
Configuring Routing and Delivery Features
Default Delivery IP Interface
firewalls do notsupport large numbers of connections, and this could induce Denial ofService (DoS) warnings
in these environments.
deliveryconfig 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 isset to 9000 connections.
mail3.example.com> deliveryconfig
Choose the operation you want to perform:
- SETUP - Configure mail delivery.
[]> setup
Choose the default interface to deliver mail.
1. Auto
2. PublicNet2 (192.168.3.1/24: mail4.example.com)
3. Management (192.168.42.42/24: mail3.example.com)
4. PrivateNet (192.168.1.1/24: mail3.example.com)
5. PublicNet (192.168.2.1/24: mail3.example.com)
[1]> 1
Enable "Possible Delivery"? [Y]> y
Please enter the default system wide maximum outbound message delivery
concurrency
[10000]> 9000
mail3.example.com>
Our Email Gateway configuration now looks like this:
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
748
Configuring Routing and Delivery Features
deliveryconfig Example
Figure 51: Setting Destination and Delivery Parameters
Configuring MailGateways for allHostedDomainsUsing Virtual
Gateway™ Technology
This section describes Cisco Virtual Gateway™ technology and its benefits, how to set up a Virtual Gateway
address, and how to monitor and manage Virtual Gateway addresses.
The Cisco Virtual Gateway technology allows you to configure enterprise mail gateways for all domains you
host — with distinct IP addresses, hostname and domains — and create separate corporate email policy
enforcement and anti-spam strategiesfor those domains, while hosted within the same physical email gateway.
The number of Virtual Gateway addresses available on all the email gateway models is 255.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
749
Configuring Routing and Delivery Features
Configuring Mail Gateways for all Hosted Domains Using Virtual Gateway™ Technology
Related Topics
• Overview, on page 750
• Setting Up Virtual Gateway Addresses, on page 750
• Monitoring the Virtual Gateway Addresses, on page 757
• Managing Delivery Connections per Virtual Gateway Address, on page 757
Overview
Cisco has developed a unique Virtual Gateway technology designed to help ensure that corporations can
reliably communicate with their customers via email. Virtual Gateway technology enables users to separate
the email gateway into multiple Virtual Gateway addressesfrom which to send and receive email. Each Virtual
Gateway address is given a distinct IP address, hostname and domain, and email queue.
Assigning a distinct IP address and hostname to each Virtual Gateway address ensures that email delivered
through the gateway will be properly identified by the recipient host and prevents critical email from being
blocked as spam. The email gateway has the intelligence to give the correct hostname in the SMTP HELO
command for each of the Virtual Gateway addresses. This ensures that if a receiving InternetServiceProvider
(ISP) performs a reverse DNS look-up, the email gateway will match the IP address of the email sent through
that Virtual Gateway address. This feature is extremely valuable, because many ISPs use a reverse DNS
lookup to detect unsolicited email. If the IP address in the reverse DNS look-up does not match the IP address
of the sending host, the ISP may assume the sender is illegitimate and will frequently discard the email. The
Cisco Virtual Gateway technology ensures that reverse DNS look-ups will always match the sending IP
address, preventing messages from being blocked accidentally.
Messagesin each Virtual Gateway address are also assigned to a separate message queue. If a certain recipient
host is blocking email from one Virtual Gateway address, messages intended for that host will remain in the
queue and eventually timeout. But messages intended for the same domain in a different Virtual Gateway
queue that is not being blocked will be delivered normally. While these queues are treated separately for
delivery purposes, the system administration, logging and reporting capability still provide a holistic view
into all Virtual Gateway queues as if they were one.
Setting Up Virtual Gateway Addresses
Before setting up the Cisco Virtual Gateway addresses, you must allocate a set of IP addresses that will be
used to send email from. (For more information, see the “Assigning Network and IP Addresses” appendix.)
You should also ensure proper configuration of your DNS servers so that the IP address resolves to a valid
hostname. Proper configuration of DNS servers ensures that if the recipient host performs a reverse DNS
lookup, it will resolve to valid IP/hostname pairs.
Related Topics
• Creating New IP Interfaces for Use with Virtual Gateways, on page 751
• Mapping Messages to IP Interfaces for Delivery, on page 753
• Importing an altsrchost File, on page 754
• altsrchost Limits, on page 754
• Example Text File with Valid Mappings for the altsrchost Command, on page 754
• Adding an altsrchost Mapping through the CLI, on page 755
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
750
Configuring Routing and Delivery Features
Overview
Creating New IP Interfaces for Use with Virtual Gateways
After the IP addresses and hostnames have been established, the first step in configuring the Virtual Gateway
addresses is to create new IP interfaces with the IP/hostname pairs using the Network > IP Interfaces page in
the GUI or the interfaceconfig command in the CLI.
Once the IP interfaces have been configured, you have the option to combine multiple IP interfaces into
interface groups; these groups can then be assigned to specific Virtual Gateways addresses which the system
cycles through in a “round robin” fashion when delivering email.
After creating the required IP interfaces, you have two options for setting up the Virtual Gateway addresses
and defining which email campaign will be sent from each IP interface or interface group:
• You can use the altsrchost command to map email from specific sender IP addresses or Envelope Sender
address information to a host IP interface (Virtual Gateway address) or interface group for delivery.
• Using message filters, you can set up specific filters to deliver flagged messages using a specific host IP
interface (Virtual Gateway address) or interface group.See AlterSource Host (Virtual Gateway address)
Action, on page 208. (This method is more flexible and powerful than the one above.)
For more information about creating IP interfaces, see the “Accessing the Email Gateway” appendix.
So far, we have been using an Email Gateway configuration with the following interfaces defined as shown
in the following figure.
Figure 52: Example Public and Private interfaces
In the following example, the IPInterfaces page confirmsthat these two interfaces(PrivateNet andPublicNet)
have been configured, in addition to the Management interface.
Figure 53: IP Interface Page
Next, the Add IP Interface page is used to create a new interface named PublicNet2 on the Data2 Ethernet
interface. The IP address of 192.168.2.2 is used, and the hostname of mail4.example.com is specified. The
services for FTP (port 21) and SSH (port 22) are then enabled.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
751
Configuring Routing and Delivery Features
Creating New IP Interfaces for Use with Virtual Gateways
Figure 54: Add IP Interface Page
Our Email Gateway configuration now looks like this:
Figure 55: Adding Another Public Interface
Using Virtual Gateway addresses, a configuration like the one shown in the following figure is also possible.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
752
Configuring Routing and Delivery Features
Creating New IP Interfaces for Use with Virtual Gateways
Figure 56: Four Virtual Gateway Addresses on One Ethernet Interface
Note that four separate IP interfaces can be used to deliver mail, where only one public listener is configured
to accept messages from the Internet.
Mapping Messages to IP Interfaces for Delivery
The altsrchost command provides the simplest and most straightforward method to segment each email
gateway into multiple IP interfaces (Virtual Gateway addresses) from which to deliver email. However, users
requiring more power and flexibility in mapping messages to particular Virtual Gateways should investigate
the use of message filters. See Using Message Filters to Enforce Email Policies, on page 131for more
information.
The altsrchost command allows you to control which IP interface or interface group to use during email
delivery based on one of the following:
• the sender’s IP address
• the Envelope Sender address
To specify which IP interface or interface group the system will deliver email from, you create mapping keys
that pair either the sender’s IP address or the Envelope Sender address to an IP interface or interface group
(specified by interface name or group name).
AsyncOS will compare both the IP address and Envelope Sender address to the mapping keys. If either the
IP address or Envelope Sender address matches one of the keys, the corresponding IP interface is used for
the outbound delivery. If there is no match, the default outbound interface will be used.
The system can match any of the following keys and take preference in the following order:
The IP address of the sender must match exactly.
Example: 192.168.1.5
Sender’s IP address
The Envelope Sender must match the entire address exactly.
Example: username@example.com
Fully-formed Envelope
Sender
The system will match username syntax against the Envelope Sender address
up to the @ sign. The @ sign must be included. Example: username@
Username
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
753
Configuring Routing and Delivery Features
Mapping Messages to IP Interfaces for Delivery
The system will match domain name syntax against the EnvelopeSender address
starting with the @ sign. The @ sign must be included. Example: @example.com
Domain
A listener checks the information in the altsrchost table and directs the email to a particular interface
after checking the masquerading information and before message filters are checked.
Note
Use these subcommands within the altsrchost command to create mappings in the Virtual Gateways via
the CLI:
Syntax Description
new Create a new mapping manually.
print Display the current list of mappings.
delete Remove one of the mappings from the table.
Importing an altsrchost File
Like the HAT, the RAT, smtproutes , and masquerading and alias tables, you can modify altsrchost entries
by exporting and importing a file.
Procedure
Step 1 Use the export subcommand of the altsrchost command to export the existing entries to a file (whose name
you specify).
Step 2 Outside of the CLI, get the file. (See FTP, SSH, and SCP Access, on page 1307 for more information.)
Step 3 With a text editor, create new entries in the file. The order that rules appear in the altsrchost table is important.
Step 4 Save the file and place it in the “altsrchost” directory for the interface so that it can be imported. (See FTP,
SSH, and SCP Access, on page 1307for more information.)
Step 5 Use the import subcommand of altsrchost to import the edited file.
altsrchost Limits
You can define up to 1,000 altsrchost entries.
Example Text File with Valid Mappings for the altsrchost Command
# Comments to describe the file
@example.com DemoInterface
paul@ PublicInterface
joe@ PublicInterface
192.168.1.5, DemoInterface
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
754
Configuring Routing and Delivery Features
Importing an altsrchost File
steve@example.com PublicNet
The import and export subcommands operate on a line-by-line basis and map either the sender IP address
or the Envelope Sender address line to the interface name. The key must be the first block of non-space
characters followed by the interface name in the second block of non-space characters, separated by a comma
( , ) or space ( ). Comment lines start with a number sign ( # ) and will be ignored.
Adding an altsrchost Mapping through the CLI
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 thePublicNet interface.
• Mail from the sender IP address of 192.168.35.35 (for example, the marketing campaign messaging
system) is mapped to the PublicNe2t interface.
Finally, the altsrchost mappings are printed to confirm and the changes are committed.
mail3.example.com> altsrchost
There are currently no mappings configured.
Choose the operation you want to perform:
- NEW - Create a new mapping.
- IMPORT - Load new mappings from a file.
[]> new
Enter the Envelope From address or client IP address for which you want to set up a
Virtual Gateway mapping. Partial addresses such as "@example.com" or "user@" are
allowed.
[]> @exchange.example.com
Which interface do you want to send messages for @exchange.example.com from?
1. PublicNet2 (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.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
755
Configuring Routing and Delivery Features
Adding an altsrchost Mapping through the CLI
- 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. PublicNet2 (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 PublicNet2 created.
Choose the operation you want to perform:
- NEW - Create a new mapping.
- EDIT - Modify a mapping.
- DELETE - Remove a mapping.
- IMPORT - Load new mappings from a file.
- EXPORT - Export all mappings to a file.
- PRINT - Display all mappings.
- CLEAR - Remove all mappings.
[]> print
1. 192.168.35.35 -> PublicNet2
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.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
756
Configuring Routing and Delivery Features
Adding an altsrchost Mapping through the CLI
- PRINT - Display all mappings.
- CLEAR - Remove all mappings.
[]>
mail3.example.com> commit
Please enter some comments describing your changes:
[]> Added 2 altsrchost mappings
Do you want to save the current configuration for rollback? [Y]> n
Changes committed: Fri May 23 11:42:12 2014 GMT
An illustration of the configuration change in this example is shown in the following figure:
Figure 57: Example: Selecting an IP Interface or Interface Group to Use
Monitoring the Virtual Gateway Addresses
While each Virtual Gateway address hasits own email queue for delivery purposes, the system administration,
logging, and reporting capabilities still provide a holistic view into all Virtual Gateway queues as if they were
one. To monitor the recipient host status for each Virtual Gateway queue, use the hoststatus and hostrate
command. See the “Reading the Available Components of Monitoring” section in the “Managing and
Monitoring Using the CLI” chapter.
The hoststatus command returns monitoring information about email operations relating to a specific recipient
host.
If you are using Virtual Gateway technology, information about each Virtual Gateway addressis also displayed.
The command requires you to input the domain of the host information to be returned. DNSinformation stored
in the AsyncOS cache and the last error returned from the recipient host is also given. Data returned is
cumulative since the last resetcounters command.
The statistics returned are grouped into two categories: counters and gauges. In addition, other data returned
include: last activity, MX records, and last 5XX error.
Managing Delivery Connections per Virtual Gateway Address
Certain system parameters require settings at the system and Virtual Gateway address levels.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
757
Configuring Routing and Delivery Features
Monitoring the Virtual Gateway Addresses
For example, some recipient ISPs limit the number of connections they allow for each client host. Therefore,
it is important to manage relationships with the ISPs, especially when email is being delivered over multiple
Virtual Gateway addresses.
See Controlling Email Delivery Using Destination Controls, on page 734for information about the destconfig
command and how Virtual Gateway addresses are affected.
When you create a “group,” of Virtual Gateway addresses, the good neighbor table settingsfor Virtual Gateway
are applied to the group, even if the group consists of 254 IP addresses.
For example, suppose you have created group of 254 outbound IPaddresses set up as a group to cycle through
in a “round-robin” fashion, and suppose the good neighbor table for small-isp.com is 100 simultaneous
connections for the system and 10 connections for Virtual Gateway addresses. This configuration will never
open more than 10 connections total for all 254 IP addresses in that group; the group is treated as a single
Virtual Gateway address.
Using Global Unsubscribe
To ensure that specific recipients, recipient domains, or IP addresses never receive messages from the email
gateway, use the AsyncOS Global Unsubscribe feature. The unsubscribe command allows you to add and
delete addresses to a global unsubscribe list, as well as enable and disable the feature. AsyncOS checks all
recipient addresses against a list of “globally unsubscribed” users, domains, email addresses, and IPaddresses.
If a recipient matches an address in the list, the recipient is either dropped or hard bounced, and the Global
Unsubscribe (GUS) counter is incremented. (Log files will note whether a matching recipient was dropped
or hard bounced.) The GUS check occurs immediately before an attempt to send email to a recipient, thus
inspecting all messages sent by the system.
Global Unsubscribe is not intended to replace the removal of names and general maintenance of mailing
lists. The feature is intended to act as a fail-safe mechanism to ensure email does not get delivered to
inappropriate entities.
Note
Global Unsubscribe has a maximum limit of 10,000 addresses. Global Unsubscribe addresses can be in one
of four forms:
Table 64: Global Unsubscribe Syntax
Fully-formed email address
This syntax is used to block a specific recipient at a
specific domain.
username@example.com
Username
The username syntax will block all recipients with
the specified username at all domains. The syntax is
the username followed by an at sign ( @ ).
username@
Domain
The domain syntax is used to block all recipients
destined for a particular domain. The syntax is the
specific domain, preceded by an at sign ( @ ).
@example.com
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
758
Configuring Routing and Delivery Features
Using Global Unsubscribe
Partial Domain
The partial domain syntax is used to block all
recipients destined for a particular domain and all its
subdomains.
@.example.com
IP address
The IP address syntax is used to block all recipients
destined for a particular IP address. This syntax can
be useful if a single IP address is hosting multiple
domains. The syntax consists of a common dotted
octet IP address.
10.1.28.12
Related Topics
• Adding a Global Unsubscribe Address Using The CLI, on page 759
• Exporting and Importing a Global Unsubscribe File, on page 760
Adding a Global Unsubscribe Address Using The CLI
In this example, the address user@example.net 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 email gateway will
bounce the message immediately prior to delivery.
mail3.example.com> unsubscribe
Global Unsubscribe is enabled. Action: drop.
Choose the operation you want to perform:
- NEW - Create a new entry.
- IMPORT - Import entries from a file.
- SETUP - Configure general settings.
[]> new
Enter the unsubscribe key to add. Partial addresses such as
"@example.com" or "user@" are allowed, as are IP addresses. Partial hostnames such as
"@.example.com" are allowed.
[]> user@example.net
Email Address 'user@example.net' 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.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
759
Configuring Routing and Delivery Features
Adding a Global Unsubscribe Address Using The CLI
- 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 “user@example.net” to global unsubscribe
Do you want to save the current configuration for rollback? [Y]> n
Changes committed: Fri May 23 11:42:12 2014 GMT
Exporting and Importing a Global Unsubscribe File
Like the HAT, the RAT,smtproutes,static masquerading tables, aliastables, domain map tables, and altsrchost
entries, you can modify global unsubscribe entries by exporting and importing a file.
User Guide for AsyncOS 14.2 for Cisco Secure Email Gateway - GD (General Deployment)
760
Configuring Routing and Delivery Features
Exporting and Importing a Global Unsubscribe File
Procedure
Step 1 Use the export subcommand of the unsubscribe command to export the existing entries to a file (whose name
you specify).
Step 2 Outside of the CLI, get the file. (See FTP, SSH, and SCP Access, on page 1307 for more information.)
Step 3 With a text editor, create new entries in the file.
Separate entries in the file by new lines. Return representations from all standard operating systems are
acceptable (, , or