1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

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

Discussion in 'Plesk 10.x for Linux Issues, Fixes, How-To' started by tkalfaoglu, Dec 13, 2012.

  1. tkalfaoglu

    tkalfaoglu Regular Pleskian

    30
    68%
    Joined:
    Oct 6, 2005
    Messages:
    290
    Likes Received:
    1
    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
     
  2. tkalfaoglu

    tkalfaoglu Regular Pleskian

    30
    68%
    Joined:
    Oct 6, 2005
    Messages:
    290
    Likes Received:
    1
    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
     
  3. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,572
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    AFAIR it should be popuser:popuser and 600
     
  4. tkalfaoglu

    tkalfaoglu Regular Pleskian

    30
    68%
    Joined:
    Oct 6, 2005
    Messages:
    290
    Likes Received:
    1
    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)/
     
  5. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,572
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    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)
     
  6. tkalfaoglu

    tkalfaoglu Regular Pleskian

    30
    68%
    Joined:
    Oct 6, 2005
    Messages:
    290
    Likes Received:
    1
    Ah, many thanks :)
     
Loading...