IRedMail/FAQ/Recalculate.Mailbox.Quota
From iRedMail
(Difference between revisions)
| Line 3: | Line 3: | ||
For MySQL backend: | For MySQL backend: | ||
{{cmd|<pre> | {{cmd|<pre> | ||
| + | # | ||
| + | # ---- For iRedMail-0.7.4 and later versions ---- | ||
| + | # | ||
| + | mysql> USE vmail; | ||
| + | mysql> DELETE FROM used_quota WHERE username='user@domain.ltd'; | ||
| + | |||
| + | # | ||
| + | # ---- For iRedMail-0.7.3 and earlier versions ---- | ||
| + | # | ||
mysql> USE vmail; | mysql> USE vmail; | ||
mysql> UPDATE mailbox SET bytes=-1,messages=-1 WHERE username='user@domain.ltd'; | mysql> UPDATE mailbox SET bytes=-1,messages=-1 WHERE username='user@domain.ltd'; | ||
Revision as of 04:44, 26 January 2012
iRedMail enables dict quota since v0.7.0, dict quota is recalculated only if the quota goes below zero.
For MySQL backend:
| Terminal: |
# # ---- For iRedMail-0.7.4 and later versions ---- # mysql> USE vmail; mysql> DELETE FROM used_quota WHERE username='user@domain.ltd'; # # ---- For iRedMail-0.7.3 and earlier versions ---- # mysql> USE vmail; mysql> UPDATE mailbox SET bytes=-1,messages=-1 WHERE username='user@domain.ltd'; |
For OpenLDAP backend:
| Terminal: |
mysql> USE iredadmin; mysql> UPDATE used_quota SET bytes=-1,messages=-1 WHERE username='user@domain.ltd'; |
Re-login to webmail will get correct quota size.
