Skip to content

Enable SMTP relay if configured via environment variables. - #2258

Open
mmeidlinger wants to merge 1 commit into
mail-in-a-box:mainfrom
mmeidlinger:feature-smtp-relay
Open

Enable SMTP relay if configured via environment variables.#2258
mmeidlinger wants to merge 1 commit into
mail-in-a-box:mainfrom
mmeidlinger:feature-smtp-relay

Conversation

@mmeidlinger

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

@JoshData Any feedback on this?

Comment thread setup/mail-postfix.sh
"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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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