Msmtp

(Created page with "{{post | date = {{subst:CURRENTYEAR}}-{{subst:CURRENTMONTH}}-{{subst:CURRENTDAY2}} {{subst:CURRENTTIME}} +0000 | location = Fremantle | timezone = +8 | catego...")
 
(No difference)

Latest revision as of 10:05, 12 February 2020

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/aliases

And /etc/aliases (with my own email address):

default: admin@example.org

Set it up as the default sendmail:

sudo ln -s /usr/bin/msmtp /usr/sbin/sendmail

And lastly, test it with something like echo 'test'|sudo sendmail -d -t www-data

Retrieved from ‘https://samwilson.id.au/index.php?title=Msmtp&oldid=3073