FAQ
Hi

I had to move lists. We had a hardware failure and they had to move
to our new mail server. The mail server migration went fine and we
thought mailman moved okay as well but we were wrong.

Earlier today I tried to create a new list and and got an error so my
boss said to check permissions. I ran the /usr/share/mailman/bin/
check_perms -f in every mailman file I could find but Im still
getting permission errors. I even gave global permissions to all the
archives but no luck.

Right now, lists have stopped - they just aren't working and I just
can't figure out what the problem is. The more we tried to fix it,
the worse it got. Unfortunately my company heavily relies on them so
I figured before I set out to manually configure mail aliases, does
anyone know a way around this mess?

from var/mailman/logs/error: (the permissions and ownership for the
client-list is -rw-r--r-- 1 root mailman 479 Jun 18 13:30 /
private/var/mailman/archives/private/client-list/index.html)

Jun 18 19:24:34 2007 (10816) SHUNTING: 1182219873.5167899
+ceff885a98ff1c83a23f7e83b4d94678813ee808
Jun 18 19:25:36 2007 (10819) Uncaught runner exception: [Errno 1]
Operation not permitted: '/private/var/mailman/archives/public/client-
list'
Jun 18 19:25:36 2007 (10819) Traceback (most recent call last):
File "/usr/share/mailman/Mailman/Queue/Runner.py", line 111, in
_oneloop
self._onefile(msg, msgdata)
File "/usr/share/mailman/Mailman/Queue/Runner.py", line 167, in
_onefile
keepqueued = self._dispose(mlist, msg, msgdata)
File "/usr/share/mailman/Mailman/Queue/IncomingRunner.py", line
133, in _dispose
mlist.Save()
File "/usr/share/mailman/Mailman/MailList.py", line 529, in Save
self.CheckHTMLArchiveDir()
File "/usr/share/mailman/Mailman/Archiver/Archiver.py", line 235,
in CheckHTMLArchiveDir
breaklink(pubdir)
File "/usr/share/mailman/Mailman/Archiver/Archiver.py", line 55,
in breaklink
os.unlink(link)
OSError: [Errno 1] Operation not permitted: '/private/var/mailman/
archives/public/client-list'

Jun 18 19:25:36 2007 (10819) SHUNTING: 1182219935.3121431
+07ef8a32317dde697d0042ee151b8fd11d41b398
Jun 18 19:25:36 2007 (10816) Uncaught runner exception: [Errno 13]
Permission denied: '/private/var/mailman/archives/private/client-list/
index.html'
Jun 18 19:25:36 2007 (10816) Traceback (most recent call last):
File "/usr/share/mailman/Mailman/Queue/Runner.py", line 111, in
_oneloop
self._onefile(msg, msgdata)
File "/usr/share/mailman/Mailman/Queue/Runner.py", line 167, in
_onefile
keepqueued = self._dispose(mlist, msg, msgdata)
File "/usr/share/mailman/Mailman/Queue/ArchRunner.py", line 73, in
_dispose
mlist.ArchiveMail(msg)
File "/usr/share/mailman/Mailman/Archiver/Archiver.py", line 216,
in ArchiveMail
h.close()
File "/usr/share/mailman/Mailman/Archiver/pipermail.py", line 313,
in close
self.write_TOC()
File "/usr/share/mailman/Mailman/Archiver/HyperArch.py", line
1048, in write_TOC
toc = open(os.path.join(self.basedir, 'index.html'), 'w')
IOError: [Errno 13] Permission denied: '/private/var/mailman/archives/
private/client-list/index.html'

Jun 18 19:25:36 2007 (10816) SHUNTING: 1182219935.3121431
+1f5997710b510ce2af03c4b18e68bca2a9a7cf5d
Jun 18 19:25:53 2007 (10819) Uncaught runner exception: [Errno 1]
Operation not permitted: '/private/var/mailman/archives/public/client-
list'
Jun 18 19:25:53 2007 (10819) Traceback (most recent call last):
File "/usr/share/mailman/Mailman/Queue/Runner.py", line 111, in
_oneloop
self._onefile(msg, msgdata)
File "/usr/share/mailman/Mailman/Queue/Runner.py", line 167, in
_onefile
keepqueued = self._dispose(mlist, msg, msgdata)
File "/usr/share/mailman/Mailman/Queue/IncomingRunner.py", line
133, in _dispose
mlist.Save()
File "/usr/share/mailman/Mailman/MailList.py", line 529, in Save
self.CheckHTMLArchiveDir()
File "/usr/share/mailman/Mailman/Archiver/Archiver.py", line 235,
in CheckHTMLArchiveDir
breaklink(pubdir)
File "/usr/share/mailman/Mailman/Archiver/Archiver.py", line 55,
in breaklink
os.unlink(link)
OSError: [Errno 1] Operation not permitted: '/private/var/mailman/
archives/public/client-list'

Jun 18 19:25:53 2007 (10819) SHUNTING: 1182219952.298547
+a97ef5907aa7d67744b62971add1b089b4336b32
Jun 18 19:25:53 2007 (10816) Uncaught runner exception: [Errno 13]
Permission denied: '/private/var/mailman/archives/private/client-list/
index.html'
Jun 18 19:25:53 2007 (10816) Traceback (most recent call last):
File "/usr/share/mailman/Mailman/Queue/Runner.py", line 111, in
_oneloop
self._onefile(msg, msgdata)
File "/usr/share/mailman/Mailman/Queue/Runner.py", line 167, in
_onefile
keepqueued = self._dispose(mlist, msg, msgdata)
File "/usr/share/mailman/Mailman/Queue/ArchRunner.py", line 73, in
_dispose
mlist.ArchiveMail(msg)
File "/usr/share/mailman/Mailman/Archiver/Archiver.py", line 216,
in ArchiveMail
h.close()
File "/usr/share/mailman/Mailman/Archiver/pipermail.py", line 313,
in close
self.write_TOC()
File "/usr/share/mailman/Mailman/Archiver/HyperArch.py", line
1048, in write_TOC
toc = open(os.path.join(self.basedir, 'index.html'), 'w')
IOError: [Errno 13] Permission denied: '/private/var/mailman/archives/
private/client-list/index.html'

Jun 18 19:25:53 2007 (10816) SHUNTING: 1182219952.298547
+542a885011bac44ed8f869a06f7c64ebe07acaf9
Jun 18 19:27:07 2007 (10819) Uncaught runner exception: [Errno 1]
Operation not permitted: '/private/var/mailman/archives/public/client-
list'
Jun 18 19:27:07 2007 (10819) Traceback (most recent call last):
File "/usr/share/mailman/Mailman/Queue/Runner.py", line 111, in
_oneloop
self._onefile(msg, msgdata)
File "/usr/share/mailman/Mailman/Queue/Runner.py", line 167, in
_onefile
keepqueued = self._dispose(mlist, msg, msgdata)
File "/usr/share/mailman/Mailman/Queue/IncomingRunner.py", line
133, in _dispose
mlist.Save()
File "/usr/share/mailman/Mailman/MailList.py", line 529, in Save
self.CheckHTMLArchiveDir()
File "/usr/share/mailman/Mailman/Archiver/Archiver.py", line 235,
in CheckHTMLArchiveDir
breaklink(pubdir)
File "/usr/share/mailman/Mailman/Archiver/Archiver.py", line 55,
in breaklink
os.unlink(link)
OSError: [Errno 1] Operation not permitted: '/private/var/mailman/
archives/public/client-list'

Jun 18 19:27:07 2007 (10819) SHUNTING: 1182220026.5520279
+b4a5f31a903a595b30aad7c8b13e6b37e44b3b25
Jun 18 19:27:07 2007 (10816) Uncaught runner exception: [Errno 13]
Permission denied: '/private/var/mailman/archives/private/client-list/
index.html'
Jun 18 19:27:07 2007 (10816) Traceback (most recent call last):
File "/usr/share/mailman/Mailman/Queue/Runner.py", line 111, in
_oneloop
self._onefile(msg, msgdata)
File "/usr/share/mailman/Mailman/Queue/Runner.py", line 167, in
_onefile
keepqueued = self._dispose(mlist, msg, msgdata)
File "/usr/share/mailman/Mailman/Queue/ArchRunner.py", line 73, in
_dispose
mlist.ArchiveMail(msg)
File "/usr/share/mailman/Mailman/Archiver/Archiver.py", line 216,
in ArchiveMail
h.close()
File "/usr/share/mailman/Mailman/Archiver/pipermail.py", line 313,
in close
self.write_TOC()
File "/usr/share/mailman/Mailman/Archiver/HyperArch.py", line
1048, in write_TOC
toc = open(os.path.join(self.basedir, 'index.html'), 'w')
IOError: [Errno 13] Permission denied: '/private/var/mailman/archives/
private/client-list/index.html'

Jun 18 19:27:07 2007 (10816) SHUNTING: 1182220026.5520279
+eddee6c8cd6b87769edeaa60fe9c23f1e3e19640

Search Discussions

  • Mark Sapiro at Jun 19, 2007 at 5:08 am

    carconni wrote:
    I had to move lists. We had a hardware failure and they had to move
    to our new mail server. The mail server migration went fine and we
    thought mailman moved okay as well but we were wrong.

    Earlier today I tried to create a new list and and got an error so my
    boss said to check permissions. I ran the /usr/share/mailman/bin/
    check_perms -f in every mailman file I could find but Im still
    getting permission errors. I even gave global permissions to all the
    archives but no luck.

    It doesn't matter where your current directory is. You just run

    /usr/share/mailman/bin/check_perms -f

    as root until it reports no errors.

    Right now, lists have stopped - they just aren't working and I just
    can't figure out what the problem is. The more we tried to fix it,
    the worse it got. Unfortunately my company heavily relies on them so
    I figured before I set out to manually configure mail aliases, does
    anyone know a way around this mess?

    from var/mailman/logs/error: (the permissions and ownership for the
    client-list is -rw-r--r-- 1 root mailman 479 Jun 18 13:30 /
    private/var/mailman/archives/private/client-list/index.html)

    It should be group writable - i.e. -rw-rw-r-- 1 root mailman

    Jun 18 19:24:34 2007 (10816) SHUNTING: 1182219873.5167899
    +ceff885a98ff1c83a23f7e83b4d94678813ee808
    Jun 18 19:25:36 2007 (10819) Uncaught runner exception: [Errno 1]
    Operation not permitted: '/private/var/mailman/archives/public/client-
    list'
    Jun 18 19:25:36 2007 (10819) Traceback (most recent call last):
    File "/usr/share/mailman/Mailman/Queue/Runner.py", line 111, in
    _oneloop
    self._onefile(msg, msgdata)
    File "/usr/share/mailman/Mailman/Queue/Runner.py", line 167, in
    _onefile
    keepqueued = self._dispose(mlist, msg, msgdata)
    File "/usr/share/mailman/Mailman/Queue/IncomingRunner.py", line
    133, in _dispose
    mlist.Save()
    File "/usr/share/mailman/Mailman/MailList.py", line 529, in Save
    self.CheckHTMLArchiveDir()
    File "/usr/share/mailman/Mailman/Archiver/Archiver.py", line 235,
    in CheckHTMLArchiveDir
    breaklink(pubdir)
    File "/usr/share/mailman/Mailman/Archiver/Archiver.py", line 55,
    in breaklink
    os.unlink(link)
    OSError: [Errno 1] Operation not permitted: '/private/var/mailman/
    archives/public/client-list'

    I'm guessing when you backed up and moved from the old machines, you
    wound up with files in /private/var/mailman/archives/public/

    There should only be symlinks in that directory. Every
    /private/var/mailman/archives/public/<listname> and
    /private/var/mailman/archives/public/<listname.mbox> is a symlink to
    the corresponding /private/var/mailman/archives/private/<listname> and
    /private/var/mailman/archives/private/<listname.mbox> directory.

    Either fixing that or simply removing everything in the
    /private/var/mailman/archives/public/ will allow Mailman to recreate
    the proper symlinks.

    Jun 18 19:25:36 2007 (10819) SHUNTING: 1182219935.3121431
    +07ef8a32317dde697d0042ee151b8fd11d41b398
    Jun 18 19:25:36 2007 (10816) Uncaught runner exception: [Errno 13]
    Permission denied: '/private/var/mailman/archives/private/client-list/
    index.html'
    Jun 18 19:25:36 2007 (10816) Traceback (most recent call last):
    File "/usr/share/mailman/Mailman/Queue/Runner.py", line 111, in
    _oneloop
    self._onefile(msg, msgdata)
    File "/usr/share/mailman/Mailman/Queue/Runner.py", line 167, in
    _onefile
    keepqueued = self._dispose(mlist, msg, msgdata)
    File "/usr/share/mailman/Mailman/Queue/ArchRunner.py", line 73, in
    _dispose
    mlist.ArchiveMail(msg)
    File "/usr/share/mailman/Mailman/Archiver/Archiver.py", line 216,
    in ArchiveMail
    h.close()
    File "/usr/share/mailman/Mailman/Archiver/pipermail.py", line 313,
    in close
    self.write_TOC()
    File "/usr/share/mailman/Mailman/Archiver/HyperArch.py", line
    1048, in write_TOC
    toc = open(os.path.join(self.basedir, 'index.html'), 'w')
    IOError: [Errno 13] Permission denied: '/private/var/mailman/archives/
    private/client-list/index.html'

    Jun 18 19:25:36 2007 (10816) SHUNTING: 1182219935.3121431
    +1f5997710b510ce2af03c4b18e68bca2a9a7cf5d
    Jun 18 19:25:53 2007 (10819) Uncaught runner exception: [Errno 1]
    Operation not permitted: '/private/var/mailman/archives/public/client-
    list'
    Jun 18 19:25:53 2007 (10819) Traceback (most recent call last):
    File "/usr/share/mailman/Mailman/Queue/Runner.py", line 111, in
    _oneloop
    self._onefile(msg, msgdata)
    File "/usr/share/mailman/Mailman/Queue/Runner.py", line 167, in
    _onefile
    keepqueued = self._dispose(mlist, msg, msgdata)
    File "/usr/share/mailman/Mailman/Queue/IncomingRunner.py", line
    133, in _dispose
    mlist.Save()
    File "/usr/share/mailman/Mailman/MailList.py", line 529, in Save
    self.CheckHTMLArchiveDir()
    File "/usr/share/mailman/Mailman/Archiver/Archiver.py", line 235,
    in CheckHTMLArchiveDir
    breaklink(pubdir)
    File "/usr/share/mailman/Mailman/Archiver/Archiver.py", line 55,
    in breaklink
    os.unlink(link)
    OSError: [Errno 1] Operation not permitted: '/private/var/mailman/
    archives/public/client-list'

    Jun 18 19:25:53 2007 (10819) SHUNTING: 1182219952.298547
    +a97ef5907aa7d67744b62971add1b089b4336b32
    Jun 18 19:25:53 2007 (10816) Uncaught runner exception: [Errno 13]
    Permission denied: '/private/var/mailman/archives/private/client-list/
    index.html'
    Jun 18 19:25:53 2007 (10816) Traceback (most recent call last):
    File "/usr/share/mailman/Mailman/Queue/Runner.py", line 111, in
    _oneloop
    self._onefile(msg, msgdata)
    File "/usr/share/mailman/Mailman/Queue/Runner.py", line 167, in
    _onefile
    keepqueued = self._dispose(mlist, msg, msgdata)
    File "/usr/share/mailman/Mailman/Queue/ArchRunner.py", line 73, in
    _dispose
    mlist.ArchiveMail(msg)
    File "/usr/share/mailman/Mailman/Archiver/Archiver.py", line 216,
    in ArchiveMail
    h.close()
    File "/usr/share/mailman/Mailman/Archiver/pipermail.py", line 313,
    in close
    self.write_TOC()
    File "/usr/share/mailman/Mailman/Archiver/HyperArch.py", line
    1048, in write_TOC
    toc = open(os.path.join(self.basedir, 'index.html'), 'w')
    IOError: [Errno 13] Permission denied: '/private/var/mailman/archives/
    private/client-list/index.html'

    Jun 18 19:25:53 2007 (10816) SHUNTING: 1182219952.298547
    +542a885011bac44ed8f869a06f7c64ebe07acaf9
    Jun 18 19:27:07 2007 (10819) Uncaught runner exception: [Errno 1]
    Operation not permitted: '/private/var/mailman/archives/public/client-
    list'
    Jun 18 19:27:07 2007 (10819) Traceback (most recent call last):
    File "/usr/share/mailman/Mailman/Queue/Runner.py", line 111, in
    _oneloop
    self._onefile(msg, msgdata)
    File "/usr/share/mailman/Mailman/Queue/Runner.py", line 167, in
    _onefile
    keepqueued = self._dispose(mlist, msg, msgdata)
    File "/usr/share/mailman/Mailman/Queue/IncomingRunner.py", line
    133, in _dispose
    mlist.Save()
    File "/usr/share/mailman/Mailman/MailList.py", line 529, in Save
    self.CheckHTMLArchiveDir()
    File "/usr/share/mailman/Mailman/Archiver/Archiver.py", line 235,
    in CheckHTMLArchiveDir
    breaklink(pubdir)
    File "/usr/share/mailman/Mailman/Archiver/Archiver.py", line 55,
    in breaklink
    os.unlink(link)
    OSError: [Errno 1] Operation not permitted: '/private/var/mailman/
    archives/public/client-list'

    Jun 18 19:27:07 2007 (10819) SHUNTING: 1182220026.5520279
    +b4a5f31a903a595b30aad7c8b13e6b37e44b3b25
    Jun 18 19:27:07 2007 (10816) Uncaught runner exception: [Errno 13]
    Permission denied: '/private/var/mailman/archives/private/client-list/
    index.html'
    Jun 18 19:27:07 2007 (10816) Traceback (most recent call last):
    File "/usr/share/mailman/Mailman/Queue/Runner.py", line 111, in
    _oneloop
    self._onefile(msg, msgdata)
    File "/usr/share/mailman/Mailman/Queue/Runner.py", line 167, in
    _onefile
    keepqueued = self._dispose(mlist, msg, msgdata)
    File "/usr/share/mailman/Mailman/Queue/ArchRunner.py", line 73, in
    _dispose
    mlist.ArchiveMail(msg)
    File "/usr/share/mailman/Mailman/Archiver/Archiver.py", line 216,
    in ArchiveMail
    h.close()
    File "/usr/share/mailman/Mailman/Archiver/pipermail.py", line 313,
    in close
    self.write_TOC()
    File "/usr/share/mailman/Mailman/Archiver/HyperArch.py", line
    1048, in write_TOC
    toc = open(os.path.join(self.basedir, 'index.html'), 'w')
    IOError: [Errno 13] Permission denied: '/private/var/mailman/archives/
    private/client-list/index.html'

    Jun 18 19:27:07 2007 (10816) SHUNTING: 1182220026.5520279
    +eddee6c8cd6b87769edeaa60fe9c23f1e3e19640



    ------------------------------------------------------
    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/msapiro%40value.net

    Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&amp;file=faq01.027.htp
    --
    Mark Sapiro <msapiro at value.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan
  • Mark Sapiro at Jun 21, 2007 at 11:15 pm

    carconni wrote:
    Thank you, moving public out of the /var/mailman/archives/public
    directory helped, now I can see my lists but I've lost my archives
    and it doesn't seem to matter how many times or where I run /usr/
    share/mailman/bin/check_perms -f, I'm still getting these crazy
    errors on various tasks: <snip>
    IOError: [Errno 2] No such file or directory: '/private/var/mailman/
    archives/private/ui.mbox/ui.mbox'

    So there is no '/private/var/mailman/archives/private/ui.mbox/ui.mbox'
    file. Did you move it? It should exist.


    <snip>
    IOError: [Errno 2] No such file or directory: '/private/var/mailman/
    archives/private/blogsafety-requests.mbox/blogsafety-requests.mbox'

    Likewise
    '/private/var/mailman/archives/private/blogsafety-requests.mbox/blogsafety-requests.mbox'.


    <snip>
    IOError: [Errno 13] Permission denied: '/private/var/mailman/archives/
    private/tvguide-requests/index.html'

    What are the permissions on this path? They should be similar to

    [msapiro at sb7 var]$ ls -ld mailman
    drwxrwsr-x 19 root mailman 4096 Mar 3 21:02 mailman/
    [msapiro at sb7 var]$ ls -ld mailman/archives
    drwxrwsr-x 4 root mailman 4096 Mar 21 2005 mailman/archives/
    [msapiro at sb7 var]$ ls -ld mailman/archives/private
    drwxrws--x 74 root mailman 4096 May 4 09:30 mailman/archives/private/
    [msapiro at sb7 var]$ ls -ld mailman/archives/private/gpc-test
    drwxrwsr-x 14 msapiro mailman 4096 Apr 4 03:27
    mailman/archives/private/gpc-test/
    [msapiro at sb7 var]$ ls -l mailman/archives/private/gpc-test/index.html
    -rw-rw-r-- 1 msapiro mailman 4899 Apr 3 08:56
    mailman/archives/private/gpc-test/index.html


    The owner (root, msapiro) is not important, but the group should be
    mailman in every case.


    <snip>
    File "/usr/share/mailman/Mailman/Archiver/Archiver.py", line 55,
    in breaklink
    os.unlink(link)
    OSError: [Errno 1] Operation not permitted: '/private/var/mailman/
    archives/public/engineering'

    Is '/private/var/mailman/archives/public/engineering' a symlink to
    '/private/var/mailman/archives/private/engineering'? That's what it
    should be.

    What are the permissions on /private/var/mailman/archives/public? They
    should be similar to

    [msapiro at sb7 var]$ ls -ld mailman/archives/public
    drwxrwsr-x 2 root mailman 4096 May 4 09:30 mailman/archives/public/


    --
    Mark Sapiro <msapiro at value.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan
  • Carconni at Jun 27, 2007 at 3:21 am
    Hi,

    I'm still having trouble...

    I removed everything in /private/var/mailman/archives/public/ but
    Mailman didn't replace the symlinks and when I tried to create the
    symlinks, Mailman got really confused. My lists are down and I don't
    know how to recover them.

    corp-admin2:/private/var/mailman/archives/public root# ls -l
    corp-admin2:/private/var/mailman/archives/public root#


    I've run check permissions dozen's of times:

    corp-admin2:/private/var/mailman/archives/public root# /usr/share/
    mailman/bin/check_perms -f
    No problems found
    corp-admin2:/private/var/mailman/archives/public root#

    yet my error logs show permission errors. I've tried changing owners
    from mailman:mailman to root:mailman and back again - I've made
    directories world readable but I still get these errors...

    Jun 26 19:13:08 2007 (10311) SHUNTING: 1182910388.3509221
    +37c9faaaa7ce90d565375941efb6b3a61c9ad826
    Jun 26 19:13:28 2007 (10311) Archive file access failure:
    /private/var/mailman/archives/private/customer-us.mbox/
    customer-us.mbox [Errno 13] Permission denied: '/private/var/mailman/
    archives/private/customer-us.mbox/customer-us.mbox'

    corp-admin2:/private/var/mailman/archives/private root# cd customer-us
    corp-admin2:/private/var/mailman/archives/private/customer-us root#
    ls -l
    total 5200
    drwxrwsr-x 8 root mailman 272 Jun 26 14:33 2007-June
    -rw-rw-r-- 1 root mailman 2654504 Jun 26 14:33 2007-June.txt
    drw-rw---- 2 root mailman 68 Jun 26 14:33 database
    -rw-rw-r-- 1 root mailman 479 Jun 18 13:30 index.html

    Jun 26 19:13:28 2007 (10311) Uncaught runner exception: [Errno 13]
    Permission denied: '/private/var/mailman/archives/private/customer-
    us.mbox/customer-us.mbox'
    Jun 26 19:13:28 2007 (10311) Traceback (most recent call last):
    File "/usr/share/mailman/Mailman/Queue/Runner.py", line 111, in
    _oneloop
    self._onefile(msg, msgdata)
    File "/usr/share/mailman/Mailman/Queue/Runner.py", line 167, in
    _onefile
    keepqueued = self._dispose(mlist, msg, msgdata)
    File "/usr/share/mailman/Mailman/Queue/ArchRunner.py", line 73, in
    _dispose
    mlist.ArchiveMail(msg)
    File "/usr/share/mailman/Mailman/Archiver/Archiver.py", line 199,
    in ArchiveMail
    self.__archive_to_mbox(msg)
    File "/usr/share/mailman/Mailman/Archiver/Archiver.py", line 168,
    in __archive_to_mbox
    mbox = self.__archive_file(afn)
    File "/usr/share/mailman/Mailman/Archiver/Archiver.py", line 156,
    in __archive_file
    return Mailbox.Mailbox(open(afn, 'a+'))
    IOError: [Errno 13] Permission denied: '/private/var/mailman/archives/
    private/customer-us.mbox/customer-us.mbox'


    Jun 26 19:23:03 2007 (10314) SHUNTING: 1182910982.1765511
    +4636bcd0509b8d4fc66200d2a26b32dc929f0e06
    Jun 26 19:23:13 2007 (10314) Uncaught runner exception: [Errno 13]
    Permission denied: '/private/var/mailman/archives/private/ops'
    Jun 26 19:23:13 2007 (10314) Traceback (most recent call last):
    File "/usr/share/mailman/Mailman/Queue/Runner.py", line 111, in
    _oneloop
    self._onefile(msg, msgdata)
    File "/usr/share/mailman/Mailman/Queue/Runner.py", line 167, in
    _onefile
    keepqueued = self._dispose(mlist, msg, msgdata)
    File "/usr/share/mailman/Mailman/Queue/IncomingRunner.py", line
    130, in _dispose
    more = self._dopipeline(mlist, msg, msgdata, pipeline)
    File "/usr/share/mailman/Mailman/Queue/IncomingRunner.py", line
    153, in _dopipeline
    sys.modules[modname].process(mlist, msg, msgdata)
    File "/usr/share/mailman/Mailman/Handlers/ToDigest.py", line 91,
    in process
    send_digests(mlist, mboxfp)
    File "/usr/share/mailman/Mailman/Handlers/ToDigest.py", line 132,
    in send_digests
    send_i18n_digests(mlist, mboxfp)
    File "/usr/share/mailman/Mailman/Handlers/ToDigest.py", line 306,
    in send_i18n_digests
    msg = scrubber(mlist, msg)
    File "/usr/share/mailman/Mailman/Handlers/Scrubber.py", line 227,
    in process
    url = save_attachment(mlist, part, dir, filter_html=False)
    File "/usr/share/mailman/Mailman/Handlers/Scrubber.py", line 352,
    in save_attachment
    makedirs(fsdir)
    File "/usr/share/mailman/Mailman/Handlers/Scrubber.py", line 339,
    in makedirs
    os.makedirs(dir, 02775)
    File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
    python2.3/os.py", line 153, in makedirs
    File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
    python2.3/os.py", line 153, in makedirs
    File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
    python2.3/os.py", line 153, in makedirs
    File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
    python2.3/os.py", line 154, in makedirs
    OSError: [Errno 13] Permission denied: '/private/var/mailman/archives/
    private/ops'

    Jun 26 19:23:13 2007 (10314) SHUNTING: 1182910992.721427
    +d396922f361992f9d2b65e96d4763591331f5010


    drwxrwsr-x 9 root mailman 306 Jun 26 18:49 ops
    drwxrwsr-x 3 root mailman 102 Jun 18 13:30 ops.mbox

    corp-admin2:/private/var/mailman/archives/private/ops root# ls -l
    total 40
    drwxrwxrwx 23 root mailman 782 Jun 18 13:30 2006-April
    -rwxrwxrwx 1 root mailman 6277 Jun 18 13:30 2006-April.txt
    -rwxrwxrwx 1 root mailman 1444 Jun 18 13:30 2006-April.txt.gz
    drwxrwxrwx 8 mailman mailman 272 Jun 25 18:53 attachments
    drwxrwxrwx 7 root mailman 238 Jun 18 13:30 database
    -rwxrwxrwx 1 root mailman 1040 Jun 18 13:30 index.html
    -rwxrwxrwx 1 root mailman 864 Jun 18 13:30 pipermail.pck

    Its funny, I was more worried about moving postfix and everyone's
    mailboxes....I thought mailman would be a piece of cake. If anyone
    understands what happening here - I'd really appreciate it.




    On Jun 18, 2007, at 10:08 PM, Mark Sapiro wrote:

    carconni wrote:
    I had to move lists. We had a hardware failure and they had to move
    to our new mail server. The mail server migration went fine and we
    thought mailman moved okay as well but we were wrong.

    Earlier today I tried to create a new list and and got an error so my
    boss said to check permissions. I ran the /usr/share/mailman/bin/
    check_perms -f in every mailman file I could find but Im still
    getting permission errors. I even gave global permissions to all the
    archives but no luck.

    It doesn't matter where your current directory is. You just run

    /usr/share/mailman/bin/check_perms -f

    as root until it reports no errors.


    Right now, lists have stopped - they just aren't working and I just
    can't figure out what the problem is. The more we tried to fix it,
    the worse it got. Unfortunately my company heavily relies on them so
    I figured before I set out to manually configure mail aliases, does
    anyone know a way around this mess?

    from var/mailman/logs/error: (the permissions and ownership for the
    client-list is -rw-r--r-- 1 root mailman 479 Jun 18 13:30 /
    private/var/mailman/archives/private/client-list/index.html)

    It should be group writable - i.e. -rw-rw-r-- 1 root mailman


    Jun 18 19:24:34 2007 (10816) SHUNTING: 1182219873.5167899
    +ceff885a98ff1c83a23f7e83b4d94678813ee808
    Jun 18 19:25:36 2007 (10819) Uncaught runner exception: [Errno 1]
    Operation not permitted: '/private/var/mailman/archives/public/
    client-
    list'
    Jun 18 19:25:36 2007 (10819) Traceback (most recent call last):
    File "/usr/share/mailman/Mailman/Queue/Runner.py", line 111, in
    _oneloop
    self._onefile(msg, msgdata)
    File "/usr/share/mailman/Mailman/Queue/Runner.py", line 167, in
    _onefile
    keepqueued = self._dispose(mlist, msg, msgdata)
    File "/usr/share/mailman/Mailman/Queue/IncomingRunner.py", line
    133, in _dispose
    mlist.Save()
    File "/usr/share/mailman/Mailman/MailList.py", line 529, in Save
    self.CheckHTMLArchiveDir()
    File "/usr/share/mailman/Mailman/Archiver/Archiver.py", line 235,
    in CheckHTMLArchiveDir
    breaklink(pubdir)
    File "/usr/share/mailman/Mailman/Archiver/Archiver.py", line 55,
    in breaklink
    os.unlink(link)
    OSError: [Errno 1] Operation not permitted: '/private/var/mailman/
    archives/public/client-list'

    I'm guessing when you backed up and moved from the old machines, you
    wound up with files in /private/var/mailman/archives/public/

    There should only be symlinks in that directory. Every
    /private/var/mailman/archives/public/<listname> and
    /private/var/mailman/archives/public/<listname.mbox> is a symlink to
    the corresponding /private/var/mailman/archives/private/<listname> and
    /private/var/mailman/archives/private/<listname.mbox> directory.

    Either fixing that or simply removing everything in the
    /private/var/mailman/archives/public/ will allow Mailman to recreate
    the proper symlinks.


    Jun 18 19:25:36 2007 (10819) SHUNTING: 1182219935.3121431
    +07ef8a32317dde697d0042ee151b8fd11d41b398
    Jun 18 19:25:36 2007 (10816) Uncaught runner exception: [Errno 13]
    Permission denied: '/private/var/mailman/archives/private/client-
    list/
    index.html'
    Jun 18 19:25:36 2007 (10816) Traceback (most recent call last):
    File "/usr/share/mailman/Mailman/Queue/Runner.py", line 111, in
    _oneloop
    self._onefile(msg, msgdata)
    File "/usr/share/mailman/Mailman/Queue/Runner.py", line 167, in
    _onefile
    keepqueued = self._dispose(mlist, msg, msgdata)
    File "/usr/share/mailman/Mailman/Queue/ArchRunner.py", line 73, in
    _dispose
    mlist.ArchiveMail(msg)
    File "/usr/share/mailman/Mailman/Archiver/Archiver.py", line 216,
    in ArchiveMail
    h.close()
    File "/usr/share/mailman/Mailman/Archiver/pipermail.py", line 313,
    in close
    self.write_TOC()
    File "/usr/share/mailman/Mailman/Archiver/HyperArch.py", line
    1048, in write_TOC
    toc = open(os.path.join(self.basedir, 'index.html'), 'w')
    IOError: [Errno 13] Permission denied: '/private/var/mailman/
    archives/
    private/client-list/index.html'

    Jun 18 19:25:36 2007 (10816) SHUNTING: 1182219935.3121431
    +1f5997710b510ce2af03c4b18e68bca2a9a7cf5d
    Jun 18 19:25:53 2007 (10819) Uncaught runner exception: [Errno 1]
    Operation not permitted: '/private/var/mailman/archives/public/
    client-
    list'
    Jun 18 19:25:53 2007 (10819) Traceback (most recent call last):
    File "/usr/share/mailman/Mailman/Queue/Runner.py", line 111, in
    _oneloop
    self._onefile(msg, msgdata)
    File "/usr/share/mailman/Mailman/Queue/Runner.py", line 167, in
    _onefile
    keepqueued = self._dispose(mlist, msg, msgdata)
    File "/usr/share/mailman/Mailman/Queue/IncomingRunner.py", line
    133, in _dispose
    mlist.Save()
    File "/usr/share/mailman/Mailman/MailList.py", line 529, in Save
    self.CheckHTMLArchiveDir()
    File "/usr/share/mailman/Mailman/Archiver/Archiver.py", line 235,
    in CheckHTMLArchiveDir
    breaklink(pubdir)
    File "/usr/share/mailman/Mailman/Archiver/Archiver.py", line 55,
    in breaklink
    os.unlink(link)
    OSError: [Errno 1] Operation not permitted: '/private/var/mailman/
    archives/public/client-list'

    Jun 18 19:25:53 2007 (10819) SHUNTING: 1182219952.298547
    +a97ef5907aa7d67744b62971add1b089b4336b32
    Jun 18 19:25:53 2007 (10816) Uncaught runner exception: [Errno 13]
    Permission denied: '/private/var/mailman/archives/private/client-
    list/
    index.html'
    Jun 18 19:25:53 2007 (10816) Traceback (most recent call last):
    File "/usr/share/mailman/Mailman/Queue/Runner.py", line 111, in
    _oneloop
    self._onefile(msg, msgdata)
    File "/usr/share/mailman/Mailman/Queue/Runner.py", line 167, in
    _onefile
    keepqueued = self._dispose(mlist, msg, msgdata)
    File "/usr/share/mailman/Mailman/Queue/ArchRunner.py", line 73, in
    _dispose
    mlist.ArchiveMail(msg)
    File "/usr/share/mailman/Mailman/Archiver/Archiver.py", line 216,
    in ArchiveMail
    h.close()
    File "/usr/share/mailman/Mailman/Archiver/pipermail.py", line 313,
    in close
    self.write_TOC()
    File "/usr/share/mailman/Mailman/Archiver/HyperArch.py", line
    1048, in write_TOC
    toc = open(os.path.join(self.basedir, 'index.html'), 'w')
    IOError: [Errno 13] Permission denied: '/private/var/mailman/
    archives/
    private/client-list/index.html'

    Jun 18 19:25:53 2007 (10816) SHUNTING: 1182219952.298547
    +542a885011bac44ed8f869a06f7c64ebe07acaf9
    Jun 18 19:27:07 2007 (10819) Uncaught runner exception: [Errno 1]
    Operation not permitted: '/private/var/mailman/archives/public/
    client-
    list'
    Jun 18 19:27:07 2007 (10819) Traceback (most recent call last):
    File "/usr/share/mailman/Mailman/Queue/Runner.py", line 111, in
    _oneloop
    self._onefile(msg, msgdata)
    File "/usr/share/mailman/Mailman/Queue/Runner.py", line 167, in
    _onefile
    keepqueued = self._dispose(mlist, msg, msgdata)
    File "/usr/share/mailman/Mailman/Queue/IncomingRunner.py", line
    133, in _dispose
    mlist.Save()
    File "/usr/share/mailman/Mailman/MailList.py", line 529, in Save
    self.CheckHTMLArchiveDir()
    File "/usr/share/mailman/Mailman/Archiver/Archiver.py", line 235,
    in CheckHTMLArchiveDir
    breaklink(pubdir)
    File "/usr/share/mailman/Mailman/Archiver/Archiver.py", line 55,
    in breaklink
    os.unlink(link)
    OSError: [Errno 1] Operation not permitted: '/private/var/mailman/
    archives/public/client-list'

    Jun 18 19:27:07 2007 (10819) SHUNTING: 1182220026.5520279
    +b4a5f31a903a595b30aad7c8b13e6b37e44b3b25
    Jun 18 19:27:07 2007 (10816) Uncaught runner exception: [Errno 13]
    Permission denied: '/private/var/mailman/archives/private/client-
    list/
    index.html'
    Jun 18 19:27:07 2007 (10816) Traceback (most recent call last):
    File "/usr/share/mailman/Mailman/Queue/Runner.py", line 111, in
    _oneloop
    self._onefile(msg, msgdata)
    File "/usr/share/mailman/Mailman/Queue/Runner.py", line 167, in
    _onefile
    keepqueued = self._dispose(mlist, msg, msgdata)
    File "/usr/share/mailman/Mailman/Queue/ArchRunner.py", line 73, in
    _dispose
    mlist.ArchiveMail(msg)
    File "/usr/share/mailman/Mailman/Archiver/Archiver.py", line 216,
    in ArchiveMail
    h.close()
    File "/usr/share/mailman/Mailman/Archiver/pipermail.py", line 313,
    in close
    self.write_TOC()
    File "/usr/share/mailman/Mailman/Archiver/HyperArch.py", line
    1048, in write_TOC
    toc = open(os.path.join(self.basedir, 'index.html'), 'w')
    IOError: [Errno 13] Permission denied: '/private/var/mailman/
    archives/
    private/client-list/index.html'

    Jun 18 19:27:07 2007 (10816) SHUNTING: 1182220026.5520279
    +eddee6c8cd6b87769edeaa60fe9c23f1e3e19640



    ------------------------------------------------------
    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/
    msapiro%40value.net

    Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?
    req=show&amp;file=faq01.027.htp
    --
    Mark Sapiro <msapiro at value.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan

  • Mark Sapiro at Jun 27, 2007 at 3:55 am

    carconni wrote:
    I'm still having trouble...

    I removed everything in /private/var/mailman/archives/public/ but
    Mailman didn't replace the symlinks and when I tried to create the
    symlinks, Mailman got really confused. My lists are down and I don't
    know how to recover them.

    corp-admin2:/private/var/mailman/archives/public root# ls -l
    corp-admin2:/private/var/mailman/archives/public root#


    I've run check permissions dozen's of times:

    corp-admin2:/private/var/mailman/archives/public root# /usr/share/
    mailman/bin/check_perms -f
    No problems found
    corp-admin2:/private/var/mailman/archives/public root#

    yet my error logs show permission errors. I've tried changing owners
    from mailman:mailman to root:mailman and back again - I've made
    directories world readable but I still get these errors...

    Are you running SeLinux or some other kind of security policy that is
    denying access?

    Jun 26 19:13:08 2007 (10311) SHUNTING: 1182910388.3509221
    +37c9faaaa7ce90d565375941efb6b3a61c9ad826
    Jun 26 19:13:28 2007 (10311) Archive file access failure:
    /private/var/mailman/archives/private/customer-us.mbox/
    customer-us.mbox [Errno 13] Permission denied: '/private/var/mailman/
    archives/private/customer-us.mbox/customer-us.mbox'

    corp-admin2:/private/var/mailman/archives/private root# cd customer-us

    And what if you

    cd customer-us.mbox
    ls -la

    corp-admin2:/private/var/mailman/archives/private/customer-us root#
    ls -l
    total 5200
    drwxrwsr-x 8 root mailman 272 Jun 26 14:33 2007-June
    -rw-rw-r-- 1 root mailman 2654504 Jun 26 14:33 2007-June.txt
    drw-rw---- 2 root mailman 68 Jun 26 14:33 database
    -rw-rw-r-- 1 root mailman 479 Jun 18 13:30 index.html

    Jun 26 19:13:28 2007 (10311) Uncaught runner exception: [Errno 13]
    Permission denied: '/private/var/mailman/archives/private/customer-
    us.mbox/customer-us.mbox'
    Jun 26 19:13:28 2007 (10311) Traceback (most recent call last):
    File "/usr/share/mailman/Mailman/Queue/Runner.py", line 111, in
    _oneloop
    self._onefile(msg, msgdata)
    File "/usr/share/mailman/Mailman/Queue/Runner.py", line 167, in
    _onefile
    keepqueued = self._dispose(mlist, msg, msgdata)
    File "/usr/share/mailman/Mailman/Queue/ArchRunner.py", line 73, in
    _dispose
    mlist.ArchiveMail(msg)
    File "/usr/share/mailman/Mailman/Archiver/Archiver.py", line 199,
    in ArchiveMail
    self.__archive_to_mbox(msg)
    File "/usr/share/mailman/Mailman/Archiver/Archiver.py", line 168,
    in __archive_to_mbox
    mbox = self.__archive_file(afn)
    File "/usr/share/mailman/Mailman/Archiver/Archiver.py", line 156,
    in __archive_file
    return Mailbox.Mailbox(open(afn, 'a+'))
    IOError: [Errno 13] Permission denied: '/private/var/mailman/archives/
    private/customer-us.mbox/customer-us.mbox'


    Jun 26 19:23:03 2007 (10314) SHUNTING: 1182910982.1765511
    +4636bcd0509b8d4fc66200d2a26b32dc929f0e06
    Jun 26 19:23:13 2007 (10314) Uncaught runner exception: [Errno 13]
    Permission denied: '/private/var/mailman/archives/private/ops'
    Jun 26 19:23:13 2007 (10314) Traceback (most recent call last):
    File "/usr/share/mailman/Mailman/Queue/Runner.py", line 111, in
    _oneloop
    self._onefile(msg, msgdata)
    File "/usr/share/mailman/Mailman/Queue/Runner.py", line 167, in
    _onefile
    keepqueued = self._dispose(mlist, msg, msgdata)
    File "/usr/share/mailman/Mailman/Queue/IncomingRunner.py", line
    130, in _dispose
    more = self._dopipeline(mlist, msg, msgdata, pipeline)
    File "/usr/share/mailman/Mailman/Queue/IncomingRunner.py", line
    153, in _dopipeline
    sys.modules[modname].process(mlist, msg, msgdata)
    File "/usr/share/mailman/Mailman/Handlers/ToDigest.py", line 91,
    in process
    send_digests(mlist, mboxfp)
    File "/usr/share/mailman/Mailman/Handlers/ToDigest.py", line 132,
    in send_digests
    send_i18n_digests(mlist, mboxfp)
    File "/usr/share/mailman/Mailman/Handlers/ToDigest.py", line 306,
    in send_i18n_digests
    msg = scrubber(mlist, msg)
    File "/usr/share/mailman/Mailman/Handlers/Scrubber.py", line 227,
    in process
    url = save_attachment(mlist, part, dir, filter_html=False)
    File "/usr/share/mailman/Mailman/Handlers/Scrubber.py", line 352,
    in save_attachment
    makedirs(fsdir)
    File "/usr/share/mailman/Mailman/Handlers/Scrubber.py", line 339,
    in makedirs
    os.makedirs(dir, 02775)
    File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
    python2.3/os.py", line 153, in makedirs
    File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
    python2.3/os.py", line 153, in makedirs
    File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
    python2.3/os.py", line 153, in makedirs
    File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
    python2.3/os.py", line 154, in makedirs
    OSError: [Errno 13] Permission denied: '/private/var/mailman/archives/
    private/ops'

    Jun 26 19:23:13 2007 (10314) SHUNTING: 1182910992.721427
    +d396922f361992f9d2b65e96d4763591331f5010


    drwxrwsr-x 9 root mailman 306 Jun 26 18:49 ops
    drwxrwsr-x 3 root mailman 102 Jun 18 13:30 ops.mbox

    corp-admin2:/private/var/mailman/archives/private/ops root# ls -l
    total 40
    drwxrwxrwx 23 root mailman 782 Jun 18 13:30 2006-April
    -rwxrwxrwx 1 root mailman 6277 Jun 18 13:30 2006-April.txt
    -rwxrwxrwx 1 root mailman 1444 Jun 18 13:30 2006-April.txt.gz
    drwxrwxrwx 8 mailman mailman 272 Jun 25 18:53 attachments
    drwxrwxrwx 7 root mailman 238 Jun 18 13:30 database
    -rwxrwxrwx 1 root mailman 1040 Jun 18 13:30 index.html
    -rwxrwxrwx 1 root mailman 864 Jun 18 13:30 pipermail.pck

    Its funny, I was more worried about moving postfix and everyone's
    mailboxes....I thought mailman would be a piece of cake. If anyone
    understands what happening here - I'd really appreciate it.

    Assuming the mailman group has sufficient permission on the whole path,
    I think it is likely some security policy that is denying access.

    --
    Mark Sapiro <msapiro at value.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan
  • Carconni at Jun 27, 2007 at 4:13 am
    Hi,

    I know you guys aren't excited to hear this but it's running on an
    xserve. I think there may have been an error in how I was told to
    move mailman...

    does this look right?

    corp-admin2:/private/var/mailman/archives/private root# ls -la ops.mbox/
    total 80
    drwxrwsr-x 3 root mailman 102 Jun 18 13:30 .
    drw-rw---- 736 root mailman 25024 Jun 26 19:55 ..
    -rw-rw-r-- 1 root mailman 37806 Jun 18 13:30 ops.mbox

    corp-admin2:/private/var/mailman/archives/private root# ls -la ops
    total 8
    drwxrwsr-x 3 root mailman 102 Jun 26 19:56 .
    drw-rw---- 736 root mailman 25024 Jun 26 19:55 ..
    -rw-rw-r-- 1 root mailman 1040 Jun 26 19:55 index.html
    On Jun 26, 2007, at 8:55 PM, Mark Sapiro wrote:

    carconni wrote:
    I'm still having trouble...

    I removed everything in /private/var/mailman/archives/public/ but
    Mailman didn't replace the symlinks and when I tried to create the
    symlinks, Mailman got really confused. My lists are down and I don't
    know how to recover them.

    corp-admin2:/private/var/mailman/archives/public root# ls -l
    corp-admin2:/private/var/mailman/archives/public root#


    I've run check permissions dozen's of times:

    corp-admin2:/private/var/mailman/archives/public root# /usr/share/
    mailman/bin/check_perms -f
    No problems found
    corp-admin2:/private/var/mailman/archives/public root#

    yet my error logs show permission errors. I've tried changing owners
    from mailman:mailman to root:mailman and back again - I've made
    directories world readable but I still get these errors...

    Are you running SeLinux or some other kind of security policy that is
    denying access?

    Jun 26 19:13:08 2007 (10311) SHUNTING: 1182910388.3509221
    +37c9faaaa7ce90d565375941efb6b3a61c9ad826
    Jun 26 19:13:28 2007 (10311) Archive file access failure:
    /private/var/mailman/archives/private/customer-us.mbox/
    customer-us.mbox [Errno 13] Permission denied: '/private/var/mailman/
    archives/private/customer-us.mbox/customer-us.mbox'

    corp-admin2:/private/var/mailman/archives/private root# cd
    customer-us

    And what if you

    cd customer-us.mbox
    ls -la

    corp-admin2:/private/var/mailman/archives/private/customer-us root#
    ls -l
    total 5200
    drwxrwsr-x 8 root mailman 272 Jun 26 14:33 2007-June
    -rw-rw-r-- 1 root mailman 2654504 Jun 26 14:33 2007-June.txt
    drw-rw---- 2 root mailman 68 Jun 26 14:33 database
    -rw-rw-r-- 1 root mailman 479 Jun 18 13:30 index.html

    Jun 26 19:13:28 2007 (10311) Uncaught runner exception: [Errno 13]
    Permission denied: '/private/var/mailman/archives/private/customer-
    us.mbox/customer-us.mbox'
    Jun 26 19:13:28 2007 (10311) Traceback (most recent call last):
    File "/usr/share/mailman/Mailman/Queue/Runner.py", line 111, in
    _oneloop
    self._onefile(msg, msgdata)
    File "/usr/share/mailman/Mailman/Queue/Runner.py", line 167, in
    _onefile
    keepqueued = self._dispose(mlist, msg, msgdata)
    File "/usr/share/mailman/Mailman/Queue/ArchRunner.py", line 73, in
    _dispose
    mlist.ArchiveMail(msg)
    File "/usr/share/mailman/Mailman/Archiver/Archiver.py", line 199,
    in ArchiveMail
    self.__archive_to_mbox(msg)
    File "/usr/share/mailman/Mailman/Archiver/Archiver.py", line 168,
    in __archive_to_mbox
    mbox = self.__archive_file(afn)
    File "/usr/share/mailman/Mailman/Archiver/Archiver.py", line 156,
    in __archive_file
    return Mailbox.Mailbox(open(afn, 'a+'))
    IOError: [Errno 13] Permission denied: '/private/var/mailman/
    archives/
    private/customer-us.mbox/customer-us.mbox'


    Jun 26 19:23:03 2007 (10314) SHUNTING: 1182910982.1765511
    +4636bcd0509b8d4fc66200d2a26b32dc929f0e06
    Jun 26 19:23:13 2007 (10314) Uncaught runner exception: [Errno 13]
    Permission denied: '/private/var/mailman/archives/private/ops'
    Jun 26 19:23:13 2007 (10314) Traceback (most recent call last):
    File "/usr/share/mailman/Mailman/Queue/Runner.py", line 111, in
    _oneloop
    self._onefile(msg, msgdata)
    File "/usr/share/mailman/Mailman/Queue/Runner.py", line 167, in
    _onefile
    keepqueued = self._dispose(mlist, msg, msgdata)
    File "/usr/share/mailman/Mailman/Queue/IncomingRunner.py", line
    130, in _dispose
    more = self._dopipeline(mlist, msg, msgdata, pipeline)
    File "/usr/share/mailman/Mailman/Queue/IncomingRunner.py", line
    153, in _dopipeline
    sys.modules[modname].process(mlist, msg, msgdata)
    File "/usr/share/mailman/Mailman/Handlers/ToDigest.py", line 91,
    in process
    send_digests(mlist, mboxfp)
    File "/usr/share/mailman/Mailman/Handlers/ToDigest.py", line 132,
    in send_digests
    send_i18n_digests(mlist, mboxfp)
    File "/usr/share/mailman/Mailman/Handlers/ToDigest.py", line 306,
    in send_i18n_digests
    msg = scrubber(mlist, msg)
    File "/usr/share/mailman/Mailman/Handlers/Scrubber.py", line 227,
    in process
    url = save_attachment(mlist, part, dir, filter_html=False)
    File "/usr/share/mailman/Mailman/Handlers/Scrubber.py", line 352,
    in save_attachment
    makedirs(fsdir)
    File "/usr/share/mailman/Mailman/Handlers/Scrubber.py", line 339,
    in makedirs
    os.makedirs(dir, 02775)
    File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
    python2.3/os.py", line 153, in makedirs
    File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
    python2.3/os.py", line 153, in makedirs
    File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
    python2.3/os.py", line 153, in makedirs
    File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
    python2.3/os.py", line 154, in makedirs
    OSError: [Errno 13] Permission denied: '/private/var/mailman/
    archives/
    private/ops'

    Jun 26 19:23:13 2007 (10314) SHUNTING: 1182910992.721427
    +d396922f361992f9d2b65e96d4763591331f5010


    drwxrwsr-x 9 root mailman 306 Jun 26 18:49 ops
    drwxrwsr-x 3 root mailman 102 Jun 18 13:30 ops.mbox

    corp-admin2:/private/var/mailman/archives/private/ops root# ls -l
    total 40
    drwxrwxrwx 23 root mailman 782 Jun 18 13:30 2006-April
    -rwxrwxrwx 1 root mailman 6277 Jun 18 13:30 2006-April.txt
    -rwxrwxrwx 1 root mailman 1444 Jun 18 13:30 2006-
    April.txt.gz
    drwxrwxrwx 8 mailman mailman 272 Jun 25 18:53 attachments
    drwxrwxrwx 7 root mailman 238 Jun 18 13:30 database
    -rwxrwxrwx 1 root mailman 1040 Jun 18 13:30 index.html
    -rwxrwxrwx 1 root mailman 864 Jun 18 13:30 pipermail.pck

    Its funny, I was more worried about moving postfix and everyone's
    mailboxes....I thought mailman would be a piece of cake. If anyone
    understands what happening here - I'd really appreciate it.

    Assuming the mailman group has sufficient permission on the whole
    path,
    I think it is likely some security policy that is denying access.

    --
    Mark Sapiro <msapiro at value.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan
  • Mark Sapiro at Jun 27, 2007 at 4:50 am

    carconni wrote:
    I know you guys aren't excited to hear this but it's running on an
    xserve. I think there may have been an error in how I was told to
    move mailman...

    does this look right?

    corp-admin2:/private/var/mailman/archives/private root# ls -la ops.mbox/
    total 80
    drwxrwsr-x 3 root mailman 102 Jun 18 13:30 .
    drw-rw---- 736 root mailman 25024 Jun 26 19:55 ..

    This is the permission on /private/var/mailman/archives/private. You
    need g+sx. Also, in order for public archive access to work, you
    probably need o+x.

    If you look again at
    <http://mail.python.org/pipermail/mailman-users/2007-June/057421.html>,
    you will see

    [msapiro at sb7 var]$ ls -ld mailman/archives/private
    drwxrws--x 74 root mailman 4096 May 4 09:30 mailman/archives/private/


    --
    Mark Sapiro <msapiro at value.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan
  • Mark Sapiro at Jun 27, 2007 at 5:53 am

    Mark Sapiro wrote:

    drw-rw---- 736 root mailman 25024 Jun 26 19:55 ..

    This is the permission on /private/var/mailman/archives/private. You
    need g+sx. Also, in order for public archive access to work, you
    probably need o+x.

    If you look again at
    <http://mail.python.org/pipermail/mailman-users/2007-June/057421.html>,
    you will see

    [msapiro at sb7 var]$ ls -ld mailman/archives/private
    drwxrws--x 74 root mailman 4096 May 4 09:30 mailman/archives/private/

    It looks like there is a bug in check_perms. check_perms checks
    archives/private to be sure it isn't o+r and also warns if it is o+x
    although on most systems, it has to be for public archives to work,
    but check_perms doesn't check for any user or group permissions on
    archives/private nor does it even check to make sure it is o-w.

    Sorry for all the trouble.

    --
    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
postedJun 19, '07 at 2:35a
activeJun 27, '07 at 5:53a
posts8
users2
websitelist.org

2 users in discussion

Mark Sapiro: 5 posts Carconni: 3 posts

People

Translate

site design / logo © 2022 Grokbase