Dovecot provides command line tool doveadm
to recalcuate mailbox quota.
Sample usage:
doveadm quota recalc -u user@domain.ltd
doveadm quota recalc -A
Reference: Doveadm-Quota
iRedMail enables dict quota since iRedMail-0.7.0, dict quota is recalculated only if the quota goes below zero.
mysql> USE vmail;
mysql> DELETE FROM used_quota WHERE username='user@domain.ltd';
mysql> USE iredadmin;
mysql> DELETE FROM used_quota WHERE username='user@domain.ltd';
Re-login via POP3/IMAP (or webmail) will trigger Dovecot to recalculate mailbox quota.
TIP: it's safe to delete records in SQL table used_quota
if mail user
was deleted in table vmail.mailbox
or LDAP. iRedAdmin-Pro will handle this
for you automatically.