[Dovecot] dovecot-2.2: broken domain quota calculation
Timo Sirainen
tss at iki.fi
Fri Feb 22 14:12:25 EET 2013
On 6.2.2013, at 14.07, Evgeny Basov <ya.mwork at yandex.ru> wrote:
> Quota configuration:
>
> plugin {
> quota = dict:Domain quota:%d:redis:host=127.0.0.1:prefix=domain/
> quota_rule = *:storage=0
> quota_rule2 = Trash:storage=+5%%
> quota2 = dict:User quota::redis:host=127.0.0.1:prefix=user/
> quota2_rule = *:storage=0
> quota2_rule2 = Trash:storage=+5%%
> }
>
> Problem: incorrect quota calculations. Dovecot gets size and messages
> count of all domain from last user in list. In 2.1 works fine.
>
> Steps to reproduce problem:
>
> 1. install dovecot
> 2. create over 50 users with e-mails
> 3. execute: doveadm quota recalc -A
Are you talking about the recalc command not counting the domain quota correctly? It has never worked. That's the main reason that feature isn't being advertised much. Nowadays it would at least be possible to implement by iterating through users within the domain.
More information about the dovecot
mailing list