We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stolen from wader/postfix-relay, I propose to add the following line to your entrypoint.sh:
for e in ${!POSTFIX_*} ; do postconf -e "${e:8}=${!e}" ; done
This allows for setting up postfix in a Docker swarm / compose, without having to mount a whole configfile. Usage:
mail_relay: image: zixia/simple-mail-forwarder:1.1 networks: - traefik-public - default deploy: labels: - traefik.enable=true - traefik.docker.network=traefik-public - traefik.constraint-label=traefik-public - traefik.tcp.routers.mail_relay.rule=HostSNI(`*`) - traefik.tcp.routers.mail_relay.entrypoints=smtp - traefik.tcp.routers.mail_relay.service=mail_relay - traefik.tcp.services.mail_relay.loadbalancer.server.port=25 environment: - SMF_DOMAIN=domain1.com - | SMF_CONFIG= [email protected]:[email protected]; [email protected]:[email protected]; - POSTFIX_myhostname=smtp.domain1.com - POSTFIX_relay_domains="domain1.com domain2.com" - POSTFIX_smtpd_recipient_restrictions=permit_mynetworks, permit_sasl_authenticated
(note the last three lines)
The text was updated successfully, but these errors were encountered:
Please feel free to create a PR to implement it, and do not forget to add the related docs in README and unit tests as well.
Sorry, something went wrong.
@huan This issue can be closed, #92 implemented this feature.
@tamaro-skaljic @knipknap @dgraziotin thank your very much for the efforts to enhance SMF!
No branches or pull requests
Stolen from wader/postfix-relay, I propose to add the following line to your entrypoint.sh:
This allows for setting up postfix in a Docker swarm / compose, without having to mount a whole configfile. Usage:
(note the last three lines)
The text was updated successfully, but these errors were encountered: