Mailman is not saving messages in archive: Permission denied

Created:

2016-11-16 12:52:49 UTC

Modified:

2017-04-24 11:14:41 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Mailman is not saving messages in archive: Permission denied

Applicable to:

  • Plesk 12.5 for Linux

Symptoms

Mailman is not saving messages. Sent messages are not delivered to recipients.

The following error can be found in logs:

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/example.mbox/example.mbox'

OR

Apr 14 16:00:11 2016 (1860) Archive file access failure:
/var/lib/mailman/archives/private/example.mbox/example.mbox [Errno 13] Permission denied: '/var/lib/mailman/archives/private/example.mbox/example.mbox'
Apr 14 16:00:11 2016 (1860) Uncaught runner exception: [Errno 13] Permission denied: '/var/lib/mailman/archives/private/example.mbox/example.mbox'

The directory /var/lib/mailman/archives/private has mailman owner and apache group.

# ls -ld /var/lib/mailman/archives/private
drwxrws--- 8 mailman apache 4096 Apr 13 08:31 /var/lib/mailman/archives/private

Cause

Incorrect permissions on /var/lib/mailman/archives/private folder.

Resolution

Apply the following changes:

# chown apache.mailman /var/lib/mailman/archives/private
# chown -R .mailman /var/lib/mailman/archives/private/*
Have more questions? Submit a request
Please sign in to leave a comment.