Exim on debian

Associate
Joined
1 Aug 2003
Posts
1,053
I'm in a hotel that has a wierd firewall. They have the 110 port open (and ssh) but NOT the 25 port...

To get round this I want to configure a debian box to respond on 110 as an SMTP server then pass it on to the wider world.

Does this sound sensible or can anyone recommend a better/saner plan?
 
Enable incoming port 110 on your server:

Code:
iptables -A INPUT -p tcp --dport 110 -j ACCEPT

then redirect port 110 to port 25:

Code:
iptables -A PREROUTING -t nat -p tcp --dport 110 -j REDIRECT --to-port 25

Your SMTP server will just listen on port 25 and will be unaware of the juggling going on behind the scenes.
 
Back
Top Bottom