[Dovecot] Quota Override

Timo Sirainen tss at iki.fi
Sat Feb 2 12:36:33 EET 2008


Or actually..

On Fri, 2008-02-01 at 13:40 -0500, Michel Bulgado wrote:
> ldap(michel at home.com,127.0.0.1): result: mail(user)=michel at home.com 
> quota(quota= maildir:storage)=30240

This is a reply to passdb lookup. quota shouldn't be in here, it just
gets ignored.

> Feb  1 12:12:26 gandalf dovecot: auth(default): master out: USER 1       
> michel at home.com       uid=503 gid=503 home=/var/storage/virtualmail/home.com/

This is a userdb lookup. Here's where the quota should be in.

>   passdb:
>     driver: ldap
>     args: /etc/dovecot-ldap.conf
>   userdb:
>     driver: static
>     args: uid=virtualmail gid=virtualmail home=/var/storage/virtualmail/%d/

You can't use static userdb, because you want a per-user quota. First
try to get it working by removing it and letting Dovecot use userdb
ldap.

>   userdb:
>     driver: ldap
>     args: /etc/dovecot-ldap.conf
>   userdb:
>     driver: prefetch

Once it works, move this prefetch before userdb ldap so it actually gets
used, and set all userdb_* fields properly in pass_attrs so it works.
-------------- 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/20080202/28812486/attachment.bin 


More information about the dovecot mailing list