Operating System - HP-UX
1833262 Members
2933 Online
110051 Solutions
New Discussion

Re: Sendmail Relay to Exchange

 
SOLVED
Go to solution
KapilRaj
Honored Contributor

Sendmail Relay to Exchange

Can sendmail on my unix machine relay to an exchange server for mail delivery ?. I want to send mails , I don't want to recieve them.

Regds,

Kaps
Nothing is impossible
4 REPLIES 4
James R. Ferguson
Acclaimed Contributor
Solution

Re: Sendmail Relay to Exchange

Hi Kaps:

Configure the "smart relay" macro in '/etc/mail/sendmail.cf' :

DSexchange.abc.com

...where "exchange" is the smart relay name corresponding to your Exchange server. This relays all non-local mail to the relay host via SMTP.

Then, test with:

# mailx -s "Test Message" kapil@abc.com < /dev/null

Regards!

...JRF...
Steven E. Protter
Exalted Contributor

Re: Sendmail Relay to Exchange

Shalom Kaps,

Don't forget that Echange denys relay by default (What batman a secure microsoft product?).


Relay must be authorized by IP address in the exchange configuration.

What does /var/adm/syslog/mail.log say?

So long as sendmail is not running the server will receive no mail.

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
KapilRaj
Honored Contributor

Re: Sendmail Relay to Exchange

Thank you guys. I don't have a working setup now. I am planning to set up some unix boxes in a windoZ env ;) .

Thanks for your help. I did know how to setup a Relay server in the DS macro. But was'nt sure if it works the same way with MS-Exchange server as well.

Regds,

Kaps
Nothing is impossible
Colin Topliss
Esteemed Contributor

Re: Sendmail Relay to Exchange

One thing I didn't see mentioned...

sendmail is not an open relay by default. It will NOT relay mail for a host it can't resolve the name for. You'll see your clients erroring with a DSN error (actually means a DNS error more or less).

Your relay either needs to have access to a name server, or you need to add entries to your local host file (its not the nicest solution, but it really depends how many hosts you want to relay).