Summary
When I register a new account with my instance, I am unable to verify emails. When attempting to resend the email verification I get the following error:
{"level":"error","time":"2026-06-18T13:30:58.589Z","service":"@pkgs/email/src/SmtpEmailProvider","env":"production","error":{"type":"Error","message":"401DD450667F0000:error:0A00010B:SSL routines:tls_validate_record_header:wrong version number:../deps/openssl/openssl/ssl/record/methods/tlsany_meth.c:77:\n","stack":"Error: 401DD450667F0000:error:0A00010B:SSL routines:tls_validate_record_header:wrong version number:../deps/openssl/openssl/ssl/record/methods/tlsany_meth.c:77:\n","library":"SSL routines","reason":"wrong version number","code":"ESOCKET","command":"CONN"},"msg":"SMTP send failed"}
{"level":"info","time":"2026-06-18T13:30:58.589Z","service":"fluxer-api","env":"production","method":"POST","path":"/v1/auth/verify/resend","status":204,"durationMs":209,"msg":"Request completed"}
I am using outlook basic auth with starttls for my smtp provider.
This is my .env
FLUXER_EMAIL_ENABLED=true
FLUXER_EMAIL_PROVIDER=smtp
FLUXER_EMAIL_FROM_EMAIL=myemail@outlook.com
FLUXER_EMAIL_FROM_NAME=aaron
FLUXER_EMAIL_SMTP_HOST=smtp-mail.outlook.com
FLUXER_EMAIL_SMTP_PORT=587
FLUXER_EMAIL_SMTP_USERNAME=myemail@outlook.com
FLUXER_EMAIL_SMTP_PASSWORD=app_password
FLUXER_EMAIL_SMTP_SECURE=true
I have the same exact settings applied in the /admin/instance-config. I have also tried my zoho email with my domain email.
Steps to reproduce
Edit .env and /admin/instance-config settings for SMTP.
I have tried numerous variations with different ports (25 and 465), with/without tls and the SECURE env variable, even though I am 100% confident I am using the correct settings (other self-hosted services setup successfully with this same SMTP config).
Environment
PRETTY_NAME="Debian GNU/Linux 13 (trixie)"
NAME="Debian GNU/Linux"
VERSION_ID="13"
VERSION="13 (trixie)"
VERSION_CODENAME=trixie
DEBIAN_VERSION_FULL=13.5
ID=debian
HOME_URL="
https://www.debian.org/"
SUPPORT_URL="
https://www.debian.org/support"
BUG_REPORT_URL="
https://bugs.debian.org/"
Logs or screenshots
{"level":"error","time":"2026-06-18T13:30:58.589Z","service":"[@pkgs/email](https://github.com/orgs/pkgs/teams/email)/src/SmtpEmailProvider","env":"production","error":{"type":"Error","message":"401DD450667F0000:error:0A00010B:SSL routines:tls_validate_record_header:wrong version number:../deps/openssl/openssl/ssl/record/methods/tlsany_meth.c:77:\n","stack":"Error: 401DD450667F0000:error:0A00010B:SSL routines:tls_validate_record_header:wrong version number:../deps/openssl/openssl/ssl/record/methods/tlsany_meth.c:77:\n","library":"SSL routines","reason":"wrong version number","code":"ESOCKET","command":"CONN"},"msg":"SMTP send failed"}
{"level":"info","time":"2026-06-18T13:30:58.589Z","service":"fluxer-api","env":"production","method":"POST","path":"/v1/auth/verify/resend","status":204,"durationMs":209,"msg":"Request completed"}
15 comments
Comment by @pekempy
Comment by @adavi1995
Comment by @vulpeace
Comment by @adavi1995
Comment by @adavi1995
Comment by @vulpeace
Comment by @Gaarindor
fluxer-api-1I am getting issues against theSmtpEmailProvider.tsfile. It seems like the boolean isn't working as expected.usr/src/app/fluxer_api/node_modules/.pnpm/@pkgs+email@file+fluxer_api+pkgs+email/node_modules/@pkgs/email/src/SmtpEmailProvider.tsIn SmtpEmailProvider.tssecure: config.secure ?? trueis not passing correctly for me. I patched the api container to update it tosecure: config.secure !== undefined ? config.secure === "true" : true"and restarted the api container. It is now working. Replicate: api containerComment by @vulpeace
Comment by @Gaarindor
Comment by @vulpeace
Comment by @astroslav
Comment by @adavi1995
Comment by @LokeYourC3PH
Deleted comment
Comment by @emptyynes
659795982-9cda06a3-e7c8-46cc-8c73-9ee3af2ab629.webp
486×682 | 58 kB
Off-topic comment by @emptyynes