On 5/28/10 8:53 AM, Timo Sirainen wrote:
On Thu, 2010-05-27 at 09:10 -0700, Tom Lieuallen wrote:
I'm getting the same type of error with the quota2 line now: open(/nfs/rack/u4/quotas) failed: Permission denied
Since the home directory quota worked without the plugin configuration, my guess is that the plugin config is not using rpc. I can't find any way to force it to use rpc. Again, if I make that 'quotas' file world readable (which I believe isn't good practice), dovecot stops complaining.
Dovecot first finds the mountpoint and then gets its filesystem. If it's nfs, it uses rquota, otherwise local quota. You could enable mail_debug=yes and see what mountpoints Dovecot finds and then see if their type is nfs or something else. Also this would make checking the type (correctly) even easier: http://hg.dovecot.org/dovecot-1.2/rev/eaba4cfeaa44
again, my quota config is this:
quota = fs:INBOX:mount=/a1 quota2 = fs:Home quota:mount=%h
When I modified the quota-fs.c file, recompiled, and ran in mail_debug mode, I get messages like this:
Jun 09 17:47:11 IMAP(toml): Info: Effective uid=5113, gid=5094, home=/nfs/farm/u3/t/toml Jun 09 17:47:11 IMAP(toml): Info: Quota root: name=INBOX backend=fs args=mount=/a1 Jun 09 17:47:11 IMAP(toml): Info: Quota root: name=Home quota backend=fs args=mount=/nfs/farm/u3/t/toml Jun 09 17:47:11 IMAP(toml): Info: Namespace: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes Jun 09 17:47:11 IMAP(toml): Info: mbox: data=~/mail:INBOX=/var/mail/toml:INDEX=/a2/imap-index/toml Jun 09 17:47:11 IMAP(toml): Info: fs: root=/nfs/farm/u3/t/toml/mail, index=/a2/imap-index/toml, control=, inbox=/var/mail/toml Jun 09 17:47:11 IMAP(toml): Info: fs quota add storage dir = /nfs/farm/u3/t/toml/mail Jun 09 17:47:11 IMAP(toml): Info: fs quota block device = stak.engr.oregonstate.edu:/farm-u3 Jun 09 17:47:11 IMAP(toml): Info: fs quota mount point = /nfs/farm/u3 Jun 09 17:47:11 IMAP(toml): Info: fs quota mount type = nfs Jun 09 17:47:11 IMAP(toml): Error: open(/nfs/farm/u3/quotas) failed: Permission denied .... (after checking quota on a folder in my home directory from thunderbird...) .... Jun 09 17:47:11 IMAP(toml): Info: quota-fs: host=stak.engr.oregonstate.edu, path=/farm-u3, uid=5113, bytes Jun 09 17:47:12 IMAP(toml): Info: quota-fs: uid=5113, value=3105161216, limit=4096000000, active=1
That is the correct quota for my home dir, so it did query via rquota eventually. There just seems to be something happening at login (at least) where it is trying via the file system first, even though it shouldn't.
thank you
Tom Lieuallen