Thanks Eric,

I also found this in the manual under 'Setting up IMail Server as a Mail
Gateway'.  I first had the hostname of the MX record for the non-local
e-mail domain associated with the private IP address I wanted to route the
messages to, in my IMail server 'hosts' file.  But that did not work.  I
had expected IMail to look up the MX record for the non-local e-mail domain
and then try to resolve that hostname to IP address from its 'hosts' file.

After re-reading the section, I put the e-mail domain name (different from
its MX record) associated with the private IP address I wanted to route the
messages to, in my IMail server 'hosts' file and it started working.

Daniel Kleinsinger: This solution should also resolve your 'Gateway
exception' issue.

Thanks Len for your BIND9 suggestion.  Unfortunately we do not host the
domain name for the non-local e-mail domain.  They have a mail server among
other servers co-located behind the same firewall as our IMail server.
Hence we did not want to try to duplicate their entire zone file with the
exception of the MX record on our DNS servers.

Cheers,

Richard



At 07:39 PM 2/22/02 -0500, you wrote:
>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/
>

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/

Reply via email to