Just put the domain name serviced by the other server in the IMail server's HOSTS file with the internal IP. IMail does a HOSTS file lookup before going to a DNS.
Eric S ----- Original Message ----- From: "Len Conrad" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 22, 2002 7:02 PM Subject: Re: [IMail Forum] Mail Routing > > >I'm currently running IMail 6.06 on NT4S. I want to be able to direct mail > >for a non-local e-mail domain to a specific IP address rather than what > >IMail finds using DNS and MX records for the non-local e-mail domain. I've > >tried entering a record in the local IMail server 'hosts' file to associate > >the hostname of the only MX record for the non-local e-mail domain to the > >IP address I wanted the mail to be directed to without success. It looks > >like IMail doesn't check its 'hosts' file when resolving records. > > of course it does. To resolve a @recipientdomain, Imail looks > > 1. in its local domains and their alieas > > 2. hosts file > > 3. DNS > > >Note that the IMail server is not trying to relay incoming e-mail for the > >non-local e-mail domain but only trying to direct outgoing mail from local > >users to the right external server. This requirement arose because both my > >IMail server and this other non-IMail mail server are behind the same > >firewall. The IP address for the MX record for the other mail server is > >bound to the outside interface of the firewall and the IMail server cannot > >access it due to limitations on the firewall. I do know the internal > >private IP address of the other mail server which the MX record IP address > >NATs to through the firwall. And I want to direct or route the non-local > >mail for that domain name from the IMail server to that IP address > > Run BIND9 as you internal DNS and the one used by Imail, and use "views". > > Set up a view including public domain of that other server, but with > internal ip's. when imail queries for the MX of the that server, BIND9 > will respond with the internal ip. > > Len > > http://MenAndMice.com/DNS-training > http://BIND8NT.MEIway.com : ISC BIND for NT4 & W2K > http://IMGate.MEIway.com : Build free, hi-perf, anti-abuse mail gateways > > > Please visit http://www.ipswitch.com/support/mailing-lists.html > to be removed from this list. > > An Archive of this list is available at: > http://www.mail-archive.com/imail_forum%40list.ipswitch.com/ > Please visit http://www.ipswitch.com/support/mailing-lists.html to be removed from this list. An Archive of this list is available at: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
