Hi there
I took some time this morning to build dovecot-lucene on a Scaleway C1 armhf server hosting Mail-in-aBox.
Here’s how i made it work :
apt-add-repository ppa:mail-in-a-box/ppa
Uncomment “deb source” line in the file “/etc/apt/sources.list.d/mail-in-a-box-ppa-trusty.list”
# cat /etc/apt/sources.list.d/mail-in-a-box-ppa-trusty.list
deb http://ppa.launchpad.net/mail-in-a-box/ppa/ubuntu trusty main
deb-src http://ppa.launchpad.net/mail-in-a-box/ppa/ubuntu trusty main
# deb-src http://ppa.launchpad.net/mail-in-a-box/ppa/ubuntu trusty main
# deb-src http://ppa.launchpad.net/mail-in-a-box/ppa/ubuntu trusty main
Refresh APT and install tools and dependencies.
apt-get update
apt-get install debhelper cdbs lintian build-essential fakeroot devscripts pbuilder dh-make debootstrap
apt-get install libclucene-dev libpam0g-dev libpq-dev libmysqlclient-dev libsqlite3-dev libsasl2-dev drac-dev libbz2-dev libdb-dev libcurl4-gnutls-dev libwrap0-dev dh-systemd libclucene-dev liblzma-dev libexttextcat-dev libstemmer-dev hardening-wrapper dh-autoreconf
Download sources.
cd /tmp
apt-get source dovecot-lucene
Make the package!
cd dovecot-2.2.9/
debuild -us -uc -b
And install it !
cd /tmp
dpkg -i dovecot-lucene_2.2.9-1ubuntu2.1+miab1_armhf.deb
Make sure that everything is OK with Dovecot :
/etc/dovecot/conf.d/90-plugin-fts.conf
Should contain :
plugin {
fts = lucene
fts_lucene = whitespace_chars=@.
}
And mail_plugins variable in file : vi /etc/dovecot/conf.d/10-mail.conf
#Space separated list of plugins to load for all services. Plugins specific to
# IMAP, LDA, etc. are added to this list in their own .conf files.
#mail_plugins =
mail_plugins=$mail_plugins fts fts_lucene
Rock it !
service dovecot restart
Searching is now damn fast in my fatty mailbox - 11 Go.
By the way, thanks a lot @JoshData for this great tool
MrRaph_