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@teste.mydomain)(sAMAccountName=testeti@teste.mydomain))) fields=sAMAccountName,quotaMail
Dovecot requests sAMAccountName and quotaMail fields from LDAP.
Aug 9 11:41:37 vm29 dovecot: auth(default): ldap(testeti@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.