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.

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