[Dovecot] Quota value *not* getting over written by ldap attr value, help ?

Mohit Chawla mohit.chawla.binary at gmail.com
Tue Sep 21 15:32:29 EEST 2010


Hi,

I am having trouble with the quota plugin with deliver. In the auth logs, I
see that dovecot is able to get the attribute value just fine:

***
Sep 21 17:49:30 dawnone dovecot: auth(default): ldap(cot,127.0.0.1): result:
uid(user)=cot uidNumber(userdb_uid)=1011 gidNumber(userdb_gid)=1011
homeDirectory(userdb_home)=/home/cot
mailQuotaSize(userdb_quota_rule=*:bytes=%$)=*:bytes=1000000
***

But the value defined in dovecot.conf does *not* get over written with the
above value:
***
2010-09-21 17:49:37 deliver(cot): Info: Loading modules from directory:
/usr/lib/dovecot/modules/lda
2010-09-21 17:49:37 deliver(cot): Info: Module loaded:
/usr/lib/dovecot/modules/lda/lib10_quota_plugin.so
2010-09-21 17:49:37 deliver(cot): Info: Quota root: name=User quota
backend=maildir args=
2010-09-21 17:49:37 deliver(cot): Info: Quota rule: root=User quota
mailbox=* bytes=2500 messages=0
2010-09-21 17:49:37 deliver(cot): Info: maildir: data=/home/cot/Maildir
2010-09-21 17:49:37 deliver(cot): Info: maildir++: root=/home/cot/Maildir,
index=, control=, inbox=/home/cot/Maildir
2010-09-21 17:49:37 deliver(cot): Info: Namespace : Using permissions from
/home/cot/Maildir: mode=0700 gid=-1
2010-09-21 17:49:37 deliver(cot): Info:
msgid=<2092295c098690fc157fca938d28b879.squirrel at dawnone>: save failed to
INBOX: Quota exceeded (mailbox for user is full)
2010-09-21 17:49:37 deliver(cot): Info:
msgid=<2092295c098690fc157fca938d28b879.squirrel at dawnone>: rejected: Quota
exceeded (mailbox for user is full)
2010-09-21 17:49:37 deliver(cot): Info:
msgid=<2092295c098690fc157fca938d28b879.squirrel at dawnone>: Return-Path
missing, rejection reason: Quota exceeded (mailbox for user is full)
***
My configuration files are as follows:

**dovecot.conf**
root at dawnone:~# dovecot -n
# 1.2.13: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-3-686 i686 Debian squeeze/sid
log_timestamp: %Y-%m-%d %H:%M:%S
protocols: imap
ssl: no
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable: /usr/lib/dovecot/imap-login
mail_privileged_group: mail
mail_location: maildir:~/Maildir
mbox_write_locks: fcntl dotlock
lda:
  postmaster_address: dove at vmint
  mail_plugins: quota
  deliver_log_format: msgid=%m: %$
  sendmail_path: /usr/lib/sendmail
  log_path: /var/log/ldaone
  info_log_path: /var/log/ldatwo
  debug: yes
auth default:
  debug: yes
  passdb:
    driver: ldap
    args: /etc/dovecot/dovecot-ldap.conf
  userdb:
    driver: prefetch
  userdb:
    driver: ldap
    args: /etc/dovecot/dovecot-ldap.conf
plugin:
  quota: maildir:User quota
  quota_rule: *:bytes=2500

**dovecot-ldap.conf**
hosts = dawnone.vmint

uris = ldap://dawnone.vmint

dn = cn=admin,dc=vmint

dnpass = debian

auth_bind = yes

ldap_version = 3

base = ou=People,dc=vmint

scope = subtree

user_filter = (&(objectClass=posixAccount)(uid=%u))

pass_attrs = uid=user,userPassword=password,\
homeDirectory=userdb_home,uidNumber=userdb_uid,gidNumber=userdb_gid,mailQuotaSize=userdb_quota_rule=*:bytes=%$

user_attrs =
homeDirectory=home,uidNumber=uid,gidNumber=gid,mailQuotaSize=quota_rule=*:bytes=%$

Any help in this regard, appreciated. Thanks.


More information about the dovecot mailing list