rallly-selfhosted
rallly-selfhosted copied to clipboard
Error sending email - wrong version number with protonmail SMTP
I am experiencing the same error as @VincenzoKoestler in this issue . I am trying to use the SMTP services from protonmail (they work with other services) which run on port 587 and use TLS. Is there something I can do here?
2023-12-15 20:22:02
Prisma schema loaded from prisma/schema.prisma
2023-12-15 20:22:02
Datasource "db": PostgreSQL database "db", schema "public" at "rallly_db:5432"
2023-12-15 20:22:02
2023-12-15 20:22:02
42 migrations found in prisma/migrations
2023-12-15 20:22:02
2023-12-15 20:22:02
2023-12-15 20:22:02
No pending migrations to apply.
2023-12-15 20:22:03
▲ Next.js 14.0.1
2023-12-15 20:22:03
- Local: http://rallly:3000
2023-12-15 20:22:03
- Network: http://100.0.0.244:3000
2023-12-15 20:22:03
2023-12-15 20:22:03
✓ Ready in 144ms
2023-12-15 20:22:09
Error sending email [Error: C03753BF6F7F0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:355:
2023-12-15 20:22:09
] {
2023-12-15 20:22:09
library: 'SSL routines',
2023-12-15 20:22:09
reason: 'wrong version number',
2023-12-15 20:22:09
code: 'ESOCKET',
2023-12-15 20:22:09
command: 'CONN'
2023-12-15 20:22:09
}
EDIT: As a work-around, I've managed to get it working using SendGrid's below settings (Protonmail still isn't working):
SMTP_PORT | SMTP_SECURE | SMTP_TLS_ENABLED 2525 | false | false SMTP_USER: "apikey" SMTP_PWD: ${SendGridAPIKey}
//////
I'm also a Protonmail user with the same issue. I've recently added Protonmail's SMTP settings to my other products without any issues.
No matter what combination of settings I use, I'm not able to receive any emails (nor register for an account). Protonmail SMTP Instructions.
[Combinations I've tried w/ Error Logs]
/////// Invalid Login SMTP_PORT | SMTP_SECURE | SMTP_TLS_ENABLED 465 | true | true 465 | true | false 587 false | false 587 | false | true 25 | false | false 25 | false | true
Error sending email Error: Invalid login: 535 5.7.8 Error: authentication failed: authentication failed
at SMTPConnection._formatError (/app/node_modules/nodemailer/lib/smtp-connection/index.js:790:19)
at SMTPConnection._actionAUTHComplete (/app/node_modules/nodemailer/lib/smtp-connection/index.js:1548:34)
at SMTPConnection.<anonymous> (/app/node_modules/nodemailer/lib/smtp-connection/index.js:546:26)
at SMTPConnection._processResponse (/app/node_modules/nodemailer/lib/smtp-connection/index.js:953:20)
at SMTPConnection._onData (/app/node_modules/nodemailer/lib/smtp-connection/index.js:755:14)
at SMTPConnection._onSocketData (/app/node_modules/nodemailer/lib/smtp-connection/index.js:193:44)
at TLSSocket.emit (node:events:517:28)
at TLSSocket.emit (node:domain:489:12)
at addChunk (node:internal/streams/readable:335:12)
at readableAddChunk (node:internal/streams/readable:308:9) {
code: 'EAUTH',
response: '535 5.7.8 Error: authentication failed: authentication failed',
responseCode: 535,
command: 'AUTH PLAIN'
}
///////
Wrong Version SMTP_PORT | SMTP_SECURE | SMTP_TLS_ENABLED 587 | true | false 587 | true | true 25 | true | false 25 | true | true
Error sending email [Error: C0E73AAC2B7F0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:355:
] {
library: 'SSL routines',
reason: 'wrong version number',
code: 'ESOCKET',
command: 'CONN'
}
///////
Timeout SMTP_PORT | SMTP_SECURE | SMTP_TLS_ENABLED 465 | false | true 465 | false | false
Error sending email Error: Greeting never received
at SMTPConnection._formatError (/app/node_modules/nodemailer/lib/smtp-connection/index.js:790:19)
at SMTPConnection._onError (/app/node_modules/nodemailer/lib/smtp-connection/index.js:776:20)
at Timeout.<anonymous> (/app/node_modules/nodemailer/lib/smtp-connection/index.js:710:22)
at listOnTimeout (node:internal/timers:569:17)
at process.processTimers (node:internal/timers:512:7) {
code: 'ETIMEDOUT',
command: 'CONN'
}
I got the same issue with both icloud and AWS SES smtp
✓ Ready in 170ms
Error sending email [Error: 80BCEED134760000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:354:
] {
library: 'SSL routines',
reason: 'wrong version number',
code: 'ESOCKET',
command: 'CONN'
}
Unfortunately, I cannot use SendGrid so I cannot confirm @Swamp2k9's finding that it works. Are there any other known supported smtp hosts?
It does work with iCloud SMTP when SMTP_SECURE=false however this is not ideal
Hi @johnpc. I ended up switching over to PostMark for my SMTP services.