Skip to content

Commit 57e6cb6

Browse files
committed
fix smtp issue
1 parent f10af0c commit 57e6cb6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Mailman/Queue/OutgoingRunner.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ def _get_smtp_connection(self):
147147
"""Get a new SMTP connection with proper configuration."""
148148
try:
149149
conn = smtplib.SMTP()
150+
smtp._host = mm_cfg.SMTPHOST # workaround https://github.com/python/cpython/issues/80275
150151
conn.set_debuglevel(mm_cfg.SMTPLIB_DEBUG_LEVEL)
151152
conn.connect(mm_cfg.SMTPHOST, mm_cfg.SMTPPORT)
152153

0 commit comments

Comments
 (0)