[Dovecot] dovecot 1.2 and quota_rules from AD

Timo Sirainen tss at iki.fi
Mon Aug 9 18:29:49 EEST 2010


On Mon, 2010-08-09 at 11:49 -0300, Christian Lyra wrote:
> plugin {
>     quota = maildir:User quota
>     #quota_rule = *:storage=2M    // tried with and without this line

If you always override it in userdb, it doesn't matter if you have it or
not.

> user_attrs = sAMAccountName=mail=maildir:/var/vmail/%$/Maildir, 

Not related to your problem, but I'd change that to:

user_attrs = sAMAccountName=home=/var/vmail/%$

and then in dovecot.conf use:
mail_location = maildir:~/Maildir

because http://wiki.dovecot.org/VirtualUsers/Home

> quotaMail=quota_rule=*:storage=%$
> user_filter = (&(objectClass=person)(|(mail=%u)(sAMAccountName=%u)))

Looks ok.

> (mail=testeti at teste.mydomain)(sAMAccountName=testeti at teste.mydomain))) 
> fields=sAMAccountName,quotaMail

Dovecot requests sAMAccountName and quotaMail fields from LDAP.

> Aug  9 11:41:37 vm29 dovecot: auth(default): 
> ldap(testeti at teste.mydomain): result: 
> sAMAccountName(mail=maildir:/var/vmail/%$/Maildir)=maildir:/var/vmail/testeti/Maildir

But LDAP returns only sAMAccountName, not quotaMail field. So either
that field doesn't exist in LDAP or it doesn't exist for this user or
the DN you use to access LDAP doesn't have permissions to it. Or
something else, in any case the problem isn't with Dovecot
configuration.



More information about the dovecot mailing list