- What’s your URL? multiple
- What version of Ghost are you using? 5.63.0
And
- How was Ghost installed and configured? DigitalOcean one click then added multiple instances of Ghost Ghost | DigitalOcean Marketplace 1-Click App
- What Node version, database, OS & browser are you using? NA
- What errors or information do you see in the console? see below
- What steps could someone else take to reproduce the issue you’re having?
Switching from Mailgun to Sendgrid to see if the “on behalf of” issue is Mailgun centric.
Sending invite produces this error using setup below.
Error sending email! Error sending email: Failed to send email. Reason: 140228782155712:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:332: . Please check your email settings and resend the invitation.
"mail": {
"transport": "SMTP",
"options": {
"service": "Sendgrid",
"host": "smtp.sendgrid.net",
"port": "587",
"secure": true,
"auth": {
"user": "apikey",
"pass": "mykey"
}
}
},
{"name":"Log","hostname":"ghost","pid":9744,"level":50,"version":"5.63.0","req":{"meta":{"requestId":"a1c1ceb2-0b3a-4e28-9abc-6e30f4d080a4","userId":"1"},"url":"/invites/","method":"POST","originalUrl":"/ghost/api/admin/invites/","params":{},"headers":{"x-forwarded-for":"98.248.58.222","x-forwarded-proto":"https","x-real-ip":"98.248.58.222","host":"www.example.com","connection":"close","content-length":"86","sec-ch-ua":"\"Chromium\";v=\"116\", \"Not)A;Brand\";v=\"24\", \"Google Chrome\";v=\"116\"","dnt":"1","sec-ch-ua-mobile":"?0","app-pragma":"no-cache","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36","content-type":"application/json","accept":"application/json, text/javascript, */*; q=0.01","x-requested-with":"XMLHttpRequest","x-ghost-version":"5.63","sec-ch-ua-platform":"\"Windows\"","origin":"https://www.example.com","sec-fetch-site":"same-origin","sec-fetch-mode":"cors","sec-fetch-dest":"empty","referer":"https://www.example.com/ghost/","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9","sec-gpc":"1","cookie":"**REDACTED**"},"query":{}},"res":{"_headers":{"x-powered-by":"Express","content-version":"v5.63","vary":"Accept-Version, Origin, Accept-Encoding","cache-control":"no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0","access-control-allow-origin":"https://www.example.com","content-type":"application/json; charset=utf-8","content-length":"410","etag":"W/\"19a-ztMvardY+mIJiFkyws32axhsIek\""},"statusCode":500,"responseTime":"679ms"},"err":{"id":"b0d8e1d0-54ed-11ee-9cd8-67ec269777fe","domain":"https://www.example.com","code":null,"name":"EmailError","statusCode":500,"level":"normal","message":"Error sending email: Failed to send email. Reason: Sending failed. Please check your email settings and resend the invitation.","help":"\"Please see https://ghost.org/docs/config/#mail for instructions on configuring email.\"","stack":"Error: Sending failed\n at createMailError (/var/www/cbdinfo/versions/5.63.0/core/server/services/mail/GhostMailer.js:68:12)\n at DirectMailer.<anonymous> (/var/www/cbdinfo/versions/5.63.0/node_modules/nodemailer-direct-transport/lib/direct-transport.js:157:41)\n at DirectMailer.<anonymous> (/var/www/cbdinfo/versions/5.63.0/node_modules/nodemailer-direct-transport/lib/direct-transport.js:228:30)\n at /var/www/cbdinfo/versions/5.63.0/node_modules/nodemailer-direct-transport/lib/direct-transport.js:350:28\n at callback (/var/www/cbdinfo/versions/5.63.0/node_modules/smtp-connection/lib/smtp-connection.js:374:14)\n at /var/www/cbdinfo/versions/5.63.0/node_modules/smtp-connection/lib/smtp-connection.js:389:24\n at SMTPConnection._actionSMTPStream (/var/www/cbdinfo/versions/5.63.0/node_modules/smtp-connection/lib/smtp-connection.js:1358:16)\n at SMTPConnection.<anonymous> (/var/www/cbdinfo/versions/5.63.0/node_modules/smtp-connection/lib/smtp-connection.js:854:18)\n at SMTPConnection._processResponse (/var/www/cbdinfo/versions/5.63.0/node_modules/smtp-connection/lib/smtp-connection.js:669:16)\n at SMTPConnection._onData (/var/www/cbdinfo/versions/5.63.0/node_modules/smtp-connection/lib/smtp-connection.js:493:10)\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":"Error sending email: Failed to send email. Reason: Sending failed. Please check your email settings and resend the invitation.","time":"2023-09-17T00:03:54.612Z","v":0}
I have tried various edits from other threads i.e. true/false, ports, etc Initially use what worked for Mailgun.
"secure": false,
"requireTLS": true,
Any suggestions would be appreciated.