Installing RPF
Until each OS supports RPF with its package system, you should install RPF by hand.
Installing GHC and cabal
Install Glasgow Haskell Compiler(GHC) and the “cabal” command by Haskell Platform.
Installing RPF
To install RPF, execute the following commands:
% cabal update
% cabal install rpf
The “rpf” daemon is installed under the ““$HOME/.cabal/bin” directory. You should copy it to your favorite directory.
Using RPF
First of all, you should configure your MTA to talk with one port on a local host using Milter protocol. The “rpf” daemon gains access to port 10025 on a local host by default.
The “rpf” deamon takes exactly two arguments. The first one is a file to specify configuration and the second one is a file to describe policy.
% rpf rpf.conf rpf.policy
File names are not significant.
- To understand how to specify configuration file, read The syntax of configuration.
- To understand how to specify policy file, read The syntax of policy.
Stopping RPF
To stop RPF daemon, type as follows:
% kill `cat /var/run/rpf.pid`