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

Set default From address in config #3756

Merged
merged 1 commit into from
Jul 6, 2017
Merged

Set default From address in config #3756

merged 1 commit into from
Jul 6, 2017

Conversation

akihikodaki
Copy link
Contributor

The old implementation sets default From address in mailers. It sets the address from SMTP_FROM_ADDRESS, or notifications@localhost. The behavior is occasionally undesired results.

In production environment, notifications@localhost is likely to be incorrect.
In testing environment, the email address should not be varied by a environment variable.

After appling this change,

In production environment, it will throw an exception when launching Mastodon.
In testing environment, the address will be fixed with notifications@localhost.

The old implementation sets default From address in mailers. It sets
the address from SMTP_FROM_ADDRESS, or notifications@localhost. The
behavior is occasionally undesired results.

In production environment, notifications@localhost is likely to be
incorrect.
In testing environment, the email address should not be varied by a
environment variable.

After appling this change,

In production environment, it will throw an exception when launching
Mastodon.
In testing environment, the address will be fixed with
notifications@localhost.
@akihikodaki akihikodaki added the deployment Related to runtime configuration, production setups label Jun 15, 2017
@Gargron Gargron merged commit 2083000 into mastodon:master Jul 6, 2017
@aral
Copy link

aral commented Sep 9, 2017

So this breaks upgrades on Scalingo (and probably all “serverless”/buildpack-based systems?)

In attempting to upgrade from 1.4.7 to 1.5.1 on Scalingo via git push, I’m getting: “KeyError: key not found: "SMTP_FROM_ADDRESS"“

@aral
Copy link

aral commented Sep 9, 2017

Workaround to install updates following this merge:

scalingo env-set SMTP_FROM_ADDRESS="<some email address>"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployment Related to runtime configuration, production setups
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants