0x3333 / dovecot-docker-image

Dovecot MDA Docker Image

Home Page:https://dovecot.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dovecot Docker Image

Supported tags and respective Dockerfile links

What is Dovecot?

Dovecot is an open-source IMAP and POP3 server for Linux/UNIX-like systems, written primarily with security in mind. Timo Sirainen originated Dovecot and first released it in July 2002. Dovecot developers primarily aim to produce a lightweight, fast and easy-to-set-up open-source mailserver.

Dovecot is an excellent choice for both small and large installations. It's fast, simple to set up, requires no special administration and it uses very little memory.

dovecot.org

Dovecot Logo

How to use this image

To run Dovecot with default configuration simply do:

docker run -d -p 143:143 0x3333/dovecot

To see default configuration just run:

docker run --rm 0x3333/dovecot doveconf

To reconfigure Dovecot add/replace drop-in files in /etc/dovecot/conf.d/ directory inside container, or just specify your own /etc/dovecot/dovecot.conf file:

docker run -d -p 143:143 -v /my/dovecot.cnf:/etc/dovecot/dovecot.conf 0x3333/dovecot

Image versions

X

Latest version of X Dovecot major version.

X.Y

Latest version of X.Y Dovecot minor version.

X.Y.Z

Concrete X.Y.Z version of Dovecot with latest updates applied.

X.Y.Z.P

Concrete X.Y.Z version of Dovecot with P update applied.

alpine

This image is based on the popular Alpine Linux project, available in the alpine official image. Alpine Linux is much smaller than most distribution base images (~5MB), and thus leads to much slimmer images in general.

This variant is highly recommended when final image size being as small as possible is desired. The main caveat to note is that it does use musl libc instead of glibc and friends, so certain software might run into issues depending on the depth of their libc requirements. However, most software doesn't have an issue with this, so this variant is usually a very safe choice. See this Hacker News comment thread for more discussion of the issues that might arise and some pro/con comparisons of using Alpine-based images.

0x3333 Fork Changes

This fork has been created to a specific purpose, email archiving. It has 2 users to the same mailbox, one that is rw and another one that is readonly. The rw one will be appended with the domain @rw and will be given a default password stored on /var/mail/rw-password file(This user is used to store emails in the mailbox). There is ACLs inplace that will manage this rw/ro situation. The readonly account is to be used to search the email archive.

Changes:

  • Updated Dovecot
  • Updated Alpine
  • Added Solr support
  • Configured mailbox to be compressed by LZ4
  • Removed support for auth-passwdfile
  • Fixed empty lines on generated Dockerfile
  • Disabled SSL by default(Still hardening)
  • Added 2 links to /etc/dovecot/, users and acls, makes it easy to use a volume on the container. See note 1.
  • Disabled PAM authentication
  • Enabled IMAP
  • Added configuration for local passwd file authentication only
  • Added 2 scripts to manage users(doveadduser and dovedeluser)
  • Enabled plaintext authentication on no NON-SECURE connection. See note 2.
  • Added master user support with RW ACL

License

Dovecot itself is licensed under LGPLv2.1 and MIT licenses (see details).

Dovecot Docker image is licensed under MIT license.

Issues

We can't notice comments in the DockerHub so don't use them for reporting issue or asking question.

If you have any problems with or questions about this image, please contact us through a GitHub issue.

Notes

  1. Create 2 files inside the volume mounted on /var/mail, named dovecot-users and dovecot-acls, they will be linked to /etc/dovecot/users and /etc/dovecot/acls. No need to mount these files separately.
  2. This implementation TLS/SSL has been disable, as this application is running inside a private network, without external connection. Plaintext authentication has been enabled.

About

Dovecot MDA Docker Image

https://dovecot.org

License:MIT License


Languages

Language:PHP 35.6%Language:Makefile 24.5%Language:Dockerfile 22.1%Language:Shell 17.8%