Home > Cisco, Networking > Cisco PIX/ASA Causes SMTP Banner Corruption

Cisco PIX/ASA Causes SMTP Banner Corruption

November 8th, 2009 Aaron Leave a comment Go to comments

Traffic inspection rules on a Cisco PIX or ASA firewall will sometimes cause the SMTP banner to appear corrupted.

When testing access to your mail server from outside, you may notice that the SMTP banner looks like this:

This is just a symptom of the problem, which is that the SMTP traffic inspection rule is interfering with the SMTP data stream.  Another symptom would be to see email messages destined for this server seemingly stuck in the SMTP queue on a server outside the network.  This can ultimately cause delayed and undeliverable mail, especially for larger messages, such as those with attachments.

The resolution for this problem is to disable the traffic inspection rule for SMTP/ESMTP on the Cisco PIX or ASA firewall.

On a PIX, this can be done from the command-line using the “no fixup protocol SMTP 25” command.  It can also be disabled from the PIX Device Manager (PDM).

On an ASA, it’s a little different.  From the command line (assuming your policy map is named “global_policy” and your class is named “inspection_default”):

CiscoASA(config)#policy-map global_policy
CiscoASA(config-pmap)#class inspection_default
CiscoASA(config-pmap-c)#no inspect esmtp 

From the Adaptive Security Device Manager (ASDM):

1.       Go to Security Policy –> Open the inspection rule:

2.       Go to the Rule Actions tab and uncheck the box next to ‘ESMTP’

3.       Test from outside the PIX/ASA again by telnetting to port 25; your SMTP banner should now look like this (I have masked the name of the server for privacy).

That’s it.  I have made it standard practice to just disable this inspection rule on all Cisco ASA firewalls that I deploy to avoid problems.

Posted via email from Aaron Johnstone

TwitterFacebookEvernoteDiggStumbleUponInstapaperShare
Categories: Cisco, Networking
  1. Eli
    November 9th, 2009 at 07:57 | #1

    Is there any reason why you might want to leave it on?

  2. November 12th, 2009 at 19:19 | #2

    If you were concerned about someone trying to attack your mail server via the SMTP protocol using illegal commands, which are any commands not listed here:
    http://www.cisco.com/en/US/products/sw/secursw/ps1018/products_configuration_example09186a008064730a.shtml

  3. Jordweb
    April 14th, 2010 at 02:23 | #3

    Thanks for this post ! I didn’t know this command “no fixup protocol SMTP 25″ !

  4. adam
    April 23rd, 2010 at 02:26 | #4

    Thank you for the post. We had exactly the same issue and we were getting 220 with asteris when we tried to telnet from out side the ASA and Queues were building up on the severs to.

    Many Thanks for the post it was useful.

  5. April 27th, 2010 at 18:43 | #5

    Awesome! I’m glad it helped you.

  6. Bill
    May 17th, 2011 at 07:06 | #6

    Thank You!!! I was pulling my hair out on this one.

  7. Prasath
    August 25th, 2011 at 11:05 | #7

    Really its awesmome yaar…. thanks very much….

  8. sathish mankali
    August 25th, 2011 at 11:06 | #8

    hi,
    thanks frends its working fine

  1. No trackbacks yet.