2014-09-22 21:47:49 -05:00
|
|
|
# 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.
|