[Dovecot] default mail quota when using per user quota (news1204: message 6 of 20)

Nikolaos Milas nmilas at noa.gr
Wed May 9 10:28:41 EEST 2012


On 23/4/2012 1:34 μμ, Timo Sirainen wrote:

> What do you get in logs with auth_debug=yes?

Sorry for being late in responding.

When I run:

# doveadm quota get -u tester1
Quota name Type    Value Limit %
User quota STORAGE     0     - 0
User quota MESSAGE     1     - 0

# doveadm quota get -u tester2
Quota name Type    Value Limit %
User quota STORAGE     0 20480 0
User quota MESSAGE     1     - 0

Then in the logs:

---------------------------------------------------------------

May  9 10:01:16 vdev dovecot: auth: Debug: master in: USER      1       
tester1  service=doveadm
May  9 10:01:16 vdev dovecot: auth: Debug: ldap(tester1): user search: 
base=ou=people, dc=noa, dc=gr scope=onelevel filter=(uid=tester1) 
fields=roomNumber,uid
May  9 10:01:16 vdev dovecot: auth: Debug: ldap(tester1): result: 
uid=tester1; roomNumber missing
May  9 10:01:16 vdev dovecot: auth: Debug: master out: USER     1 
tester1  quota_rule=*:bytes=     home=/home/vmail/tester1
May  9 10:01:29 vdev dovecot: auth: Debug: master in: USER      1       
tester2  service=doveadm
May  9 10:01:29 vdev dovecot: auth: Debug: ldap(tester2): user search: 
base=ou=people, dc=noa, dc=gr scope=onelevel filter=(uid=tester2) 
fields=roomNumber,uid
May  9 10:01:29 vdev dovecot: auth: Debug: ldap(tester2): result: 
uid=tester2 roomNumber=20M
May  9 10:01:29 vdev dovecot: auth: Debug: master out: USER     1       
tester  quota_rule=*:bytes=20M  home=/home/vmail/tester2

---------------------------------------------------------------

So, in essence, when there is an explicitly defined quota for an account 
(as with tester2 above), doveadm returns the limit correctly; if not (as 
with tester1), it should get the default quota value, but it doesn't.

Nick




More information about the dovecot mailing list