Eric Howland wrote: > >I have this problem as well. Mark's response describes my case. In my >smtp-failures file I get: > >[EMAIL PROTECTED] src]# tail /var/log/mailman/smtp-failure >Aug 27 04:20:05 2006 (23140) delivery to [EMAIL PROTECTED] failed with >code -1: (110, 'Connection timed out') >Aug 27 04:20:05 2006 (23140) delivery to [EMAIL PROTECTED] failed with >code -1: (110, 'Connection timed out') >Aug 27 04:20:05 2006 (23140) delivery to [EMAIL PROTECTED] failed >with code -1: (110, 'Connection timed out') >Aug 27 04:20:05 2006 (23140) delivery to >[EMAIL PROTECTED] failed with code -1: (110, 'Connection >timed out') >Aug 27 04:20:05 2006 (23140) delivery to [EMAIL PROTECTED] failed with >code -1: please run connect() first >Aug 27 04:20:05 2006 (23140) delivery to [EMAIL PROTECTED] failed >with code -1: please run connect() first >Aug 27 04:23:22 2006 (23140) Low level smtp error: (110, 'Connection >timed out'), msgid: ><[EMAIL PROTECTED]> >Aug 27 04:23:33 2006 (23140) delivery to [EMAIL PROTECTED] failed >with code -1: (110, 'Connection timed out') >Aug 27 04:26:53 2006 (23140) Low level smtp error: (110, 'Connection >timed out'), msgid: <[EMAIL PROTECTED]> >Aug 27 04:26:57 2006 (23140) Low level smtp error: please run >connect() first, msgid: ><[EMAIL PROTECTED]> > > >I take it that the Low level smtp errors are comming from my MTA >(postfix). In my case the problem was intermittent untill about a week >ago when it became steady. I have posted to the postfix list but I >still have no understanding of who should be running connect().
The "please run connect() first" message comes from low down in the Python library and is really a message to SMTPDirect. It is a result in this case of SMTPDirect trying to continue to talk on the connection that timed out. Is the MTA in the same machine (localhost) as Mailman? If so, we can rule out a flakey network connection. If not, that may be the issue. Otherwise, the issue seems to be that Postfix is taking way too long to handle Mailman's SMTP transactions. >[EMAIL PROTECTED] src]# tail /var/log/mailman/smtp >Aug 27 04:20:05 2006 (23140) ><[EMAIL PROTECTED]> smtp for 93 >recips, completed in 189.377 seconds >Aug 27 04:23:33 2006 (23140) ><[EMAIL PROTECTED]> smtp for 1 >recips, completed in 199.497 seconds > >I get lots of entries arround (but not exactly) 189 seconds. I wonder >if this is some kind of timeout. I don't know. >I also get in my error file: > >Aug 27 04:16:54 2006 (23140) Traceback (most recent call last): > File "/var/mailman/Mailman/Queue/Runner.py", line 111, in _oneloop > self._onefile(msg, msgdata) > File "/var/mailman/Mailman/Queue/Runner.py", line 167, in _onefile > keepqueued = self._dispose(mlist, msg, msgdata) > File "/var/mailman/Mailman/Queue/OutgoingRunner.py", line 73, in _dispose > self._func(mlist, msg, msgdata) > File "/var/mailman/Mailman/Handlers/SMTPDirect.py", line 162, in process > conn.quit() > File "/var/mailman/Mailman/Handlers/SMTPDirect.py", line 89, in quit > self.__conn.quit() > File "/usr/lib/python2.2/smtplib.py", line 702, in quit > self.docmd("quit") > File "/usr/lib/python2.2/smtplib.py", line 358, in docmd > return self.getreply() > File "/usr/lib/python2.2/smtplib.py", line 332, in getreply > line = self.file.readline() >IOError: [Errno 104] Connection reset by peer > >Aug 27 04:16:55 2006 (23140) SHUNTING: >1156261104.130233+d719c44d4802cd25a866736a4dcd4b9725db557c > > >Is the reset by peer comming from the MTA or beyond the MTA? The peer is the MTA. The error comes about because SMTPDirect is trying to close the connection by sending a QUIT and is not receiving a 221 or any other response; the connection is closed by the MTA before any reply is received. -- Mark Sapiro <[EMAIL PROTECTED]> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan ------------------------------------------------------ Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp