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

Enable SMTP relay if configured via environment variables. #2258

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mmeidlinger
Copy link
Contributor

Enables SMTP relaying through an external SMTP server by setting corresponding environment variables prior to running the installer. This is useful to workaround SMTP sending restrictions and IP address reputability issues often faced on hosting platforms and cloud providers.

@mmeidlinger
Copy link
Contributor Author

@JoshData Any feedback on this?

"smtp_sasl_security_options = noanonymous" \
"smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd" \
"smtp_use_tls = yes" \
"smtp_tls_security_level = encrypt" \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This changes the value that we set elsewhere.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have tested this and did not see any impact on the overall behaviour of my box other than the relaying.

Though happy to scope it down. Can you elaborate what specifically you see is conflicting?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The purpose of relayhost is to send all mail via the relay, so the settings should match the relay. It doesn´t matter anymore how we set them elsewhere. However, if we don´t want to use the relay anymore, make sure the settings are restored to their original settings.

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

Successfully merging this pull request may close these issues.

3 participants