iredmail-doc/4-howto/recalculate.mailbox.quota.md

670 B

Force Dovecot to recalculate mailbox quota

iRedMail enables dict quota since iRedMail-0.7.0, dict quota is recalculated only if the quota goes below zero

  • For MySQL and PostgreSQL backend:
mysql> USE vmail;
mysql> DELETE FROM used_quota WHERE username='user@domain.ltd';
  • For OpenLDAP backend:
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.