[Dovecot] how to setup different quota for multiple namespaces

Andreas Oster aoster at novanetwork.de
Tue Jan 22 15:06:53 EET 2013


Am 22.01.2013 12:54, schrieb Timo Sirainen:
> On 17.1.2013, at 16.58, Andreas Oster <aoster at novanetwork.de> wrote:
> 
>>> I just saw on important difference in the doc and this configuration:
>>>
>>> see
>>> http://wiki2.dovecot.org/Quota/Configuration#Quota_for_public_namespaces
>>>
>>> the ns=name syntax is for _public_ namespaces only. I just tested it
>>> with this setup and every message is counted for both namespaces, if
>>> delivered into INBOX or a mailbox of the Archive namespace.
> 
> It should work for all namespaces.
> 
>>>> plugin {
>>>> quota = dict:User quota::proxy::quota
>>>> quota2 = dict:Archive quota:ns=Archive.:proxy::quota
> 
> quota = dict:User quota::ns=:proxy::quota
> quota2 = dict:Archive quota::ns=Archive.:proxy::quota
> 
> That should work? Worked at least in latest v2.1 hg.
> 
> 
Hello Timo,

thank you for your reply. I am using dovecot 2.1.7 (Ubuntu 12.10) and
have tried to configure a separate quote root for a second private
namespace without any success. The only working option is to
ignore/disable quota for the second namespace:


}
namespace inbox {
  hidden = no
  ignore_on_failure = no
  inbox = yes
  list = yes
  location =
  prefix =
  separator = /
  subscriptions = yes
  type = private
}

namespace {
  hidden = no
  ignore_on_failure = no
  inbox = no
  list = children
  location = maildir:/var/vmail/archives/%n/Maildir
  prefix = Archives/
  separator = /
  subscriptions = yes
  type = private
}



plugin {
        quota = maildir:User quota:ns=
        quota2 = maildir:Archives quota:ns=Archives/
        quota_rule = *:storage=1G
        quota_rule2 = Trash:storage=+200M
        quota_rule3 = ns=Archives/:ignore
}


If I try to enter something like:

 quota_rule3 = ns=Archives/:storage=10G

I will get an error message saying that this is deprecated and needs to
be replaced by "+10G".

best regards

Andreas



More information about the dovecot mailing list