Dovecot (LDAP) quota only if user in backend?

Andrey Fesenko f0andrey at gmail.com
Wed Feb 3 15:06:07 UTC 2016


Hello,

Is it possible to get the quotas for users served by the backend?

My env CentOS, dovecot-2.2.10-5.el7, users in LDAP

dn: uid=user,ou=mailboxs,dc=wibble,dc=net
cn: Account for server mail
sn: User
objectClass: top
objectClass: person
objectClass: posixAccount
objectClass: VirtualMailAccount
objectClass: Proxying
uid: user
gidNumber: 3000
uidNumber: 3000
userPassword: {SSHA}
homeDirectory: user
mailQuota: 1073741824
mailDirectory: maildir:~/Maildir
Proxy: yes
BackendHost: backend1.wibble.net
starttlsProxying: any-cert

BackendHost may bee backend1.wibble.net backend2.wibble.net ... if I'm
get quota in backend1.wibble.net

doveadm -f tab quota get -A

If use standart /etc/dovecot/dovecot-ldap.conf user_filter =
(&(objectClass=posixAccount)(uid=%u)), dovecot create blank mailboxes
for all users, not only BackendHost: backend1.wibble.net

If modify (&(objectClass=posixAccount)(uid=%u)(BackendHost=backend1.wibble.net))

doveadm -f tab quota get -u user

work fine

doveadm -f tab quota get -A
doveadm(user1): Info: User no longer exists, skipping
doveadm(user2): Info: User no longer exists, skipping
doveadm(user3): Info: User no longer exists, skipping
...
doveadm: Error: Failed to iterate through some users

work for all dovecot user, and crash


More information about the dovecot mailing list