[Dovecot] beta1: how to use quota plugin???

Stian Jordet liste+dovecot at jordet.net
Thu Jan 19 23:56:45 EET 2006


tor, 19,.01.2006 kl. 23.01 +0200, skrev Timo Sirainen:
> I haven't yet managed to make it work myself either. Although I got as far
> as my system telling me that it doesn't support quotactl() syscall.

You should have answered my two-three earlier mail on the subject,
saying it didn't work for you neither, and I had saved litterally ten's
of hours trying to understand the code :P

> The point is anyway that userdb should be providing a "quota" named variable
> to Dovecot. So it doesn't even work with all userdbs yet. I'll probably have
> to add some other place to set it up also (similar to default_mail_env).
> Anyway, its format should be:
> 
> quota=fs:/home/user/mail
> 
> Or if all of the users are in same quota root, I suppose fs:/home works just
> as well.
> 
> > If joeblow connects via dovecot IMAP, I want our webmail code
> > (horde/imp) to tell him his disk quotas to keep him out of
> > trouble.  Horde/Imp (2.2.5) has quota code that says it works with
> > Courier imap.  Dovecot is supposed to be Courier compatible.

Using maildir quota (dirsize:/home/blabla:storage=10000), this works if
you use this patch (from Joshua Goodal)

--- 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");
 }

So the plugin works with horde/imp. But I would also like it to support
filesystem quota's. Timo; how much would I need to donate to make you
take a look at the code again? :)

Best regards,
Stian



More information about the dovecot mailing list