On Wednesday, April 9, 2014 12:57:13 PM CEST, kada...@gmail.com wrote:
Hi list,
We are in the process of migrating our old (dovecot 1.2.4
based) mail system to the new one:
- Centos 6 x86_64
- Dovecot 2.2.12
- Users in an openldap directory
- clucene FTS
I'm trying to trigger a full indexing for all the user and all
their mailboxes (avoiding them to individually trigger it using
a search within their MUA). I'm trying to use the "doveadm
index" command.
First question, is there some sort of 'wildcard' option for the
name of the mailbox to index, as I dont know all the mailboxes's
names the users have created (beside the regular Sent Inbox
Trash and Drafts ?
I'm using a totally different set of things, but at least dovecot and
clucene are agreeable.. ;-)
You should have a fts plugin to doveadm that should solve this issue:
doveadm fts rescan
doveadm fts optimize
That's what I use to trigger rebuilds.
Second question I've tried:
# doveadm -D index -A Sent
which gave me:
doveadm(root): Error: User listing returned failure
doveadm: Error: Failed to iterate through some users
Can the '-A' option work with ldap backend ?
http://wiki2.dovecot.org/AuthDatabase/LDAP/Userdb
# For using doveadm -A:
iterate_attrs = uid=user
iterate_filter = (objectClass=posixAccount)
Are you defining iterate_* for your userdb?
Regards,
Ben