Ghost 3.0 email validation too strict. me@blah.io fails

I’d like to use the email subscription feature but it appears to be too strict to allow some common email formats… or am I “barking up the wrong tree”? The error I get from $ghost log is:

The email address I’m testing with is my real “.io” email address that I’ve been using for over a year.
Am I doing it wrong? Or is this something that can be tweaked in a future release of Ghost?


NAME: EmailError
MESSAGE: Failed to send email. Reason: Can't send mail - all recipients were rejected.

level: normal

"Please see https://ghost.org/docs/concepts/config/#mail for instructions on configuring email."
EmailError: Failed to send email. Reason: Can't send mail - all recipients were rejected.
    at EmailError.GhostError (/var/www/mydomain.com/versions/3.0.2/core/server/lib/common/errors.js:10:26)
    at new EmailError (/var/www/mydomain.com/versions/3.0.2/core/server/lib/common/errors.js:34:20)
    at createMailError (/var/www/mydomain.com/versions/3.0.2/core/server/services/mail/GhostMailer.js:50:12)
    at EventEmitter.<anonymous> (/var/www/mydomain.com/versions/3.0.2/core/server/services/mail/GhostMailer.js:116:28)
    at Object.onceWrapper (events.js:286:20)
    at EventEmitter.emit (events.js:198:13)
    at EventEmitter.emit (domain.js:448:20)
    at DirectMailer.<anonymous> (/var/www/mydomain.com/versions/3.0.2/node_modules/directmail/lib/mailer.js:185:42)
    at SMTPClient.<anonymous> (/var/www/mydomain.com/versions/3.0.2/node_modules/directmail/lib/mailer.js:277:9)
    at Object.onceWrapper (events.js:286:20)
    at SMTPClient.emit (events.js:198:13)
    at SMTPClient.EventEmitter.emit (domain.js:448:20)
    at SMTPClient._onError (/var/www/mydomain.com/versions/3.0.2/node_modules/simplesmtp/lib/client.js:373:10)
    at SMTPClient._actionRCPT (/var/www/mydomain.com/versions/3.0.2/node_modules/simplesmtp/lib/client.js:1054:18)
    at SMTPClient._onData (/var/www/mydomain.com/versions/3.0.2/node_modules/simplesmtp/lib/client.js:354:29)
    at Socket.emit (events.js:198:13)
    at Socket.EventEmitter.emit (domain.js:448:20)
    at addChunk (_stream_readable.js:287:12)
    at readableAddChunk (_stream_readable.js:268:11)
    at Socket.Readable.push (_stream_readable.js:223:10)
    at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)

[2019-11-08 15:22:49] INFO "POST /ghost/api/canary/members/send-magic-link/" 500 348ms

Thanks in advance… and in all other respects, thanks for such an awesome platform!

It seems like your email configuration might not be correct. What email service are you using to send email?

My config.production.json contains:

  "mail": {
    "transport": "Direct"
  },

It works fine when subscribing/sending to my Gmail email account, and when using the email test from the Ghost admin area.

I would try using a service like mailgun (they have a free tier for 10,000 monthly emails) and see if that fixes the problem. A direct mail could be the cause of this

Thanks @vikaspotluri123 :+1: Now that the DNS settings for Mailgun have propagated, all appears to be working as it should. I guess that I’ll add that to my setup scripts (set up a Mailgun domain and grab the DNS/MX settings etc)

1 Like