Before we start there are some preliminaries to take care of. DSPAM needs a user account to run, but instead of creating a full user account using the preference pane we will create a simple user via the Terminal:
sudo niutil -create / /users/dspam sudo niutil -createprop / /users/dspam uid 101 sudo niutil -createprop / /users/dspam gid 101 sudo niutil -createprop / /users/dspam shell "/usr/bin/false" sudo niutil -createprop / /users/dspam home "/usr/local/var/dspam" sudo niutil -createprop / /users/dspam passwd "*"
Compiling DSPAM
Get the source code from the DSPAM site (I’ve tested it with 3.6.8) and extract the archive and you can start compiling:
./configure --enable-daemon \
    --with-storage-driver=mysql_drv \
    --with-mysql-includes=/usr/local/mysql/include \
    --with-mysql-libraries=/usr/local/mysql/lib/mysql \
    --enable-preferences-extension \
    --with-dspam-home-owner=dspam \
    --with-dspam-home-group=postdrop \
    --with-dspam-home=/usr/local/var/dspam \
    --enable-long-usernames \
    --with-dspam-group=postdrop \
    --enable-mysql4-initialization \
    --enable-domain-scale \
    --enable-virtual-users \
    --enable-debug \
    --enable-verbose-debug
This configure, if everything went allright, can be followed by:
make sudo make install
and you are done with this step, next step: setting up the storage database
November 7th, 2006 at 1:00 am
Might be an oversite- –with-dspam-mode=dspam should be –with-dspam-mode=2510 think you meant –with-dspam-owner=dspam
 
November 7th, 2006 at 7:42 am
@Keenick: You are correct, the option has been removed, as 2510 is the default value ! Thanks….