Steps for smtp authentication for sendmail (308 Views)
Reply
Regular Advisor
coollllllllllll
Posts: 140
Registered: ‎12-28-2012
Message 1 of 3 (308 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 ;

 

 

xyz.chau@xx.in.... Connecting to [202.162234.222] via relay...

 

 

220 ESMTP ESMTP

 

 

>>> EHLO dccbsr01.xx.in

 

 

250-mail.xx.in

 

 

250-PIPELINING

 

 

250-SIZE 5242880

 

 

250-VRFY

 

 

250-ETRN

 

 

250-AUTH LOGIN PLAIN

 

 

250-AUTH=LOGIN PLAIN

 

 

250-ENHANCEDSTATUSCODES

 

 

250-8BITMIME

 

 

250 DSN

 

 

250 2.1.0 Ok

 

 

>>> RCPT To:xyz.chau@xx.in

 

 

554 5.7.1 <xyz.chau@xx.in>: Recipient address rejected: Access denied

 

 

>>> RSET

 

 

250 2.0.0 Ok

 

 

tejachau... Connecting to local...

 

 

tejachau... Sent

 

 

Closing connection to [202.162.234.222]

 

 

>>> QUIT

 

 

221 2.0.0 Bye

 

 

What is to be done now ??

 

Please use plain text.
Honored Contributor
Matti_Kurkela
Posts: 6,271
Registered: ‎12-02-2001
Message 2 of 3 (289 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:

https://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=SMAIL813

 

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.

http://bizsupport2.austin.hp.com/bc/docs/support/SupportManual/c02037950/c02037950.pdf


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.

MK
Please use plain text.
Regular Advisor
coollllllllllll
Posts: 140
Registered: ‎12-28-2012
Message 3 of 3 (247 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 sendmail.mc   here.

Should i generate it using /usr/newconfig/etc/mail/cf/cf/generic-hpux10.mc

Please advice.

 

Please use plain text.
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