Dovecot >=2.2.29 + Filesystem quota = incorrect storage information

Macka dovecot at macka.pl
Tue Jun 20 15:49:58 EEST 2017


Hi,

I have problem with quota storage information in dovecot-2.2.29 (and
newer versions, too - 2.2.30.2).
I use FS quota backend.


............................
# 2.2.29.1 (e0b76e3): /etc/dovecot/dovecot.conf
# OS: Linux 4.4.68-1 x86_64

mail_plugins = quota

plugin {
  quota = fs:User quota:mount=/poczta:user
  quota2 = fs:Group quota:mount=/poczta:group
}

protocol imap {
  mail_max_userip_connections = 10
  mail_plugins = "imap_quota mail_log notify antispam"
}
.................................


After upgrade from 2.2.27 to 2.2.29 (newest 2.2.30.2 too), dovecot
returns incorrect informations about quota storage:

# doveadm quota get -u myusername

Quota name Type       Value  Limit                 %
User quota STORAGE 10960896 100000             10960

or

# ( echo "A1 GETQUOTAROOT INBOX"; echo "A2 logout" ) |
/usr/lib64/dovecot/imap -u myusername

* PREAUTH [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID
ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS
THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN
NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH
ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE NOTIFY
SPECIAL-USE QUOTA] Logged in as myusername
imap(myusername): Info: Logged out in=31 out=588
* QUOTAROOT INBOX "User quota"
* QUOTA "User quota" (STORAGE 10960896 100000)
A1 OK Getquotaroot completed (0.001 + 0.000 secs).
* BYE Logging out
A2 OK Logout completed (0.001 + 0.000 secs).


Values are in BYTES and Limit in BLOCKS which gives insane information in %


Other server with older version 2.2.27 returns correct numbers (both in
BLOCKS)

# doveadm quota get -u username2
Quota name Type     Value  Limit                   %
user       STORAGE 558336 614400             90


Is this a bug in new versions?
How can I fix this?

-- 
macka


More information about the dovecot mailing list