-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
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
mail__from environment variable ignored or overridden #18047
Comments
(fellow Ghost user here) There are some places in the Ghost source code where Also, the "mail domain" assumes it will match the URL, which might not always been true. See here: I've started to improve this area of the code with a pull request that at least merges the But I agree that users should also be able to override the "mail domain". Besides your case of sub-domain vs top-level domain, sometimes organizations put a blog on a related domain, but what mail to go out through a relate domain. Using |
I'm actually going to close this as a duplicate of #12802 - there's a much bigger discussion going on over there |
Cool. Thanks for the pointer to main discussion.
…On Fri, Sep 15 2023 at 01:06:21 AM -07:00:00, Daniel Lockyer ***@***.***> wrote:
Closed #18047 <#18047> as not
planned.
—
Reply to this email directly, view it on GitHub
<#18047 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAHMDSR2MBVEIOFGV7AIHLX2QD73ANCNFSM6AAAAAA4SP3ZUQ>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Issue Summary
When self-hosting in docker, using the mail__from environment variable is ignored or overridden by Ghost when sending transactional (and probably newsletter) email. The system seems to automatically generate the from address using "noreply" string plus the domain string. When Ghost is self hosted on the same domain as the email server but using a subdomain, then the auto-generated email address is wrong and members cannot sign up or in.
Steps to Reproduce
UPDATE: I just added a bind mount to config.production.json to explicitly set the mail settings with the same results.
"mail": { "transport": "SMTP", "from": "[email protected]", "options": { "service:": "SMTP", "host": "mx.mydomain.com", "port": "587", "secureConnection": false, "requiresAuth": true, "auth": { "user": "[email protected]", "pass": "redacted" } } },
Ghost Version
5.62
Node.js Version
v18.17.1
How did you install Ghost?
docker, debian, lastest from docker hub
Database type
Other
Browser & OS version
any / all
Relevant log / error output
Code of Conduct
The text was updated successfully, but these errors were encountered: