Operating System - HP-UX
1748036 Members
5089 Online
108757 Solutions
New Discussion юеВ

sendmail using exchange 2010 as relay

 
SOLVED
Go to solution
Charles Holland
Trusted Contributor

sendmail using exchange 2010 as relay

For may years we were using MS Exchange (2003) as the "smart relay" for both sendmail and mailx.

We are about 95% done in conversion to 2010 but CAN'T get relaying through the new mailserver to work.

Aside from changing DS part of sendmail.cf from machine x to machine y no other changes occurred.

Fast points for fast and accurate answers.
"Not everything that can be counted counts, and not everything that counts can be counted" A. Einstein
7 REPLIES 7
Dennis Handly
Acclaimed Contributor
Solution

Re: sendmail using exchange 2010 as relay

Have you looked at the logs, both on HP-UX and your Windows box?
Any error messages in the bounced mail?
Charles Holland
Trusted Contributor

Re: sendmail using exchange 2010 as relay

Dennis,
the /var/adm/syslog/mail.log says a status of "stat=Sent"

We can't see anything being "bounced"
"Not everything that can be counted counts, and not everything that counts can be counted" A. Einstein
Modris Bremze
Esteemed Contributor

Re: sendmail using exchange 2010 as relay

Have you tried sending some test message with sendmail -v switch? That sometimes reveals some stuff.

I Have not worked with 2010 yet, but I suspect that it is necessary to specify hosts, from which mail is accepted for relaying - is that configured correctly on the new Exchange server?

If not in sendmail logs on HP-UX server, then maybe in tne Exchange Message tracking logs something relevant is visible?
Jim Walls
Trusted Contributor

Re: sendmail using exchange 2010 as relay

Get the message ids out of the senmail log and use them to track mail through the Exchange server.

Have you tried manually submitting an email from your HP-UX server?

telnet exchange-svr-IP 25
helo fred
mail from:
rcpt to:
data
Subject: Just testing
.

quit


Steven E. Protter
Exalted Contributor

Re: sendmail using exchange 2010 as relay

Shalom,

New Exchange servers require explicit relay configuration to relay mail. Exchange relay servers are authorized by IP address.

Simply inform the Exchange administrator that you need relay through normal procedure at your company.

If the IP address you wish to relay through has changed, you may need to do one of the following steps:

* Change DS relay in sendmail.cf
* Change smart relay in your .mc file. The name might be sendmail.mc but HP has a slightly different implementation. See http://hpux.ws/sendmail.hpux.text for more details.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Elmar P. Kolkman
Honored Contributor

Re: sendmail using exchange 2010 as relay

If the HP box reports 'sent' then apparently it has delivered the mail on the relay, but the relay has dropped the mail for some reason.
So you should look at the exchange environment, in the logs, to make sure where your message went.
Every problem has at least one solution. Only some solutions are harder to find.
Charles Holland
Trusted Contributor

Re: sendmail using exchange 2010 as relay

First let me say that if you have mail running from HPUX through a relay on Exchange 2004 there is a VERY strong possibility that you will only have to change the DS information in the sendmail.cf file. On all of the other machines (abit not the one I was using for testing) that is the only change I made.

First the required information, IP address that the Exchange will receive mail from, was in place.

Second our domain is companyinitials.local while we are known as companyname.com on the internet. When mail was sent from my testing machine it when out as root@companyinitials.local. The placing I was sending it to tried to do a reverse lookup of companyinitlals.local, which doesn't exist and simply dropped it in the bit bucket so we were never getting anything back to look at in the Exchange Message tracking log.

Despite having masquerading set on that server I continue to get mail from root@companyinitials.local in my local mail box.
"Not everything that can be counted counts, and not everything that counts can be counted" A. Einstein