[Workaround.org] Dynamic quota limits with mysql
Emmanuel Revah
stsil at manurevah.com
Tue Mar 13 11:58:30 CET 2012
On 2012/03/11 14:11, Sebastian Büttner wrote:
> Hey dear list-members,
>
> I tried today to extend the dovecot quota setup at my server to allow
> dynamic quota rules.
Cool : ]
> The query above returns this result for the `quota_rule` field for
> user 1:
>
> /************************
> [2] *:storage=3G;Trash:storage=+100M;*:messages=1000
> /************************
>
> This looks to me as a good result, BUT, the logfile says (when I
> connect via IMAP):
>
> /************************
> Mar 11 13:39:04 xxx dovecot: imap(xxxxxx at xxxxxx): Error: user
> xxxxxx at xxxxxx: Initialization failed: Failed to initialize quota:
> Invalid quota root quota: Invalid rule
> *:storage=3G;Trash:storage=+100M;*:messages=1000: Rule limit cannot
> have '+'
> /************************
>
> So, my question simply is: Why are '+' not allowed in here? In the
> file based config '90-quota.conf', there is the rule
> 'quota_rule2 = Trash:storage=+100M' , also with a Plus signed and
> working!
I don't have the '90-quota.conf' file on my system (debian squeeze). I
would trust the log error and remove the +sign. Does it works without it
?
I use the same sort of thing, but my quota is just for the the whole
"storage", so I don't know exactly what you want to do with "+100M",
however it seems that according to the doc you can use percentages, if
that helps.... ..
Sorry to not be of more help..
--
Emmanuel Revah
http://manurevah.com
More information about the Workaround-chitchat
mailing list