Showing results for 
Search instead for 
Did you mean: 

Authenticated SMTP

Super Advisor

Authenticated SMTP

Hi Admins,


Till now sendmail configured by maintaining relay server name in file. Now security team asking to configure authenticated sendmail.In which sending mail is authenticated via my AD id. instead of relay server name we have to give our AD server name. and also created auth_info file.


But my server is not LDAP configured.Then how authenticated SMTP will work,since my server not able to communicate with AD server. Please guide.






P.S. This thread has been moved from HP-UX > System Administration to HP-UX > messaging. - Hp Forum Moderator

Honored Contributor

Re: Authenticated SMTP

First, exactly what is the security team requesting?


Are they saying that the Exchange server (or whatever) you're using as your relay will be configured to require authentication before accepting mail? Then you should probably talk with the Exchange and/or AD admins and have them configure a "service account" for your Sendmail. Then you can add the username and password for that service account to your Sendmail configuration, so that Sendmail will authenticate as the service account when sending mail to Exchange.


If you are using Sendmail to handle locally-generated mail only, you should then make sure that other people in the network (or worse, in the entire Internet) cannot use your Sendmail to inject email to Exchange for further delivery. If your Sendmail only listens for SMTP in address, you're probably safe.




If your Sendmail actually accepts incoming email from the network, the security team might be telling you to set up authentication or stop running Sendmail. In that case, you may have a lot more work.

First, find out:

  • why your users are using your Sendmail instead of using the Exchange SMTP directly? Can they switch to using the Exchange SMTP interface and the appropriate authentication?
  • can your users handle SMTP authentication (and probably SSL/TLS encryption too, since authentication in plaintext over the network makes no sense)?
  • if your users cannot use authenticated SMTP (e.g. because they are hardware devices whose configuration supports basic SMTP only), are they located in fixed IP addresses? Would it be acceptable if your Sendmail accepted email from those fixed IP addresses only?
  • does the security team require you to use AD usernames/passwords for authentication, or is it enough to implement a separate list of Sendmail users+passwords in some other way?