[Dovecot] question about rpc quota reporting 1.2.11
Timo, thank you for the reply to my question about shared folders yesterday.
I'm now trying to get quota reporting working consistently. This is with dovecot 1.2.11 in solaris 10 sparc. We have local quotas for the mail spool (/a1) and quotas for home directories. All are UFS and have rpc (rquota) working fine.
With just this:
protocol imap { mail_plugins = quota imap_quota }
My mail client (thunderbird 3.0.4) reported the home directory quota.
So then I added this:
plugin { quota = fs:INBOX:mount=/a1 quota2 = fs:Home:mount=%h }
First, I had to make /a1/quotas world readable, otherwise I'd get this error:
open(/a1/quotas) failed: Permission denied
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.
Also, what should I expect to see on the client? Will dovecot report only one quota (the one that's closer to the limit), or will it report both? I've only seen the first quota in thunderbird, but that could easily be a client issue.
thank you
Tom Lieuallen Oregon State University
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
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
On ke, 2010-06-09 at 18:10 -0700, Tom Lieuallen wrote:
Jun 09 17:47:11 IMAP(toml): Error: open(/nfs/farm/u3/quotas) failed: Permission denied
This should help: http://hg.dovecot.org/dovecot-1.2/rev/edc7da213d4c
yes, that seems to have done the trick.
thank you
Tom Lieuallen
On 6/11/10 7:57 AM, Timo Sirainen wrote:
On ke, 2010-06-09 at 18:10 -0700, Tom Lieuallen wrote:
Jun 09 17:47:11 IMAP(toml): Error: open(/nfs/farm/u3/quotas) failed: Permission denied
This should help: http://hg.dovecot.org/dovecot-1.2/rev/edc7da213d4c
participants (2)
-
Timo Sirainen
-
Tom Lieuallen