[Dovecot] Reporting NFS quotas via IMAP
I'm confident that the question has been asked before, but I can't
remember the answer.
I have -- dovecot 1.1.2 -- Mail storage (maildir format) on NFS -- Quotas on that file system -- A working rquotad -- mail_plugins = quota imap_quota in the protocol imap section -- quota=fs in the plugin section
I get (using Apple Mail as a client) -- Notification that the account supports quotas -- No information about the size of the quota nor the usage
I probably do something stupidly wrong. The WIKI tells me that fs
quota support RPC (i.e., rquotad), so I'd expect my client to report
the quota to me.
Using quota(1) on the mail server works as expected.
On Fri, 2008-10-17 at 18:15 +0200, Edgar Fuß wrote:
I'm confident that the question has been asked before, but I can't
remember the answer.I have -- dovecot 1.1.2 -- Mail storage (maildir format) on NFS -- Quotas on that file system -- A working rquotad -- mail_plugins = quota imap_quota in the protocol imap section -- quota=fs in the plugin section
I get (using Apple Mail as a client) -- Notification that the account supports quotas -- No information about the size of the quota nor the usage
Try with manual IMAP commands instead:
telnet localhost 143 a login user pass b getquotaroot inbox
Does it return correct output? IIRC some clients (maybe Apple Mail?) had problems listing quota if quota root was empty. If that's the case, change it (quota = maildir:userquota).
If the getquotaroot doesn't return quota correctly (or at all), set mail_debug=yes and see what it logs.
Try with manual IMAP commands instead: Yes, sorry, I should have checked that before.
Does it return correct output? Yes.
IIRC some clients (maybe Apple Mail?) had problems listing quota if
quota root was empty. Hmpf. So I was just using a defective client to test my presumably
defective confuration.
If that's the case, change it (quota = maildir:userquota). fs:user did the trick. Thanks.
Would this catch be worth being documented in the WIKI?
On Sat, 2008-10-18 at 18:07 +0200, Edgar Fuß wrote:
If that's the case, change it (quota = maildir:userquota). fs:user did the trick. Thanks.
Would this catch be worth being documented in the WIKI?
I changed all examples to use "quota = xxx:user" and added a note about Apple Mail to http://wiki.dovecot.org/Quota/1.1.
Timo wrote:
I changed all examples to use "quota = xxx:user" and added a note about Apple Mail to http://wiki.dovecot.org/Quota/1.1.
Thanks but do you expect that everyone know what a "quota root name" is?
It's hard to understand without the previous discussion on this list. And why is it called "...:user"? Is it an arbitrary string and can someone use "inbox" or "foo" instead?
And "xxx:user" imply that this is related to "...:user" which is documented as parameter on the Quota/FS wiki page but definition on Quota/1.1 talks about "backend args" instead "parameter". But both ":user" parameters are not related as far as I understood.
For me the quota pages in the Wiki seems to be more confusing than the rest. Hopefully they get restructured some day so that the 1.0, Trash-1.0, and quota-rewrite patch becomes part of a legacy section. As a result, quota description could be more clear with one overview and a list of backends incl. their arguments.
Or as "dict" needs to be different for version 1.2 put description for every version on separate wiki pages and (if necessary) use include for common sections. The page Quota/Dict is everything but easy to read with jumping betweens different dovecot versions several times.
Please get me right: I really like the wiki documentation but some parts are a bit confusing. It is a wiki and everyone could help and change it but I doubt that anyone dares structural changes except Timo.
Heiko
Heiko Schlichting Freie Universität Berlin heiko@FU-Berlin.DE Zentraleinrichtung für Datenverarbeitung (ZEDAT) Telefon +49 30 838-54327 Fabeckstraße 32 Telefax +49 30 838454327 14195 Berlin
participants (3)
-
Edgar Fuß
-
Heiko Schlichting
-
Timo Sirainen