Hi
I just configure dovecot with the second dictionary for the domain quota
dict {
quotadict = mysql:/usr/local/etc/dovecot-quota.conf
quota_domain = mysql:/usr/local/etc/dovecot-quota-domain.conf
}
plugin {
quota = dict:user::proxy::quotadict
quota2 = dict:domain:%d:proxy::quota_domain
}
and the dovecot-quota-domain.conf looks like this :
connect = host=xxx dbname=xxx user=xxxx password=xxxx
map {
pattern = priv/quota/storage
table = domain_quota
username_field = domain
value_field = used_quota
}
map {
pattern = priv/quota/messages
table = domain_quota
username_field = domain
value_field = messages
}
The problem is that the dictionary table gets updated only with the
first mailbox informations (quota and messages for the first mailbox
within domain that is accessed). I suppose that have something to do
with the pattern but I can't find any docs for what the pattern must
look in the case of a domain quota dictionary.
Can anybody help me with a working example or some docs.
Alex
At least can anyone explain what is the "pattern" from the map definition. On 07/14/2010 01:38 PM, alex wrote:> Hi > > I just configure dovecot with the second dictionary for the domain quota > > dict { > quotadict = mysql:/usr/local/etc/dovecot-quota.conf > quota_domain = mysql:/usr/local/etc/dovecot-quota-domain.conf > } > > plugin { > quota = dict:user::proxy::quotadict > quota2 = dict:domain:%d:proxy::quota_domain > } > > and the dovecot-quota-domain.conf looks like this : > > connect = host=xxx dbname=xxx user=xxxx password=xxxx > map { > pattern = priv/quota/storage > table = domain_quota > username_field = domain > value_field = used_quota > } > > map { > pattern = priv/quota/messages > table = domain_quota > username_field = domain > value_field = messages > } > > The problem is that the dictionary table gets updated only with the > first mailbox informations (quota and messages for the first mailbox > within domain that is accessed). I suppose that have something to do > with the pattern but I can't find any docs for what the pattern must > look in the case of a domain quota dictionary. > Can anybody help me with a working example or some docs. > > Alex
On Wed, 2010-07-14 at 13:38 +0300, alex wrote:> and the dovecot-quota-domain.conf looks like this :Looks ok.> The problem is that the dictionary table gets updated only with the > first mailbox informations (quota and messages for the first mailbox > within domain that is accessed).What exactly do you mean by this? That the initial quota is calculated only from the first user that accesses it? Yes, that's expected. The domain quota support is somewhat of a hack right now, and initial quota calculation or quota recalculation isn't possible easily. Or do you mean that even when other users later do changes, the domain quota won't be updated?