Dovecot/1.2 - Compiling From Source with ManageSieve

From MattWiki

Note: This Page was written with Fedora 8 & 9 in mind, and may not work correctly with other versions or distributions.

When using the ManageSieve patch and server with Dovecot you will need to recompile/build Dovecot first.

Compiling and Installing the Dovecote Sieve Suite

See Dovecot for setup and configuration information.

First you will need to download the lastest versions of Dovecot, Sieve for Dovecot, and ManageSieve from Dovecot's website.

For Dovecot Version 1.2 Alpha 3

Patching, Compiling, & Installing Dovecot

So fist lets start out by downloading and Dovecot and patching it with the ManageSieve patch.

cd /var/src/
tar -xzf dovecot-1.2.9.tar.gz
cd dovecot-1.2.9
gzip -dc dovecot-1.2.9-managesieve-0.11.10.diff.gz | patch -p1

Now since you have patched your download of Dovecot you can compile it.

./configure --with-mysql --enable-header-install --with-db && make
echo $?

Compiling, & Installing Sieve

Next you need to download and compile the Sieve plug-in.

cd ..
tar -xzf dovecot-1.2-sieve-0.1.14.tar.gz
cd dovecot-1.2-sieve-0.1.14
./configure --with-dovecot=../dovecot-1.2.9 && make

And lets install it.

make install

Compiling, & Installing ManageSieve

Next finely compile the ManageSieve Server

cd ..
tar -xzf dovecot-1.2-managesieve-0.11.10.tar.gz
cd dovecot-1.2-managesieve-0.11.10
./configure --with-dovecot=../dovecot-1.2.9 --with-dovecot-sieve=../dovecot-1.2-sieve-0.1.14
make && make install

Next go back to Dovecot and install it.

cd ../dovecot-1.2.9
/sbin/service dovecot stop && make install && /sbin/service dovecot start

Or if your not using a Dovecot Init script run:

killall dovecot
make install
echo $?

dovecot &