Hi,
I changed to “Direct”, and i tested to do subscribe, It takes long time with rolling circle on continue and later getting same error “Please enter a valid email address!”
After Looking at logs : Got strange errors for your Ref.
[2020-09-01 18:31:23] INFO “POST /members/api/send-magic-link/” 200 60039ms
[2020-09-01 18:31:23] INFO “POST /members/api/send-magic-link/” 200 60041ms
[2020-09-01 18:32:33] ERROR
NAME: EmailError
MESSAGE: Failed to send email. Reason: connect ETIMEDOUT 74.125.24.26:465.
level: normal
“Please see Configuration - Adapt your publication to suit your needs for instructions on configuring email.”
EmailError: Failed to send email. Reason: connect ETIMEDOUT 74.125.24.26:465.
at EmailError.GhostError (/var/www/blog1/versions/3.31.2/node_modules/@tryghost/errors/lib/errors.js:10:26)
at new EmailError (/var/www/blog1/versions/3.31.2/node_modules/@tryghost/errors/lib/errors.js:34:20)
at createMailError (/var/www/blog1/versions/3.31.2/core/server/services/mail/GhostMailer.js:52:12)
at EventEmitter. (/var/www/blog1/versions/3.31.2/core/server/services/mail/GhostMailer.js:119:28)
at Object.onceWrapper (events.js:286:20)
at EventEmitter.emit (events.js:198:13)
at EventEmitter.emit (domain.js:448:20)
at DirectMailer. (/var/www/blog1/versions/3.31.2/node_modules/directmail/lib/mailer.js:185:42)
at SMTPClient. (/var/www/blog1/versions/3.31.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/blog1/versions/3.31.2/node_modules/simplesmtp/lib/client.js:373:10)
at TLSSocket.emit (events.js:198:13)
at TLSSocket.EventEmitter.emit (domain.js:448:20)
at emitErrorNT (internal/streams/destroy.js:91:8)
[2020-09-01 18:33:36] INFO “GET /content/images/2020/06/blog.gif.gif” 200 20ms
[2020-09-01 18:34:44] ERROR
NAME: EmailError
MESSAGE: Failed to send email. Reason: connect ETIMEDOUT 74.125.24.26:465.
level: normal
“Please see Configuration - Adapt your publication to suit your needs for instructions on configuring email.”
EmailError: Failed to send email. Reason: connect ETIMEDOUT 74.125.24.26:465.
at EmailError.GhostError (/var/www/blog1/versions/3.31.2/node_modules/@tryghost/errors/lib/errors.js:10:26)
at new EmailError (/var/www/blog1/versions/3.31.2/node_modules/@tryghost/errors/lib/errors.js:34:20)
at createMailError (/var/www/blog1/versions/3.31.2/core/server/services/mail/GhostMailer.js:52:12)
at EventEmitter. (/var/www/blog1/versions/3.31.2/core/server/services/mail/GhostMailer.js:119:28)
at Object.onceWrapper (events.js:286:20)
at EventEmitter.emit (events.js:198:13)
at EventEmitter.emit (domain.js:448:20)
at DirectMailer. (/var/www/blog1/versions/3.31.2/node_modules/directmail/lib/mailer.js:185:42)
at SMTPClient. (/var/www/blog1/versions/3.31.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/blog1/versions/3.31.2/node_modules/simplesmtp/lib/client.js:373:10)
at TLSSocket.emit (events.js:198:13)
at TLSSocket.EventEmitter.emit (domain.js:448:20)
at emitErrorNT (internal/streams/destroy.js:91:8)
+++++++++++++++++++++++++++++++++++++++++++++
Q : Strange IP: 74.125.24.26, why its connecting to google ? where as my email host ip is different. Note : This is only happening if change to “Direct” in transport properties.
Here is my config.production.json file
“mail”: {
“from”: “Blog Mailer dmart@mydomain.com”,
“transport”: “Direct”,
“options”: {
“service”: “email”,
“host”: “mail.mydomain.com”,
“port”: 465,
“secureConnection”: true,
“ignoreTLS”: true,
“auth”: {
“user”: “dmart@mydomain.com”,
“pass”: “xxxxx”
}