# Mailgun SMTP stopped working on Docker

**URL:** <https://forum.ghost.org/t/mailgun-smtp-stopped-working-on-docker/61505>\
**Category:** Developer help\
**Created:** [January 18, 2026, 3:16pm UTC](https://forum.ghost.org/t/mailgun-smtp-stopped-working-on-docker/61505 "2026-01-18T15:16:55Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [January 18, 2026, 5:34pm UTC](https://forum.ghost.org/t/mailgun-smtp-stopped-working-on-docker/61505/2 "2026-01-18T17:34:37Z")

</div>

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:

> **[​Add credentials to config.production.json - Configuration - Ghost Developer...](https://docs.ghost.org/config#add-credentials-to-config-production-json)**
>
> For self-hosted Ghost users, a custom configuration file can be used to override Ghost’s default behaviour. This provides you with a range of options to configure your publication to suit your needs.

And here’s the API version (won’t be blocked by your host)

> [@Make onboarding emails also work via API (not only SMTP)](https://forum.ghost.org/t/make-onboarding-emails-also-work-via-api-not-only-smtp/56426/6):
>
> Seconding this update to the docs when possible. I spent 1-2 days just to discover this as Digital Ocean has now blocked sending with SMTP. The workaround with port 2525 is working but not sure for how long. My suggestion is to please mention this somewhere in the docs that it could be caused by Digital Ocean’s blocking as I have 5 separate websites running on ghost hosted by digital ocean that I now need to reconfigure. Thank you.

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.

---

_[View the full topic](https://forum.ghost.org/t/mailgun-smtp-stopped-working-on-docker/61505)._
