Installation

Requirements

On a system using APT package management the following packages must be installed in order to compile greylist. On other systems a link to the home page of the project is given. Download the package from there and install it with development headers before compiling greylist.

cmake
apt-get install cmake.
Minimum required version 2.6.
libdbi
apt-get install libdbi0-dev libdbi0
Tested with version 0.8.2.
dbd drivers for libdbi
apt-get install libdbd-mysql (libdbd-pgsql libdbd-sqlite)
Tested with version 0.8.2.
boost-threads
apt-get install libboost-thread1.35-dev
Tested with version 1.35 - higher versions should be okay.

Compiling

Download the latest version from http://mimo.gn.apc.org/greylist, untar into a new folder and cd into the build folder:

tar xvfz greylist-latest.tar.gz
cd greylist/build
cmake ..
make
make install

Database

To store triplet information greylist needs a database backend. If you are migrating from the greylist policy service (gps) you can just use the gps database.
Otherwise create a new database and set up the tables. Instructions are on the pages listed below.