This is an old revision of the document!
E-Mail server hosting
Everything in the following page is directly taken (and adjusted to my liking) from The Gentoo Virtual Mail Server guide which is a deep and very detailed read on the topic. I will stray a little bit from that guide.
Architecture
WIP
I will show you how to install and interconnect:
- Postfix, the MTA (Mail Transfer Agent)
- Dovecot, the IMAP server
- NGINX + PHP-FPM for web access (admin console + webmail)
- PostfixAdmin, the email configuration WEB gui
- Roundcube
- OpenDKIM
- OpenDMARC
- Spamassassin
Installation: servers
Install Postfix and Dovecot
USE flags:
echo "*/* maildir dovecot sasl" >> /etc/portage/package.use/mailserver echo "net-mail/dovecot managesieve sqlite lz4" >> /etc/portage/package.use/mailserver echo "mail-mta/postfix dovecot-sasl sqlite -sasl" >> /etc/portage/package.use/mailserver
Emerge the servers:
emerge -vp postfix dovecot
Installation: external packages
postfixadmin and roundcube will be installed manually and not via Gentoo portage, to avoid upgrade issues.