Enable fulltext search in dovecot



inspired by https://documentation.open-xchange.com/latest/middleware/components/search/crossfolder_fts_in_mail.html
i tried to configure fast fulltext search in Dovecot.
I got a working virtual folder for an All-Folder-Search but dovecot-solr and dovecot-lucene cause a panic in dovecot.

Panic: file fts-search-serialize.c: line 63 (fts_search_deserialize_add_idx): assertion failed: (*idx < buf->used)
With disabled fts-solr or fts-lucene the Search is working but as expected painfully slow.

Googling for this leads to the possible Solution using a dovecot-Version bigger than 2.2.13u1 which is the latest available Version in Univention.: https://www.dovecot.org/list/dovecot/2015-March/100305.html

I would appreciate any help to get fts working.
Maybe there could be already a patched version 2.2.13 because debian shows 2.2.13u3 but i have no idea if this Version would work.
Is it possible to use backports? because there would be version 2.2.27 where i guess this problem could be solved.
Maybe i try to go the wrong way and there is an other/better way to get fulltextsearch in univention/dovecot.


Dovecot too many open Files

There seems to be no significant difference regarding search between 2.2.13u1 and 2.2.13u3. UCS will not upgrade to the backports version during 4.2.

You can try to install a Dovecot version from the backports repository. It will probably work, but it will not be supported.

You can install Dovecot Pro. I know of a customer that uses it with UCS for a big installation, and does use solr for cross-folder-search.



installing something out of backports is no option because of the unsupported state.
I can not understand why it does not work as desired, or why dovecot-solr is even provided via “maintained” (https://updates.software-univention.de/4.2/maintained/4.2-0/amd64/) when it is not working.

I wonder if i do something wrong in setting up dovecot-solr or this version is simple in an useless state.

As one of my primary target is tho satisfy my users i wonder why indexed fast full-text search is not configured by default in univention.

Regarding Dovecot-Pro, i am not sure if this is a version for me. They seem to aim at large Enterprises and Telcos. I found no prize for it but i guess it may be unaffordable for a small business with only~80 Mailboxes. Anyway i will contact my OX-Sales-Partner to clarify.
Even dovecot-ee does not seem to be unproblematical when i read this: https://forge.univention.org/bugzilla/show_bug.cgi?id=44559

I really would appreciate any help getting dovecot-solr running with the univention standard-verions.



while the debian dovecot packages are supportet, the fulltext/cross folder search with solr is currently not. Solr can be used for more then dovecot cross folder search, that may be the reason why it is still in maintained.