Simple mail server with Postfix and Dovecot in docker, the server uses MySQL to manage all your email domains and users.
- Docker - to run the application
- MySQL - to manage the email domains and users, you can create db by run the DBinit.sql file
sh -c ./build.sh
- Pull the image
docker pull 94love1/mailserver
- Create envionment file
cp .env.template .env
- Set your configuration
- save your SSL certificates
.key
and.crt
into/path/to/certs
dir - save your DKIM domain key file
mail.private
into/path/to/key
dir - set yourt environment vars
- save your SSL certificates
- Docker run
docker run -d \ --name mailserver \ --env-file .env \ -p 25:25 \ -p 465:465 \ -p 993:993 \ -p 995:995 \ -v /path/to/certs:/etc/ssl/mail \ -v /path/to/key/mail.private:/var/db/dkim/mail.private \ -v mailserver-mail:/var/mail \ 94love1/mailserver
- Linux邮件服务器搭建攻略(一文吃透Postfix+Dovecot+MySQL)
- Postfix + Dovecot + MySQL 搭建邮件服务器
- Postfix SASL Howto
- Postfix TLS Support
- Postfix before-queue Milter support
- OpenDKIM README
- catatnight/docker-postfix
- juanluisbaptiste/docker-postfix
- Codegyre/DockerPostfixDovecot
- bokysan/docker-postfix
- SPF Policy Daemon for Postfix (policyd-spf-fs) README