I setup ghost using docker and am confused on why I never got to set mail from in the .env. I keep getting the error
WARN Missing mail.from config, falling back to a generated email address. Please update your config file and set a valid from address
How am I supposed to solve this? I need mail to be sent from the authentication username email
jannis
August 18, 2025, 6:21am
2
For a Docker installation, you can set mail__from
as an environment variable:
Here’s more on the mail configuration:
All configurations that are nested in objects can be used with __
instead of the object nesting in Docker.
E.g. mail.from
becomes mail__from
.
Yeah I tried that saw it from someone else’s post and it didn’t work for me it kept wanting to send from noreply@ instead of notifications@. Fixed it by just giving the email user the ability to send from any email at the domain
Sam33
August 19, 2025, 8:05pm
4
How you fixed it? Can you tell me the fixes?
AdamF
September 20, 2025, 4:21am
5
Why is this not part of the example config? It already has six other mail__ env vars?
jannis
September 20, 2025, 8:16am
6
I don’t know. I am not part of the Ghost team
The code is public though, so if you feel strongly about it, you can always submit a PR to include that.