> On 21/01/2026 15:35 EET Ruud Baart via dovecot <[email protected]> wrote:
> 
>  
> Hi,
> 
> I'm doing a migration from dovecot 2.3 to 2.4. I can't find why the user 
> quota is not respected.
> 
> In my case in version 2.3 the user quota where read from LDAP:
> 
> user_attrs = 
> mailBase=home,mailMessageStore=mail,dovecotQuota=quota_rule=*:storage=%$
> 
> I can't find how I can configure this in 2.4. The documentation refers 
> to "quota_rule" but how and where?
> 
> In 2.4 I have:
> 
> userdb ldap {
>     userdb_use_worker = yes
>     userdb_ldap_filter = 
> (&(objectClass=PromptMailUser)(accountStatus=TRUE)(mailDeliveryaddress=%{user}))
>     fields {
>        home = %{ldap:mailBase}
>        mail = %{ldap:mailMessageStore}
>        mail_path = %{ldap:mailMessageStore}
>        quota_storage_size = %{ldap:dovecotQuota}
>     }
> }
> 
> quota "User quota" {
>     storage_size = 
>     warning warn-95 {
>        quota_storage_percentage = 95
>        execute quota-warning {
>           args = 95 %{user}
>        }
>     }
>     warning warn-80 {
>        quota_storage_percentage = 80
>        execute quota-warning {
>           args = 80 %{user}
>        }
>     }
> }


Jan 21 13:53:34 doveadm([email protected])<229340><>: Debug: Added userdb 
setting: quota_storage_size=10G

You probably want to remove that 

`storage_size = `

from user quota?

Aki

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

Reply via email to