On 11/3/06, Lukasz Szybalski <[EMAIL PROTECTED]> wrote: > > Lukasz Szybalski wrote: > /var/lib/mailman/Mailman/Handlers/SMTPDirect.py > > > > > >That is the file i patched SMTPDirect.py > > > > > > 57 class Connection: > > > 58 def __init__(self): > > > 59 self.__conn = None > > > 60 > > > 61 def __connect(self): > > > 62 self.__conn = smtplib.SMTP() > > > 63 self.__conn.set_debuglevel(1) > > > 64 self.__conn.connect(mm_cfg.SMTPHOST, mm_cfg.SMTPPORT) > > > 65 self.__numsessions=mm_cfg.SMTP_MAX_SESSIONS_PER_CONNECTION > > > > >Is there a way to manually get the debug info from smtplib > > >(conversation with postfix) within this file? > > Temporary SOLUTION. > > After placing a bug report in debian, i have been given two files to > make debug information work. > > "replacements for /usr/lib/python2.3/smtplib.py > and /usr/lib/mailman/Mailman/Logging/Utils.py that will enable > smtplib-debugging to work (you still have to patch SMTPDirect.py) " > > I went in and renamed smtplib.py to smtplib.py.1 > put the new file in and deleted smtplib.pyc ad smtplib.pyo > Then renamed /usr/lib/mailman/Mailman/Logging/Utils.py to Utils.py.1 > (make sure its this one...there is at least 5 files called Utils.py) > put the new file in and deleted Utils.pyc and Utils.pyo > > then > /etc/init.d/mailman restart > tail -f /var/log/mailman/error > > while i was watching this i sent an emial to my testing group, etc. > > Long story short. I replaced these files, removed pyc and pyo and > suddenly everything works like magic again. No more timeouts. > I'll try to get originals back in place and see how that works. I'll > keep you posted. >
I put the original smtplib.py file back in /varlib/python.3/smtplib.py and i get the same problem again. Nov 08 16:41:31 2006 (13973) Low level smtp error: [Errno 9] Bad file descriptor, msgid: <[EMAIL PROTECTED]> Nov 08 16:46:31 2006 (13973) delivery to [EMAIL PROTECTED] failed with code -1: [Errno 9] Bad file descriptor Nov 08 16:46:31 2006 (13973) Low level smtp error: [Errno 9] Bad file descriptor, msgid: <[EMAIL PROTECTED]> Nov 08 16:46:31 2006 (13973) delivery to [EMAIL PROTECTED] failed with code -1: [Errno 9] Bad file descriptor So i guess i will stick with the file i got from debian bug > You can get the files from.... > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=395493 Lukasz > > > > And, why they stop is what we're trying to figure out, and I can't tell > > you any more than I already have without additional information. > > > > -- > > Mark Sapiro <[EMAIL PROTECTED]> The highway is for gamblers, > > San Francisco Bay Area, California better use your sense - B. Dylan > > > -- Universal Information Crawler http://uicrawler.sourceforge.net/ ------------------------------------------------------ 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