#935899 Quotas stopped working after upgrade to buster (systemd problem?)

Package:
dovecot-core
Source:
dovecot
Description:
secure POP3/IMAP server - core files
Submitter:
karl156
Date:
2021-02-01 00:21:04 UTC
Severity:
normal
#935899#5
Date:
2019-08-27 13:21:54 UTC
From:
To:
Quotas stopped working after upgrade to buster and syslog is spammed
with error messages like this one

Aug 27 12:34:56 hostname dovecot: imap(username)<xxx><xxx>: Error:
Failed to get quota resource STORAGE: quota-fs: quotactl(Q_GETQUOTA,
/dev/volumename) failed: No such file or directory

this command works "# doveadm quota get -u username"

Problem seems to be systemd PrivateDevices=true in dovecot.service:
https://www.dovecot.nl/pipermail/dovecot/2019-March/115121.html

#935899#10
Date:
2020-08-01 05:28:13 UTC
From:
To:
This bug is almost a year old and still unfixed. Worse than that I did
not get a single comment on the issue. Is this package dead?

When fixing it you should also fix this:
Aug  1 12:34:56 hostname systemd[1]:
/lib/systemd/system/dovecot.service:9: PIDFile= references path below
legacy directory /var/run/, updating /var/run/dovecot/master.pid →
/run/dovecot/master.pid; please update the unit file accordingly.

#935899#15
Date:
2021-02-01 00:19:53 UTC
From:
To:
Have the same problem on 2021-01-31

Workarround: create /etc/systemd/system/dovecot.service, and override
PrivateDevices to "no".

A (maybe safer) official fix would be welcome.

Regards

Javier