IRedMail/FAQ/Recalculate.Mailbox.Quota

From iRedMail

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
iRedMail enables dict quota since v0.7.0, dict quota is recalculated only if the quota goes below zero.
iRedMail enables dict quota since v0.7.0, dict quota is recalculated only if the quota goes below zero.
-
For example:
+
For MySQL backend:
{{cmd|<pre>
{{cmd|<pre>
 +
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';
 +
</pre>}}
 +
 +
For OpenLDAP backend:
 +
{{cmd|<pre>
 +
mysql> USE iredadmin;
 +
mysql> UPDATE used_quota SET bytes=-1,messages=-1 WHERE username='user@domain.ltd';
</pre>}}
</pre>}}

Revision as of 16:47, 28 June 2011

iRedMail enables dict quota since v0.7.0, dict quota is recalculated only if the quota goes below zero.

For MySQL backend:

Terminal:
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.

Personal tools