On 10. Apr 2025, at 13.43, Timo Sirainen via dovecot <dovecot@dovecot.org> 
wrote:
> 
> This should work:
> 
> quota global_quota {
>  storage_size = 1G
> }
> namespace foo {
>  quota foo_quota {
>    storage_size = 2G
>  }
> }
> 
> and then return from userdb quota/global_quota/storage_size=10G or 
> quota/foo_quota/storage_size=20G.
> 
> If you use "User quota" or other such quota root name with spaces, it may be 
> easier to do:
> 
> quota global_quota {
>  name = User quota
>  storage_size = 1G
> }
> 
> So you can still use quota/global_quota/storage_size to override.

And you can actually even do:

quota_storage_size = 1G
quota global_quota {
}

namespace foo {
 quota foo_quota {
   storage_size = 2G
 }
}

And then userdb can override quota_storage_size for global_quota and 
quota/foo_quota/storage_size for foo_quota. Returning only quota_storage_size 
wouldn't apply to foo_quota.

_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org

Reply via email to