Operating System - HP-UX
1753734 Members
4854 Online
108799 Solutions
New Discussion

Re: Exchange/Sendmail Configuration Problem

 
David Karakas
Occasional Contributor

Exchange/Sendmail Configuration Problem

I want to set up a HP box to route all outbound mail to an exchange server that has access to the public internet. I also want to set up the exchange server to receive the HP boxes mail (via DNS MX) and route it to the HP box. The goal here is to allow bi-directional e-mail to/from the public internet that goes through the exchange server.

Currently, I have myhpbox.foo.bar.com relaying mail to myexchange.foo.bar.com and this works quite well. This was accomplished using the DS macro in the sendmail.cf file.

I have a public DNS server with the following:

12.59.1.96 IN A myhpbox.foo.bar.com
MX 10 myexchange.foo.bar.com

12.59.2.120 IN A myexchange.foo.bar.com

Problem:

When mail is sent to user@myhpbox.foo.bar.com the originating mail server does a nslookup and discovers the MX record and correctly forwards the mail to myexchange.foo.bar.com. Now myexchange.foo.bar.com having received the mail performs its own nslookup for myhpbox.foo.bar.com, discovers the MX record and forwards the mail to itself in a loop until ttl kills it. Exchange doesn't seem to know what its hostname is.

I believe that the HP sendmail is configured correctly. What do I have to do to get exchange to do what we intend?

On exchange we have tried putting in the ip address to forward to but it reconstructs the To: header and changes it to user@ipnumber instead of user@fqdn. This causes sendmail to reject it.

Please only answer this if you have successfully performed the same type of environment. I have already received many well intentioned but wrong suggestions.

Thanks
David
kard235@lni.wa.gov
1 REPLY 1
James Hammitt
New Member

Re: Exchange/Sendmail Configuration Problem

I have Sendmail on Linux and Exchange 5.5 on NT config'd to accomplish this. You need to configure relaying in Exchange. Assuming Exchange is your primary email gateway:

(1)In Exchange Administrator, open "Connections...Internet Mail Service...Routing";

(2)Select "Reroute incoming SMTP mail";

(3)Add an entry for #foo.bar.com (note the #) and select "Should be accepted as inbound";

(4)Add an entry for myhpbox.foo.bar.com and select "Override relay restrictions. Always relay";

(5)If "myhpbox" is not an actual hostname (e.g. it is a department name such as "sales.foo.bar.com"), create a CNAME record in DNS pointing to the actual server hostname;

(6)Remove any MX records for myhpbox or myhpbox.foo.bar.com. from DNS.

Hope this helps!