Solved

Outgoing emails fail to certain recipients, but not to others.  Suspect Cisco PIX configuration is not allowing reverse lookups.

Posted on 2006-10-26
8
349 Views
Last Modified: 2013-11-16
Firstly, a little about my system.  I am using MS Small Business Server 2003, with f-secure proofpoint email gateway (it is fantastic!!!)and a Cisco PIX firewall.  The proofpoing gateway is a recent addition and the problems started at the point that it was installed, and it is reasonable to point a finger either to that, or the changes made to the rest of the system in order to accommodate it - such as changes to the PIX.

Now the problem.  I'm having some problems sending mail to certain addresses, where we get non-delivery receipts, often with custom worded error messages such as "sorry we don't accept mail from spammers" or "This system has been configured to reject your mail".  I'm fairly sure that the problem is to do with certain mail systems performing reverse lookups, which are failing, but I'm a little unsure quite what to do about it.
Looking at a NDR received today, the sending address is 80.168.151.220 but our incoming mail is sent to 80.168.151.219; is this a common practice?
If I do a reverse lookup on 80.168.151.219, mail.prospec.co.uk is returned, but if I do a reverse lookup on 80.168.151.220 I get the response that there are no PTR records for this domain, which is understandable as this is the outgoing address.
I think it is a problem with the way in which the PIX is configured - it is not letting reverse lookups in.
It is important to note that I have made some recent changes to the PIX, and it is since those changes that the problems have started.  To validate this, I have successfully sent a mail using the original PIX configuration, to a recipient that we get NDRs from when using the new PIX configuration, which proves that the problem is either a. a problem with the PIX configuration or b. a problem with the email gateway (f-secure proofpoint appliance), although I suspect it is the PIX.
The changes that I made were to accomodate the proofpoint appliance, where instead of all incoming traffic going to 10.0.0.2 (original configuration), I now filter smtp traffic and forward that to 10.0.0.3 (proofpoint appliance), and forward http to 10.0.0.2.
I guess that now that I am being specific about certain types of traffic, I must specifically allow reverse lookups in, but I haven't a clue where to start and can't find anything on the web.
The original PIX config used the following command to route traffic to the server "static (inside,outside) 80.168.151.219 10.0.0.2 netmask 255.255.255.255 0 0 ", but the changes that I have made routes smtp traffice to the email gateway and http to the server as follows "static (inside,outside) tcp 80.168.151.219 smtp 10.0.0.3 smtp netmask 255.255.255.255 0 0
static (inside,outside) tcp 80.168.151.219 http 10.0.0.2 http netmask 255.255.255.255 0 0
static (inside,outside) tcp 80.168.151.219 https 10.0.0.2 https netmask 255.255.255.255 0 0 "

But, I don't understand why the reverse lookups worked in the first place - to 80.168.151.220 - because the only changes that I made were to the static commands, which did not include 80.168.151.220, but they did.
I look forward to a resolution to this problem, which may, or may not, be a problem with the PIX configuration - I may have got it badly wrong as this is not an area that I confess to being very knowledgable about.

TIA
Craig

0
Comment
Question by:CraigStenton
  • 3
  • 3
8 Comments
 
LVL 79

Expert Comment

by:lrmoore
ID: 17810819
Could be a combination of things. Your email server is sending outbound email with one source IP and the MX record for inbound email is a different IP? This is a potential for confusion of upstream mail systems that look you up before accepting mail from you.

You need to make sure the outbound traffic of the email server matches the PTR and MX records. Since you changed from a 1-1 static nat to a port-forwarding pat, you might want to consider a conditional nat statement (need 6.3x or higher)

 access-list email_nat permit ip 10.0.0.2 any eq smtp
 global (outside) 10 80.168.151.219
 nat (inside) 10 access-list email_nat

This is the only way to assure that outbound email from the internal mail server goes out with the same IP address that is used for inbound email.

You may need to adjut the fixup dns on your PIX depending on what version OS.
If you're running 7.x on the PIX, you may need to disable fixup esmtp
0
 

Author Comment

by:CraigStenton
ID: 17812424
Hi
Thank you for your response.  I think I ought to tell you that I perhaps should have rated myself as a newbie/beginner on this subject, particularly with Cisco PIX.

I have looked at your suggestion, which seems to make a lot of sense, although I suspect there was probably a good reason why different addresses were used for incoming and outgoing transmission.
The first line of your suggestion sets up an ACL, but the PIX doesn't accept it, and I wonder whether there is something missing.  The way that I am working is to clear the configuration, modify the configuration in a text file and use the "configure net" command to upload the new configuration.  When I do this I get the following error:

ERROR: invalid IP address any
Config Error -- access-list email_nat permit ip 10.0.0.2 any eq smtp
Global 80.168.151.219 will be Port Address Translated
.ERROR: access-list <email_nat> does not exist

I would appreciate your further input
Regards
Craig
0
 
LVL 79

Expert Comment

by:lrmoore
ID: 17812449
My error in the syntax... try this:

  access-list email_nat permit tcp 10.0.0.2 any eq smtp
                                            ^^  "tcp" vs "ip" makes all the difference...


>The original PIX config used the following command to route traffic to the server "static (inside,outside) 80.168.151.219 10.0.0.2 netmask 255.255.255.255 0 0
The original config guaranteed the same inbound and outbound IP address for email.
0
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 

Author Comment

by:CraigStenton
ID: 17813189
Hi
Thank you for your revised solution.  However, it still doesn't work as shown below:

ERROR: invalid IP address any
Config Error -- access-list email_nat permit tcp 10.0.0.2 any eq smtp

Like I said, I'm a newbie, especially when it comes to Cisco PIX and need some guidance on this.

I look forward to your response.
Regards
Craig
0
 
LVL 79

Accepted Solution

by:
lrmoore earned 500 total points
ID: 17813280
Damn. Need more coffee... or maybe too much already..

 One more time. I tested it this time..

   access-list email_net permit tcp host 10.0.0.2 any eq smtp
                                                 ^^


0
 

Author Comment

by:CraigStenton
ID: 17841072
Hi
Just to let you know there is still a problem implementing your solution, which I am reading about to ensure that I understand it properly.  I believe that your solution is probably syntactically correct, and the problems are more to do with working it into my situation, where I have some existing conflicting commands.
Please bear with me - I haven't fallen off the face of the earth :->  - I'm just doing lots of reading (fitting it around many other tasks), which is why it is taking a long time to reply.
Thanks
Craig
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The DROP (Spamhaus Don't Route Or Peer List) is a small list of IP address ranges that have been stolen or hijacked from their rightful owners. The DROP list is not a DNS based list.  It is designed to be downloaded as a file, with primary intention…
Quality of Service (QoS) options are nearly endless when it comes to networks today. This article is merely one example of how it can be handled in a hub-n-spoke design using a 3-tier configuration.
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question