/docker-mail

Docker mail server container

Primary LanguageDockerfileMIT LicenseMIT

robbertkl/mail

Docker mail server container.

Software:

  • Postfix as MTA (SMTP)
  • Dovecot as LDA (IMAP) + sieve
  • OpenDKIM for DKIM checking / signing
  • OpenDMARC for DMARC checking
  • postfix-policyd-spf-python for SPF checking

Features / config:

  • No database (everything is file based)
  • User authentication through password file
  • Local storage in persistent volume
  • Multi-domain supported (using separate DKIM keys)
  • Delivery through dovecot-lda (LMTP prevents X-Original-To header)

Usage

Run it like this:

docker run -d -h <mail.domain.org> -v <path-to-ssl>:/private/ssl -p 25:25 -p 143:143 -p 587:587 -p 993:993 robbertkl/mail

See robbertkl/docker-base#ssl for info on SSL file naming. A cert+ca bundle file for dovecot is created automatically.

Authors

License

This repo is published under the MIT License.