On 11.9.2012, at 19.23, Ralf Hildebrandt wrote:

> I'm reacreating all FTS indices on all my users' INBOX folders:
> mkdir ~%s/Maildir/lucene-indexes && chown %s:users ~%s/Maildir/lucene-indexes

You shouldn't need to do this. It's created automatically. Also by "recreating" 
do you mean that the users already had Lucene indexes and you deleted them?

> tbudkevy 29186  3.7  0.0   6616  3056 ?        S    18:11   0:15 
> dovecot/indexer-worker [tschuetz INBOX]
> 
> how can a dovecot/indexer-worker actually access the INBOX of the
> user "tschuetz" (where "tbudkevy" doesn't have access, due to the
> different UID)...?

indexer-worker runs basically as chroot, but it doesn't bother switching back 
to root immediately. My guess is that this was a very brief race condition in 
ps between reading process's UID and the command line. Unless you can easily 
reproduce this?

> Should ~%s/Maildir/lucene-indexes be filled after having run the command
> sequence for all users?

Only if there was something in the INBOX. Also if users already had previous 
Lucene indexes it doesn't work, you need to run doveadm fts rescan because 
dovecot.index remembers which message was last indexed to Lucene.

Reply via email to