Postfix SMTP relay

For home servers I funnel all emails through a single Postfix SMTP relay via a Gmail account. (On Debian 9 you need to install libsasl2-modules first.)   Create /etc/postfix/sasl_passwd file with following content (replace the obvious variables): [smtp.gmail.com]:587 $USER@gmail.com:$PASS   Then generate Postfix map file. This will create /etc/postfix/sasl_passwd.db file. …..