[Mailman-Users] permission issue

Matt Newville newville at cars.uchicago.edu
Thu Jan 14 15:06:36 EST 2016


Hi,

Sorry if this is actually a FAQ entry -- I looked at many FAQs and on-line
resources and haven't found a working solution yet.

I've been using Mailman for many years, very appreciative of the work.  I
am trying to move some lists to a machine running Fedora 22, with mailman
2.1.20 and apache 2.4.17, using the fedora-supplied packages.

Mailman is installed to /usr/lib/mailman, with list data in
/var/lib/mailman, and there is a mailman user and group (uid = gid = 41).
I migrated several lists, wiped and successfully re-made their Archives,
and created a fresh list for testing called test1.

I followed the migration directions as best as possible, run check_perms
-f, and  the files in /usr/lib/mailman/cgi-bin are set g+s.  The files in
/var/lib/mailman/lists/test1 have group=mailman.

I can subscribe and manage all the groups through the web interface, and
mail sent to to 'test1' group works, but the archives are not created.
/var/log/mailman/error shows

Jan 14 11:35:01 2016 (9055) Archive file access failure:
        /var/lib/mailman/archives/private/test1.mbox/test1.mbox [Errno 13]
Permission denied: '/var/lib/mailman/archives/private/test1.mbox/test1.mbox'
Jan 14 11:35:01 2016 (9055) Uncaught runner exception: [Errno 13]
Permission denied: '/var/lib/mailman/archives/private/test1.mbox/test1.mbox'
Jan 14 11:35:01 2016 (9055) Traceback (most recent call last):
  File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 119, in _oneloop
    self._onefile(msg, msgdata)
  File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 190, in _onefile
    keepqueued = self._dispose(mlist, msg, msgdata)
  File "/usr/lib/mailman/Mailman/Queue/ArchRunner.py", line 73, in _dispose
    mlist.ArchiveMail(msg)
  File "/usr/lib/mailman/Mailman/Archiver/Archiver.py", line 200, in
ArchiveMail
    self.__archive_to_mbox(msg)
  File "/usr/lib/mailman/Mailman/Archiver/Archiver.py", line 169, in
__archive_to_mbox
    mbox = self.__archive_file(afn)
  File "/usr/lib/mailman/Mailman/Archiver/Archiver.py", line 157, in
__archive_file
    return Mailbox.Mailbox(open(afn, 'a+'))
IOError: [Errno 13] Permission denied:
'/var/lib/mailman/archives/private/test1.mbox/test1.mbox'

Jan 14 11:35:01 2016 (9055) SHUNTING:
1452792899.410995+4ddf5a7718ff13c171a78e27a2caaf5429312510

I get similar errors if I manually run mailman/bin/unshunt.

Apache does load mod_suexec.so, but (as far as I can tell) it's not used
anywhere.

I've tried making the permissions on the files and directories
/var/lib/mailman/  very liberal, but still see problems either with the
mbox file or (from other, existing lists that have been migrated) with
'config.pck.tmp.SERVERNAME...', and the mail is not even sent.

Any suggestions on what to try or how to better diagnose the problem?   Is
there a known issue with the fedora packages that suggest using a source
build of Mailman or Apache?

Thanks very much for any suggestions,

--Matt Newville


More information about the Mailman-Users mailing list