7-42
Cisco ASA Series Firewall CLI Configuration Guide
Chapter 7 Inspection of Basic Internet Protocols
SMTP and Extended SMTP Inspection
Configure ESMTP Inspection
ESMTP inspection is enabled by default. You need to configure it only if you want to different process
than that provided by the default inspection map.
Procedure
Step 1
Configure an ESMTP Inspection Policy Map, page 7-42
.
Step 2
Configure the ESMTP Inspection Service Policy, page 7-44
Configure an ESMTP Inspection Policy Map
To specify actions when a message violates a parameter, create an ESMTP inspection policy map. You
can then apply the inspection policy map when you enable ESMTP inspection.
Before You Begin
Some traffic matching options use regular expressions for matching purposes. If you intend to use one
of those techniques, first create the regular expression or regular expression class map.
Procedure
Step 1
Create an ESMTP inspection policy map, enter the following command:
hostname(config)#
policy-map type inspect esmtp
policy_map_name
hostname(config-pmap)#
Where the
policy_map_name
is the name of the policy map. The CLI enters policy-map configuration
mode.
Step 2
(Optional) To add a description to the policy map, enter the following command:
hostname(config-pmap)#
description
string
Step 3
To apply actions to matching traffic, perform the following steps.
a.
Specify the traffic on which you want to perform actions using one of the following
match
commands. If you use a
match not
command, then any traffic that does not match the criterion in
the
match not
command has the action applied.
•
match
[
not
]
body
{
length
|
line length
}
gt
bytes
—Matches messages where the length or
length of a line in an ESMTP body message is greater than the specified number of bytes.
•
match
[
not
]
cmd
verb
verb1
[
verb2
...]—Matches the command verb in the message. You can
specify one or more of the following commands: auth, data, ehlo, etrn, helo, help, mail, noop,
quit, rcpt, rset, saml, soml, vrfy.
•
match
[
not
]
cmd
line length gt
bytes
—Matches messages where the length of a line in the
command verb is greater than the specified number of bytes.
•
match
[
not
]
cmd rcpt count gt
count
—Matches messages where the number of recipients is
greater than the specified count.
•
match
[
not
]
ehlo-reply-parameter
parameter
[
parameter2
...]—Matches ESMTP EHLO reply
parameters. You can specify one or more of the following parameters: 8bitmime, auth,
binaryname, checkpoint, dsn, etrn, others, pipelining, size, vrfy.
Содержание ASA 5512-X
Страница 5: ...P A R T 1 Service Policies and Access Control ...
Страница 6: ......
Страница 50: ...3 14 Cisco ASA Series Firewall CLI Configuration Guide Chapter 3 Access Rules History for Access Rules ...
Страница 51: ...P A R T 2 Network Address Translation ...
Страница 52: ......
Страница 126: ...5 28 Cisco ASA Series Firewall CLI Configuration Guide Chapter 5 NAT Examples and Reference DNS and NAT ...
Страница 127: ...P A R T 3 Application Inspection ...
Страница 128: ......
Страница 255: ...P A R T 4 Connection Settings and Quality of Service ...
Страница 256: ......
Страница 288: ...12 14 Cisco ASA Series Firewall CLI Configuration Guide Chapter 12 Quality of Service History for QoS ...
Страница 303: ...P A R T 5 Advanced Network Protection ...
Страница 304: ......
Страница 339: ...P A R T 6 ASA Modules ...
Страница 340: ......
Страница 398: ...17 28 Cisco ASA Series Firewall CLI Configuration Guide Chapter 17 ASA CX Module History for the ASA CX Module ...