FAQ
Hi everyone,

I have the following setup:

Postfix -> Dspam -> Procmail -> Mailman -> Users

I've tried taking Dspam out of the equation, but that did not change a thing.

When users send to a mailing list, the message appears to be deilvered to mailman.
However, mailman does not do anything afterwards: i.e. its does not send the
messages to the users.

qrunner is running. I traced the problem to the following:

In logs/post I saw this:

Aug 19 02:01:09 2007 (15427) post to list from falko at reservoir.com, size15, message-id=<20070819054804.GC14916 at reservoir.com>, 12 failures
Aug 19 02:01:09 2007 (15428) post to list from falko at reservoir.com, size15, message-id=<20070819054804.GC14916 at reservoir.com>, 12 failures

The message is repeated more than 12 times.

In logs/error I see this:

Aug 19 01:46:09 2007 qrunner(5838): Traceback (most recent call last):
Aug 19 01:46:09 2007 qrunner(5838): File "/usr/local/mailman/bin/qrunner", line 278, in ?
Aug 19 01:46:09 2007 qrunner(5838): main()
Aug 19 01:46:09 2007 qrunner(5838): File "/usr/local/mailman/bin/qrunner", line 238, in main
Aug 19 01:46:09 2007 qrunner(5838): qrunner.run()
Aug 19 01:46:09 2007 qrunner(5838): File "/usr/local/mailman/Mailman/Queue/Runner.py", line 71, in run
Aug 19 01:46:09 2007 qrunner(5838): filecnt = self._oneloop()
Aug 19 01:46:09 2007 qrunner(5838): File "/usr/local/mailman/Mailman/Queue/Runner.py", line 100, in _oneloop
Aug 19 01:46:09 2007 qrunner(5838): msg, msgdata = self._switchboard.dequeue(filebase)
Aug 19 01:46:09 2007 qrunner(5838): File "/usr/local/mailman/Mailman/Queue/Switchboard.py", line 150, in dequeue
Aug 19 01:46:09 2007 qrunner(5838): fp = open(filename)
Aug 19 01:46:09 2007 qrunner(5838): IOError : [Errno 2] No such file or directory: '/var/lib/mailman/qfiles/out/1187500584.
9663761+5f32a14b80df78b4db0d2455318501cdaa1d6f0f.pck'
Aug 19 01:46:09 2007 qrunner(15103): Traceback (most recent call last):
Aug 19 01:46:09 2007 qrunner(15103): File "/usr/local/mailman/bin/qrunner", line 278, in ?
Aug 19 01:46:09 2007 qrunner(15103): main()
Aug 19 01:46:09 2007 qrunner(15103): File "/usr/local/mailman/bin/qrunner", line 238, in main
Aug 19 01:46:09 2007 qrunner(15103): qrunner.run()
Aug 19 01:46:09 2007 qrunner(15103): File "/usr/local/mailman/Mailman/Queue/Runner.py", line 71, in run
Aug 19 01:46:09 2007 qrunner(15103): filecnt = self._oneloop()
Aug 19 01:46:09 2007 qrunner(15103): File "/usr/local/mailman/Mailman/Queue/Runner.py", line 100, in _oneloop
Aug 19 01:46:09 2007 qrunner(15103): msg, msgdata = self._switchboard.dequeue(filebase)
Aug 19 01:46:09 2007 qrunner(15103): File "/usr/local/mailman/Mailman/Queue/Switchboard.py", line 150, in dequeue
Aug 19 01:46:09 2007 qrunner(15103): fp = open(filename)
Aug 19 01:46:09 2007 qrunner(15103): IOError : [Errno 2] No such file or directory: '/var/lib/mailman/qfiles/out/1187501967
.345715+3df12527015dd9faf50eaa9a346b286119526e4c.pck'
Aug 19 01:48:05 2007 (15098) Uncaught runner exception: [Errno 13] Permission denied: '/var/lib/mailman/archives/private/sys
admin/index.html'
Aug 19 01:48:05 2007 (15098) Traceback (most recent call last):
File "/usr/local/mailman/Mailman/Queue/Runner.py", line 112, in _oneloop
self._onefile(msg, msgdata)
File "/usr/local/mailman/Mailman/Queue/Runner.py", line 170, in _onefile
keepqueued = self._dispose(mlist, msg, msgdata)
File "/usr/local/mailman/Mailman/Queue/ArchRunner.py", line 73, in _dispose
mlist.ArchiveMail(msg)
File "/usr/local/mailman/Mailman/Archiver/Archiver.py", line 217, in ArchiveMail
h.close()
File "/usr/local/mailman/Mailman/Archiver/pipermail.py", line 324, in close
self.write_TOC()
File "/usr/local/mailman/Mailman/Archiver/HyperArch.py", line 1094, in write_TOC
toc = open(os.path.join(self.basedir, 'index.html'), 'w')
IOError: [Errno 13] Permission denied: '/var/lib/mailman/archives/private/sysadmin/index.html'
Aug 19 01:48:05 2007 (15098) SHUNTING: 1187502485.4463329+7a7b88a8b7bb48e961dc70e6ecfb9012cb8d588b
Aug 19 01:48:32 2007 qrunner(15130): Traceback (most recent call last):
Aug 19 01:48:32 2007 qrunner(15066): Traceback (most recent call last):
Aug 19 01:48:32 2007 qrunner(15130): File "/usr/local/mailman/bin/qrunner", line 278, in ?
Aug 19 01:48:32 2007 qrunner(15066): File "/usr/local/mailman/bin/qrunner", line 278, in ?
Aug 19 01:48:32 2007 qrunner(15066): main()
Aug 19 01:48:32 2007 qrunner(15130): main()
Aug 19 01:48:32 2007 qrunner(15066): File "/usr/local/mailman/bin/qrunner", line 238, in main
Aug 19 01:48:32 2007 qrunner(15130): File "/usr/local/mailman/bin/qrunner", line 238, in main
Aug 19 01:48:32 2007 qrunner(15066): qrunner.run()
Aug 19 01:48:32 2007 qrunner(15130): qrunner.run()
Aug 19 01:48:32 2007 qrunner(15066): File "/usr/local/mailman/Mailman/Queue/Runner.py", line 71, in run
Aug 19 01:48:32 2007 qrunner(15130): File "/usr/local/mailman/Mailman/Queue/Runner.py", line 71, in run
Aug 19 01:48:32 2007 qrunner(15066): filecnt = self._oneloop()
Aug 19 01:48:32 2007 qrunner(15130): filecnt = self._oneloop()
Aug 19 01:48:32 2007 qrunner(15066): File "/usr/local/mailman/Mailman/Queue/Runner.py", line 100, in _oneloop
Aug 19 01:48:32 2007 qrunner(15130): File "/usr/local/mailman/Mailman/Queue/Runner.py", line 100, in _oneloop
Aug 19 01:48:32 2007 qrunner(15066): msg, msgdata = self._switchboard.dequeue(filebase)
Aug 19 01:48:32 2007 qrunner(15130): msg, msgdata = self._switchboard.dequeue(filebase)
Aug 19 01:48:32 2007 qrunner(15066): File "/usr/local/mailman/Mailman/Queue/Switchboard.py", line 150, in dequeue
Aug 19 01:48:32 2007 qrunner(15130): File "/usr/local/mailman/Mailman/Queue/Switchboard.py", line 150, in dequeue
Aug 19 01:48:32 2007 qrunner(15066): fp = open(filename)
Aug 19 01:48:32 2007 qrunner(15130): fp = open(filename)
Aug 19 01:48:32 2007 qrunner(15066): IOError : [Errno 2] No such file or directory: '/var/lib/mailman/qfiles/out/1187499921
.1946001+c02f833f5c58eae54691abf67b00931a8e1c163e.pck'
Aug 19 01:48:32 2007 qrunner(15130): IOError : [Errno 2] No such file or directory: '/var/lib/mailman/qfiles/out/1187500584
.9663761+e5cf2faf725111861019d282cc9557ca9ba9db31.pck'
Aug 19 01:48:33 2007 (15173) Failed to unlink backup file: /var/lib/mailman/qfiles/out/1187500584.9663761+e5cf2faf7251118610
19d282cc9557ca9ba9db31.bak
Aug 19 01:48:33 2007 qrunner(15173): Traceback (most recent call last):
Aug 19 01:48:33 2007 qrunner(15173): File "/usr/local/mailman/bin/qrunner", line 278, in ?
Aug 19 01:48:33 2007 qrunner(15173): main()
Aug 19 01:48:33 2007 qrunner(15173): File "/usr/local/mailman/bin/qrunner", line 238, in main
Aug 19 01:48:33 2007 (15174) Failed to unlink backup file: /var/lib/mailman/qfiles/out/1187500584.9663761+e5cf2faf7251118610
19d282cc9557ca9ba9db31.bak
Aug 19 01:48:33 2007 qrunner(15173): qrunner.run()
Aug 19 01:48:33 2007 qrunner(15173): File "/usr/local/mailman/Mailman/Queue/Runner.py", line 71, in run
Aug 19 01:48:33 2007 qrunner(15174): Traceback (most recent call last):
Aug 19 01:48:33 2007 qrunner(15173): filecnt = self._oneloop()
Aug 19 01:48:33 2007 qrunner(15174): File "/usr/local/mailman/bin/qrunner", line 278, in ?
Aug 19 01:48:33 2007 qrunner(15173): File "/usr/local/mailman/Mailman/Queue/Runner.py", line 100, in _oneloop
Aug 19 01:48:33 2007 qrunner(15173): msg, msgdata = self._switchboard.dequeue(filebase)
Aug 19 01:48:33 2007 qrunner(15173): File "/usr/local/mailman/Mailman/Queue/Switchboard.py", line 150, in dequeue
Aug 19 01:48:33 2007 qrunner(15174): main()
Aug 19 01:48:33 2007 qrunner(15173): fp = open(filename)
Aug 19 01:48:33 2007 qrunner(15174): File "/usr/local/mailman/bin/qrunner", line 238, in main
Aug 19 01:48:33 2007 qrunner(15173): IOError : [Errno 2] No such file or directory: '/var/lib/mailman/qfiles/out/1187501967
.345715+5a4803da70f7617e09e586ea434c85c0c1ac7d78.pck'
Aug 19 01:48:33 2007 qrunner(15174): qrunner.run()
Aug 19 01:48:33 2007 qrunner(15174): File "/usr/local/mailman/Mailman/Queue/Runner.py", line 71, in run
Aug 19 01:48:33 2007 qrunner(15174): filecnt = self._oneloop()
Aug 19 01:48:33 2007 qrunner(15174): File "/usr/local/mailman/Mailman/Queue/Runner.py", line 100, in _oneloop
Aug 19 01:48:33 2007 qrunner(15174): msg, msgdata = self._switchboard.dequeue(filebase)
Aug 19 01:48:33 2007 qrunner(15174): File "/usr/local/mailman/Mailman/Queue/Switchboard.py", line 150, in dequeue
Aug 19 01:48:33 2007 qrunner(15174): fp = open(filename)
Aug 19 01:48:33 2007 qrunner(15174): IOError : [Errno 2] No such file or directory: '/var/lib/mailman/qfiles/out/1187501967
.345715+5a4803da70f7617e09e586ea434c85c0c1ac7d78.pck'
Aug 19 01:48:34 2007 (15175) Failed to unlink backup file: /var/lib/mailman/qfiles/out/1187502485.4463329+b3340e5f92da810eba
c21917ba159eb5fc70593a.bak

At 1:56 and 2:00 I see very simular stuff.




I have run bin/check_perms multiple times, but it tells me that there are no problems.



I appreciate any help. Thanks!


Best regards,
Andrey Falko

Search Discussions

  • Mark Sapiro at Aug 19, 2007 at 7:02 am
    falko at tahoe.reservoir.com
    I have the following setup:

    Postfix -> Dspam -> Procmail -> Mailman -> Users

    I've tried taking Dspam out of the equation, but that did not change a thing.

    When users send to a mailing list, the message appears to be deilvered to mailman.
    However, mailman does not do anything afterwards: i.e. its does not send the
    messages to the users.

    qrunner is running. I traced the problem to the following:

    In logs/post I saw this:

    Aug 19 02:01:09 2007 (15427) post to list from falko at reservoir.com, size15, message-id=<20070819054804.GC14916 at reservoir.com>, 12 failures
    Aug 19 02:01:09 2007 (15428) post to list from falko at reservoir.com, size15, message-id=<20070819054804.GC14916 at reservoir.com>, 12 failures

    The message is repeated more than 12 times.

    And what is in the smtp-failure log?

    In logs/error I see this:

    Aug 19 01:46:09 2007 qrunner(5838): Traceback (most recent call last):
    Aug 19 01:46:09 2007 qrunner(5838): File "/usr/local/mailman/bin/qrunner", line 278, in ?
    Aug 19 01:46:09 2007 qrunner(5838): main()
    Aug 19 01:46:09 2007 qrunner(5838): File "/usr/local/mailman/bin/qrunner", line 238, in main
    Aug 19 01:46:09 2007 qrunner(5838): qrunner.run()
    Aug 19 01:46:09 2007 qrunner(5838): File "/usr/local/mailman/Mailman/Queue/Runner.py", line 71, in run
    Aug 19 01:46:09 2007 qrunner(5838): filecnt = self._oneloop()
    Aug 19 01:46:09 2007 qrunner(5838): File "/usr/local/mailman/Mailman/Queue/Runner.py", line 100, in _oneloop
    Aug 19 01:46:09 2007 qrunner(5838): msg, msgdata = self._switchboard.dequeue(filebase)
    Aug 19 01:46:09 2007 qrunner(5838): File "/usr/local/mailman/Mailman/Queue/Switchboard.py", line 150, in dequeue
    Aug 19 01:46:09 2007 qrunner(5838): fp = open(filename)
    Aug 19 01:46:09 2007 qrunner(5838): IOError : [Errno 2] No such file or directory: '/var/lib/mailman/qfiles/out/1187500584.
    9663761+5f32a14b80df78b4db0d2455318501cdaa1d6f0f.pck'

    See
    <http://www.python.org/cgi-bin/faqw-mm.py?req=show&fileúq04.068.htp>


    <snip>
    Aug 19 01:48:05 2007 (15098) Uncaught runner exception: [Errno 13] Permission denied: '/var/lib/mailman/archives/private/sys
    admin/index.html'
    Aug 19 01:48:05 2007 (15098) Traceback (most recent call last):
    File "/usr/local/mailman/Mailman/Queue/Runner.py", line 112, in _oneloop
    self._onefile(msg, msgdata)
    File "/usr/local/mailman/Mailman/Queue/Runner.py", line 170, in _onefile
    keepqueued = self._dispose(mlist, msg, msgdata)
    File "/usr/local/mailman/Mailman/Queue/ArchRunner.py", line 73, in _dispose
    mlist.ArchiveMail(msg)
    File "/usr/local/mailman/Mailman/Archiver/Archiver.py", line 217, in ArchiveMail
    h.close()
    File "/usr/local/mailman/Mailman/Archiver/pipermail.py", line 324, in close
    self.write_TOC()
    File "/usr/local/mailman/Mailman/Archiver/HyperArch.py", line 1094, in write_TOC
    toc = open(os.path.join(self.basedir, 'index.html'), 'w')
    IOError: [Errno 13] Permission denied: '/var/lib/mailman/archives/private/sysadmin/index.html'
    Aug 19 01:48:05 2007 (15098) SHUNTING: 1187502485.4463329+7a7b88a8b7bb48e961dc70e6ecfb9012cb8d588b

    There is a bug in check_perms. It does not check for sufficient access
    to archives/private/ - permissions should be at least drwxrws--- and
    group mailman.


    <snip>
    Aug 19 01:48:33 2007 (15173) Failed to unlink backup file: /var/lib/mailman/qfiles/out/1187500584.9663761+e5cf2faf7251118610
    19d282cc9557ca9ba9db31.bak

    This too looks like multiple qrunners processing the same queue slice.


    <snip>
    I have run bin/check_perms multiple times, but it tells me that there are no problems.

    See above.

    --
    Mark Sapiro <msapiro at value.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan
  • Falko at Aug 19, 2007 at 4:28 pm

    On Sun, Aug 19, 2007 at 12:02:52AM -0700, Mark Sapiro wrote:
    falko at tahoe.reservoir.com
    I have the following setup:

    Postfix -> Dspam -> Procmail -> Mailman -> Users

    I've tried taking Dspam out of the equation, but that did not change a thing.

    When users send to a mailing list, the message appears to be deilvered to mailman.
    However, mailman does not do anything afterwards: i.e. its does not send the
    messages to the users.

    qrunner is running. I traced the problem to the following:

    In logs/post I saw this:

    Aug 19 02:01:09 2007 (15427) post to list from falko at reservoir.com, size15, message-id=<20070819054804.GC14916 at reservoir.com>, 12 failures
    Aug 19 02:01:09 2007 (15428) post to list from falko at reservoir.com, size15, message-id=<20070819054804.GC14916 at reservoir.com>, 12 failures

    The message is repeated more than 12 times.

    And what is in the smtp-failure log?
    I saw the following:

    Aug 19 12:12:03 2007 (4347) delivery to addr1 at reservoir.com failed with code -1: (111, 'Connection refused')
    Aug 19 12:12:03 2007 (4347) delivery to addr2 at reservoir.com failed with code -1: (111, 'Connection refused')
    Aug 19 12:12:03 2007 (4347) delivery to addr3 at reservoir.com failed with code -1: (111, 'Connection refused')

    Ever since then, I see things like in logs/smtp:

    Aug 19 06:01:19 2007 (15455) <20070819051624.GB13998 at tahoe.reservoir.com> smtp to list for 12 recips, completed in 0.001
    seconds
    Aug 19 06:01:19 2007 (15455) <20070819051624.GB13998 at tahoe.reservoir.com> smtp to list for 12 recips, completed in 0.001
    seconds
    Aug 19 06:01:19 2007 (15455) <20070819051624.GB13998 at tahoe.reservoir.com> smtp to list for 12 recips, completed in 0.001
    seconds

    Noting is still going through though.

    The errors in logs/error appear to have stopped at 8:00 AM.

    In logs/error I see this:

    Aug 19 01:46:09 2007 qrunner(5838): Traceback (most recent call last):
    Aug 19 01:46:09 2007 qrunner(5838): File "/usr/local/mailman/bin/qrunner", line 278, in ?
    Aug 19 01:46:09 2007 qrunner(5838): main()
    Aug 19 01:46:09 2007 qrunner(5838): File "/usr/local/mailman/bin/qrunner", line 238, in main
    Aug 19 01:46:09 2007 qrunner(5838): qrunner.run()
    Aug 19 01:46:09 2007 qrunner(5838): File "/usr/local/mailman/Mailman/Queue/Runner.py", line 71, in run
    Aug 19 01:46:09 2007 qrunner(5838): filecnt = self._oneloop()
    Aug 19 01:46:09 2007 qrunner(5838): File "/usr/local/mailman/Mailman/Queue/Runner.py", line 100, in _oneloop
    Aug 19 01:46:09 2007 qrunner(5838): msg, msgdata = self._switchboard.dequeue(filebase)
    Aug 19 01:46:09 2007 qrunner(5838): File "/usr/local/mailman/Mailman/Queue/Switchboard.py", line 150, in dequeue
    Aug 19 01:46:09 2007 qrunner(5838): fp = open(filename)
    Aug 19 01:46:09 2007 qrunner(5838): IOError : [Errno 2] No such file or directory: '/var/lib/mailman/qfiles/out/1187500584.
    9663761+5f32a14b80df78b4db0d2455318501cdaa1d6f0f.pck'

    See
    <http://www.python.org/cgi-bin/faqw-mm.py?req=show&fileúq04.068.htp>


    <snip>
    Aug 19 01:48:05 2007 (15098) Uncaught runner exception: [Errno 13] Permission denied: '/var/lib/mailman/archives/private/sys
    admin/index.html'
    Aug 19 01:48:05 2007 (15098) Traceback (most recent call last):
    File "/usr/local/mailman/Mailman/Queue/Runner.py", line 112, in _oneloop
    self._onefile(msg, msgdata)
    File "/usr/local/mailman/Mailman/Queue/Runner.py", line 170, in _onefile
    keepqueued = self._dispose(mlist, msg, msgdata)
    File "/usr/local/mailman/Mailman/Queue/ArchRunner.py", line 73, in _dispose
    mlist.ArchiveMail(msg)
    File "/usr/local/mailman/Mailman/Archiver/Archiver.py", line 217, in ArchiveMail
    h.close()
    File "/usr/local/mailman/Mailman/Archiver/pipermail.py", line 324, in close
    self.write_TOC()
    File "/usr/local/mailman/Mailman/Archiver/HyperArch.py", line 1094, in write_TOC
    toc = open(os.path.join(self.basedir, 'index.html'), 'w')
    IOError: [Errno 13] Permission denied: '/var/lib/mailman/archives/private/sysadmin/index.html'
    Aug 19 01:48:05 2007 (15098) SHUNTING: 1187502485.4463329+7a7b88a8b7bb48e961dc70e6ecfb9012cb8d588b

    There is a bug in check_perms. It does not check for sufficient access
    to archives/private/ - permissions should be at least drwxrws--- and
    group mailman.
    I set those perms to all files (some files did not have those perms just now.
    <snip>
    Aug 19 01:48:33 2007 (15173) Failed to unlink backup file: /var/lib/mailman/qfiles/out/1187500584.9663761+e5cf2faf7251118610
    19d282cc9557ca9ba9db31.bak

    This too looks like multiple qrunners processing the same queue slice.
    This was true. I killed all of them off. And removed the -s option from the init script I was using.
    <snip>
    I have run bin/check_perms multiple times, but it tells me that there are no problems.

    See above.

    --
    Mark Sapiro <msapiro at value.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan

    ------------------------------------------------------
    Mailman-Users mailing list
    Mailman-Users at 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/falko%40reservoir.com

    Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&amp;fileúq01.027.htp
  • Falko at Aug 19, 2007 at 5:16 pm

    On Sun, Aug 19, 2007 at 12:02:52AM -0700, Mark Sapiro wrote:
    falko at tahoe.reservoir.com
    I have the following setup:

    Postfix -> Dspam -> Procmail -> Mailman -> Users

    I've tried taking Dspam out of the equation, but that did not change a thing.

    When users send to a mailing list, the message appears to be deilvered to mailman.
    However, mailman does not do anything afterwards: i.e. its does not send the
    messages to the users.

    qrunner is running. I traced the problem to the following:

    In logs/post I saw this:

    Aug 19 02:01:09 2007 (15427) post to list from falko at reservoir.com, size15, message-id=<20070819054804.GC14916 at reservoir.com>, 12 failures
    Aug 19 02:01:09 2007 (15428) post to list from falko at reservoir.com, size15, message-id=<20070819054804.GC14916 at reservoir.com>, 12 failures

    The message is repeated more than 12 times.

    And what is in the smtp-failure log?
    This stuff:

    Aug 19 13:09:18 2007 (7258) delivery to addr1 at reservoir.com failed with code -1: (111, 'Connection refused')
    Aug 19 13:09:18 2007 (7258) delivery to addr2 at reservoir.com failed with code -1: (111, 'Connection refused')
    Aug 19 13:09:18 2007 (7258) delivery to addr... at reservoir.com failed with code -1: (111, 'Connection refused')

    So the question I guess is, why is postfix refusing the connnection? How does mailman connect to
    postfix?

    I am using this in mm_cfg.py:

    # Maildir
    USE_MAILDIR = Yes
    QRUNNERS.append(('MaildirRunner', 1))

    DEFAULT_DIGESTABLE = No

    # Uses genaliases as covered by mailman docs.
    MTA = 'Postfix'


    In /etc/postfix/main.cf I have this:

    alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases

    Inside /var/lib/mailman/data/aliases:

    # STANZA START: list
    # CREATED: Sun Aug 19 01:13:18 2007
    list: /var/lib/mailman/qfiles/maildir/
    list-admin: /var/lib/mailman/qfiles/maildir/
    list-bounces: /var/lib/mailman/qfiles/maildir/
    list-confirm: /var/lib/mailman/qfiles/maildir/
    list-join: /var/lib/mailman/qfiles/maildir/
    list-leave: /var/lib/mailman/qfiles/maildir/
    list-owner: /var/lib/mailman/qfiles/maildir/
    list-request: /var/lib/mailman/qfiles/maildir/
    list-subscribe: /var/lib/mailman/qfiles/maildir/
    list-unsubscribe: /var/lib/mailman/qfiles/maildir/
    # STANZA END: list
    In logs/error I see this:

    Aug 19 01:46:09 2007 qrunner(5838): Traceback (most recent call last):
    Aug 19 01:46:09 2007 qrunner(5838): File "/usr/local/mailman/bin/qrunner", line 278, in ?
    Aug 19 01:46:09 2007 qrunner(5838): main()
    Aug 19 01:46:09 2007 qrunner(5838): File "/usr/local/mailman/bin/qrunner", line 238, in main
    Aug 19 01:46:09 2007 qrunner(5838): qrunner.run()
    Aug 19 01:46:09 2007 qrunner(5838): File "/usr/local/mailman/Mailman/Queue/Runner.py", line 71, in run
    Aug 19 01:46:09 2007 qrunner(5838): filecnt = self._oneloop()
    Aug 19 01:46:09 2007 qrunner(5838): File "/usr/local/mailman/Mailman/Queue/Runner.py", line 100, in _oneloop
    Aug 19 01:46:09 2007 qrunner(5838): msg, msgdata = self._switchboard.dequeue(filebase)
    Aug 19 01:46:09 2007 qrunner(5838): File "/usr/local/mailman/Mailman/Queue/Switchboard.py", line 150, in dequeue
    Aug 19 01:46:09 2007 qrunner(5838): fp = open(filename)
    Aug 19 01:46:09 2007 qrunner(5838): IOError : [Errno 2] No such file or directory: '/var/lib/mailman/qfiles/out/1187500584.
    9663761+5f32a14b80df78b4db0d2455318501cdaa1d6f0f.pck'

    See
    <http://www.python.org/cgi-bin/faqw-mm.py?req=show&fileúq04.068.htp>


    <snip>
    Aug 19 01:48:05 2007 (15098) Uncaught runner exception: [Errno 13] Permission denied: '/var/lib/mailman/archives/private/sys
    admin/index.html'
    Aug 19 01:48:05 2007 (15098) Traceback (most recent call last):
    File "/usr/local/mailman/Mailman/Queue/Runner.py", line 112, in _oneloop
    self._onefile(msg, msgdata)
    File "/usr/local/mailman/Mailman/Queue/Runner.py", line 170, in _onefile
    keepqueued = self._dispose(mlist, msg, msgdata)
    File "/usr/local/mailman/Mailman/Queue/ArchRunner.py", line 73, in _dispose
    mlist.ArchiveMail(msg)
    File "/usr/local/mailman/Mailman/Archiver/Archiver.py", line 217, in ArchiveMail
    h.close()
    File "/usr/local/mailman/Mailman/Archiver/pipermail.py", line 324, in close
    self.write_TOC()
    File "/usr/local/mailman/Mailman/Archiver/HyperArch.py", line 1094, in write_TOC
    toc = open(os.path.join(self.basedir, 'index.html'), 'w')
    IOError: [Errno 13] Permission denied: '/var/lib/mailman/archives/private/sysadmin/index.html'
    Aug 19 01:48:05 2007 (15098) SHUNTING: 1187502485.4463329+7a7b88a8b7bb48e961dc70e6ecfb9012cb8d588b

    There is a bug in check_perms. It does not check for sufficient access
    to archives/private/ - permissions should be at least drwxrws--- and
    group mailman.


    <snip>
    Aug 19 01:48:33 2007 (15173) Failed to unlink backup file: /var/lib/mailman/qfiles/out/1187500584.9663761+e5cf2faf7251118610
    19d282cc9557ca9ba9db31.bak

    This too looks like multiple qrunners processing the same queue slice.


    <snip>
    I have run bin/check_perms multiple times, but it tells me that there are no problems.

    See above.

    --
    Mark Sapiro <msapiro at value.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan

    ------------------------------------------------------
    Mailman-Users mailing list
    Mailman-Users at 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/falko%40reservoir.com

    Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&amp;fileúq01.027.htp
  • Mark Sapiro at Aug 19, 2007 at 6:42 pm

    falko at tahoe.reservoir.com wrote:
    On Sun, Aug 19, 2007 at 12:02:52AM -0700, Mark Sapiro wrote:


    And what is in the smtp-failure log?
    This stuff:

    Aug 19 13:09:18 2007 (7258) delivery to addr1 at reservoir.com failed with code -1: (111, 'Connection refused')
    Aug 19 13:09:18 2007 (7258) delivery to addr2 at reservoir.com failed with code -1: (111, 'Connection refused')
    Aug 19 13:09:18 2007 (7258) delivery to addr... at reservoir.com failed with code -1: (111, 'Connection refused')

    So the question I guess is, why is postfix refusing the connnection? How does mailman connect to
    postfix?

    See
    <http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq04.073.htp>.

    Mailman attempts to connect to SMTPPORT on SMTPHOST (defaults are port
    25 on 'localhost') to deliver mail.

    I am using this in mm_cfg.py:

    # Maildir
    USE_MAILDIR = Yes
    QRUNNERS.append(('MaildirRunner', 1))

    DEFAULT_DIGESTABLE = No

    # Uses genaliases as covered by mailman docs.
    MTA = 'Postfix'


    In /etc/postfix/main.cf I have this:

    alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases

    Inside /var/lib/mailman/data/aliases:

    # STANZA START: list
    # CREATED: Sun Aug 19 01:13:18 2007
    list: /var/lib/mailman/qfiles/maildir/
    list-admin: /var/lib/mailman/qfiles/maildir/
    list-bounces: /var/lib/mailman/qfiles/maildir/
    list-confirm: /var/lib/mailman/qfiles/maildir/
    list-join: /var/lib/mailman/qfiles/maildir/
    list-leave: /var/lib/mailman/qfiles/maildir/
    list-owner: /var/lib/mailman/qfiles/maildir/
    list-request: /var/lib/mailman/qfiles/maildir/
    list-subscribe: /var/lib/mailman/qfiles/maildir/
    list-unsubscribe: /var/lib/mailman/qfiles/maildir/
    # STANZA END: list

    All of the above is relevant only for incoming mail to Mailman. None
    of it is relevant to the smtp failures.

    --
    Mark Sapiro <msapiro at value.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupmailman-users @
categoriespython
postedAug 19, '07 at 6:11a
activeAug 19, '07 at 6:42p
posts5
users2
websitelist.org

2 users in discussion

Falko: 3 posts Mark Sapiro: 2 posts

People

Translate

site design / logo © 2022 Grokbase