Update dovecot-solr.md

fixup
This commit is contained in:
beertje44 2024-06-16 19:37:33 +02:00 committed by GitHub
parent e386d94bb2
commit a78d1a2336
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,7 @@ services:
volumes:
- <local folder>:/var/solr
restart: always
```yaml
```
We'll assume dms will connect internally to solr, so either append the above docker composer snippet to your dms `compose.yml` or make sure both containers use the same docker network.
The enviroment setting SOLR_JAVA_MEM is optional, but solr can be quite resource hungry so the default of 512MB can be exhausted rather quickly.
@ -26,7 +26,7 @@ Once started you need to configure a solr core for dovecot:
docker exec -it solr_solr_1 /bin/sh
solr create -c dovecot
cp -R /opt/solr/contrib/analysis-extras/lib /var/solr/data/dovecot
```bash
```
Stop the container, you should now have a data/dovecot folder. All that is needed on the solr part is a schema that is tailored specifically for dovecot fts. [Luckilly, Dovecot provides these](https://github.com/dovecot/core/tree/main/doc).
@ -47,7 +47,7 @@ volumes:
...
<local dms folder>/config/dovecot/10-plugin.conf:/etc/dovecot/conf.d/10-plugin.conf:ro
...
```yaml
```
It's content should be:
```config
@ -58,7 +58,7 @@ plugin {
fts_autoindex = yes
fts_solr = url=http://solr_solr_1:8983/solr/dovecot/
}
```config
```
Once you restarted your dms instance, you have to tell dovecot it should reindex all mail: `docker compose exec mailserver doveadm fts rescan -A`