Operating System - HP-UX
1748203 Members
3240 Online
108759 Solutions
New Discussion

Re: Steps for smtp authentication for sendmail

 
coollllllllllll
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 ;

 

 

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 ??

 

2 REPLIES 2
Matti_Kurkela
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:

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
coollllllllllll
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 sendmail.mc   here.

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

Please advice.