Skip to content

Conversation

@bpedersen2
Copy link
Contributor

@bpedersen2 bpedersen2 commented Nov 24, 2025

The smtp backend did support SSL already, just the config option was missing.

closes #4347

@ThiefMaster ThiefMaster force-pushed the smpt_use_ssl branch 2 times, most recently from cc7e7d4 to 7fa749d Compare November 24, 2025 15:48
Comment on lines +598 to +600
Note that the email handler for error log emails is not compatible
with this setting, so when using it instead of STARTTLS you may want
to tweak your ``logging.yaml`` to not attempt to send emails.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the code here.

AFAIK the stdlib simply does not support SMTPS for logging. Not much we can do about it. Maybe it's enough to just have it documented next to this setting that it will not work. Ideally people use something like Sentry on bigger deployments anyway...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After checking the code, stdlib indeed does not support it. So I'm very inclined to indeed just accept that logging emails will not work when using this option.

@ThiefMaster ThiefMaster added this to the v3.3 milestone Nov 24, 2025
bpedersen2 and others added 4 commits November 24, 2025 19:02
The smtp backend did support SSL already, just the config option was
missing.
@ThiefMaster ThiefMaster enabled auto-merge (squash) November 24, 2025 18:04
@ThiefMaster ThiefMaster disabled auto-merge November 24, 2025 18:04
@ThiefMaster ThiefMaster enabled auto-merge (squash) November 24, 2025 18:04
@ThiefMaster ThiefMaster merged commit c408257 into indico:master Nov 24, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EmailBackend cannot be configured with use_ssl=True

2 participants