Skip to content

Instantly share code, notes, and snippets.

@mz0
Last active May 8, 2020 15:55
Show Gist options
  • Save mz0/408d869a660daaf2571e1fae93015216 to your computer and use it in GitHub Desktop.
Save mz0/408d869a660daaf2571e1fae93015216 to your computer and use it in GitHub Desktop.

consumers: https://wiki.debian.org/Debate/DefaultMTA

ssmtp - no queue
msmtp - no queue
nullmailer - has queue ?

other: https://wiki.debian.org/GmailAndExim4 issue: If you send a mail to a mailing list via a SMTP server provided by Gmail, the returned mail message from the mailing list is treated as read by the Gmail POP3 service

http://websistent.com/how-to-use-msmtp-with-gmail-yahoo-and-php-mail/ (smarthost vs satellite)

@mz0
Copy link
Author

mz0 commented Dec 5, 2016

ssmtp (tested on jessie 8.6, stretch/sid)
fix for Debian bug #661954 - ssmtp.conf is world readable
had patch since 2014.01.28
This bug was known at least since 2008
FreeBSD solution since 2007.07.27

chown nobody:mail /usr/sbin/ssmtp /etc/ssmtp/ssmtp.conf 
chown root:mail /etc/ssmtp/revaliases /etc/ssmtp
chmod 2055 /usr/sbin/ssmtp
chmod 040 /etc/ssmtp/ssmtp.conf

@mz0
Copy link
Author

mz0 commented Dec 12, 2016

https://github.com/KuJoe/Sendmail-to-SSMTP/blob/master/setup.sh
Mandrill example, additional params in ssmtp.conf

@mz0
Copy link
Author

mz0 commented Mar 3, 2018

Elastic Email - impressed me with their API: https://api.elasticemail.com/public/help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment