postfix Read User Mail Failed to open /home/domain/homes/username/Maildir/cur : Permission denied

when I go to Webmin > Servers > Postfix Mail Server (Postfix version 2.9.6) > "Read User Mail"

i get this message: postfix Read User Mail Failed to open /home/domain/homes/username/Maildir/cur : Permission denied

in the webmin log it looks like this

Error: Failed to open  /home/domain/homes/username/Maildir/cur : Permission denied
Error
-----
Failed to get ratings : HTTP/1.1 500 Internal Server Error

i am not sure if the msg with the ratings is only there by coincidence.

System Info: Operating system Debian Linux 7 Webmin version 1.840 Virtualmin version 5.07 Theme version Authentic Theme 18.48 Kernel and CPU Linux 3.2.0-4-amd64 on x86_64 Processor information Westmere E56xx/L56xx/X56xx (Nehalem-C), 2 cores Postfix version 2.9.6

Status: 
Closed (fixed)

Comments

Howdy -- it sounds like you may be seeing a permission issue of some sort.

What is the "domain" and "user" in question in this case?

And what is the output of these commands:

ls -ld /home/domain/
ls -ld /home/domain/homes/
ls -ld /home/domain/homes/username/
ls -ld /home/domain/homes/username/Maildir/
ls -ld /home/domain/homes/username/Maildir/cur

hi andreychek, thanks for your quick response. it is like this:

drwxr-x--- 15 santa-gula santa-gula 4096 Mai 28 07:47 /home/santa-gula/

drwxr-xr-x 8 santa-gula santa-gula 4096 Mai 31  2016 /home/santa-gula/homes/

drwxr-x--- 5 santa-gula santa-gula 4096 Apr 15  2015 /home/santa-gula/homes/social/

drwx------ 9 santa-gula santa-gula 4096 Mai 30  2016 /home/santa-gula/homes/social/Maildir/

drwx------ 2 santa-gula santa-gula 69632 Mai 30  2016 /home/santa-gula/homes/social/Maildir/cur

Ah yeah it doesn't appear that the user "social" owns it's own home directory.

Did someone perhaps run a "chmod -R santa-gula" command in /home/santa-gula?

What you'd need to do is ensure that "/home/santa-gula/homes/social/" and everything under that is owned by the user "social".

Ah yeah it doesn't appear that the user "social" owns it's own home directory.

Did someone perhaps run a "chmod -R santa-gula" command in /home/santa-gula?

yes maybe used a -R inappropriately ;) thanks for your help. everything is fine now.

Status: Active » Closed (fixed)