Dovecot/1.2 - Compiling From Source with ManageSieve
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[edit | edit source]
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
- Dovecot: http://www.dovecot.org/releases/1.2/alpha/dovecot-1.2.alpha3.tar.gz
- Sieve for Dovecot - http://www.rename-it.nl/dovecot/1.2/dovecot-1.2-sieve-0.1.0.tar.gz
- ManageSieve - http://www.rename-it.nl/dovecot/1.2/dovecot-1.2-managesieve-0.11.0.tar.gz
- ManageSieve Patch for Dovecot - http://www.rename-it.nl/dovecot/1.2/dovecot-1.2.alpha3-managesieve-0.11.0.diff.gz
Patching, Compiling, & Installing Dovecot[edit | edit source]
So fist lets start out by downloading and Dovecot and patching it with the ManageSieve patch.
cd /var/src/ wget http://www.dovecot.org/releases/1.2/dovecot-1.2.9.tar.gz tar -xzf dovecot-1.2.9.tar.gz cd dovecot-1.2.9 wget http://www.rename-it.nl/dovecot/1.2/dovecot-1.2.0-managesieve-0.11.10.diff.gz 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[edit | edit source]
Next you need to download and compile the Sieve plug-in.
cd .. wget http://www.rename-it.nl/dovecot/1.2/dovecot-1.2-sieve-0.1.14.tar.gz 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[edit | edit source]
Next finely compile the ManageSieve Server
cd .. wget http://www.rename-it.nl/dovecot/1.2/dovecot-1.2-managesieve-0.11.10.tar.gz 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 &