Docker image with alpine distribution and packages:
- postfix
- postfix-pcre
- cyrus-sasl-login
- ca-certificates
cp -p example/02-account.example example/02-account.sh-
Update username/password in example/02-account.sh
-
Launch container
docker run -d -v $(pwd)/spool-postfix:/var/spool/postfix -v $(pwd)/example/:/docker-entrypoint.d/ --name mail mnival/alpine-postfix- By default, Postfix only accepts connections from its IP, you can also use 03-mynetworks.example who will accept connections on the IP with a mask 24. For use :
cp -p example/03-mynetworks.example example/03-mynetworks.sh- Relaunch your container
No port is published by default to avoid any risk. Depending on the configuration you set up, it may be necessary to publish ports.
- /var/spool/postfix/
Please submit all issues/suggestions/bugs via https://github.com/mnival/alpine-postfix