postfix+cyrus+amavis+clamav+spamassassin+postgresql mail system
- Install postgresql, clamav, clamav-daemon, amavisd-new, postfix, cyrus-imapd, cyrus-pop3d, cyrus-admin, opendkim, opendmarc, spamassassin
- Install libsasl2-modules-sql, libdbd-pg-perl, arj, cabextract, lzop, unrar, unrar-free, zoo, lhasa, nomarch, p7zip, pyzor, razor, postfix-pgsql, postfix-pcre, postfix-policyd-spf-python, python3-authres
- Set up database schema (base + sa)
- Set up database users
- Copy and configure relay_sync
- Configure spamassassin, secrets.cf go-rwx amavis:root
- Configure amavis, 50-user go-rwx
- Add clamav to the amavis group
- Prepare TLS certificates
- Configure dkim (see https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-dkim-with-postfix-on-debian-wheezy)
- Configure policy-spf
- Configure opendmarc (see https://www.skelleton.net/2015/03/21/how-to-eliminate-spam-and-protect-your-name-with-dmarc/)
- Configure cyrus, imapd.sasl go-rwx cyrus:root
- Configure postfix
- Add standard aliases to database (root, postmaster, hostmaster, abuse, webmaster, ...)
- Add relay_sync to crontab
- cyrus-caldav