Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Email errors and file permissions

Discussion in 'E-mail Discussion' started by rpvw, Sep 6, 2017.

  1. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    700
    Likes Received:
    237
    Trophy Points:
    93
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    v66.0.18

    We have been seeing the following in the exim panic logs for the past few days:
    The peculiar thing is that this only seems to affect 2 domains. I have checked the filesystem and the /quota file permissions are set to 640 - the same that all the other /quota files for all the domains that are not provoking errors.



    On an unrelated issue - I was dismayed to see the /username.rcube.db.latest files set to 777 permissions. I do think that there should never be any file with this level of global read/write in a users home directory.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    700
    Likes Received:
    237
    Trophy Points:
    93
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    ***UPDATE***

    I was able to 'fix' the errors being reported in the exim_paniclog very simply:
    1. For the user that is reported as having an error, go to their cPanel and edit the quota of any of their email accounts that have a quota set (or set a quota on one that hasn't).
    2. Ensure you SAVE the new quota.
    (If you want/need to, you can always now repeat the same procedure, and revert to the original quota.)

    That's it - the errors went away :-D
    I am not sure what was causing them - perhaps there was an extra line or some non-printing character in the file - but editing it and saving it seems to have worked. Now where was that Whiskey ?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    Infopro likes this.
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,961
    Likes Received:
    1,821
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Did you happen to check the ownership values of those files before updating them through the cPanel email quota modification functionality?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    700
    Likes Received:
    237
    Trophy Points:
    93
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    I did check - the /quota files were all :

    owner:username
    group:mail
    permissions 640
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    700
    Likes Received:
    237
    Trophy Points:
    93
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    ***UPDATE***

    After checking every single /home/username/etc/domain.tld/quota file, I did find one user whose file was set :
    owner:username
    group:username
    permissions 640

    After modifying a quota for one of their email accounts, this users file changed to :
    owner:username
    group:mail
    permissions 640

    To be honest, I am now doubting myself as to whether I checked the ownership before or after I changed the email quota for their account in cPanel.

    Hope someone can get something useful out of all this o_O
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,961
    Likes Received:
    1,821
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    The following command is also useful if you want to correct the ownership or permissions of the mail quota files:

    Code:
    /scripts/mailperm --verbose
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice