Meike Aulbach wrote:
>
>On Sat, Jun 11, 2005 at 07:20:11AM -0700, Mark Sapiro wrote:
>> 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')
>
>No, the error logfiles are completely empty. The only file that still
>contains fresh log-messages is qrunner (restart messages).
>
>zzzz:/var/log/mailman# ls -l
>[...]
>-rw-rw-r--  1 list     list     0 Jun 11 06:25 smtp
>-rw-rw-r--  1 list     list     0 Jun 11 06:25 smtp-failure
>-rw-rw-r--  1 list     list     0 Jun 10 06:25 smtp-failure.1
>-rw-r--r--  1 list     list   880 Jun 11 06:25 smtp-failure.2.gz
>-rw-rw-r--  1 list     list     0 Jun 10 06:25 smtp.1
>-rw-r--r--  1 list     list   599 Jun 11 06:25 smtp.2.gz
>[...]
>zzzz:/var/log/mailman#
>
>> 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?
>
>The original mail, sent to the mailinglist, bounces. Exim gives 
>the mail to mailman, mailman returns an error, so exim returns the
>mail to the sender with the message:
>
>  [EMAIL PROTECTED]
>      local delivery failed
>
>This has been the case all the time, as I understand it mailman fails
>because it cannot send the mails to the users of the mailinglist and
>returns this to exim.


Your understanding is incorrect. The only mystery here is why you ever
had a message in smtp-failure. The original post is not getting to
Mailman at all. If the only problem were in SMTP delivery, the poster
would not get a bounce. There would be the smtp-failure or the bounces
would go to listname-bounces.


>I also did not get mails from Mailman when I created the mailinglist.


There can be lots of reasons for this. This may have been the source of
the smtp-failure log entry.


>> Does the time stamp change on SMTPDirect.pyc and SMTPDirect.pyo if any?
>> If not, try just removing them.
>
>Interesting. These two files were last changed in March 2005!
>Here is what I did:
>
>zzzz:/var/lib/mailman/Mailman/Handlers# ls -l SMTPDirect.py*
>-rw-r--r--  1 root list 16416 Jun 11 13:50 SMTPDirect.py
>-rw-r--r--  1 root root  9967 Mar 29 00:55 SMTPDirect.pyc
>-rw-r--r--  1 root root  9967 Mar 29 00:55 SMTPDirect.pyo
>zzzz:/var/lib/mailman/Mailman/Handlers# mv SMTPDirect.py[co] /tmp
>zzzz:/var/lib/mailman/Mailman/Handlers# /etc/init.d/mailman restart
>Restarting mailman queue runner: mailmanShutting down Mailman's master
>qrunner
>Starting Mailman's master qrunner.
>zzzz:/var/lib/mailman/Mailman/Handlers# ls -l SMTPDirect.py*
>-rw-r--r--  1 root list 16416 Jun 11 13:50 SMTPDirect.py
>zzzz:/var/lib/mailman/Mailman/Handlers# echo foo | mail
>[EMAIL PROTECTED]
>zzzz:/var/lib/mailman/Mailman/Handlers# ls -l SMTPDirect.py*
>-rw-r--r--  1 root list 16416 Jun 11 13:50 SMTPDirect.py
>zzzz:/var/lib/mailman/Mailman/Handlers# ls -l
>/var/log/mailman/smtp-failure
>-rw-rw-r--  1 list list 0 Jun 11 06:25 /var/log/mailman/smtp-failure
>zzzz:/var/lib/mailman/Mailman/Handlers# 
>
>The mail to the mailinglist bounces, from /var/log/exim4/mainlog:
>
>005-06-11 20:35:29 1DhApN-0000pz-Nf ** [EMAIL PROTECTED]
>F=<[EMAIL PROTECTED]> R=mailman_router T=mailman_transport: Child process
>of mailman_transport transport returned 2 from command:
>/var/lib/mailman/mail/mailman
>2005-06-11 20:35:29 cwd=/var/spool/exim4 7 args: /usr/sbin/exim4 -t -oem
>-oi -f <> -E1DhApN-0000pz-Nf
>2005-06-11 20:35:29 1DhApN-0000q5-Od <= <> R=1DhApN-0000pz-Nf
>U=Debian-exim P=local S=1073 T="Mail delivery failed: returning message
>to sender" from <> for [EMAIL PROTECTED]
>2005-06-11 20:35:29 1DhApN-0000pz-Nf Completed


I didn't notice the '2' return code in your original post. I believed
you when you said "mails are correctly delivered to mailman by exim:".
The return code of '2' is a group mismatch error. Does exim give more
information in the returned 'delivery failure' notice? See
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq06.016.htp

Usually, the 'delivery failure' notice will say what group the wrapper
expected to be run as and what group it was run as. The expected group
is normally set by configure via the --with-mail-gid option - see
http://www.list.org/mailman-install/node7.html


>What about the .py[co] files? Why aren't they re-created? Is something
>wrong with the ownership of the files? I did a "chmod list.list *" in
>/var/lib/mailman/Mailman/Handlers (and restarted mailman) and it still
>fails..

I don't understand why SMTPDirect.pyc is not recreated. It should be
created when OutgoingRunner.py is initialized. It does

        modname = 'Mailman.Handlers.' + mm_cfg.DELIVERY_MODULE
        mod = __import__(modname)

as part of its initialization. Assuming mm_cfg.DELIVERY_MODULE is
'SMTPDirect', this will import it which should cause Python to
recompile it. However, the reason you aren't getting any log messages
is that there isn't any outgoing message, so the process in
SMTPDirect.py is never done.

--
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