Skip to content
New issue

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

[feature request] support relayhost #33

Closed
eleith opened this issue Nov 14, 2020 · 0 comments · Fixed by #50
Closed

[feature request] support relayhost #33

eleith opened this issue Nov 14, 2020 · 0 comments · Fixed by #50

Comments

@eleith
Copy link
Contributor

eleith commented Nov 14, 2020

Currently

postfix relayhost and a user/pass need to be manually added to enable support of using an external smtp relay for outgoing emails (useful, since port 25 is blocked on some cloud providers)

Request

instead of manually adding, these could be configured by environmental variables

for example, add the following environmental variables

POSTFIX_RELAYHOST
POSTFIX_RELAYUSER
POSTFIX_RELAYPASSWORD

if those are set, then in the postfix shell scripts

cat the following into /etc/postfix/main.cf

relayhost=${POSTFIX_RELAYHOST}

then cat the following into /etc/postfix/sasl_password

${POSTFIX_RELAYHOST} ${POSTFIX_RELAYUSER}:${POSTFIX_RELAYPASSWORD}

then run the following command

postmap /etc/postfix/sasl_passwd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants