Sendmail-SMTP-AUTH-TLS-Howto

Sendmail-SMTP-AUTH-TLS-Howto

Postby stephen » Sun Jan 11, 2009 6:29 am

howto HOWTO Forums

Sendmail-SMTP-AUTH-TLS-Howto

http://www.projektfarm.com/en/support/howto/sendmail_smtp_auth_tls/sendmail_smtp_auth_tls.html

edit /etc/mail/sendmail.mc
Code: Select all
define(`confAUTH_MECHANISMS', `LOGIN PLAIN DIGEST-MD5 CRAM-MD5')dnl
TRUST_AUTH_MECH(`LOGIN PLAIN DIGEST-MD5 CRAM-MD5')dnl

Code: Select all
define(`confCACERT_PATH', `/etc/pki/tls/certs')dnl
define(`confCACERT', `/etc/pki/tls/certs/cacert.pem')dnl
define(`confSERVER_CERT', `/etc/pki/tls//certs/sendmail.pem')dnl
define(`confSERVER_KEY', `/etc/pki/tls/certs/sendmail.pem')dnl
define(`confCLIENT_CERT', `/etc/pki/tls/certs/sendmail.pem')dnl
define(`confCLIENT_KEY', `/etc/pki/tls/certs/sendmail.pem')dnl
DAEMON_OPTIONS(`Family=inet, Port=465, Name=MTA-SSL, M=s')dnl



Test your Configuration

To verify that your sendmail was compiled with the right options type

Code: Select all
/usr/sbin/sendmail -d0.1 -bv root
To see if SMTP-AUTH and TLS work properly now run the following command:

Code: Select all
telnet localhost 25


After you have established the connection to your postfix mail server type

Code: Select all
ehlo localhost


If you see the lines

250-STARTTLS

and

250-AUTH

everything is fine.
stephen
 
Posts: 507
Joined: Thu Feb 09, 2006 9:37 am
Location: Brisbane

Return to Linux Server Configuration Notes

Who is online

Users browsing this forum: No registered users and 2 guests

cron