Skip to content

[BUG] email sending fails in backend #2

@justb4

Description

@justb4

Describe the bug
When trying to confirm my email in TM Profile settings, noting happens.

To Reproduce
Steps to reproduce the behavior:

  1. Go to TM Profile s
  2. See Please check your email account in order to confirm your email address.Resend validation email
  3. Click Resend validation email
  4. No email received

Expected behavior
Should receive email with confirmation link.

Screenshots
Error in backend log, traced on server:

docker logs -- follow backend
[2025-07-23 14:12:36,905] DEBUG in smtp_service: Sending email via SMTP just@...
[2025-07-23 14:12:37,122] ERROR in smtp_service: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1017): Sending email failed. Please check SMTP configuration

Desktop (please complete the following information):

  • OS: Debian 12.11
  • Browser N.A.
  • Version Python 3.10.18 (main, Jul 1 2025, 02:40:42)
  • OpenSSL 3.0.16 11 Feb 2025

Additional context
Trying with simple Python program shows that login fails, for any port 25, 587 , 465 or using TLS or SSL.

server = smtplib.SMTP(TM_SMTP_HOST, TM_SMTP_PORT)
context = ssl.create_default_context()
server.ehlo()
server.starttls(context=context)
server.ehlo()
# Still Ok.
server.login(TM_SMTP_USER,TM_SMTP_PASSWORD)
>>> server.login(TM_SMTP_USER,TM_SMTP_PASSWORD)

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.10/smtplib.py", line 750, in login
    raise last_exception
  File "/usr/local/lib/python3.10/smtplib.py", line 739, in login
    (code, resp) = self.auth(
  File "/usr/local/lib/python3.10/smtplib.py", line 662, in auth
    raise SMTPAuthenticationError(code, resp)
smtplib.SMTPAuthenticationError: (535, b'5.7.8 Error: authentication failed: (reason unavailable)')

Maybe the email account is no longer valid?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions