Or actually..
On Fri, 2008-02-01 at 13:40 -0500, Michel Bulgado wrote:
ldap(michel@home.com,127.0.0.1): result: mail(user)=michel@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@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.