Meike Aulbach wrote: > >On Fri, Jun 10, 2005 at 11:35:39AM -0700, Mark Sapiro wrote: >> 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 > >I put this code in SMTPDirect.py, and now I get _no_ more messages at >all to the smtp-failure logfile.
Are you still getting the smtp-failure message you originally reported, namely one like Jun 09 22:00:35 2005 (32666) delivery to xxx at zzzz.net failed with code -1: (-2, 'Name or service not known') If so, all this means is that the error occurs in self.__conn = smtplib.SMTP() before any of the added logging. >Mails are not delivered though (I >get the exim-error mails from Mailer Daemon). I don't think you mentioned this before. Has something changed? Are you now getting mail to exim and rejected by exim? What does the reject from exim say? >I commented out the syslog lines in SMTPDirect.py and still get no >more messages to the smtp-failure logfile. Only the qrunner logfile >shows activity. It seems to me that my changes to the python >code somehow are not regarded even though I do a mailman-restart >every time I change something. Do you get anything in Mailman's 'smtp' log? Does the time stamp change on SMTPDirect.pyc and SMTPDirect.pyo if any? If not, try just removing them. >I also restarted syslog. The 'syslog' calls in SMTPDirect.py call Mailman's own syslog, not the system one (yet). -- 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