Builds a Docker mail relay server image using Postfix provisioned using Ansible.
1.7K
Builds a Docker mail relay server image using Postfix provisioned using Ansible.
Based on Alpine Linux.
docker run -d -p 25:25 -e POSTFIX_REWRITE_DOMAIN=example.com \
-e POSTFIX_RELAYHOST=smtp.example.org \
-e POSTFIX_MYNETWORKS="127.0.0.0/8 192.168.0.0/16 172.16.0.0/12 10.0.0.0/8" \
mrlesmithjr/postfix:alpine
POSTFIX_RELAYHOST - Define a relay host if required
POSTFIX_REWRITE_DOMAIN - Define your rewrite domain if required
POSTFIX_MYNETWORKS=127.0.0.0/8 - Networks to allow relaying from
It is also possible to use this image as a mail server not functioning as a mail relay server as well.
BSD
Larry Smith Jr.
Content type
Image
Digest
Size
132.9 MB
Last updated
about 10 years ago
docker pull mrlesmithjr/postfix