Fix: catch SMTPException instead of requiring AUTH extension #6

Merged
jason merged 1 commit from jch/fix-smtp-auth-localhost into main 2026-07-07 21:40:32 -04:00
Owner

The previous commit used server.has_ext('AUTH') which doesn't exist on smtplib.SMTP objects, causing an AttributeError.

This switches the exception from catching only SMTPAuthenticationError to catching all SMTPException subclasses, allowing auth failure (including when AUTH isn't advertised) to gracefully skip and still send via relay.

The previous commit used `server.has_ext('AUTH')` which doesn't exist on `smtplib.SMTP` objects, causing an `AttributeError`. This switches the exception from catching only `SMTPAuthenticationError` to catching all `SMTPException` subclasses, allowing auth failure (including when AUTH isn't advertised) to gracefully skip and still send via relay.
jason merged commit 6a8db15801 into main 2026-07-07 21:40:32 -04:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jason/xmpp-email-bridge!6
No description provided.