3 ms·
I run my mail server using docker, specifically the following images: * mailserver: https://github.com/tomav/docker-mailserver * webmail: https://github.co
by simon_acca 10y ago
I run my mail server using docker, specifically the following images:
* 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.
- nathanb 10y agoThat seems pretty cool. How long have you been doing this? For your primary email? How has it been working for you?
- simon_acca 10y agoI've had this setup for about a month on my primary email, and it is working flawlessly. Even when I had to reboot the server, I was able to bring everything back online quickly. 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).