I’d start by asking where you’re hosting. Hosting providers are notorious for blocking outbound SMTP as an anti-spam strategy.
Wait… hang on. You appear to have a mixture of the API settings and the SMTP settings.
Mailgun credential setting (SMTP route, susceptible to hosting provider blocks) are here:
And here’s the API version (won’t be blocked by your host)
I’d pick one method (preferably API-based), confirm values for that method, strip out the unneeded bits, and see if that resolves it. If it doesn’t, check your Ghost logs and your Mailgun logs.
I have .env variables set for SMTP only and have my Mailgun API configured via Ghost Settings after booting the container.
I believe this is the same thing @Cathy_Sarisky is suggesting.
With docker, you don’t touch the configuration json yourself at all.
Sorry Satonotdead - I could have been clearer. I was linking config.json so that you could see the values needed, with translation for docker, not saying you should switch.
So what specifically do you see in the ghost log, and in mailgun’s logs?