Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Showing results for 
Search instead for 
Did you mean: 

Steps for smtp authentication for sendmail

Regular Advisor

Steps for smtp authentication for sendmail

Hi ,


We have sendmail 8.11 in our setup

Our service provider is saying we need to enable smtp authentication in our setup.


When we are trying to send mails we are getting ; Connecting to [202.162234.222] via relay...






>>> EHLO






250-SIZE 5242880





















250 DSN



250 2.1.0 Ok



>>> RCPT



554 5.7.1 <>: Recipient address rejected: Access denied



>>> RSET



250 2.0.0 Ok



tejachau... Connecting to local...



tejachau... Sent



Closing connection to []



>>> QUIT



221 2.0.0 Bye



What is to be done now ??


Honored Contributor

Re: Steps for smtp authentication for sendmail

Your provider seems to allow two authentication methods: LOGIN and PLAIN.

LOGIN is mainly used by Microsoft Outlook, and PLAIN by many other email programs.

Both methods send the password in plain-text, so anyone monitoring the network would get to know your email password, which would not be a good thing.


So the first step needed would be to enable SSL/TLS encryption to protect your authentication information. (If your service provider has set up things securely, trying to send the AUTH command without encryption would probably cause another error message, telling you that encryption is also required.)


To do that, you may need to update your sendmail version to 8.13.3 first:


This document, titled "Sendmail 8.13.3 Secure Mailing Solution" includes HP-UX specific procedures for configuring Sendmail 8.13 for SSL/TLS and authentication.

In particular, you should pay attention to the chapter titled "Using Sendmail 8.13.3 with AUTH", starting from page 25.

You will probably need to install the SASL libraries listed in the previous chapter, but you might not need to configure your sendmail to _require_ authentication unless it is visible to the internet. But your service provider requires that your server must be able to _provide_ authentication information to their email gateway... and that's exactly what the "Using Sendmail 8.13.3 with AUTH" chapter describes.

Regular Advisor

Re: Steps for smtp authentication for sendmail

Hi Matti ,


We are using following sendmail version;


root #/ >swlist -l product|grep -i sendm
  PHNE_35951            1.0            sendmail(1M) 8.11.1 patch


My mail service provider is saying we need to send mails using SMTP AUTH.

They use PLAIN method.


But m not able to find   here.

Should i generate it using /usr/newconfig/etc/mail/cf/cf/

Please advice.