Ticket: SMTP SSL Record Error on Gmail Port 587

@Blaze Just created a ticket
Question: When trying to send an invitation email over SMTP relay (gmail), port 587, I get the following error.
2025-01-05 13:36:37 [Nest] 226 - 01/05/2025, 1:36:37 PM ERROR [ExceptionsHandler] C8316156987F0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:354:
2025-01-05 13:36:37
2025-01-05 13:36:37 Error: C8316156987F0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:354:
2025-01-05 13:36:37 [Nest] 226 - 01/05/2025, 1:36:37 PM ERROR [ExceptionsHandler] C8316156987F0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:354:
2025-01-05 13:36:37
2025-01-05 13:36:37 Error: C8316156987F0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:354:
I have a cert configured in nginx (working).
Attempted: Searched GitHub & Discord for a similar issue, could only find: https://github.com/gitroomhq/postiz-app/issues/466 Couldn't find a resolution there. Have also done some searching online but couldn't find specific enough/relevant results.
Working On: Self-Hosting Setup for Charities - SMTP
Using Postiz On: Docker Compose in WSL2
Take it from here @Postiz
GitHub
SMTP throws ssl3_get_record error with port 587 · Issue #466 · gitr...
📜 Description When configuring nodemailer with GMail’s SMTP with port 587, no email is sent. The error is not visible in the frontend. 👟 Reproduction steps Use these env vars: EMAIL_PROVIDER: &quot...
2 Replies
Blaze
Blaze7d ago
Found the answer in the end, use the SSL port (465) rather than TLS port (587) when the EMAIL_SECURE environment variable is set to "true". Useful Links for Solution Python solution referencing switching from 587 to 465 example Nodemailer-specific example Nodemailer code in Postiz
Stack Overflow
How to fix ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version ...
I am trying to send an email with python, but it keeps saying ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1056). Here is my code: server = smtplib.SMTP_SSL('smtp.mail.co...
Stack Overflow
Node.js nodemailer error - wrong version number/invalid greeting
I have a big problem with setting up the nodemailer on my node.js server. Tried everthing I found on the internet but nothing works. The only thing that was easy to setup was the gmail service. but
GitHub
postiz-app/libraries/nestjs-libraries/src/emails/node.mailer.provid...
📨 The ultimate social media scheduling tool, with a bunch of AI 🤖 - gitroomhq/postiz-app
Support
SupportOP7d ago
Hi @Blaze Please select an action Hi @Blaze Please select an action The thread is now closed

Did you find this page helpful?