[Dovecot] Quota BUG ?

Adrian M adrian.minta at gmail.com
Wed Nov 9 14:59:17 EET 2011


Hello list,
I believe I found a bug with quota.
The dovecot quota replies with incorrect values when the mailbox is above 2GB.

du -ks returns 2005764bytes

dovecot IMAP on the same user/directory:
1 getquotaroot inbox
* QUOTAROOT "INBOX" "user"
* QUOTA "user" (STORAGE 1096 2000000)* QUOTAROOT "INBOX" "user"
* QUOTA "user" (STORAGE 1096 2000000)
1 OK Getquotaroot completed.

Is there any way to fix this ?

---
linux system:
dovecot 1.2.15-7
linux 2.6.32-5-amd64

dovecot.conf:
dict {
   quotadict= mysql:/etc/dovecot/dovecot-dict-quota.conf
}
plugin {
  quota = dict:user::proxy::quotadict
}

dovecot-dict-quota.conf :
user_query = SELECT '/home/%d/%n' as home, 'maildir:/home/%d/%n' as
mail, 150 AS uid, 8 AS gid, CONCAT('*:bytes=', CAST(quota AS CHAR)) AS
quota_rule FROM mailbox WHERE username = '%u' AND active = '1'



More information about the dovecot mailing list