Open facorazza opened 1 year ago
Hi, setting rejectUnauthorized
to false
is intended to allow self-signed certificates so in theory it should work as long as you use SMTP_TLS_ENABLED
is true
.
If that's not working, perhaps the additional ciphers
parameter is causing some sort of issue? Or could be an upstream issue nodemailer and we just need to update the package.
I don't have the time to look into this I'm afraid but if someone wants to test whether sending emails through an SMTP server with TLS and a self-signed certificate actually works or test whether the two possible solutions above fixes the issue that would be a welcome PR.
Hi, this issue is important for me also, since from recent update user registration seems required. I cannot seem to bypass this even when using SMTP_TLS_ENABLED=false
or SMTP_SECURE=false
Getting also this error when trying to use our self-signed cert on port 587:
rallly-1 | Error sending email [Error: 00780C9CF97F0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:355:
rallly-1 | ] {
rallly-1 | library: 'SSL routines',
rallly-1 | reason: 'wrong version number',
rallly-1 | code: 'ESOCKET',
rallly-1 | command: 'CONN'
rallly-1 | }
Id like to point out that we use this email server with many other apps without issue, we just always use TLS and disable cert verification.
With latest rally version sending emails works :)
Describe the bug
Rallly doesn't seem to support SMTP mail servers with a self-signed certificate.
I believe the code related to this is here. The behaviour is the same whether
SMTP_TLS_ENABLED
is set totrue
orfalse
.I'm not fluent in TypeScript but perhaps this could help.
To Reproduce Steps to reproduce the behavior:
Expected behavior Email sent to the mail server with a self-signed certificate.
Desktop (please complete the following information):