[Dovecot] Per-user quota (with local users)

Timo Sirainen tss at iki.fi
Sat Oct 20 23:27:41 EEST 2007


On Wed, 2007-10-17 at 19:57 -0400, Maykel Moya wrote:
>   userdb passwd {
>   }
..
> My quota configuration is
> --
> plugin {
>   quota = maildir:storage=10240:ignore=Trash
> }
> --
> 
> I have some users with particular quotas. With LDAP lookups, there is no
> problem, in those cases I simply put their particular quota values in
> their entries and pass it to dovecot via user_attrs.
> 
> I wonder how to do the same for local users, I mean, to have the ability
> of specifying particular quotas for some local users.

passwd can't contain any extra fields, so this isn't possible with it.
You could instead use for example a checkpassword script that takes the
quota from some configuration file
(http://wiki.dovecot.org/PasswordDatabase/CheckPassword). Or you could
create a script that generates a passwd-file using /etc/passwd and a
separate quota config file and run it when something changes.

> Another doubt is how to express to Dovecot that a user have no quota at
> all, could I use 0?

Yes.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20071020/1c65db57/attachment-0001.bin 


More information about the dovecot mailing list