Docker Mailserver

This container aims to provide a secure and portable mail environment based on Postfix and Dovecot.

SSL is enabled per default and new TLS keys are generated when starting the container,these should be replaced with your own keys if possible.Dovecot is only listening via SSL on port 993. Postfix is configured to useopportunistic encryption as to not bounce mails from non-tls clients.In addition to common spam lists, opendmarc is used to authenticate messages whenavailable. Mozillas public suffix list is updated once per week via cron.

This is not a prime example of how you should build a docker container, but I'm to lazy to pull all the configurationsapart so that each service is running in it's own container.

CentOS is used as the base image instead of alpine so I can be sure postfix / dovecot stay on their respective versions.

Logs

All mail logs are written to /secure/maillog per default.

Backups

All the data is saved in /secure (User configuration and SSL certificates) and/vmail (Mailboxes). Backing up these directories is enough to transfer your mailserver to a new host or recover your data in the case of a hard drive failure.