I installed ghost on a droplet on Digital Ocean. I install it directly from the marketplace. I bought a custom domain from Namecheap and also an email. I got the domain working. But when I setup my email. The email is being sent from noreply@atharv.vadehra.me according to error logs. I have an alias noreply@vadehra.me but the config file is not reading the from attribute. in the JSON file so it is passing through the default( noreply@atharv.vadehra.me )
Config File:
{
"mail": {
"from": "atharv@vadehra.me",
"transport": "SMTP",
"options": {
"host": "mail.privateemail.com",
"port": 465,
"secure": true,
"auth": {
"user": "atharv@vadehra.me",
"pass": "******************"
}
}
}
}
Error Log:
“Error: Can’t send mail - all recipients were rejected: 553 5.7.1 : Sender address rejected: not owned by user atharv@vadehra’.'me\n at createMailError (/var/www/ghost/versions/5.47.1/core/server/services/mail/GhostMailer.js:68:12)\n at SMTPConnection._formatError (/var/www/ghost/versions/5.47.1/node_modules/nodemailer/lib/smtp-connection/index.js:790:19)\n at SMTPConnection._actionRCPT (/var/www/ghost/versions/5.47.1/node_modules/nodemailer/lib/smtp-connection/index.js:1632:28)\n at SMTPConnection. (/var/www/ghost/versions/5.47.1/node_modules/nodemailer/lib/smtp-connection/index.js:1585:30)\n at SMTPConnection._processResponse (/var/www/ghost/versions/5.47.1/node_modules/nodemailer/lib/smtp-connection/index.js:953:20)\n at SMTPConnection._onData (/var/www/ghost/versions/5.47.1/node_modules/nodemailer/lib/smtp-connection/index.js:755:14)\n at TLSSocket.SMTPConnection._onSocketData (/var/www/ghost/versions/5.47.1/node_modules/nodemailer/lib/smtp-connection/index.js:193:44)\n at TLSSocket.emit (node:events:513:28)\n at addChunk (node:internal/streams/readable:315:12)\n at readableAddChunk (node:internal/streams/readable:289:9)\n at TLSSocket.Readable.push (node:internal/streams/readable:228:10)\n at TLSWrap.onStreamRead (node:internal/stream_base_commons:190:23)”,“hideStack”:false},“msg”:“Failed to send email. Reason: Can’t send mail - all recipients were rejected: 553 5.7.1 noreply@atharv.vadehra.me: Sender address rejected: not owned by user atharv@atharv.vadehra.me.”,“time”:“2023-05-20T18:09:37.811Z”,“v”:0}
Top comments (0)