Link to home
Start Free TrialLog in
Avatar of aduhwale
aduhwale

asked on

using ip tables to allow windows mail server to work.

Hi EE.  I just managed to configure my lan with linux as a router.  I have a simple firewall router connected to my internet link and my linux box connected to the router.  my lan is then connected to the linux box on eth1.  So Internet is working.  However my mail server sits on one of the linux boxes.  The router forwards data on port 25 and 110 to a pc on the lan, but since they are on different ip range - 10.0.0.1 for the router and 192.168.0.2 for the pc.  How can I get mail to work?

Thanks

Avatar of ahoffmann
ahoffmann
Flag of Germany image

the router needs to pass port 25 to the linux box and block port 110 (except you wont to use horrible insecure POP over internet).
then you PC needs to send mails to your linux box and query it for recieving mails using pop
(assuming that the linux box is your MTA and all PCs are MUAs)
Avatar of aduhwale
aduhwale

ASKER

Hi.  My scenario is this.  My mail server is running on one of the windows clients.  So before I put in the linux box, the router was connected on the switch and all the windows pcs connected via this.  The router had ports 25 and 110 forwarded to the windows pc with the mail server program.  So I am looking for a way to avoid using the linux box for any portion of the mail and  just have my ports forwarded as before.
ASKER CERTIFIED SOLUTION
Avatar of ahoffmann
ahoffmann
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ur a star.  thanks.
keep in mind that my iptables suggestion assumes that traffic from eth1 is routed though to eth0 without (much) problems, in particular port 25 so that you MTA can caal other mail servers