i have a two machine setup where i have one machine as a mail server with ssl ESMTP on port 465, and the other machine to forward users from port 25 to port 465.
the first server - i.e. the one doing the esmtp is working fine.
i have used commands as following for the iptables bit;
Quote:
iptables -A PREROUTING -t nat -p tcp -d xxx.xxx.xxx.253 --dport 25 -j DNAT --to xxx.xxx.xxx.220:465
iptables -I FORWARD -p tcp -d xxx.xxx.xxx.253 --dport 465 -j ACCEPT
iptables -A POSTROUTING -t nat -p tcp -d xxx.xxx.xxx.220 --dport 465 -j SNAT --to xxx.xxx.xxx.253
echo 1 | tee /proc/sys/net/ipv4/ip_forward
|
i know that iptables itself works because i am forwarding other protocols with the same server, but on this particular one all i get is a timeout when connecting with a mail-client.
is there something about the esmtp protocol that prevents it from talking back along this to the client computer.
thanks.