Issues with sending transactional email

I am trying to change my newsletter email address and sign up a new member in publication. I have set up SMTP in my config.production.json file and also entered the API key and sending domain in my newsletter section under settings. I am getting errors such as “Retry” and “Failed to signup, please try again”.

I am using Ghost from Digital ocean and I have allowed traffic on port 25 as well.

On Ghost log, I am getting this:

NAME: BadRequestError
CODE: ESOCKET
MESSAGE: Failed Sending Email

level: normal

"Please see https://ghost.org/docs/config/#mail for instructions on configuring email."
BadRequestError: Failed Sending Email
Please see https://ghost.org/docs/config/#mail for instructions on configuring email.

What can I do to get the issue resolved.

New entry in my Ghost log

NAME: EmailError
CODE: ESOCKET
MESSAGE: Failed to send email. Reason: 140307265275776:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:332:
.

level: normal

"Please see https://ghost.org/docs/config/#mail for instructions on configuring email."
EmailError: Failed to send email. Reason: 140307265275776:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:332:
.
    at createMailError (/var/www/ghost/versions/4.26.1/core/server/services/mail/GhostMailer.js:67:12)
    at GhostMailer.sendMail (/var/www/ghost/versions/4.26.1/core/server/services/mail/GhostMailer.js:127:19)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async GhostMailer.send (/var/www/ghost/versions/4.26.1/core/server/services/mail/GhostMailer.js:113:26)
    at async MagicLink.sendMagicLink (/var/www/ghost/versions/4.26.1/node_modules/@tryghost/magic-link/lib/MagicLink.js:62:22)
    at async RouterController.sendMagicLink (/var/www/ghost/versions/4.26.1/node_modules/@tryghost/members-api/lib/controllers/router.js:298:17)

Error: 140307265275776:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:332:

The error message ssl3_get_record:wrong version number is saying the SSL version being used to establish the connection isn’t supported by the host you’re connecting to.

Do you have "secure": true in your mail config? If so, change it to "secure": false and try again.

Yes, I have "secure":"false" in my config.production.json file. I am still facing the issue.

Perhaps you can share the rest of your mail config (with passwords removed) - you shouldn’t need to be doing anything with port 25.

That should be "secure": false - no quotes around the false part.

Thanks, Kevin. For the last 1 hour, I was trying everything other than removing these quotes :grinning:. Now its working fine.

Is there any way I can change the from name for transactional emails?