Operating System - HP-UX
1821071 Members
2439 Online
109631 Solutions
New Discussion юеВ

sendmail 8.9.3 and MS EXchange 5.5 as relay

 
SOLVED
Go to solution
Roberto Gallis
Regular Advisor

sendmail 8.9.3 and MS EXchange 5.5 as relay

Hi all,
I have an exchange server as relay host defined in my sendmail.cf as DS.
Local mail are delivered with success, but outgoing mail (to another domain) are accepted but not delivered...
But if i do a telnet exchange 25 with commands:
helo myserver
mail from:root@myserver
rcpt to:pippo@myhome.org
data
hello world
.


The mail goes to the destination.
Now I can't contact exchange admin to verify why my sendmail fails and why telnet runs well.

Anybody can help me?

Regards

Roberto
5 REPLIES 5
Pedro Sousa
Honored Contributor

Re: sendmail 8.9.3 and MS EXchange 5.5 as relay

Hi!
I think the problem is related with the exchange server. Your specific systems don't have permissions to send mails to the outside domain.
It happened to me and after the exchange admin changed that, it worked fine.

good luck.
Roberto Gallis
Regular Advisor

Re: sendmail 8.9.3 and MS EXchange 5.5 as relay

Here are 2 mail sent, the first outside my domain, the second inside (to exchange mailbox)

#sendmail -v roberto.gallis@bsc.it
ciao ciao
.
roberto.gallis@bsc.it... Connecting to postalog.bansel.it. via relay...
220 postalog.bansel.it ESMTP Server (Microsoft Exchange Internet Mail Service 5.5.2653.13) ready
>>> EHLO dcbe01.sella.it
250-postalog.bansel.it Hello [dcbe01.bansel.it]
250-XEXCH50
250-HELP
250-ETRN
250-DSN
250-SIZE 2097152
250-AUTH LOGIN
250 AUTH=LOGIN
>>> MAIL From: SIZE=10
250 OK - mail from ; can accomodate 10 bytes
>>> RCPT To:
250 OK - Recipient
>>> DATA
354 Send data. End with CRLF.CRLF
>>> .
250 OK
roberto.gallis@bsc.it... Sent (OK)
Closing connection to postalog.bansel.it.
>>> QUIT
221 closing connection


Come vedi in grassetto dice Sent (OK), ma la mail non arriva mai.


#sendmail -v roberto.gallis@sella.it
ciao!
.
roberto.gallis@sella.it... Connecting to postalog.bansel.it. via relay...
220 postalog.bansel.it ESMTP Server (Microsoft Exchange Internet Mail Service 5.5.2653.13) ready
>>> EHLO dcbe01.sella.it
250-postalog.bansel.it Hello [dcbe01.bansel.it]
250-XEXCH50
250-HELP
250-ETRN
250-DSN
250-SIZE 2097152
250-AUTH LOGIN
250 AUTH=LOGIN
>>> MAIL From: SIZE=6
250 OK - mail from ; can accomodate 6 bytes
>>> RCPT To:
250 OK - Recipient
>>> DATA
354 Send data. End with CRLF.CRLF
>>> .
250 OK
roberto.gallis@sella.it... Sent (OK)
Closing connection to postalog.bansel.it.
>>> QUIT
221 closing connection


The 2 output are similar, but the 1st mail is not delivered.
I had a similar problem with senmail as relay, but it displayed "relay denied" when trying to sendmail outside... I just change the rules of allowed ip for relay...
Exchange!!! An other world!!!
Pedro Sousa
Honored Contributor

Re: sendmail 8.9.3 and MS EXchange 5.5 as relay

Did you take this output from /var/adm/syslog/mail.log?

So, your exchange server is in a domain other then your HP system.
Just a possibility, maybe the E. Server doesn't let you sending mails to other domains other then the HP domain.
normally I use mailx with the -d option for debuging.

try mailx -d

lklk
.

sorry if I cannot help.
Ron Cornwell
Trusted Contributor
Solution

Re: sendmail 8.9.3 and MS EXchange 5.5 as relay

A problem like this occured lately for me when we changed email servers. The new email sever would not forward mail from an unregistered domain. (ex domain.com is registered but hostname.domain.com is not). To bypass this problem without making changes on the exchange server I edited /etc/mail/sendmail.cf. In it I changed the parameter DM to domain.com (this parameter will allow you to mask your sending domain and appear to be anything you want. There is another problem, if you want to send mail from root you will have to remove the root entry from the CE parameter. The CE parameter is to allow exceptions to the DM parameter. I hope that helps.

Ron Cornwell
ron.cornwell@imckesson.com
Kevin Wright
Honored Contributor

Re: sendmail 8.9.3 and MS EXchange 5.5 as relay

That is correct. I had the same problem a few months ago, the Exchange admin needs to add the hp boxes to a forwarder list or something. As long as your message gets to Exchange, your configuration is correct. to test...
sendmail -v is very helpful