Plain Authentication for sendmail with SASL

1. Test your sendmail is compiled with SASL or not

sendmail -d0.1 -bv root | grep SASL  make sure SASL should come in Output.  If not then you need to compile sendmail with SASL


2. Changes in /etc/mail/sendmail.mc –>


define(`confAUTH_OPTIONS’, `A’)dnl
TRUST_AUTH_MECH(`LOGIN PLAIN’)dnl
define(`confAUTH_MECHANISMS’, `LOGIN PLAIN’)dnl


2. In /usr/lib/sasl2/Sendmail.conf

pwcheck_method: saslauthd

And start saslauthd with following command:

saslauthd -a shadow

Restart sendmail

3. Test sendmail
telnet <server ip> 25
ehlo localhost

It should show 250-AUTH in the output.


Neelesh Gurjar has written 122 articles

Leave a Reply