Operating System - HP-UX
1834458 Members
3150 Online
110067 Solutions
New Discussion

Lots of help with Sendmail.

 
Danny Crisp
Frequent Advisor

Lots of help with Sendmail.

I’m a complete novice to sendmail. I’m struggling with some of the terminology i.e. relyhost etc… Here’s my concept, but I’m not sure if it’s even possible. We have a Microsoft Exchange Server which is used for Outlook. Can I use that server to send mail from our UNIX workstations?
6 REPLIES 6
RAC_1
Honored Contributor

Re: Lots of help with Sendmail.

You can use sendmail just to forward emails to some relay which in turn does the actual work of sendmail the emails. In such setup you need to setup DS (smart relay setting) in sendmail.cf file. You can use your outlook server as DS. (You need to make sure that your unix machines can accesses and is authorized to to forward emails to it.)

Update sendmail.cf (/etc/mail/sendmail.cf file) set DS"ip_addr_of_outlook_server".
Restart sendmail. that's all.
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start
There is no substitute to HARDWORK
Danny Crisp
Frequent Advisor

Re: Lots of help with Sendmail.

Many thanks for your quick reply. When I issued a sendmail -v username@domain.com, the tail end of the output reads: -

550 5.7.0 Access Denied
Service unavailable
... Connecting to local...
... Sent
Closing connection to >>> QUIT

Does this mean that access to the Exchange server is denied, or that the sendmail service is blocked?
RAC_1
Honored Contributor

Re: Lots of help with Sendmail.

Just a plain telnet on outlook server on port 25 from unix box will tel you if you have access there or not.

telnet outlook_server 25
If connected successfully, then try sending an email.
There is no substitute to HARDWORK
Danny Crisp
Frequent Advisor

Re: Lots of help with Sendmail.

telnet 25
Trying...
Connected to
Escape character is '^]'.
220 Microsoft ESMTP MAIL Service, Version: 6.0.3790.1830 ready at Mon, 24 Apr 2006 08:24:51 -0400

Is what I recieved after the telnet command. Not really sure what this is telling me though?
RAC_1
Honored Contributor

Re: Lots of help with Sendmail.

Looks like you do have access to outlook server. Just set DS as mentioned before in sendmail.cf and restart sendmail.

Send a test mail and check. For errors etc. check /var/adm/syslog/mail.log
There is no substitute to HARDWORK
Steven E. Protter
Exalted Contributor

Re: Lots of help with Sendmail.

Shalom Danny,

If the exchange server is not explicity set up to accept relay from each and every hpux server by ip address; it will reject all mail.

RELAYHOST is most simply a directive in sendmail.cf to say relay all mail here

DSexchangeserver

or
DS
[ip of excchange server]

example
DS
[192.168.0.10]

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