Sendmail smtp auth under CentOS 6

1.Get signed server certificate for auth

2. edit as below : (port 587 is listened by default, no need to add in the mc)

define(`confAUTH_OPTIONS’, `A p y’)dnl TRUST_AUTH_MECH(`LOGIN PLAIN’)dnl define(`confAUTH_MECHANISMS’, `LOGIN PLAIN’)dnl define(`confCACERT_PATH’,`/etc/pki/tls/certs’) define(`confCACERT’,`/etc/pki/tls/certs/gd_bundle.crt’) define(`confSERVER_CERT’,`/etc/pki/tls/certs/server.crt’) define(`confSERVER_KEY’,`/etc/pki/tls/certs/server.key’) DAEMON_OPTIONS(`Port=465,Addr=, Name=MTA’)

3. install saslauthd, make sure the below are installed :

cyrus-sasl-plain cyrus-sasl-devel cyrus-sasl-lib […]