[Dovecot] ldap quota dovecot
Justinas Samas
j.samas at gmail.com
Thu Sep 10 12:55:26 EEST 2009
hi,
I've used dovecot 1.1.16 but after upgrade to dovecot 1.2.4 per-user
ldap quotas stoped working. My configuration:
# 1.2.4: /etc/dovecot.conf
# OS: Linux 2.6.18-128.7.1.el5xen x86_64 CentOS release 5.3 (Final) ext3
protocols: imap imaps pop3 pop3s managesieve
listen(default): *, [::]
listen(imap): *, [::]
listen(pop3): *, [::]
listen(managesieve): *:20000
login_dir: /var/run/dovecot/login
login_executable(default): /usr/libexec/dovecot/imap-login
login_executable(imap): /usr/libexec/dovecot/imap-login
login_executable(pop3): /usr/libexec/dovecot/pop3-login
login_executable(managesieve): /usr/libexec/dovecot/managesieve-login
login_greeting: Server ready.
login_process_per_connection: no
verbose_proctitle: yes
first_valid_uid: 1
first_valid_gid: 90
last_valid_gid: 400
mail_privileged_group: mail
mail_location: maildir:/home/%u/Maildir:INDEX=MEMORY:CONTROL=/conf/no-quotas/control/%u
mail_debug: yes
mail_executable(default): /usr/libexec/dovecot/imap
mail_executable(imap): /usr/libexec/dovecot/imap
mail_executable(pop3): /usr/libexec/dovecot/pop3
mail_executable(managesieve): /usr/libexec/dovecot/managesieve
mail_plugins(default): quota imap_quota
mail_plugins(imap): quota imap_quota
mail_plugins(pop3): quota
mail_plugins(managesieve):
mail_plugin_dir(default): /usr/lib64/dovecot/imap
mail_plugin_dir(imap): /usr/lib64/dovecot/imap
mail_plugin_dir(pop3): /usr/lib64/dovecot/pop3
mail_plugin_dir(managesieve): /usr/lib64/dovecot/managesieve
imap_client_workarounds(default): delay-newmail outlook-idle
netscape-eoh tb-extra-mailbox-sep
imap_client_workarounds(imap): delay-newmail outlook-idle netscape-eoh
tb-extra-mailbox-sep
imap_client_workarounds(pop3):
imap_client_workarounds(managesieve):
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
pop3_client_workarounds(managesieve):
lda:
postmaster_address: postmaster at example.com
mail_plugins: quota sieve
auth_socket_path: /var/run/dovecot/auth-master
auth default:
debug: yes
passdb:
driver: ldap
args: /etc/dovecot-ldap.conf
userdb:
driver: ldap
args: /etc/dovecot-ldap.conf
socket:
type: listen
master:
path: /var/run/dovecot/auth-master
mode: 511
plugin:
quota: maildir
trash: /etc/dovecot-trash.conf
sieve: ~/.dovecot.sieve
sieve_dir: ~/sieve
sieve_extensions: +imapflags +notify
dovecot-ldap.conf:
hosts = ldap.example.com
auth_bind = yes
base = ou=people, dc=example, dc=com
scope = subtree
user_attrs = homeDirectory=home,uidNumber=uid,gidNumber=gid,telephoneNumber=quota_rule=*:storage=%$M
user_filter = (&(objectClass=posixAccount)(uid=%u))
pass_attrs = uid=user,userPassword=password
pass_filter = (&(objectClass=posixAccount)(uid=%u)(!(shadowExpire=*)))
default_pass_scheme = CRYPT
Imap shows correct quota, but dovecot lda doesn't reject mail and it
gets overquota, maildirsize:
15728640S
28033743 4
If I add for example quota_rule = *:storage=20M to dovecot.conf it
works, but I need per-user ldap quotas. It seems dovecot deliver
ignores maildirsize.
More information about the dovecot
mailing list