[Dovecot] Questions regarding quota
Hi,
I have some trouble trying to test the quota plugin.
First off all, it says in the wiki: "Dovecot 1.0 supports quota using a quota plugin. It's currently discussed in Dovecot LDA page and it supports only very simple quota calculation which is suitable only for mboxes. Maildir++ quota support will come later."
Does that mean that it won't work at all with Maildir++, or just that it's slow?
Second; there are two plugins? One in src/plugins/quota and one ine src/plugins/imap-quota. What's the difference? Is one for imap-quota and the other for fs-quota? (I would love that!)
But third and most importantly; I can't get it too work. I'm using CVS from tonight (which fixed the missing symbol bug). But neither when I'm using static userdb nor LDAP as explained in the wiki I can't get it to work.
I'm not really sure of the getquota syntax, but whatever I try, I get:
a OK No quota.
So please, enlighten me! :)
Best regards, Stian
Since noone answers, is noone using the quota plugin? Is it working at all, I wonder?
Whatever I do, I only get "OK No quota.".
a001 OK Logged in. a002 getquota "" a002 OK No quota. a002 setquota "" (Storage 512) a002 OK No quota. a003 getquota "" a003 OK No quota.
Best regards, Stian
lør, 31,.12.2005 kl. 01.31 +0100, skrev Stian Jordet:
Hi,
I have some trouble trying to test the quota plugin.
First off all, it says in the wiki: "Dovecot 1.0 supports quota using a quota plugin. It's currently discussed in Dovecot LDA page and it supports only very simple quota calculation which is suitable only for mboxes. Maildir++ quota support will come later."
Does that mean that it won't work at all with Maildir++, or just that it's slow?
Second; there are two plugins? One in src/plugins/quota and one ine src/plugins/imap-quota. What's the difference? Is one for imap-quota and the other for fs-quota? (I would love that!)
But third and most importantly; I can't get it too work. I'm using CVS from tonight (which fixed the missing symbol bug). But neither when I'm using static userdb nor LDAP as explained in the wiki I can't get it to work.
I'm not really sure of the getquota syntax, but whatever I try, I get:
a OK No quota.
So please, enlighten me! :)
Best regards, Stian
hi stian, It does work but the syntax has changed. You now configure it as quotaclass:quotaclassdata e.g. dirsize:/var/mailstore/bob@example.com/:storage=102400 you may also need this patch: --- imap-quota/imap-quota-plugin.c 14 Dec 2005 21:28:44 -0000 1.2 +++ imap-quota/imap-quota-plugin.c 6 Jan 2006 00:43:14 -0000 @@ -189,4 +189,5 @@ void imap_quota_plugin_init(void) command_register("GETQUOTA", cmd_getquota); command_register("SETQUOTA", cmd_setquota); + str_append(capability_string, " QUOTA"); } I don't see any doco on this which I presume means tss may expect it to change again. So keep an eye on changes in src/plugins :) all the best joshua. On Tue, Jan 03, 2006 at 09:41:43PM +0100, Stian Jordet wrote:
Since noone answers, is noone using the quota plugin? Is it working at all, I wonder?
Whatever I do, I only get "OK No quota.".
a001 OK Logged in. a002 getquota "" a002 OK No quota. a002 setquota "" (Storage 512) a002 OK No quota. a003 getquota "" a003 OK No quota.
Best regards, Stian
l??r, 31,.12.2005 kl. 01.31 +0100, skrev Stian Jordet:
Hi,
I have some trouble trying to test the quota plugin.
First off all, it says in the wiki: "Dovecot 1.0 supports quota using a quota plugin. It's currently discussed in Dovecot LDA page and it supports only very simple quota calculation which is suitable only for mboxes. Maildir++ quota support will come later."
Does that mean that it won't work at all with Maildir++, or just that it's slow?
Second; there are two plugins? One in src/plugins/quota and one ine src/plugins/imap-quota. What's the difference? Is one for imap-quota and the other for fs-quota? (I would love that!)
But third and most importantly; I can't get it too work. I'm using CVS from tonight (which fixed the missing symbol bug). But neither when I'm using static userdb nor LDAP as explained in the wiki I can't get it to work.
I'm not really sure of the getquota syntax, but whatever I try, I get:
a OK No quota.
So please, enlighten me! :)
Best regards, Stian
-- Josh "Koshua" Goodall "as modern as tomorrow afternoon" joshua@roughtrade.net - FW109
On Fri, 6 Jan 2006, Joshua Goodall wrote:
Hello,
is the plugin able to use the filesystem quota for the overall-QUOTA? I mean if I only want to have a QUOTA for all mails in the storage, can the quota plugin makes use of the filesystem quota and report the limits back to the client? I suppose that can make life easier, when the client knows beforehand that an operation will fail, instead of recovering from a problem?
Bye,
-- Steffen Kaiser
Hello Joshua,
where would that dirsize:/... be set when using LDAP? I'm reading a quota attribute type from LDAP, and I see its value in dovecot's log, but I don't get a QUOTA capability shown to me upon login, nor does a `GETQUOTA ""' do anything.
Can you help me? Thanks & regards, -JP
On Fri Jan 06 2006 at 01:46:23 CET, Joshua Goodall wrote:
It does work but the syntax has changed. You now configure it as quotaclass:quotaclassdata e.g.
dirsize:/var/mailstore/bob@example.com/:storage=102400
Hi, Jan-Piet
On Fri, Jan 06, 2006 at 12:48:18PM +0100, Jan-Piet Mens wrote:
Hello Joshua,
where would that dirsize:/... be set when using LDAP? I'm reading a quota attribute type from LDAP, and I see its value in dovecot's log, but I don't get a QUOTA capability shown to me upon login, nor does a `GETQUOTA ""' do anything.
a) You need the workaround patch I posted earlier to have QUOTA in the capability string (pending a better way for plugins to hook into the capability command handler)
b) our /etc/dovecot/dovecot-ldap.conf contains the line:
user_attrs = uid,homeDirectory,mailStoreDirectory,,,,mailQuota=quota
It's that last part that is significant - it ties Dovecot's internal QUOTA environmental variable to the mailQuota LDAP attribute, which then looks like this:
mailQuota: dirsize:/var/mailstore/bob@example.com/:storage=102400
These aren't standard attribute names, by the way - they're from a private enterprise schema.
anyway, hth.
Joshua.
-- Josh "Koshua" Goodall "as modern as tomorrow afternoon" joshua@roughtrade.net - FW109
Hi Joshua,
Thanks a million. It is almost working, but the patch doesn't announce the QUOTA capability. Any ideas? Using CVS dovecot dated today.
On Fri Jan 06 2006 at 14:14:56 CET, Joshua Goodall wrote:
a) You need the workaround patch I posted earlier to have QUOTA in the capability string (pending a better way for plugins to hook into the capability command handler)
Regards, -JP
Hello Joshua,
On Fri Jan 06 2006 at 14:14:56 CET, Joshua Goodall wrote:
a) You need the workaround patch I posted earlier to have QUOTA in the
I take it all back; QUOTA is announced, but only if the client asks for CAPABILITY (it isn't announced if login_greeting_capability=yes
Thanks again, -JP
On Fri, 2006-01-06 at 15:17 +0100, Jan-Piet Mens wrote:
Hello Joshua,
On Fri Jan 06 2006 at 14:14:56 CET, Joshua Goodall wrote:
a) You need the workaround patch I posted earlier to have QUOTA in the
I take it all back; QUOTA is announced, but only if the client asks for CAPABILITY (it isn't announced if login_greeting_capability=yes
Right. Because the plugin can only affect the capability that is sent after logging in. Before logging in it uses a hardcoded capability string which you can modify from config.h file.
I guess the pre-login capability should be configurable in config file also..
fre, 06,.01.2006 kl. 11.46 +1100, skrev Joshua Goodall:
hi stian,
It does work but the syntax has changed. You now configure it as quotaclass:quotaclassdata e.g.
dirsize:/var/mailstore/bob@example.com/:storage=102400
you may also need this patch:
Great! Thanks a lot! Works like a charm :)
But do you know anything about filesystem quota? My I have that on my system users, and would like dovecot to report that value for them, and the dirsize quota for virtual users. As I said, virtual users work now, but when I put fs:/home in the quota field (I'm using ldap) I get this in the log:
Jan 7 18:43:55 buick dovecot: imap(ingvild): fs quota path = /home Jan 7 18:43:55 buick dovecot: imap(ingvild): fs quota block device = (unknown)
So, it obviously switches to "fs-mode", but it won't work, probably due to the block device being unknown... Is the linux mtab format not supported? Any clue..?
Best regards, Stian
participants (5)
-
Jan-Piet Mens
-
Joshua Goodall
-
Steffen Kaiser
-
Stian Jordet
-
Timo Sirainen