> On 06/04/2025 23:54 EEST Damien Brémont via dovecot <[email protected]> 
> wrote:
> 
>  
> Hi all,
> 
> I'm trying to setup Per-User quota with LDAP on dovecot 2.4.1
> 
> When I try to recalc quota for user, data is retrieved from LDAP server
> # doveadm quota recalc -u user
> 

> passdb ldap {
>   fields {
>     user = %{ldap:uid}
>     userdb_gid = %{ldap:gidNumber}
>     userdb_home = %{ldap:homeDirectory}
>     userdb_quota_storage_size = %{ldap:quotaBytes}B
>     userdb_uid = %{ldap:uidNumber}
>   }
>   bind = yes
>   filter = (&(objectClass=posixAccount)(uid=%{user}))
> }

I'd recommend moving the storage_size out of quota "User Quota", since it's 
then easier to override:

quota "User quota" {
   driver = count
...
}
quota_storage_size = 10G

Aki

_______________________________________________
dovecot mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to