D&C Lug - Home Page
Devon & Cornwall Linux Users' Group

[ Date Index ][ Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]

[LUG] forward from internal mail server



Hi All,

Can't figure this.

I Have internal mail server 10.0.x.x

And then a the external interface of the gateway 192.168.x.x (This gateway
is behind another gateway a nat within a nat).

i have masquerade ok, Inet is served no problems

iptables -A POSTROUTING -t nat -o eth0 -j MASQUERADE

Forwarding enabled;

net.ipv4.ip_forward= 1

mail is forwarding from the gateway to the internal mail server.

iptables -t nat -A PREROUTING -p tcp --dport 25 -j DNAT --to 10.0.x.x:25

Everything else is bare back (ACCEPT), just while i get this to work.

No mail can be sent out?? It just sits in the queue.

Can't figure this. Surley i don't need a rule for mail going out, it
should just route to the gateway? and with all being ACCEPT as well. I had
this working another machine which has just died.

Apologies in advance if i have missed the bloody obvious!

Cheers,
All

How did the meeting go, i could not make it.


------------------------------------------------------------------
PGPmail - "Free encrypted secure offshore webmail" https://pgp.bz/

--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe.


Lynx friendly