Technical Stuffs

Wrong mail quota in CPanel

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

  1. kok bisa salah begitu D:

  2. acumme

    Sangat membantu , problem solved 😀

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

  4. Great tip i had the same issue…

  5. Wow this actually still works! Cheers

Leave a Reply