Meike Aulbach wrote:
>
>So mailman is probably really connecting to 'localhost' and 0 as I
>hardcoded that in SMTPDirect.py (see my last mail).


Yes.


>When I do a manual connect as user 'list' it still works. I went through 
>the complete procedure:
>
>zzzz:~# su - list
>No directory, logging in with HOME=/
>[EMAIL PROTECTED]:/$ python
>Python 2.3.5 (#2, Feb  9 2005, 00:38:15) 
>[GCC 3.3.5 (Debian 1:3.3.5-8)] on linux2
>Type "help", "copyright", "credits" or "license" for more information.
>>>> import smtplib
>>>> SMTPHOST = 'localhost'
>>>> SMTPPORT = 0
>>>> msg = """Subject: Test
>... Message-ID: [EMAIL PROTECTED]
>... From: [EMAIL PROTECTED]
>... To: [EMAIL PROTECTED] 
>... 
>... The body
>... """
>>>> rcpts = ['[EMAIL PROTECTED]','[EMAIL PROTECTED]']
>>>> env = '[EMAIL PROTECTED]'
>>>> x = smtplib.SMTP()
>>>> x.connect(SMTPHOST,SMTPPORT)
>(220, 'mx.zzzz.net ESMTP Exim 4.50 Fri, 10 Jun 2005 19:21:13 +0200')
>>>> x.sendmail(env,rcpts,msg)
>{}
>>>> x.quit()
>>>> 
>[EMAIL PROTECTED]:/$ 
>
>So it unfortunately doesn't fail. Never imagined that I ever might be
>wishing something finally fails ;)

Well, I'm out of ideas at this point. It looks like you may have to
modify SMTPDirect.py and add some debugging. You could try sprinkling
calls of the form

    syslog('smtp-failure', 'some format string %s and %s', var1, var2)

in various places to try to get more information. For example, change

    def __connect(self):
        self.__conn = smtplib.SMTP()
        self.__conn.connect(mm_cfg.SMTPHOST, mm_cfg.SMTPPORT)
        self.__numsessions = mm_cfg.SMTP_MAX_SESSIONS_PER_CONNECTION

to

    def __connect(self):
        self.__conn = smtplib.SMTP()
        syslog('smtp-failure', 'host = %s, port = %s',
               mm_cfg.SMTPHOST, mm_cfg.SMTPPORT)
        x = self.__conn.connect(mm_cfg.SMTPHOST, mm_cfg.SMTPPORT)
        syslog('smtp-failure', 'connect returns: %s', x)
        self.__numsessions = mm_cfg.SMTP_MAX_SESSIONS_PER_CONNECTION


--
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&amp;file=faq01.027.htp

Reply via email to