------------------------------------------------------------ revno: 1646 fixes bug: https://launchpad.net/bugs/1573074 committer: Mark Sapiro <m...@msapiro.net> branch nick: 2.1 timestamp: Thu 2016-04-21 08:01:01 -0700 message: Implimented mm_cfg.SMTPLIB_DEBUG_LEVEL setting. modified: Mailman/Defaults.py.in Mailman/Handlers/SMTPDirect.py NEWS
-- lp:mailman/2.1 https://code.launchpad.net/~mailman-coders/mailman/2.1 Your team Mailman Checkins is subscribed to branch lp:mailman/2.1. To unsubscribe from this branch go to https://code.launchpad.net/~mailman-coders/mailman/2.1/+edit-subscription
=== modified file 'Mailman/Defaults.py.in' --- Mailman/Defaults.py.in 2016-02-28 04:38:34 +0000 +++ Mailman/Defaults.py.in 2016-04-21 15:01:01 +0000 @@ -469,6 +469,12 @@ #DELIVERY_MODULE = 'Sendmail' DELIVERY_MODULE = 'SMTPDirect' +# Sometimes there are 'low level' smtplib failures that are difficult to +# debug. To enable very verbose debugging info from smtplib to Mailman's +# error log, set the following to 1. This will only work if +# DELIVERY_MODULE = 'SMTPDirect' and Python is >= 2.4. +SMTPLIB_DEBUG_LEVEL = 0 + # MTA should name a module in Mailman/MTA which provides the MTA specific # functionality for creating and removing lists. Some MTAs like Exim can be # configured to automatically recognize new lists, in which case the MTA === modified file 'Mailman/Handlers/SMTPDirect.py' --- Mailman/Handlers/SMTPDirect.py 2011-03-21 20:27:19 +0000 +++ Mailman/Handlers/SMTPDirect.py 2016-04-21 15:01:01 +0000 @@ -1,4 +1,4 @@ -# Copyright (C) 1998-2011 by the Free Software Foundation, Inc. +# Copyright (C) 1998-2016 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -61,6 +61,7 @@ def __connect(self): self.__conn = smtplib.SMTP() + self.__conn.set_debuglevel(mm_cfg.SMTPLIB_DEBUG_LEVEL) self.__conn.connect(mm_cfg.SMTPHOST, mm_cfg.SMTPPORT) self.__numsessions = mm_cfg.SMTP_MAX_SESSIONS_PER_CONNECTION === modified file 'NEWS' --- NEWS 2016-04-19 22:53:54 +0000 +++ NEWS 2016-04-21 15:01:01 +0000 @@ -9,6 +9,10 @@ New Features + - There is a new Defaults.py/mm_cfg.py setting SMTPLIB_DEBUG_LEVEL which + can be set to 1 to enable verbose smtplib debugging to Mailman's error + log to help with debugging 'low level smtp failures'. (LP: # 1573074) + - A list's nonmember_rejection_notice attribute will now be the default rejection reason for a held non-member post in addition to it's prior role as the reson for an automatically rejected non-member post.
_______________________________________________ Mailman-checkins mailing list Mailman-checkins@python.org Unsubscribe: https://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org