hasura-backend-plus icon indicating copy to clipboard operation
hasura-backend-plus copied to clipboard

SSL Wrong Version Number Error

Open joshmedeski opened this issue 2 years ago • 4 comments

Describe the bug When user's registers, I get the following error:

To Reproduce Steps to reproduce the behavior:

  1. Set AUTO_ACTIVATE_NEW_USERS="false"
  2. Enable emails with SMTP
  3. Send a POST /auth/register

Expected behavior Register a user successfully

Desktop (please complete the following information):

  • OS: Ubuntu
  • Browser Safari
  • Version 2.7.1

Additional context

[Error: 140369955355976:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:332:
] {
  library: 'SSL routines',
  function: 'ssl3_get_record',
  reason: 'wrong version number',
  code: 'ESOCKET',
  command: 'CONN'
}

joshmedeski avatar Sep 27 '21 16:09 joshmedeski

I've seen this bug with some SMTP vendors.

Could be related to this: https://github.com/nodemailer/nodemailer/issues/165#issuecomment-20733858

elitan avatar Sep 27 '21 16:09 elitan

@joshmedeski Can you also try to set SMTP_SECURE: false?

elitan avatar Sep 27 '21 16:09 elitan

That fixed it. I may change the port numbers and turn SMTP_SECURE back to true.

joshmedeski avatar Sep 27 '21 17:09 joshmedeski

@elitan that was also the error message that we received. Not finished with testing / fixing, works for some mails, but some users receive the mail now in their spam folder. Will try to provide clearer picture.

MaxSchilling avatar Sep 27 '21 18:09 MaxSchilling