Score:0

Dovecot: Failed to get quota resource & Internal quota calculation error

hn flag

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

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.