Skip to contentSkip to conversation

mails not going thru'

DISCUSSION [email protected] 2 participants 2 messages May 9, 2005

lore
Share & tools
lore
#0 lore raw

----- Original Message -----
From: "Taylor, Grant" <[email protected]>
Date: Monday, May 9, 2005 11:37 am
Subject: Re: mails not going thru'

Quoted 17 lines
Quoted 9 lines

The server for which this iptables is being written.

Client connected to the Mandrake 10.1 server. With eth0 as WAN and eth1 as LAN.

I am not running any mail server. client send/recieve thru' firewall based iptables that is being discussed.

If you are trying to configure your email clients on your local LAN to send email out via the internal IP address of your firewall (that is not running any email it's self) via redirecting inbound TCP connections to port 25 / 587 to a mail server somewhere on the internet? If that is the case you will need to set up a DNAT rule that points to the mail server that you want to send email with.

Quoted 8 lines

Other than that I can't see any thing that would be preventing your email from functioning.

Grant. . . .

Well my server in on Mandrake10.1

with eth0 as WAN with static IP
eth1 as LAN 192.168.0.xxx.

Clients connect to eth1 of the server.

I hope this help

Varun

#1 lore raw
Quoted 7 lines

Well my server in on Mandrake10.1
with eth0 as WAN with static IP
eth1 as LAN 192.168.0.xxx.

Clients connect to eth1 of the server.

I hope this help

Yes this does help.

Try setting up a DNAT rule that will take any port 25 (SMTP) connections received on eth1 from your LAN and DNAT them to an SMTP server on the net that will relay for your network. You would do this with something along the following lines:

iptables -t nat -A PREROUTING -i eth1 -s 192.168.0.0/24 -d $IP_Address_of_Firewall -p tcp --dport 25 -j DNAT --to-destination $IP_Address_of_SMTP_server

This should take any port 25 traffic (SMTP) that is inbound to your server and redirect it to an SMTP server on the net.

Grant. . . .