SMTP Setup Showing 'Error sending email! Error sending email: Failed to send email. Reason: 139792576747392:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:332'

I installed Ghost in my CapRover, using ‘One Click Installer’ used ‘latest’ tag for the installation. I am using a sub domain (via A record in my DNS) And using my main Domain SMTP (shared hosting-cpanel)
But the SMTP is showing an error when I tried to Invite or forget password or register a new account.
The error shows:

Error sending email! Error sending email: Failed to send email. Reason: 139792576747392: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.

  • What version of Ghost are you using?
    Latest
  • What configuration?
    Using in CapRover (Bitnami Docker I believe)

my SMTP ENV are following-

GHOST_SMTP_FROM_ADDRESS=help@mydomain. com
GHOST_SMTP_HOST=mail.mydomain. com
GHOST_SMTP_PASSWORD=my_password
GHOST_SMTP_PORT=465
GHOST_SMTP_USER=help@mydomain. com
GHOST_SMTP_PROTOCOL=ssl

Ghost is running in sub. mydomain. com

can someone help solving the issue, please?

*I had to used (space) before (dot) here in the links, as as a new user I cant add more than 3 links.

1 Like

StackOverflow suggests that maybe your SMTP server doesn’t speak TLS.

1 Like

It appears that you’re attempting to use an unencrypted connection (PORT 465) with SSL, but SSL for emails typically uses a different port, much like HTTP (80 for unencrypted, and 443 for encrypted).

So an sollution can be to switch to port 587 or disable SSL.

(Correct me if im wrong)

1 Like