Hi,
While this isn’t directly Hestia related, I thought I’d ask here as you guys may know more! I’ve got some large mailboxes, and I want to setup Solr FTS plugin so that its faster to search (and better). So I’ve been reading:
https://doc.dovecot.org/configuration_manual/fts/solr/
That talks of Solr 7.7, which is super old. So I’ve installed Solr 8.9.0:
sudo wget https://archive.apache.org/dist/lucene/solr/8.9.0/solr-8.9.0.tgz
sudo tar xzf solr-8.9.0.tgz
sudo bash solr-8.9.0/bin/install_solr_service.sh solr-8.9.0.tgz
sudo systemctl status solr
sudo systemctl enable solr
sudo -u solr /opt/solr/bin/solr create -c dovecot
That created the files ok. Then I copied the schema/solrconfig files they provide (all be it for Solr 7.7, but it seems to load ok with no errors)
Then I installed:
apt-get install dovecot-solr
…but now I’m stuck! I tried adding this in the very top of dovcot.conf:
mail_plugins = $mail_plugins fts fts_solr
plugin {
fts_autoindex = yes
fts = solr
fts_solr = url=http://127.0.0.1:8983/solr/dovecot/ debug
}
It loads (with no errors), but not sure its working. If I stick it in ./conf.d/90-plugin.conf, as I would have expected to do - I get:
Dec 17 07:44:48 east.newbyhost.com dovecot[125293]: doveconf: Warning: /etc/dovecot/conf.d/90-plugin.conf line 13: Global setting mail_plugins won’t change the setting inside an earlier filter at /etc/dovecot/conf.d/15-lda.conf line 47
I guess one of my questions is - that it says
Dovecot is not compiled with Solr FTS support by default. To enable it, you need to add the
--with-solr
parameter to your invocation of theconfigure
script. You will also need to have libexpat installed, including development headers (typically from a separate development package). Configuration will fail if--with-solr
is enabled while libexpat headers cannot be found. Older versions of Dovecot also required libcurl for Solr support, but recent versions of Dovecot include a custom HTTP client.
How does Hestia build Dovecot? With that flag? I’m hoping I can make a how-to if I can get this working, so others can make use of it
Thanks!
Andy