README.md

Table of Contents

Introduction

Dockerfile to build a container image with qmail, vpopmail, ezmlm, qmailadmin and dovecot

This container will run supervisord and start up

qmail-send and a qmail tcp server (for smtp)

nginx for qmailadmin

dovecot for imap and pop3

Take note: qmail (port 25) should NEVER be open to the public internet, it’s outdated and this setup won’t protect against spam.
I recommend using postfix and redirect mails for qmail-based domains to this server.

You should now have the qmailadmin application up and ready for testing. If you want to use this image in production the please read on.

Configuration

Data Store

if you don’t want to lose your mail when the docker container is stopped/deleted. To avoid losing any data, you should mount a volume at,

/home/vpopmail/domains

/var/qmail/control

/var/qmail/users

Maintenance

Shell Access

For debugging and maintenance purposes you may want access the containers shell. If you are using docker version 1.3.0 or higher you can access a running containers shell using docker exec command.

docker exec -it qmail bash

If you are using an older version of docker, you can use the nsenter linux tool (part of the util-linux package) to access the container shell.

Some linux distros (e.g. ubuntu) use older versions of the util-linux which do not include the nsenter tool. To get around this @jpetazzo has created a nice docker image that allows you to install the nsenter utility and a helper script named docker-enter on these distros.