You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Trying to send a password recovery mail to a user. The django mailer seems to only expect plain emails, but gets fully qualified ones instead.
To Reproduce
Steps to reproduce the behavior:
User clicks on password-recovery / Go into admin overview -> click "Email recovery"
Go to Logs
See error
Expected behavior
The mail is being sent successfully
Logs
Stacktrace from authentik
Traceback (most recent call last):
File "/ak-root/venv/lib/python3.12/site-packages/celery/app/trace.py", line 453, in trace_task
R = retval = fun(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^
File "/ak-root/venv/lib/python3.12/site-packages/celery/app/trace.py", line 736, in __protected_call__
return self.run(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/ak-root/venv/lib/python3.12/site-packages/celery/app/autoretry.py", line 38, in run
return task._orig_run(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/authentik/stages/email/tasks.py", line 89, in send_mail
backend.send_messages([message_object])
File "/ak-root/venv/lib/python3.12/site-packages/django/core/mail/backends/smtp.py", line 136, in send_messages
sent = self._send(message)
^^^^^^^^^^^^^^^^^^^
File "/ak-root/venv/lib/python3.12/site-packages/django/core/mail/backends/smtp.py", line 151, in _send
sanitize_address(addr, encoding) for addr in email_message.recipients()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/ak-root/venv/lib/python3.12/site-packages/django/core/mail/message.py", line 92, in sanitize_address
raise ValueError(
builtins.ValueError: Invalid address; only <surname> could be parsed from "<surname>, <givenname> <[email protected]>"
Version and Deployment (please complete the following information):
authentik version: 2024.4.2
Deployment: [e.g. docker-compose, helm]
The text was updated successfully, but these errors were encountered:
d-schiffner
changed the title
Error sending recovery link via Mail von Display Name has , in it
Error sending recovery link via Mail von Display Name has "," in it
Jun 5, 2024
Describe the bug
Trying to send a password recovery mail to a user. The django mailer seems to only expect plain emails, but gets fully qualified ones instead.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The mail is being sent successfully
Logs
Stacktrace from authentik
Version and Deployment (please complete the following information):
The text was updated successfully, but these errors were encountered: