Building Dovecot on Solaris is very straightforward. Dovecot may be built using either GCC or Oracle Solaris Studio compilers. The following script was used to build our Dovecot IMAPS server.
CPPFLAGS="-D_POSIX_PTHREAD_SEMANTICS" CFLAGS="-I/opt/csw/include" LDFLAGS="-R/opt/csw/lib -L/opt/csw/lib" \
./configure --prefix=/usr/local/dovecot \
--with-solr --with-zlib \
--with-bzlib --with-storages=maildir \
We use Solr as the advanced search indexing engine for mail. This is of use only to web mail clients, since desktop mail clients usually use a local search engine for indexing messages.
Instructions for building and integrating pigeonhole will be provided soon.