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): []:587 [email protected]:$PASS   Then generate Postfix map file. This will create /etc/postfix/sasl_passwd.db file. …..

Transfer Let’s Encrypt certificates to new server

It’s very easy to move Let’s Encrypt SSL certificates to new server. If you don’t know who Let’s Encrypt certificate authority is… read up here. All you need to do install Let’s Encrypt on new serer first, then transfer the following directories to same location on new server. /etc/letsencrypt/archive/$SITE /etc/letsencrypt/live/$SITE …..

Graph MySQL in Munin

Munin by default probably doesn’t graph MySQL data. It might if you installed Debian’s default MySQL server. Since I’m using MySQL’s repo and installed version 5.7 on my server… Munin doesn’t detect on install and doesn’t monitor my MySQL server. The default setting reading /etc/mysql/debian.cnf file using MySQL user “debian-sys-maint” …..