This is a simple Docker containerized mail server that runs Dovecot, Postfix and Roundcube. Advanced security such as SMTP authentication or TLS is left unconfigured. One use case might be for developing software which requires emailing users. Simply build and run the container with your choice of APP_DOMAIN
environment variable (which sets the recipient email domain) then follow the prompts. To send an email use the full domain such as [email protected]
. Finally, configure your app (in development mode) with an SMTP domain set to http://localhost/roundcubemail
or host.docker.internal
.
docker build -t fedora:mail .
docker run --name mailserver -e APP_DOMAIN=chemlab.edu --rm -it -p 80:80 -p 25:25 -p 143:143 -p 110:110 fedora:mail
https://github.com/Codegyre/DockerPostfixDovecot/blob/master/Dockerfile
- Production-ready email server
https://github.com/docker-mailserver/docker-mailserver