On 10. Apr 2025, at 13.20, Andreas Oster via dovecot <dovecot@dovecot.org> 
wrote:

> However, in my setup I am using a separate namespace for mail
> "archiving" on a slower storage.
> I would like to also restrict the available storage space for users
> individually in this namespace.
> To achieve this I ideally would like to fetch the value from a different
> LDAP attribute.
> 
> Can this be achieved with dovecot 2.4 ?  In version 2.3 this was not a
> problem.

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.
_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org

Reply via email to