recalculate.mailbox.quota

This commit is contained in:
Michael 2014-09-17 18:19:26 +08:00
parent cf98fe6bc2
commit 53605786a0
2 changed files with 32 additions and 1 deletions

View File

@ -0,0 +1,30 @@
<http://www.iredmail.org/wiki/index.php?title=IRedMail/FAQ/Recalculate.Mailbox.Quota>
# How to recalculate mailbox quota
[TOC]
iRedMail enables dict quota since v0.7.0, dict quota is recalculated only if the quota goes below zero.
* For MySQL and PostgreSQL backend:
<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> UPDATE mailbox SET bytes=-1,messages=-1 WHERE username='user@domain.ltd';
</pre>
* For OpenLDAP backend:
<pre>
mysql> USE iredadmin;
mysql> DELETE FROM used_quota WHERE username='user@domain.ltd';
</pre>
Re-login to webmail will get correct quota size.
If there're records for non-exist mail users in table ```used_quota```, please delete them.

View File

@ -3,7 +3,7 @@
http://www.iredmail.org/wiki/index.php?title=IRedMail/FAQ/Recalculate.Mailbox.Quota
http://www.iredmail.org/wiki/index.php?title=IRedMail/FAQ/Ignore.Trash.Folder.in.Quota
http://www.iredmail.org/wiki/index.php?title=IRedMail/FAQ/why.iredmail.append.timestamp.in.maildir.path
http://www.iredmail.org/wiki/index.php?title=IRedMail/FAQ/LDAP/Add.Mail.Forwarding.Address
@ -15,6 +15,7 @@ http://www.iredmail.org/wiki/index.php?title=IRedMail/FAQ/LDAP/Turn.On.Debug.Mod
http://www.iredmail.org/wiki/index.php?title=IRedMail/FAQ/LDAP/Monitor.Incoming.and.Outgoing.Mails.with.BCC
http://www.iredmail.org/wiki/index.php?title=IRedMail/FAQ/SQL/Create.Mail.Alias
[DONE]http://www.iredmail.org/wiki/index.php?title=IRedMail/FAQ/Recalculate.Mailbox.Quota
[duplicate]http://www.iredmail.org/wiki/index.php?title=IRedMail/FAQ/Allow.Insecure.POP3.IMAP.Connection.without.STARTTLS
[in troubleshooting yet]http://www.iredmail.org/wiki/index.php?title=IRedMail/FAQ/Turn.On.Debug.Mode.In.Amavisd
[DONE]http://www.iredmail.org/wiki/index.php?title=IRedMail/FAQ/Allow.User.to.Send.Email.without.Authentication