Question

Confuguring PIX 506 to allow exchange server to recieve mail

Asked by: anyirongo


I am running exchange server 2003. It is currently running very well. I have just put up a pix 506 firewall. How do I allow the server to recieve mail from outside on the pix. and What access-list do I need to setup to this.

I also need to map a public ip and a private ip inside the network for the mail server. what command do I use?

   

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2005-01-02 at 04:47:20ID21259125
Tags

2003

,

confuguring

,

exchange

Topics

Network Software Firewalls

,

Cisco PIX Firewall

,

Enterprise Firewalls

Participating Experts
2
Points
50
Comments
25

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. PIX IPSEC VPN Failing - Authentication Signature
    I have a PIX to PIX VPN (both running v6.3) that sets up a connection when pinged from either side of the VPN, but fails to work, always showing recieve errors with "sh crypto ipsec sa". The output of "debug crypto ipsec" and "debug crypto isakmp&q...
  2. Pix 501
    I'm attempting to use a firewall (PIX 501) to accomplish the following: Keep a PC outside our network because a vender dials into to it for application maintenance. We don't want him in our network. The PC is configured with a private IP (192.168.0.3 255.255.255.0) but sh...
  3. PIX 501 to PIX 501 VPN
    I am new to this firewall stuff and need some help. We are opening another location that will have a DSL connection to the internet. I want to setup a PIX to PIX VPN that allows the users at the remote site to log directly into our domain and get their network connections.The...
  4. Pix to Pix to Pix Mesh
    Hello all, I'm attempting to setup a VPN mesh between 2 PIX 501's and a PIX 506e. Here's a quick overview of the environment. There are 3 Devices Largo - PIX 501 Lindon - PIX 506e Orem - PIX 501 Each device is also the gateway for it's location. Each will also need t...
  5. Problem with PIX
    Hi, I have two cisco PIX Firewall PIX_1 and PIX_2 our web server and Mail server are in PIX_1 there are some LAN to LAN VPN branches are in PIX_2. Problem is this that VPN LAN to LAN branches cannot access the web server but they send/recieve their Mail. Best Regards

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: PeteLongPosted on 2005-01-02 at 04:49:51ID: 12938886

paste the running config of the PIX here

 

by: PeteLongPosted on 2005-01-02 at 04:54:51ID: 12938891

>>How do I allow the server to recieve mail from outside on the pix

providing you have an "inbound" access list, and that access list has been applied to the outside interface then you need to allow port 25 (TCP) traffic inbound from your mail relay or ISP.

eg
access-list inbound permit tcp any host <ip of web server> eq 25
access-group inbound in interface outside

>>I also need to map a public ip and a private ip inside the network for the mail server. what command do I use?

eg
static (inside,outside) <inside IP> <outside IP>


NOTE the above presumes your interfaces are called the default (inside and outside)

 
access-list 101 permit tcp any host 209.168.202.5 eq 3389
  access-group 101 in interface outside

 

by: PeteLongPosted on 2005-01-02 at 04:55:45ID: 12938892

ignore the last two lines! I was copy pasting them for the syntax!!

 

by: anyirongoPosted on 2005-01-02 at 06:28:46ID: 12939154


I have set up the following configure on the pix but still I cannot recieve mail through my exchange server. see line below.


:
PIX Version 6.3(3)
interface ethernet0 auto
interface ethernet1 auto
nameif ethernet0 outside security0
nameif ethernet1 inside security100
enable password IjYYaPVgGm0.lJB0 encrypted
passwd IjYYaPVgGm0.lJB0 encrypted
hostname kpmglsk
domain-name kpmg.co.zm
fixup protocol dns maximum-length 512
fixup protocol ftp 21
fixup protocol h323 h225 1720
fixup protocol h323 ras 1718-1719
fixup protocol http 80
fixup protocol rsh 514
fixup protocol rtsp 554
fixup protocol sip 5060
fixup protocol sip udp 5060
fixup protocol skinny 2000
fixup protocol smtp 25
fixup protocol sqlnet 1521
fixup protocol tftp 69
names
access-list inside permit tcp any any eq domain
access-list inside permit udp any any eq domain
access-list inside permit tcp any any eq ftp
access-list inside permit tcp any any eq ftp-data
access-list inside permit tcp any any eq https
access-list inside permit tcp any any eq ssh
access-list inside permit tcp any any eq pop3
access-list inside permit tcp any any eq www
access-list inside permit icmp any any
access-list inside permit tcp any any eq telnet
access-list inside permit tcp any host 62.56.217.67 eq smtp
access-list outside permit icmp any any
access-list outside permit tcp any any eq smtp
access-list outside permit tcp any any eq pop3
access-list outside permit tcp any any eq www
pager lines 24
mtu outside 1500
mtu inside 1500
ip address outside 62.56.216.67 255.255.255.240
ip address inside 192.168.0.3 255.255.255.0
ip audit info action alarm
ip audit attack action alarm
pdm logging informational 100
pdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 1 0.0.0.0 0.0.0.0 0 0
static (inside,outside) 192.168.0.1 62.56.216.67 netmask 255.255.255.255 0 0
access-group inside in interface inside
route outside 0.0.0.0 0.0.0.0 62.56.216.1 1
timeout xlate 0:05:00
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 rpc 0:10:00 h225 1:00:00
timeout h323 0:05:00 mgcp 0:05:00 sip 0:30:00 sip_media 0:02:00
timeout uauth 0:05:00 absolute
aaa-server TACACS+ protocol tacacs+
aaa-server RADIUS protocol radius
aaa-server LOCAL protocol local
http server enable
http 192.168.0.0 255.255.255.0 inside
no snmp-server location
no snmp-server contact
snmp-server community public
no snmp-server enable traps
floodguard enable
telnet 192.168.0.0 255.255.255.0 inside
telnet timeout 5
ssh timeout 5
console timeout 0
dhcpd address 192.168.0.5-192.168.0.254 inside
dhcpd dns 192.168.0.1
dhcpd wins 192.168.0.1
dhcpd lease 3600
dhcpd ping_timeout 750
dhcpd domain kpmg.co.zm
dhcpd auto_config outside
dhcpd enable inside
terminal width 80
Cryptochecksum:3d519618ab3d1774105885d6c99458f4
: end

 

by: PeteLongPosted on 2005-01-02 at 06:34:38ID: 12939179

you havnt applied the "outside" access list to the outside interface

 access-group outside in interface outside

 

by: anyirongoPosted on 2005-01-02 at 06:45:32ID: 12939205


Hi Peter

Does a pix alllow telnet on the outiside interface. If yes what is the command. I would like to telnet a remote pix

 

by: PeteLongPosted on 2005-01-02 at 06:50:17ID: 12939224

well I dont recommend doing so as its better policy to do it from inside, but

telnet <ip address> 255.255.255.255 outside

 

by: lrmoorePosted on 2005-01-02 at 07:22:16ID: 12939321

>ip address outside 62.56.216.67 255.255.255.240
>static (inside,outside) 192.168.0.1 62.56.216.67 netmask 255.255.255.255 0 0

You can't do a 1-1 static nat map using the same IP as the outside interface. Try this instead:

 no static (inside,outside) 192.168.0.1 62.56.216.67 netmask 255.255.255.255 0 0
     static (inside,outside) tcp interface 25 192.168.0.1 25 netmask 255.255.255.255
Plus, you will need an additional static for each protocol/port that you want to use
     static (inside,outside) tcp interface 80 192.168.0.1 80 netmask 255.255.255.255
     static (inside,outside) tcp interface 110 192.168.0.1 110 netmask 255.255.255.255
     static (inside,outside) tcp interface 443 192.168.0.1 443 netmask 255.255.255.255
<etc>

Also, disable mailguard for Exchange (unless it is Ex2003)
   no fixup protocol smtp 25

>Does a pix alllow telnet on the outiside interface. If yes what is the command. I would like to telnet a remote pix
No. You cannot telnet to the outside interface of the pix unless from a VPN connection. Period.

 

by: anyirongoPosted on 2005-01-02 at 08:19:25ID: 12939505


Hi Irmoore

I have made the changes as advised but no mail coming through. I am able to browse the internet without doing any static an you indicated.

my mail server was also doing nat and routing with two interfaces. Do I need to disable routing on my my windows 2003 server which is also running exchange. My mail does not know which interface to use since the server is using two interfaces one for public interconnection the other LAN

advise
   

 

by: lrmoorePosted on 2005-01-02 at 08:40:10ID: 12939540

Yes, you should most definately disable routing on the server and disable one interface.

 

by: anyirongoPosted on 2005-01-03 at 08:36:10ID: 12944643


pop3 mail is not flowing what other command do I need to enter on the pix to allow this. I already have an access list allowing this

 

by: PeteLongPosted on 2005-01-03 at 08:40:35ID: 12944679

pop mail runs over TCP port 110 (providing its not secure pop mail)

>>No. You cannot telnet to the outside interface of the pix

Thanks lrmoore  I was unaware of that - my appologies anyirongo my earlier post was incorrect.

Pete

 

by: lrmoorePosted on 2005-01-03 at 10:07:45ID: 12945429

This config line should take care of your pop3 requirement
       static (inside,outside) tcp interface 110 192.168.0.1 110 netmask 255.255.255.255

Look at result of "show static" and make sure that port 110 is mapped
Can you post result of "show access-list"

 

by: anyirongoPosted on 2005-01-04 at 07:27:17ID: 12952847

# sh access-list
access-list cached ACL log flows: total 0, denied 0 (deny-flow-max 1024)
            alert-interval 300
access-list inside; 11 elements
access-list inside line 1 permit tcp any any eq domain (hitcnt=0)
access-list inside line 2 permit udp any any eq domain (hitcnt=0)
access-list inside line 3 permit tcp any any eq ftp (hitcnt=0)
access-list inside line 4 permit tcp any any eq ftp-data (hitcnt=0)
access-list inside line 5 permit tcp any any eq https (hitcnt=0)
access-list inside line 6 permit tcp any any eq ssh (hitcnt=0)
access-list inside line 7 permit tcp any any eq pop3 (hitcnt=0)
access-list inside line 8 permit tcp any any eq www (hitcnt=0)
access-list inside line 9 permit icmp any any (hitcnt=0)
access-list inside line 10 permit tcp any any eq telnet (hitcnt=0)
access-list inside line 11 permit tcp any host 62.56.217.67 eq smtp (hitcnt=0)
access-list outside; 4 elements
access-list outside line 1 permit icmp any any (hitcnt=0)
access-list outside line 2 permit tcp any any eq smtp (hitcnt=0)
access-list outside line 3 permit tcp any any eq pop3 (hitcnt=0)
access-list outside line 4 permit tcp any any eq www (hitcnt=0)
#

please advise

 

by: lrmoorePosted on 2005-01-04 at 07:29:36ID: 12952874

It does not appear that you have the outside acl applied to the interface.

Do this:
  access-group outside in interface outside

 

by: anyirongoPosted on 2005-01-04 at 07:38:11ID: 12952983


I have this access-group comand

 

by: lrmoorePosted on 2005-01-04 at 08:02:07ID: 12953287

This is the only one that is in the config that you posted:
   >access-group inside in interface inside

Try removing the access-list from the inside interface
    no access-group inside in interface inside

and just have the outside group applied.
   access-group outside in interface outsdie

 

by: anyirongoPosted on 2005-01-05 at 09:17:38ID: 12964069

Pop3 cannot go out. What command on the firewall allows pop3 mail to walk in and out

does it require also a static route.

this one is not working

     static (inside,outside) tcp interface 110 192.168.0.1 110 netmask 255.255.255.255

 

by: lrmoorePosted on 2005-01-05 at 09:24:17ID: 12964141

Where is the POP3 server? Is it your local server?
Where is the POP3 client? Outside the network or inside the LAN?
Are you trying to go to a FQDN (i.e.  pop3.yourdomain.com ) with the POP3 client?
If yes, does that fqdn resolve to 192.168.0.1 or to 62.56.216.67 ?
If no, what IP address are you trying to use in the POP3 client server settings?

 

by: anyirongoPosted on 2005-01-05 at 09:49:23ID: 12964426


the pop3  server is at the ISP outside the LAN
the pop3 clients are inside the lan configured to pick mail from the pop3 servers at the ISP
some are using only pop3 addresses others are combining exchange mail and pop3 mail
the FQDN resolves to both 192.168.0.1

the pop3 clients use mail references provided by the isp. the server nats the local IP to the public ip 62.56.216.67

 

by: lrmoorePosted on 2005-01-05 at 10:01:35ID: 12964532

I think I get it...but I may still be confused (not difficult at my age)..

Try removing the access-list from the inside interface
    no access-group inside in interface inside

POP3 server at ISP. Client setup, servers tab, pop3 server = pop3.yourisp.com
   pop3.yourisp.com resolves to an ISP public IP - NOT 192,168.0.1, NOT 62.56.216.67 ?

>the server nats the local IP to the public ip 62.56.216.67
This is the part that confuses me. The PIX is doing the NAT translation from the private client IP to the public ip of 62.56.216.67.

 

by: anyirongoPosted on 2005-01-06 at 09:31:53ID: 12974469


Irmoore any help!

I have set the commands for a VPN on the two PIX 506 firewalls but they are not talking communicating.
What do I do to check what is the problem?

The comands I entered on both firewalls are below (with different IPs on the other firewall)

Please advise


isakmp enable outside
isakmp policy 1 authentication pre-share
isakmp policy 1 encryption des
isakmp policy 1 hash md5
isakmp policy 1 group 1
isakmp policy 1 lifetime 1000

isakmp key ********** address 62.56.216.67 netmask 255.255.255.255

access-list 101 permit ip 192.168.1.0 255.255.255.0 192.168.0.0 255.255.255.0

crypto ipsec transform-set kitwe esp-des esp-md5-hmac


crypto map zambo 1 ipsec-isakmp
crypto map zambo 1 match address 101
crypto map zambo 1 set peer 62.56.216.67
crypto map zambo 1 set transform-set kitwe

crypto map zambo interface outside

nat (inside) 0 access-list 101

sysopt connection permit-ipsec

isakmp identity address

 

by: lrmoorePosted on 2005-01-06 at 09:35:04ID: 12974503

Do you want to open another question to deal with the VPN tunnel?
Have we fixed the POP3 problem?

 

by: anyirongoPosted on 2005-01-06 at 09:44:29ID: 12974611


yes give me a push on the VPN than we can go back to the pop3. The VPN is now urgent. Sorry for this

 

by: anyirongoPosted on 2005-01-15 at 06:26:48ID: 13053060


hi irmoore
 
I did manage to  get the VPN out of the way. I am also able to send and reiceve pop3 mail.

the Problem I have now is that I cannot recive smtp mail through exchange server 2003. Althrough I can send out.

What could be the problem? is it exchange or on the firewall
 

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...