You have the same error, i.e., sender email rejected.
Make sure your credentials for privateemail.com are correct. For example, does it require an app-specific password? Moreover, the sender and authenticated user probably need to be the same for your service unless you create an alias for the alternative address.
Why you donât use SMTP Mailgun instead, it just cost you 5 minutes to create account and free. BTW, Mailgun is used for ghost newsletter, you must have one for sure.
Maybe my contribution to this conversation is too obvious, but for me the solution was to correctly place the link I created in mailgun. As you can see in the image.
This service is essentially for receiving email, and isnât a relay service.
Nonetheless, itâs not clear what diagnostic steps youâve taken. Did you, for example, manage to send a test message via SWAKS? The error message suggests that the problem is with your email service, and it would be good to confirm this.
Moreover, simply changing port to 587 wonât work as youâll need to adjust the config for TLS and insecure negotiation.
This is for newsletters, not transactional email.
Same here, and the ideal solution. The OP should do this, and use Private Email for receiving messages.
{"name":"Log","hostname":"ghostonubuntu2204-s-1vcpu-1gb-blr1-01","pid":467679,"level":50,"version":"5.47.1","err":{"id":"60f5cd80-091c-11ee-8636-4d5037525a41","domain":"https://atharv.vadehra.me","code":"EENVELOPE","name":"EmailError","statusCode":500,"level":"normal","message":"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@vadehra.me.","help":"\"Please see https://ghost.org/docs/config/#mail for instructions on configuring email.\"","stack":"Error: Can't send mail - all recipients were rejected: 553 5.7.1 <noreply@atharv.vadehra.me>: 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.<anonymous> (/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@vadehra.me.","time":"2023-06-12T12:26:38.555Z","v":0}
ghost-mgr@ghostonubuntu2204-s-1vcpu-1gb-blr1-01:/var/www/ghost$
Youâre not using the same email address you used with Swaks: noreply@atharv.vadehra.me.
Also, the sending domain is not the same since youâre using a subdomain with Ghost. This is the most likely cause, i.e., PrivateEmail doesnât recognize the sender (didnât this get covered before?) You need to create an alias or use the config I shared.
Alternatively, setup Mailgun for sending transactional email, which can be done for a subdomain whilst keeping the root domain with PrivateEmail.
Then you need to set the correct email in Ghost: production.config.json and possibly under Email newsletter > Sender email address, since this defaults to noreply@ the hosted domain.
I tried to change the default email address in Email Newsletter > Senderâs Address. It shows an error with a different email address which is no-reply@vadehra.me.