Sending mail not working on a newly migrated Ghost blog

Hey everyone,

I am having issues with one of the blogs I’ve recently moved from AWS to DO as it’s not sending emails (even though it is configured exactly as the other blogs on that server that do send their emails via local Postfix). The error that pops up is the following:

[2019-05-05 11:03:23] ERROR "POST /ghost/api/v2/admin/mail/test/" 500 268ms

NAME: EmailError
MESSAGE: Failed to send email.

level: normal

"Please see for instructions on configuring email."
EmailError: Failed to send email.
    at EmailError.GhostError (/var/www/
    at new EmailError (/var/www/
    at EventEmitter.<anonymous> (/var/www/
    at Object.onceWrapper (events.js:315:30)
    at emitOne (events.js:116:13)
    at EventEmitter.emit (events.js:211:7)
    at DirectMailer.<anonymous> (/var/www/
    at SMTPClient.<anonymous> (/var/www/
    at Object.onceWrapper (events.js:313:30)
    at emitNone (events.js:106:13)
    at SMTPClient.emit (events.js:208:7)
    at SMTPClient._destroy (/var/www/
    at SMTPClient._onEnd (/var/www/
    at emitNone (events.js:111:20)
    at Socket.emit (events.js:208:7)
    at endReadableNT (_stream_readable.js:1064:12)

Server config:

  • ubuntu 18.04
  • nginx 1.16.0
  • mariadb 10.1.38
  • node 8.16.0
  • postfix 3.3.0

Config file:

  "mail": {
    "transport": "Direct"

Ghost doctor doesn’t signal any error in config or other place else.

I am also getting the below error, but not sure what it’s related to:

[2019-05-05 11:03:09] ERROR

NAME: ValidationError
MESSAGE: Validation (isSlug) failed for slug

level: normal

ValidationError: Validation (isSlug) failed for slug
    at new ValidationError (/var/www/
    at each (/var/www/
    at /var/www/
    at baseForOwn (/var/www/
    at /var/www/
    at Function.forEach (/var/www/
    at Object.validate (/var/www/
    at _.each (/var/www/
    at /var/www/
    at baseForOwn (/var/www/
    at /var/www/
    at Function.forEach (/var/www/
    at validate (/var/www/
    at Object.browse (/var/www/
    at (/var/www/
    at allShared (/var/www/

Some of the changes done when migrating (that might have smth to do with this):


This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.