Re: mails not going thru'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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. . . .


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux