Operating System - HP-UX
1833162 Members
3361 Online
110051 Solutions
New Discussion

send mail to exchange server

 
SOLVED
Go to solution
deCG
Advisor

send mail to exchange server

I have two servers in same domain. Both have same dns settings and host files. Yet one server can send email using 'sendmail' using pop3 and exchange server and another can only send using pop3. My questinon is what network setting is affecting the system.

$ /usr/sbin/sendmail -F"System Administrator" admin@pop3.com < mail.txt
## works on both system

$ /usr/sbin/sendmail -F"System Administrator" admin@exchange.com < mail.txt
## only works on one of the server

## This is the error messege
admin@exchange.com... User unknown
/dead.letter... Saved message in /dead.letter

Does any one have any idea where I should look for trouble-shooting?

Thanks.

deCG
5 REPLIES 5
James R. Ferguson
Acclaimed Contributor
Solution

Re: send mail to exchange server

Hi:

Make sure that you have setup the smart relay macro in '/etc/mail/sendmail.cf'. You should have something like:

DSadmin.exchange.com

Regards!

...JRF...
Mel Burslan
Honored Contributor

Re: send mail to exchange server

Also, after making sure what JRF said is true, you need to make sure that, the server specified on the line starting with DS is allowing you to send email to any other domain. If you are not the exchange administrator, you may need to talk to those folks and have them add your server name and/or ip address into the allowed hosts list.
________________________________
UNIX because I majored in cryptology...
deCG
Advisor

Re: send mail to exchange server

Thank you!!!
I will try that and I will let you know...
You guys are the best..
deCG
Advisor

Re: send mail to exchange server

I found the difference between two servers.

Djdomain2.com

This was uncommented on the server which didn't work. So I commented this line out now it works.


Thank you...
Steven E. Protter
Exalted Contributor

Re: send mail to exchange server

Shalom,

So you understand, the Dj directive is an override that lets you set the domain name of the server for mail purposes.

Lets say you work at goodservice.com and your internal network is int.goodservice.com

Mail set out for servers with the domain name set would have the tag user@servername.int.goodservice.com

If the mail needs to traverse the public internet and the domain is not registered most servers won't accept it.

Change the Dj directive to:

Djgoodservice.com

All emails go out user@goodservice.com and can safely traverse the public Internet.

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