The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

The system failed to read the maildirsize file

Discussion in 'E-mail Discussions' started by stomach, Jan 28, 2016.

  1. stomach

    stomach Registered

    Joined:
    Jan 28, 2016
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Brasil
    cPanel Access Level:
    Root Administrator
    It is going on with multiple accounts.

    Code:
    2016-01-28 09:46:00 The system failed to read the maildirsize file “/home/user/mail/domain.com/financeiro/maildirsize” because of an error: Failed to open “/home/user/mail/domain.com/financeiro/maildirsize”: Permission denied at /etc/exim.pl.local line 1946.
    
     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,146
    Likes Received:
    34
    Trophy Points:
    48
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello,

    Can you please check the permission and ownership of your /home/user/mail/domain.com/financeiro/maildirsize file ? And also check the cPanel and mail account disk quota.

    Code:
    ls -la /home/user/mail/domain.com/financeiro/maildirsize
     
  3. gersonfs

    gersonfs Active Member

    Joined:
    Sep 30, 2007
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    I am also with this same problem on multiple servers. It seems to be a problem after an upgrade from cPanel.

    2016-01-28 14:05:00 The system failed to read the maildirsize file “/home/user/mail/domain/user/maildirsize” because of an error: Failed to open “/home/user/mail/domain/user/maildirsize”: Permission denied at /etc/exim.pl.local line 1946.

    ls -lah /home/user/mail/domain/user/maildirsize
    -rw-r----- 1 user user 3,4K Jan 28 14:05 /home/user/mail/domain/user/maildirsize

    What would be the appropriate permissions and how to fix it in hundreds of accounts?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    652
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Internal case CPANEL-3807 is open to address the issue where "/usr/local/cpanel/scripts/mailperm" is unable to correct permissions for unreadable files due to attempting to complete the task via a file handle instead of a file name. Please monitor our change log to see when a resolution associated with this case has been released:

    54 Change Log - Documentation - cPanel Documentation

    Thank you.
     
  5. ScOut3R

    ScOut3R Registered

    Joined:
    Apr 16, 2015
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Hungary
    cPanel Access Level:
    DataCenter Provider
    Dear cPanelMichael,

    according to the changelog it was fixed in version 54.0.6. I am running 54.0.8 and I still see this error in the logs, but only for one specific account. Is there something I can do to fix this error?

    Kind regards,
    Mate
     
  6. cinusik

    cinusik Active Member

    Joined:
    Jul 31, 2003
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Same thing on all our servers - looks like something is screwed up:

    2016-01-29 15:32:01 The system failed to read the maildirsize file “/home/xxxxx/mail/xxxxx.com/ron/maildirsize” because of an error: Failed to open “/home/xxxxx/mail/xxxxx.com/ron/maildirsize”: Permission denied at /etc/exim.pl.local line 1946.

    for all maildir files, please investigate that and fix ASAP. It happened after update to 54 version.

    Tried to delete file and problem is still there after file is recreated. With every incoming file to the mailbox error is generated.
     
    #6 cinusik, Jan 29, 2016
    Last edited: Jan 29, 2016
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    652
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    The output to /var/log/exim_mainlog is by design. The issue is that "/scripts/mailperm" is not correcting the permissions on the mail files. Could you let us know the specific error messages you receive when running the "/scripts/mailperm $username --verbose" command?

    Thank you.
     
  8. cinusik

    cinusik Active Member

    Joined:
    Jul 31, 2003
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Issue fixed - just updated to latest release version 54.0.8, than run:
    /scripts/mailperm
    and maildirsize errors are gone.
    Thanks for pointing this out cPanelMichael.
    I also did not noticed mailperm script run during upcp update process so maybe this is cause of the problems with incorrect maildirsize permissions.
     
  9. abrakadabra

    abrakadabra Member

    Joined:
    Dec 14, 2010
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    WHM 54.0 build 8

    If maildirsize file is removed, it is recreated during exim delivery with user,group of username:username, which is wrong, i guess.

    After running /scripts/mailperm <user> --verbose, the file is changed to user,group of username:mail. However, the file is again automatically changed to user,group of username:username during next exim delivery and therefore the /var/log/maillog errors persist.
     
  10. cinusik

    cinusik Active Member

    Joined:
    Jul 31, 2003
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Yes, you are right. Errors are back after new email delivery.
     
  11. anup123

    anup123 Well-Known Member

    Joined:
    Mar 29, 2004
    Messages:
    897
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    This Planet
    I am getting same error across the server.
     
  12. stomach

    stomach Registered

    Joined:
    Jan 28, 2016
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Brasil
    cPanel Access Level:
    Root Administrator
    I continue with the Problem
     
  13. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,448
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Please feel free to open a ticket directly to cPanel Technical Support about this.
     
  14. Steve S.

    Steve S. Registered

    Joined:
    Feb 1, 2016
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Sonoma, CA
    cPanel Access Level:
    Root Administrator
    I'm seeing this on 2 servers:
    CENTOS 6.4 x86_64 standard – WHM 54.0 (build 8)
    CENTOS 5.11 i686 standard – WHM 54.0 (build 8)

    It appears only to be happening to accounts that were migrated to these servers within the last couple weeks. Accounts that were already on these servers prior to to the migration don't seem to be affected.

    when I run /scripts/mailperm <account> --verbose and it fixes the permissions.
    Come back and check the next day and the permissions of maildirsize have returned to the bad settings.
    Plenty of mail comes into the accounts without changing the permissions, so not sure what triggers the change.

    Clues:
    After migrating the accounts I rsync'd the mail dirs for the moved accounts a few times until DNS propagated.
    Cpanel updates have been done since the migrations.
    Converted the mail from courier to dovecot on both servers since the migration.
     
  15. zackw

    zackw Active Member

    Joined:
    Sep 30, 2010
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    I just had to fix this error too.

    Watching this thread for updates and see if the permissions return to previous values automatically for me too.
     
  16. stomach

    stomach Registered

    Joined:
    Jan 28, 2016
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Brasil
    cPanel Access Level:
    Root Administrator
    I'm still having trouble.

    The team failed to solve.
     
  17. bloatedstoat

    bloatedstoat Well-Known Member

    Joined:
    Jun 14, 2012
    Messages:
    78
    Likes Received:
    6
    Trophy Points:
    8
    Location:
    Victoria, Australia
    cPanel Access Level:
    Root Administrator
    Yep, we have this error too after our upgrade ran last night to WHM 54.0 (build 8)
    I have opened a support ticket #7452317
     
    cinusik likes this.
  18. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    652
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  19. luxhosting

    luxhosting Member

    Joined:
    Sep 3, 2010
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    we have again this issue, on 2 actual servers : CENTOS 5.11 x86_64 vmware – cpanel3 WHM 54.0 (build 12)
    What do we have to to to fix this ?
    Thanks and best regards
     
  20. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    652
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page