There are some occasions where you might want to recalculate the quota and the total number of messages existing in a mailbox, for a single user or maybe for all your users. This can be accomplished with deleting the record/s in the table used_quota.
mysql> USE vmail; mysql> DELETE FROM used_quota WHERE username='[email protected]';
OR
mysql> USE vmail; mysql> DELETE FROM used_quota ;