You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Carl Vorster <cc...@propartners.co.za> on 2008/04/14 17:47:12 UTC

Overriding DNS with hosts file

Hi,

I've got a couple of mail servers sitting behind a firewall and uses NAT.

Problem I'm having is that when one mail server wants to route mail to the other it does a DNS lookup and gets the NATed IP i.e. the outside IP.
I need it to use the private IP.

I've changes the hosts file, but it doesn't make a difference.

Is there a way for me to do this?



Thanks

Carl



---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: Overriding DNS with hosts file

Posted by Stefano Bagnara <ap...@bago.org>.
There is no way in JAMES sorry.

You can install a local DNS server correctly configured to "alter" your 
hosts and have JAMES to point to that DNS server.

Or, if you use linux, you can try using iptables to transparently  alter 
the destination IP of connections destinated to other IPs but I have no 
hints for you about the use of iptables to do that.

Stefano

Carl Vorster ha scritto:
> Hi,
> 
> I've got a couple of mail servers sitting behind a firewall and uses NAT.
> 
> Problem I'm having is that when one mail server wants to route mail to the other it does a DNS lookup and gets the NATed IP i.e. the outside IP.
> I need it to use the private IP.
> 
> I've changes the hosts file, but it doesn't make a difference.
> 
> Is there a way for me to do this?
> 
> 
> 
> Thanks
> 
> Carl



---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org