Move some code.
[apps/pfixtools.git] / INSTALL
1 Installation instruction for pfixtools
2
3 1)  Install dependencies; you will need at least the following packages:
4         gperf, libbz2-dev, libsrs2-dev, libunbound-dev, pkg-config
5     Install tokyocabinet: http://tokyocabinet.sourceforge.net/
6
7 2)  Compile:
8     $ make
9     $ sudo make install
10
11 3)  Prepare the configuration in /etc/pfixtools
12       - postlicyd.conf, read postlicyd.example.conf to learn more
13       - postlicyd-rsyncrbl.conf, read postlicyd-rsyncrbl.example.conf to learn more
14       - additional files required by the configuration, such as client_whitelist
15         postgrey2postlicyd can be used to migrate from an existing
16         postgrey clients whitelist
17     If you are using RBLs, you should add a crontab entry for postlicyd-rsyncrbl
18
19 4)  Create the spool:
20     # mkdir -p /var/spool/pfixtools/
21     # chown nobody:nogroup /var/spool/pfixtools/
22
23 5)  Policy daemon startup script: /etc/init.d/postlicyd
24     Use your distribution's favorite way to start/stop services.
25     Start the policy daemon:
26     # /etc/init.d/postlicyd start
27
28 6) Tell postfix to use postlicyd as a policy daemon and reload postfix
29