Fremantle
I've switched to msmtp from ssmtp. It's actually maintained; that seems good. With some help, I've got a super simple setup to get it working with Gmail:
In /etc/msmtprc:
defaults
tls on
tls_starttls on
tls_trust_file /etc/ssl/certs/ca-certificates.crt
account default
host smtp.gmail.com
port 587
auth on
user serveraccount@gmail.com
password foobar123
from serveraccount@gmail.com
aliases /etc/aliasesAnd /etc/aliases (with my own email address):
default: admin@example.orgSet it up as the default sendmail:
sudo ln -s /usr/bin/msmtp /usr/sbin/sendmailAnd lastly, test it with something like echo 'test'|sudo sendmail -d -t www-data