Catatan Bapak Muda Berbahaya

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/
  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.

Next Post

Previous Post


  1. hyoori 20/05/2010

    kok bisa salah begitu D:

  2. acumme 27/01/2011

    Sangat membantu , problem solved 😀

  3. Jack Mennings 01/03/2011

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

  4. Torrent 03/05/2011

    Great tip i had the same issue…

  5. Icariin Extract 26/03/2016

    Wow this actually still works! Cheers

Leave a Reply

© 2022

Theme by Anders Norén