Page:
Full text search
Pages
Configure AWS SES
Configure Accounts
Configure Aliases
Configure DKIM
Configure DMARC
Configure Fail2ban
Configure LDAP
Configure POP3
Configure Relay Hosts
Configure SPF
Configure SSL
Configure Sieve filters
Configure autodiscover
Debugging
FAQ and Tips
Forward Only mailserver with LDAP authentication
Full text search
Home
IPv6
Installation Examples
Introduction
List of optional config files & directories
Override Default Dovecot Configuration
Override Default Postfix Configuration
Retrieve emails from a remote mail server (using builtin fetchmail)
Understanding the ports
Update and cleanup
Using in Kubernetes
setup.sh
5
Full text search
Semir Patel edited this page 2021-03-13 12:18:28 -06:00
Table of Contents
Overview
Full-text search allows all messages to be indexed, so that mail clients can quickly and efficiently search messages by their full text content.
The dovecot-solr Plugin is used in conjunction with Apache Solr running in a separate container. This is quite straightforward to setup using the following instructions.
Setup Steps
- docker-compose.yml:
solr:
image: lmmdock/dovecot-solr:latest
volumes:
- solr-dovecot:/opt/solr/server/solr/dovecot
restart: always
mailserver:
image: docker.io/mailserver/docker-mailserver:latest
...
volumes:
...
- ./etc/dovecot/conf.d/10-plugin.conf:/etc/dovecot/conf.d/10-plugin.conf:ro
...
volumes:
solr-dovecot:
driver: local
etc/dovecot/conf.d/10-plugin.conf
:
mail_plugins = $mail_plugins fts fts_solr
plugin {
fts = solr
fts_autoindex = yes
fts_solr = url=http://solr:8983/solr/dovecot/
}
-
Start the solr container:
docker-compose up -d --remove-orphans solr
-
Restart the mailserver container:
docker-compose restart mailserver
-
Flag all user mailbox FTS indexes as invalid, so they are rescanned on demand when they are next searched
docker-compose exec mailserver doveadm fts rescan -A
Further discussion
See issue #905
© Docker Mailserver Organization
This project is licensed under the MIT license.