[Dovecot] Quota Override - Solved

Michel Bulgado michel at casa.co.cu
Sun Feb 3 15:40:52 EET 2008


Timo

I have solved the problem thanks to your help

Thanks again


> 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.
>



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



More information about the dovecot mailing list