Mobile app version of vmapp.org
Login or Join
Annie201

: Howto fix "[Errno 13] Permission denied" in mailman mailing lists After migrating domains from one plesk server onto another, I got several of those mails every day: (the target mailbox does

@Annie201

Posted in: #DedicatedHosting #MailingList

After migrating domains from one plesk server onto another, I got several of those mails every day: (the target mailbox does not exist, so I get those as undeliverable mail bounces)

Return-Path: <anonymous@lvpsxxx-xx-xx-xx.dedicated.hosteurope.de>
Received: (qmail 26460 invoked by uid 38); 26 May 2012 12:00:02 +0200
Date: 26 May 2012 12:00:02 +0200
Message-ID: <20120526100002.xyzxx.qmail@lvpsxxx-xx-xx-xx.dedicated.hosteurope.de>
From: root@lvpsxxx-xx-xx-xx.dedicated.hosteurope.de (Cron Daemon)
To: list@lvpsxxx-xx-xx-xx.dedicated.hosteurope.de
Subject: Cron <list@lvpsxxx-xx-xx-xx> [ -x /usr/lib/mailman/cron/senddigests ] && /usr/lib/mailman/cron/senddigests
Content-Type: text/plain; charset=ANSI_X3.4-1968
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/var/list>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=list>

List: xyzxyz: problem processing /var/lib/mailman/lists/xyzxyz/digest.mbox:
[Errno 13] Permission denied: '/var/lib/mailman/archives/private/xyzxyz'


I tried to fix the permissions myself, but the problem still exists.

10.04% popularity Vote Up Vote Down


Login to follow query

More posts by @Annie201

4 Comments

Sorted by latest first Latest Oldest Best

 

@Holmes151

my rep is too low to +1 your answer L3viathan but thank you! I had exactly the same problem running /usr/lib/mailman/bin/check_perms -f, even as root:

# /usr/lib/mailman/bin/check_perms -f
/var/lib/mailman/Mailman bad group (has: root, expected list) (fixing)
/var/lib/mailman/logs bad group (has: root, expected list) (fixing)
/var/lib/mailman/bin bad group (has: root, expected list) (fixing)
/var/lib/mailman/cgi-bin bad group (has: root, expected list) (fixing)
/var/lib/mailman/icons bad group (has: root, expected list) (fixing)
/var/lib/mailman/mail bad group (has: root, expected list) (fixing)
/var/lib/mailman/cron bad group (has: root, expected list) (fixing)
/var/lib/mailman/scripts bad group (has: root, expected list) (fixing)
/var/lib/mailman/templates bad group (has: root, expected list) (fixing)
/var/lib/mailman/locks bad group (has: root, expected list) (fixing)
Problems found: 10
Re-run as list (or root) with -f flag to fix


changing the owner manually fixed the permissions problem. only difference was my permissions problems were in path /var/lib/mailman:

# cd /var/lib/mailman
# chown -hR list:list ./*
# /usr/lib/mailman/bin/check_perms -f
No problems found

10% popularity Vote Up Vote Down


 

@Mendez628

this helped me alot. My setup is currently plesk, qmail and mailman.
i found that the path for chmod should be

/var/lib/mailman


more useful. doing a regular chown -hR list:list ./* there ist not too bad.
there does

/var/lib/mailman/bin/check_perms -f


even work. for me.

also

chown -R popuser:list /var/list/


did a good job for me.

/var/qmail/bin/qmail-qstat


and

/var/qmail/bin/qmail-qread


were also good friends in helping.
also looking inside of

/var/qmail/queue
www.simonmetzger.de/?p=124 http://www.huschi.net/archiv/plesk-qmail-probleme-mit-mailman.html douglasward.net/2010/07/29/required-mailman%C2%A0permissions/ http://recoveringphysicist.com/22/how-to-move-a-mailman-mailing-list-between-domains-or-servers www.gnu.org/software/mailman/site.html http://techshihab.wordpress.com/2012/05/11/logs-location-for-plesk-linux-servers/


Files to watch:

/usr/local/psa/var/log/maillog
/var/log/mailman/smtp-failure
/var/log/mailman/error


Tools used

/var/mailman/bin/unshunt
/var/mailman/bin/arch


And always to make sure all List Options (max_size, advertisement, ... are set correctly)
I'm not sure if this is any help to someone, but enjoy.

10% popularity Vote Up Vote Down


 

@Debbie626

I want to add that on my machine,

/usr/lib/mailman/bin/check_perms -f


didn't fix everything. When I ran it repeatedly (as root), it kept complaining abut 10 issues (folders/files in /usr/lib/mailman that weren't owned by the user and group list).

The following command run in /usr/lib/mailman/ or /var/lib/mailman/ (depends on which directory the error is found by the first command):

chown -hR list:list ./*


This will fix everything.

10% popularity Vote Up Vote Down


 

@Kaufman445

After consulting the support team, I now have the solution for this problem: /usr/lib/mailman/bin/check_perms -f does all the permission magic in the mailman directories. Maybe this helps someone else with the same problem.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme