run postfix with smtp authentication (sasldb) in a docker container. TLS and OpenDKIM support are optional.
$ sudo docker pull catatnight/postfix
$ sudo docker run -p 25:25 \
-e maildomain=mail.example.com -e smtp_user=user:pwd \
--name postfix -d catatnight/postfix
# Set multiple user credentials: -e smtp_user=user1:pwd1,user2:pwd2,...,userN:pwdN
.private in /path/to/domainkeys$ sudo 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 catatnight/postfix
.key and .crt to /path/to/certs$ sudo 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 catatnight/postfix
Content type
Image
Digest
sha256:4350547c1…
Size
136.9 MB
Last updated
almost 11 years ago
docker pull luhe/postfix