summaryrefslogtreecommitdiff
path: root/src/mailman/mta/bulk.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/mta/bulk.py')
-rw-r--r--src/mailman/mta/bulk.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mailman/mta/bulk.py b/src/mailman/mta/bulk.py
index 21bbd1713..be740c9cd 100644
--- a/src/mailman/mta/bulk.py
+++ b/src/mailman/mta/bulk.py
@@ -147,4 +147,10 @@ class BulkDelivery:
except smtplib.SMTPRecipientsRefused as error:
log.error('%s recipients refused: %s', message_id, error)
refused = error.recipients
+ except smtplib.SMTPResponseException as error:
+ log.error('%s response exception: %s', message_id, error)
+ refused = dict(
+ # recipient -> (code, error)
+ (recipient, (error.smtp_code, error.smtp_error))
+ for recipient in recipients)
return refused