DISCONTINUED: Switched to a mail hoster as I had not enough time to keep everything running smoothly and secure. (Switched to mailbox.org)
.
Tested for Ubuntu 16.04
Requires MySQL Server installed
Installing Dovecot (MDA) and Postfix (MTA) connected to a MySQL server.
apt-get --purge remove sendmail sendmail-bin sendmail-base sendmail-cf sendmail-doc fetchmail
useradd vmail
chown -R vmail:vmail /var/vmail
chmod -R 770 /var/vmail/
apt-get install dovecot-core dovecot-imapd dovecot-mysql dovecot-lmtpd dovecot-sieve dovecot-managesieved
doveadm pw -s SHA512-CRYPT
apt-get install postfix postfix-mysql
/etc/postfix/virtual-mysql-aliases.cf
/etc/postfix/virtual-mysql-domains.cf
/etc/postfix/virtual-mysql-maps.cf
/etc/postfix/main.cf
/etc/postfix/master.cf
apt-get install perl libmail-imapclient-perl libfile-copy-recursive-perl libio-tee-perl libunicode-string-perl
./imapsync --host1 mail.serverOld.de --user1 user@serverOld.de --password1 'password' --host2 mail.serverNew.de --user2 mail@serverNew.de --password2 'password' --tls1 --tls2
ssh -L 8080:localhost:11334 benutzer@mail.mysystems.tld -N
There are several manual whitelists I manage, whenever my logs told me that there was a mail rejected I was expecting...
/etc/postfix/whitelist_unknown_helo_hostname
450 4.7.25 Client host rejected: cannot find your hostname
/etc/postfix/without_ptr
/etc/rspamd/local.d/greylist.conf
whitelisted_ip = [
"$LOCAL_CONFDIR/local.d/greylist-whitelist-ips.inc",
];
/etc/rspamd/local.d/greylist-whitelist-ips.inc
is a list of ips seperated by new lines/etc/rspamd/local.d/greylist-whitelist-domains.inc
is a list of domains/subdomains seperated by new lines/etc/rspamd/local.d/maps.d/spf_dkim_whitelist.inc.local