Hello There,
I am try desperatly to setup quota-fs plugin in Dovecot. I have the following
configuration in place:
/etc/dovecot/conf.d/10-mail.conf:mail_plugins = $mail_plugins quota zlib
/etc/dovecot/conf.d/20-imap.conf: mail_plugins = $mail_plugins imap_quota
/etc/dovecot/conf.d/90-quota.conf:
plugin {
#quota = dirsize:User quota
#quota = maildir:User quota
#quota = dict:User quota::proxy::quota
#quota = fs:User quota:user
quota = fs:user
}
The logs report the following error each time quota is requested:
Mar 11 17:56:20 mail.xxxxxxx.xx dovecot[4923]: imap(xxxx): Error: Failed to get
quota resource STORAGE: quota-fs: quotactl(Q_GETQUOTA, /dev/vda1) failed: No
such file or directory
I have no idea of which file or directory is missing.
Any advice is welcome.
Thanks and best regards,
-
Eric Grammatico _/)
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<https://dovecot.org/pipermail/dovecot/attachments/20190313/70402679/attachment.html>
To complete, I am on Fedora 28, kernel 4.20.14-100.fc28.x86_64
Thanks and regards,
-
Eric Grammatico _/)
13 mars 2019 10:14 "Eric Grammatico" a ?crit:
Hello There,
I am try desperatly to setup quota-fs plugin in Dovecot. I have the following
configuration in place:
/etc/dovecot/conf.d/10-mail.conf:mail_plugins = $mail_plugins quota zlib
/etc/dovecot/conf.d/20-imap.conf: mail_plugins = $mail_plugins imap_quota
/etc/dovecot/conf.d/90-quota.conf:
plugin {
#quota = dirsize:User quota
#quota = maildir:User quota
#quota = dict:User quota::proxy::quota
#quota = fs:User quota:user
quota = fs:user
}
The logs report the following error each time quota is requested:
Mar 11 17:56:20 mail.xxxxxxx.xx dovecot[4923]: imap(xxxx): Error: Failed to get
quota resource STORAGE: quota-fs: quotactl(Q_GETQUOTA, /dev/vda1) failed: No
such file or directory
I have no idea of which file or directory is missing.
Any advice is welcome.
Thanks and best regards,
-
Eric Grammatico _/)
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<https://dovecot.org/pipermail/dovecot/attachments/20190313/7af7bb1a/attachment.html>
On 3/13/19 10:14 AM, Eric Grammatico via dovecot wrote:> [...] > Mar 11 17:56:20 mail.xxxxxxx.xx dovecot[4923]: > imap(xxxx)<4939><S0Opc9SDjLyjrKVa>: Error: Failed to get quota > resource STORAGE: quota-fs: quotactl(Q_GETQUOTA, /dev/vda1) failed: No > such file or directory >That's odd, I usually see s*da (not *v*da) in most systems I've worked with, as in *S*csi Drive A. Yassine. -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20190313/b3e072d5/attachment.html>
Thanks Yassine, My / is mounted from /dev/vda1 with the following options: [root at mail ~]# cat /etc/mtab |grep "vda1 " /dev/vda1 / ext4 rw,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group 0 0 Regards, - Eric Grammatico _/) 13 mars 2019 10:31 "Yassine Chaouche via dovecot" a ?crit: On 3/13/19 10:14 AM, Eric Grammatico via dovecot wrote: [...] Mar 11 17:56:20 mail.xxxxxxx.xx dovecot[4923]: imap(xxxx): Error: Failed to get quota resource STORAGE: quota-fs: quotactl(Q_GETQUOTA, /dev/vda1) failed: No such file or directory That's odd, I usually see s*da (not *v*da) in most systems I've worked with, as in *S*csi Drive A. Yassine. -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20190313/a6ff2dd1/attachment.html>
Can you ensure that quota actually works on your system? Do the aquota files exist? Aki> On 13 March 2019 at 11:41 Eric Grammatico via dovecot <dovecot at dovecot.org> wrote: > > > Thanks Yassine, > > My / is mounted from /dev/vda1 with the following options: > [root at mail ~]# cat /etc/mtab |grep "vda1 " > /dev/vda1 / ext4 rw,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group 0 0 > > Regards, > - > Eric Grammatico _/) > 13 mars 2019 10:31 "Yassine Chaouche via dovecot" a ?crit: > > On 3/13/19 10:14 AM, Eric Grammatico via dovecot wrote: [...] > Mar 11 17:56:20 mail.xxxxxxx.xx dovecot[4923]: imap(xxxx): Error: Failed to get quota resource STORAGE: quota-fs: quotactl(Q_GETQUOTA, /dev/vda1) failed: No such file or directory > That's odd, I usually see s*da (not *v*da) in most systems I've worked with, as in *S*csi Drive A. > > Yassine.
Looks working.
[root at mail ~]# ls -lh /
total 72K
-rw------- 1 root root 8.0K Mar 13 09:56 aquota.group
-rw------- 1 root root 7.0K Mar 13 09:56 aquota.user
....
[root at mail ~]# repquota -a
*** Report for user quotas on device /dev/vda1
Block grace time: 7days; Inode grace time: 7days
Block limits File limits
User used soft hard grace used soft hard grace
----------------------------------------------------------------------
rpcuser -- 12 0 0 3 0 0
ntp -- 12 0 0 3 0 0
systemd-network -- 12 0 0 3 0 0
mysql -- 219680 0 0 564 0 0
squid -- 96 0 0 4 0 0
xxxxxx -- 869532 3170304 4194304 119 0 0
tss -- 12 0 0 2 0 0
mail -- 4 0 0 1 0 0
rpc -- 0 0 0 1 0 0
polkitd -- 8 0 0 2 0 0
xxxx -- 623880 3170304 4194304 12784 0 0
smmsp -- 8 0 0 2 0 0
apache -- 395616 0 0 19173 0 0
xxxxxxxx -- 1580 0 0 147 0 0
dovecot -- 4 0 0 1 0 0
root -- 3575932 0 0 65814 0 0
#1003 -- 0 0 0 1 0 0
Thanks and regards,
-
Eric Grammatico _/)
13 mars 2019 10:54 "Aki Tuomi" <aki.tuomi at open-xchange.com> a
?crit:> Can you ensure that quota actually works on your system? Do the aquota
files exist?
>
> Aki
>
>> On 13 March 2019 at 11:41 Eric Grammatico via dovecot <dovecot at
dovecot.org> wrote:
>>
>> Thanks Yassine,
>>
>> My / is mounted from /dev/vda1 with the following options:
>> [root at mail ~]# cat /etc/mtab |grep "vda1 "
>> /dev/vda1 / ext4
rw,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group 0 0
>>
>> Regards,
>> -
>> Eric Grammatico _/)
>> 13 mars 2019 10:31 "Yassine Chaouche via dovecot" a ?crit:
>>
>> On 3/13/19 10:14 AM, Eric Grammatico via dovecot wrote: [...]
>> Mar 11 17:56:20 mail.xxxxxxx.xx dovecot[4923]: imap(xxxx): Error:
Failed to get quota resource
>> STORAGE: quota-fs: quotactl(Q_GETQUOTA, /dev/vda1) failed: No such file
or directory
>> That's odd, I usually see s*da (not *v*da) in most systems I've
worked with, as in *S*csi Drive A.
>>
>> Yassine.