Operating System - HP-UX
1845483 Members
2902 Online
110244 Solutions
New Discussion

sendmail and M/S Exchange 2003

 
SOLVED
Go to solution
Simeon Harwood
Regular Advisor

sendmail and M/S Exchange 2003

Afternoon all,
Has anyone looked into using sendmail from unix to relay mail via a Windows2003 Exchange server.
Apparently the Windows Exchange server requires some sort of authentication before it will relay mail.
We use this a lot to send alert e-mail from unix to our corporate e-mail system. We've just upgraded exchange to 2003, and guess what, now our mail relay dosn't work.

Any ideas?

Sime.
You never had this problem with a pencil and paper!
6 REPLIES 6
Simon Hargrave
Honored Contributor
Solution

Re: sendmail and M/S Exchange 2003

I have no experience of Exchange directly, however my guess would be that somewhere within the configuration there's a "list of host who can use me as a relay" to populate. This certainly was the case with Lotus Notes.

My guess would be that you find this, populate it with your unix server(s) name(s) then you will be able to.

Just a guess, mind...
Simeon Harwood
Regular Advisor

Re: sendmail and M/S Exchange 2003

Sounds like that might be the way. I'll have a poke about and see what I can find.

Anyone else got any ideas?

Sime.
You never had this problem with a pencil and paper!
Bejoy C Alias
Respected Contributor

Re: sendmail and M/S Exchange 2003

I dont know much about Exchange , but i can say that there must be some setting to say which machines are allowed to use this exchange server as a relay ( like in sendmail we use access file for this ) . U might have set the same in old server , is there anything like that.
Be Always Joy ......
Steven E. Protter
Exalted Contributor

Re: sendmail and M/S Exchange 2003

I've done it. It is easy.

1) The exchange 2003 server must allow relay specifically from the hp-ux host. This is authorized by ip address. I don't know the procedure, but there is a gui for setting it up.

2) edit sendmail.cf

Change

DS

to

DShostname.exchange2003

or

DS
192.168.0.10

if that ip address is the ip address of the exchange 2003 server.

/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

Done.

SEP
http://www.isnamerica.com/contactsep.shtml
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
Simeon Harwood
Regular Advisor

Re: sendmail and M/S Exchange 2003

Top news. I knew there must be an easy way to do it.

Thanks for the help.

Sime.
You never had this problem with a pencil and paper!
Scott Graham_1
Occasional Contributor

Re: sendmail and M/S Exchange 2003


Sorry to hijack this thread but this is exactly my issue.

I can send mail from my Unix server to user@mailserver.domain.com but not to user@domain.com.

I got this working by adding a secondary address to my exchange account of user@mailserver.domain.com but I cannot do this globally as it says I cannot add a global address that includes the name of an exchange server. I cannot add this second address for all my users.

Is there a way to setup sendmail to send to user@domain.com

Thanks.