Re: Steps for smtp authentication for sendmail (729 Views)
Regular Advisor
Posts: 140
Registered: ‎12-28-2012
Message 1 of 3 (790 Views)

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
Posts: 6,271
Registered: ‎12-02-2001
Message 2 of 3 (771 Views)

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
Posts: 140
Registered: ‎12-28-2012
Message 3 of 3 (729 Views)

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.


The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.