[Dovecot] dovecot-lda setting quota rules

Lazy lazy404 at gmail.com
Fri Aug 3 02:13:17 EEST 2012


2012/7/31 Timo Sirainen <tss at iki.fi>:
> On 18.7.2012, at 4.33, Lazy wrote:
>
>> I wan't it to stay that way. The problem is that it dosn't update the
>> quota rules in Maildir when quota is changed in userdb.
>> I have the rules avaiable in qmail-lda's environment, but I need an
>> idea on how to feed the quota rule string to quota plugin without
>> doing userdb lookup.
>>
>> What whould be the best way to do this, maybe in
>> plugins/quota/quota.c:quota_root_add_rules() ?
>
> dovecot-lda -o plugin/quota_rule=*:storage=1G
>

thank You !

This is simple and elegant.

Sill I need this to be taken from environment, I produced a simple
patch adding one '-o' from an environment variable.

If You consider this useful I can try and make it more generic, enable
multiple option overriding.


Regards,
Michal Grzedzicki



More information about the dovecot mailing list