Log message: Signups from this email domain are currently restricted

Hi there — my Ghost instance is not sending magic links, and I’m trying to figure out what is going on. This was working relatively recently, so it’s hard to know what changed, but the full error report is posted below. It starts by saying “Signups from this email domain are currently restricted.” I have tried in a private browser from a fastmail address, and a friend of mine is trying from a Gmail address, and neither of us are getting. Everything on the Mailgun side of things seems okay.

However, running ghost config shows…nothing? Why would that be?

  • What’s your URL? fieldnoise.com
  • What version of Ghost are you using? 5.130.2

And

  • How was Ghost installed and configured? via DigitalOcean
  • What Node version, database, OS & browser are you using? Node: 20.18.0
  • What errors or information do you see in the console?
[2025-07-29 20:22:58] ERROR “POST /members/api/send-magic-link/” 400 140ms
NAME: BadRequestErrorMESSAGE: Signups from this email domain are currently restricted.
level: normal
BadRequestError: Signups from this email domain are currently restricted.at RouterController._handleSignup (/var/www/ghost/versions/5.130.2/core/server/services/members/members-api/controllers/RouterController.js:663:19)at RouterController.sendMagicLink (/var/www/ghost/versions/5.130.2/core/server/services/members/members-api/controllers/RouterController.js:627:28)at /var/www/ghost/versions/5.130.2/core/server/services/members/members-api/members-api.js:340:57at forwardErrorMw (/var/www/ghost/versions/5.130.2/core/server/services/members/members-api/members-api.js:331:19)at Layer.handle [as handle_request] (/var/www/ghost/versions/5.130.2/node_modules/express/lib/router/layer.js:95:5)at trim_prefix (/var/www/ghost/versions/5.130.2/node_modules/express/lib/router/index.js:328:13)at /var/www/ghost/versions/5.130.2/node_modules/express/lib/router/index.js:286:9at Function.process_params (/var/www/ghost/versions/5.130.2/node_modules/express/lib/router/index.js:346:12)at next (/var/www/ghost/versions/5.130.2/node_modules/express/lib/router/index.js:280:10)at jsonParser (/var/www/ghost/versions/5.130.2/node_modules/body-parser/lib/types/json.js:104:7)at Layer.handle [as handle_request] (/var/www/ghost/versions/5.130.2/node_modules/express/lib/router/layer.js:95:5)at trim_prefix (/var/www/ghost/versions/5.130.2/node_modules/express/lib/router/index.js:328:13)at /var/www/ghost/versions/5.130.2/node_modules/express/lib/router/index.js:286:9at Function.process_params (/var/www/ghost/versions/5.130.2/node_modules/express/lib/router/index.js:346:12)at next (/var/www/ghost/versions/5.130.2/node_modules/express/lib/router/index.js:280:10)at Function.handle (/var/www/ghost/versions/5.130.2/node_modules/express/lib/router/index.js:175:3)

Ghost has a blocked email domains, that can be set in config.production.json or in the admin panel. What values if any do you have there?

Also, since you’re on DO, be aware that they’re blocking most SMTP ports - try switching to 2525 for outbound email, or switch to using an api-based flow for transactional email. (I don’t think that’s your problem yet, but it’s likely to be your NEXT problem after you get Ghost to accept the request.)

1 Like

Thanks for the quick reply! First thing I tried was switching ports to 2525. That threw a new error:

NAME: EmailError
CODE: ESOCKET
MESSAGE: Failed to send email. Reason: 4048DBD1F67F0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:354:

Okay — after I thought I tried every combination of this, it turns that when switching to 2525 I also had to switch the secure flag to false. That did the trick!

1 Like

Also, @Cathy_Sarisky — thanks for referencing the API-based solution, which I searched for on the forum and found:

this post

I think that is the long term solution for anyone using DigitalOcean, as this port could be closed any minute now…

1 Like

I agree! And it’s not just DO. VPS/server providers are less and less willing to have open SMTP ports on their platform. Just another example of spammers ruining everything.