ltmp, quota and quota grace

Sylvain Allemand sylvain.allemand at math.u-bordeaux.fr
Thu Jun 30 09:52:08 UTC 2016


Hi,

i try to configure quota in dovecot.

1) I test quota with postfix and quota-status :
quota is respected but quota grace is ignored...

2) i test quota with Dovecot LMTP :
quota (and quota grace) are ignored

i can see in log file :

Jun 30 11:36:39 mail1 dovecot: lmtp(24424, sallemantest at test.fr): Debug: 
Quota root: name=User quota sallemantest at test.fr backend=count args=
Jun 30 11:36:39 mail1 dovecot: lmtp(24424, sallemantest at test.fr): Debug: 
Quota rule: root=User quota sallemantest at test.fr mailbox=* 
bytes=1073741824 messages=0
Jun 30 11:36:39 mail1 dovecot: lmtp(24424, sallemantest at test.fr): Debug: 
Quota rule: root=User quota sallemantest at test.fr mailbox=Trash 
bytes=+104857600 messages=0
Jun 30 11:36:39 mail1 dovecot: lmtp(24424, sallemantest at test.fr): Debug: 
Quota grace: root=User quota sallemantest at test.fr bytes=107374182 (10%)

Jun 30 11:36:39 mail1 dovecot: lmtp(sallemantest at test.fr): Debug: 
replication: Replication requested by 'transaction commit', priority=2
Jun 30 11:36:39 mail1 dovecot: lmtp(sallemantest at test.fr): 
/z7gBifodFdoXwAAs3/TQA: 
msgid=<fdf98d16-c557-4e15-42a6-ea019a3bae1e at math.u-bordeaux.fr>: saved 
mail to INBOX
Jun 30 11:36:39 mail1 dovecot: lmtp(24424): Disconnect from 127.0.0.1: 
Successful quit

my quota :

root at mail1:~# doveadm -v quota get -u sallemantest at test.fr
Quota name                                      Type    Value 
Limit                                        %
User quota sallemantest at test.fr STORAGE    29 
10                                      290
User quota sallemantest at test.fr MESSAGE    11 
-                                        0


my config for lmtp and quota :

protocol lmtp {
   mail_plugins = " acl notify replication quota sieve"
   userdb {
     args = /etc/dovecot/dovecot-lmtp-ldap-userdb.conf.ext
     default_fields = uid=vmail gid=vmail
     driver = ldap
     name =
   }
}

plugin {
   quota = count:User quota %u
   quota_grace = 10%%
   quota_rule = *:storage=1G
   quota_rule2 = Trash:storage=+100M
   quota_vsizes = yes
}


root at mail1:/etc/dovecot# dovecot --version
2.2.24 (a82c823)

Help please !


Sylvain


ps : sorry for my poor english



More information about the dovecot mailing list