Several months ago when the hosting provider for my Web pages and email advised transitioning to SSL/TLS, I found
msmtp to be easy to configure. Even nicer is that the rc file resides in my home directory as .msmtprc. As I use Mutt, this works well.
Code:
# msmtp user configuration file
# A system wide configuration file is optional.
# If it exists, it usually defines a default account.
# This allows msmtp to be used like /usr/sbin/sendmail.
account default
from user@mailhost.com
domain mailhost.com
# The SMTP smarthost.
host mail.mailhost.com
port 465
auth login
user user@mailhost.com
password BigSecret
# Use TLS.
tls on
tls_starttls off
tls_trust_file /etc/ssl/certs/ca-certificates.crt
Whether this will work for Gmail or Yahoo, I don't know.
I found that msmtp honors /etc/aliases for local delivery of daemon mail and such.
Configuring Mutt is quite easy:
Code:
set sendmail="/usr/bin/msmtp"