Bug#395493: [Pkg-mailman-hackers] Bug#395493: mailman: smtp-failure:timeout, bad file descriptor, set_debuglevel

Lukasz Szybalski szybalski at gmail.com
Fri Nov 3 20:09:22 CET 2006


I replaced these files and everything works again. I'll give it 24h
and put the old files back and see if mailman works again..

Thank you very much.
Lukasz

for the record...

> 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

Temporary SOLUTION?

"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 email 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 and see how that works. I'll keep you posted.




More information about the Pkg-mailman-hackers mailing list