• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

After reboot, /var/qmail/mailnames 's permissions changed

tkalfaoglu

Silver Pleskian
With nothing new installed, after a reboot, mail cannot be delivered, and pop3d gives "chdir permission error",
with thousands of mails piling up in local queue.

Found the culprit to be /var/qmail/mailnames folder.
It was chmodded to 700 with user root:root

No idea why or how this was done. I have not installed anything new.
I chmodded it to 777 and it works.
What is the correct user:group and chmod values for /var/qmail/mailnames ?

Thanks!
-turgut
 
In fact, here is my entire folder setup:

var:
drwxr-xr-x 25 root root 4.0K Sep 6 11:51 var
/var/qmail:
drwxr-xr-x 15 root qmail 4.0K May 7 2012 qmail

inside /var/qmail:
drwxr-xr-x 15 root qmail 4.0K May 7 2012 .
drwxr-xr-x 25 root root 4.0K Sep 6 11:51 ..
drwxr-sr-x 2 alias qmail 4.0K May 4 2012 alias
drwxr-xr-x 2 root qmail 4.0K Nov 17 07:29 bin
drwxr-xr-x 2 root qmail 4.0K May 4 2012 boot
drwxr-xr-x 2 root qmail 4.0K Dec 14 06:18 control
drwxrwxrwx 550 root root 24K Dec 14 06:15 mailnames
drwxr-xr-x 2 root qmail 4.0K May 18 2012 plugins
drwxr-xr-x 3 popuser popuser 4.0K May 8 2012 popuser
drwx------ 2 root root 4.0K May 4 2012 .pyzor
drwxr-x--- 11 qmailq qmail 4.0K May 4 2012 queue
drwxr-xr-x 2 root root 4.0K Dec 13 20:37 .razor
drwxr-xr-x 2 qmailq qmail 4.0K May 4 2012 .spamassassin
drwxr-xr-x 3 qmaild qmail 4.0K May 20 2012 spamdyke
drwxr-xr-x 2 root qmail 4.0K Dec 14 06:18 users

inside /var/qmail/mailnames:
drwxr-x--- 7 popuser popuser 4.0K May 10 2012 abc.com
drwxr-x--- 2 popuser popuser 4.0K May 12 2012 xyz.com
(...)

Do these look good?
PS: I know that mchk can probably correct these, but I do not have several hours of disabled mail service to run it..

Thanks, -turgut
 
popuser:popuser and 600 gives permission errors for qmail..

Dec 14 09:07:31 lin qmail: 1355472451.852038 delivery 121: deferral: Unable_to_switch_to_/var/qmail/mailnames/abc.com:_access_denied._(#4.3.0)/
 
Sorry. I have checked on test Plesk:

# stat /var/qmail/mailnames/
File: `/var/qmail/mailnames/'
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: c2h/194d Inode: 15207340 Links: 5
Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
 
Back
Top