[Mailman-Users] Can't send messages to list

Lukasz Szybalski szybalski at gmail.com
Wed Nov 8 23:55:08 CET 2006


On 11/3/06, Lukasz Szybalski <szybalski at gmail.com> 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:
<804e5c70611081443y26603704gdecfae9847cf64f4 at xxx.xxxx.com>
Nov 08 16:46:31 2006 (13973) delivery to xxxxx at xxx.com 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: <455209CD.20560.1BA7A89 at xxxx.xxxx.org>
Nov 08 16:46:31 2006 (13973) delivery to xxxx at xxxx.com 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 <msapiro at value.net>       The highway is for gamblers,
> > San Francisco Bay Area, California    better use your sense - B. Dylan
> >
>

-- 
Universal Information Crawler
http://uicrawler.sourceforge.net/



More information about the Mailman-Users mailing list