0

Dovecot 2.3.13 gets the correct filesystem quotas but is not able to report it by IMAP:

/etc/dovecot/conf.d/90-quota.conf:

plugin {
 quota = fs:User quota:user
}

Quota Plugin is enabled globally and for IMAP and /etc/systemd/system/dovecot.service.d/override.conf is set to

[Service]
PrivateDevices=off

doveadm show the correct user quota:

doveadm quota get -u user@example.de
Quota name Type      Value   Limit       %
User quota STORAGE 5697792 8388608       67

Then it fails to report it in an IMAP session:

telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot (Debian) ready.
a login user@example.de pass
a OK [CAPABILITY IMAP4rev1 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 SNIPPET=FUZZY PREVIEW=FUZZY STATUS=SIZE SAVEDATE LITERAL+ NOTIFY SPECIAL-USE QUOTA] Logged in
y getquotaroot inbox
y NO Internal quota calculation error (0.001 + 0.000 secs).

/var/log/mail.log shows in addition the following error:

dovecot: imap(user@example.de)<25688><EkPHMZP0Hqh/AAAB>: Error: Failed to get quota resource STORAGE: quota-fs: quotactl(Q_GETQUOTA, /dev/md2) failed: No such file or directory

Any ideas on how to solve this?

Best,

Martin

Martin
  • 1
  • I spent days trying to solve this issue and it is still present. But I found a workaround to inform users of there disk usage: [Dovecot Quota Info email with doveadm](https://tinkabout.net/quota-info-and-uribl_blocked-with-spamassassin-for-virtualmin/) – Martin Mar 21 '23 at 13:30

0 Answers0