Hi,
so I installed Solr on my Ubuntu 14.04 following this guide (https://www.digitalocean.com/community/ … untu-14-04) it's actually pretty easy. But yes of course, it needs java
Then I downloaded the dovecot sources (2.2.13) and compiled it with many options found from this page (http://wiki2.dovecot.org/CompilingSource) and from the output of --build-options of my previous dovecot binary.
After compiling, here is the output of my newly compiled binary:
#/usr/local/sbin/dovecot --build-options
Build options: ioloop=epoll notify=inotify ipv6 openssl io_block_size=8192
Mail storages: shared mdbox sdbox maildir mbox cydir imapc pop3c raw fail
SQL drivers: mysql postgresql sqlite
Passdb: checkpassword ldap pam passwd passwd-file shadow sql
Userdb: checkpassword ldap nss passwd prefetch passwd-file sql
I copied my previous (iredmail) config from /etc/dovecot to /usr/local/etc/dovecot, and launched my new dovecot.
First error :
doveconf: Fatal: Error in configuration file /usr/local/etc/dovecot/dovecot.conf: protocols: Unknown protocol: sieve
and with this:
#doveconf -n | head -n1
# 2.2.13: /usr/local/etc/dovecot/dovecot.conf
doveconf: Error: protocols: Unknown protocol: sieve
doveconf: Fatal: Error in configuration file /usr/local/etc/dovecot/dovecot.conf: protocols: Unknown protocol: sieve
I spent 2 hours on this one, verifying the sieve packages was well installed, checking that everything was in the right place. I finally gave up, and removed sieve from the dovecot.conf.
Launched again, and this time it works. I also had to change some permissions root:dovecot and dovecot:dovecot on a few .conf files. I also fixed the "autocreate" warning by updating the conf as recommended in this thread (http://www.iredmail.org/forum/topic5856 … tting.html)
Now my imap server works again. So as recommended on http://wiki2.dovecot.org/Plugins/FTS/Solr I edited conf.d/10-mail.conf and conf.d/90-plugins.conf, and restarted Dovecot. And tried to start the indexation using :
#doveadm fts rescan -u <username>
doveadm(root): Fatal: Unknown command 'fts', but plugin fts exists. Try to set mail_plugins=fts
Even though I already have mail_plugins = fts fts_solr in my conf.d/10-mails.conf, I added it in dovecot.conf and restarted. Surprise, the error changed !
#doveadm fts rescan -u victor
doveadm(victor): Fatal: User doesn't exist
My question : I have the feeling that eveyrhing in the conf.d folder is not included as it should be in the dovecot.conf ? Moreover, I found that ususaly there is !include conf.d/*.conf statement at the end of dovecot.conf (which is not the case after a iredmail install).
I didn't go further as I feel my skills/experience are too limited at this point, but I'd be keen to receive the advices of a specialist,
Thank you!