by simon_acca · 10y ago · 0 comments
* mailserver: https://github.com/tomav/docker-mailserver
* webmail: https://github.com/jprjr/docker-rainloop
Combined in docker-compose: version: '2'
services:
mail:
image: tvial/docker-mailserver:latest
hostname: your_hostname
domainname: your_domain
environment:
SSL_TYPE: letsencrypt
ports:
- "25:25"
- "587:587"
- "993:993"
volumes:
- ./data/mail:/var/mail
- ./data/config/:/tmp/docker-mailserver/
- /etc/letsencrypt/:/etc/letsencrypt
rainloop:
image: jprjr/rainloop
environment:
NGINX: 1
ports:
- 80:80
volumes:
- "./data/rainloop:/var/lib/rainloop/data"
The docker-compose.yml and postfix-accounts.cf files are the only configs you need for a basic setup.See the projects on github, especially docker-mailserver for further info on complete features of this setup.
I am keeping a lower priority MX dns entry pointed to an independent provider as a failover, but this is standard practice, I believe.
What I really like about the docker-mailserver image is that it has no database and that it is designed for simple updates (that is, docker pull && docker-compose restart).
Rainloop is also new to me (I previously used roundcube) and again I am very positively surprised: it works over imaps, so multiple accounts can be combined under a single login, it supports 2FA, manages both plaintext and html, manages your contacts, it supports openPGP (still in beta, I've not tried it yet).