After updating sSMTP to version 2.61 I cannot send mail via gmail

This has been resolved by adding the following to my ssmtp.conf file

TLS_CA_File=/etc/pki/tls/certs/ca-bundle.crt

Found information from HERE and HERE


FYI -- For Ubuntu the .crt file is in a different place and should read:

TLS_CA-File=/etc/ssl/certs/ca-certificates.crt

Adding this enabled me to connect to my SMTP server via STARTTLS on port 587 with the settings:

mailhub=smtp.{myserver}.com:587
AuthUser={username}    
AuthPass={password}
UseSTARTTLS=YES 
UseTLS=NO
TLS_CA_File=/etc/ssl/certs/ca-certificates.crt

My mail server is configured to use STARTTLS and not SSL or TLS.

If I set UseTLS=YES, it fails. It has to be exclusively UseSTARTTLS=YES, not both. I don't know if other mail servers can do both at the same time, but mine does not.

Tags:

Ssmtp