Hi, There is an issue with dovecot's imap quota plugin with nfs4 mounts and/or hardquota. From the dovecot ml post (also from me) the issues are: 1. Nfs4 is not recognized. The problem is that the mount type is only checked for "nfs" and not nfs4. This was an easy fix. 2. The (fs)path for nfs4 that is relayed to rquotad has to be without the leading "/". This was an easy fix, too. (borrowed from linuxquota: http://linuxquota.cvs.sourceforge.net/viewvc/linuxquota/quota-tools/rquota_client.c?view=markup ) 3. Maybe because we do not use softquotas the quota active boolean (rq_active) in the rquota struct is always false. So we hackishly removed this check. This problem also occured here: http://dovecot.org/pipermail/dovecot/2009-May/039593.html Apparently quota-tools do not check for this either (not needed?). 4. As metioned above we only use hardquotas but the plugin only reports softquotas. In my patch below I changed the behaviour: Check softquota == 0. If true then use hardquota, else softquota. I will provide here the patch I use and an ebuild I created that only adds an epatch line to the original 1.2.12 ebuild. Cheers Martin Reproducible: Always Steps to Reproduce: 1.Install dovecot 1.2.12 2.Mount your Maildirs using nfs4 and quota support (only hardquotas) 3.Open mailclient (Tbird, Evolution) and check your account Actual Results: No quota on e.g. the INBOX Expected Results: The quota should be reported
Created attachment 236941 [details, diff] The patch that fixes the above problems
Created attachment 236943 [details] The ebuild that patches the source with above patch
The correct place for the patch is upstream, especially for software who has an upstream as active as dovecot. My vote would be for closing the bug as UPSTREAM or WONTFIX.
(In reply to comment #3) > The correct place for the patch is upstream, especially for software who has an > upstream as active as dovecot. My vote would be for closing the bug as > UPSTREAM or WONTFIX. > That's fine by me. I just wanted to provide this just in case somebody is experiencing issues with nfs4 and/or hardquotas using dovecot. After all at least the hardquota/nfs issue seems to be around for over one year already: http://dovecot.org/pipermail/dovecot/2009-May/039593.html Cheers Martin
Please close bug. The fixes were applied: http://www.mail-archive.com/dovecot@dovecot.org/msg29639.html 2.0rc2 will probably include those. Cheers Martin
Thanks for the follow up and your understanding for the above comments. You can close the bug yourself by the way.