From a78d1a23364d09c33d19d2f80a19276c88dddd05 Mon Sep 17 00:00:00 2001 From: beertje44 <101147154+beertje44@users.noreply.github.com> Date: Sun, 16 Jun 2024 19:37:33 +0200 Subject: [PATCH] Update dovecot-solr.md fixup --- docs/content/examples/tutorials/dovecot-solr.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/content/examples/tutorials/dovecot-solr.md b/docs/content/examples/tutorials/dovecot-solr.md index 2f6973ca..88d40580 100644 --- a/docs/content/examples/tutorials/dovecot-solr.md +++ b/docs/content/examples/tutorials/dovecot-solr.md @@ -15,7 +15,7 @@ services: volumes: - :/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: ... /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`