Wrong mail quota in CPanel

May 9, 2010 | Technical Stuffs | , , , ,

Today I found my CPanel displays wrong disk quota for an email account. It shows 58/100 MB (58 MB used, of 100 MB preserved) while actually the mailbox is empty.

I have checked with du -sh command (a command to check disk usage) and it returned 100 KB or something, so there must be something wrong.

After googling around, I got some trick to solve this problem. Perform this action from shell/SSH or simply using file manager in CPanel:

  1. Go to /home/usercpanel/mail/domain.com/emailaccount/.
  2. Delete file named maildirsize, this file stores disk usage information
  3. Change the number of disk quota for that email account from CPanel (inside menu Email Accounts), it will regenerate a new maildirsize file.

Refresh your browser and now you should see the correct disk quota for that email account.

5 comments

This post has 5 comments, wiiiiii!

  1. hyoori 20/05/2010 at 20:03

    kok bisa salah begitu D:

  2. acumme 27/01/2011 at 13:36

    Sangat membantu , problem solved 😀

  3. Jack Mennings 01/03/2011 at 15:44

    Yeah my cpanel email does show wrong quota. Thanks for this trick, will apply it immediately.

  4. Torrent 03/05/2011 at 01:08

    Great tip i had the same issue…

  5. Icariin Extract 26/03/2016 at 16:28

    Wow this actually still works! Cheers

 

Leave a comment

Allowed tags are: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>