Hi, I've followed handbook instructions in chapter 28.9 to enable authentication - and it works as expected. Using examples found with Google, I've tried enabling STARTTLS. But I've obviously missed a configuration step somewhere.
I expected
would enable the options in the resulting *.cf file.
But, apparently it didn't. In /etc/mail/freebsd.cf the options are similarly commented out. Does /etc/mail/freebsd.mc require editing, or am I barking up the wrong tree?
Code:
1061 root@myhost:/etc/mail # telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 myhost.my.net ESMTP Sendmail 8.14.7/8.14.5; Tue, 21 Jul 2015 14:58:09 -0700 (PDT)
EHLO localhost
250-myhost.my.net Hello root@localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH DIGEST-MD5 CRAM-MD5 LOGIN PLAIN
250-DELIVERBY
250 HELP
Code:
# tail -13 myhost.mc
dnl set SASL options
TRUST_AUTH_MECH(`GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
define(`confAUTH_MECHANISMS', `GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
dnl TLS options
define('CERT_DIR', '/etc/mail/certs')dnl
define('confCACERT_PATH', 'CERT_DIR')dnl
define('confCACERT', 'CERT_DIR/cacert.pem')dnl
define('confSERVER_CERT', 'CERT_DIR/smtp_cert.pem')dnl
define('confSERVER_KEY', 'CERT_DIR/smtp_key.pem')dnl
define('confCLIENT_CERT', 'CERT_DIR/smtp_cert.pem')dnl
define('confCLIENT_KEY', 'CERT_DIR/smtp_key.pem')dnl
I expected
Code:
# cd /etc/mail; make install restart
Code:
# CA directory
#O CACertPath
# CA file
#O CACertFile
# Server Cert
#O ServerCertFile
# Server private key
#O ServerKeyFile
# Client Cert
#O ClientCertFile
# Client private key
#O ClientKeyFile
# File containing certificate revocation lists
#O CRLFile
# DHParameters (only required if DSA/DH is used)
#O DHParameters
# Random data source (required for systems without /dev/urandom under OpenSSL)
#O RandFile
But, apparently it didn't. In /etc/mail/freebsd.cf the options are similarly commented out. Does /etc/mail/freebsd.mc require editing, or am I barking up the wrong tree?