I keep getting an error Missing mail.from config

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

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

How you fixed it? Can you tell me the fixes?

Why is this not part of the example config? It already has six other mail__ env vars?

I don’t know. I am not part of the Ghost team :smiley:

The code is public though, so if you feel strongly about it, you can always submit a PR to include that.