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!
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 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)
Hello @vikaspotluri123. I am trying to add an administrator to my ghost instance. With my gmail and hotmail it works, The emails are arriving to our spam folders. Which is normal. But with a custom domain (e.g. mydomain.com) I get the following error:
Error sending email! Error sending email: Failed to send email. Reason: Can’t send mail - all recipients were rejected. Please check your email settings and resend the invitation.
My question is, why does the Ghost instance discriminates between emails?
Ghost doesn’t really modify any of your mail settings, everything is managed by an upstream library. However, based on the message, I’m guessing your issue is the email was rejected by the spam filter for some reason
I know I’m late here, but this might be useful for someone else. I think what I outline here is an elaboration of @lorinthe’s answer:
The message “all recipients were rejected” is misleading, because it can be the sender, not recipient, which is rejected. This can happen if the “from” address and sending account do not match. For example, if you’re trying to send using the SMTP account for foo@example.me but try to set the “from” address as bar@example.me, the SMTP server could reject it (after all, you wouldn’t want someone else sending emails “from” your ID!).
Ghost runs into this problem because it tries to send an email as ghost@domain.tld (in v2.x) or noreply@domain.tld (in v3.x). If you try using a different SMTP account (eg. axon@domain.tld) to send the email, then the email might get rejected. You could try either of the following:
Make a fresh SMTP account called noreply@domain.tld on the server for Ghost to use, or
Register noreply@domain.tld as an alias for the sending account you want to use.
How exactly you register the account depends on your specific setup. (I’m using YunoHost, so I just added an alias from their admin interface). Note that noreply@domain.tld seems to be the “from” address used by Ghost 3.x; if you’re using 2.x you should use ghost@domain.tld instead.
Instead of creating a new SMTP account, it might be possible to set Ghost’s default “from” address to something else. I’m not sure if that’s possible, but if so, I’d be interested to know how!