postfix server with SMTP authentication (sasldb) and optional TLS and OpenDKIM support.
2.2K
Build image
$ sudo docker pull levigroker/postfix
Create postfix container with smtp authentication
$ docker run -p 25:25 \
-e maildomain=mail.example.com -e smtp_user=user:pwd \
--name postfix -d levigroker/postfix
# Set multiple user credentials: -e smtp_user=user1:pwd1,user2:pwd2,...,userN:pwdN
Enable OpenDKIM: save your domain key .private in /path/to/domainkeys
$ docker run -p 25:25 \
-e maildomain=mail.example.com -e smtp_user=user:pwd \
-v /path/to/domainkeys:/etc/opendkim/domainkeys \
--name postfix -d levigroker/postfix
Enable TLS(587): save your SSL certificates .key and .crt to /path/to/certs
$ docker run -p 587:587 \
-e maildomain=mail.example.com -e smtp_user=user:pwd \
-v /path/to/certs:/etc/postfix/certs \
--name postfix -d levigroker/postfix
[email protected], password) in SMTP clientA professional iOS engineer by day, my name is Levi Brown. Authoring a blog grokin.gs, I am reachable via:
Twitter @levigroker
Email [email protected]
Your constructive comments and feedback are always welcome.
Content type
Image
Digest
Size
96.7 MB
Last updated
almost 11 years ago
docker pull levigroker/postfix