Operating System - HP-UX
1846630 Members
1914 Online
110256 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
3 REPLIES 3
CHRIS_ANORUO
Honored Contributor

Re: Exchange/Sendmail Configuration Problem

Sendmail does not know how to send mail to an
internet address, it must "point" to a mail server that has that know-how. Hence, the
DS macro in the /etc/mail/sendmail.cf.
For more information on sendmail, See Installing and Administering Internet Services, Chapter 5, http://docs.hp.com/hpux/communications.
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
CHRIS_ANORUO
Honored Contributor

Re: Exchange/Sendmail Configuration Problem

Look at this link also: http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0x2c6d7e990647d4118fee0090279cd0f9,00.html

When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
Kofi ARTHIABAH
Honored Contributor

Re: Exchange/Sendmail Configuration Problem

It would seem that your exchanagebox does not know how to get to your hpbox. to check this quickly try pinging the hpbox (myhp.foo.bar.com) from the NT box - if it does not resolve the name properly then
you might want to fix it adding an entry to the c:winntsystem32servicesetchosts file
for both the fqdn and the short name for your hpbox

x.y.z.a myhpbox myhpbox.foo.bar.com

nothing wrong with me that a few lines of code cannot fix!