A
A
Alexey Pomogaev2011-06-05 10:18:43
linux
Alexey Pomogaev, 2011-06-05 10:18:43

Forward port from localhost to external server?

I installed exim4 on a separate server and now I need other servers (debian) to contact this external server when sending mail to localhost:25 192.168.0.2
Desirable rule for iptables
This does not work .0.1 --dport 25 -i eth0 -j DNAT --to-destination 192.168.0.2:25

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
Puma Thailand, 2011-06-05
@opium

And by the way, how can you have
-d 127.0.0.1
and
-i eth0
Look at ifconfig and you will understand everything.

P
phasma, 2011-06-05
@phasma

put postfix and configure it as relay.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question