Ok,
Install this one (if you havnt already)
http://myezserver.com/downloads/mitel/contrib/user-manager/user-manager-howto.htmlSet your user to "normal" and then "geek" mode.
I created a directory in /opt called sb ie /opt/sb - and downloaded the Spambouncer files from here
http://www.spambouncer.org/sb.tar.Z into this directory.
To extract run
uncompress sb.tar.Z
tar -xvf sb.tar
The following is a copy of my .procmailrc with the SpamBouncer additions.
SHELL=/bin/bash
DEFAULT=$HOME/Maildir/
FORMAIL=/usr/bin/formail
MAILDIR=$HOME/Mail
PMDIR=$HOME
SENDMAIL=/usr/sbin/sendmail
# ------------
# some logging
# ------------
VERBOSE=no
LOGFILE=$HOME/procmail.log
# Spambouncer
SBDIR=/opt/sb
SPAM=$HOME/spam
CONFIG=$HOME/home/mail
ALWAYSBLOCK=${CONFIG}/deny.txt
NOBOUNCE=${CONFIG}/nocheck.txt
LOCALHOSTFILE=${SPAM}/.localhostfile
MYEMAIL=${SPAM}/.myemail
LEGITLISTS=${SPAM}/.legitlists
EXECHECKING=no
EXEDOCCHECKING=no
# start of user recipies
# ----------------------
:0
* ^Subject.*Cron
run-parts /etc/cron.daily
/dev/null
:0
* ^Subject.*Cron /etc/startmail
/dev/null
:0
* ^Subject.*HylaFAX Usage Report
/dev/null
# Regenerate "From" lines to make sure they are valid
:0 fhw
| formail -I "From " -a "From "
# Filter out Mailing List Mail
:0:
* ^TOdevinfo@lists.e-smith.org
$DEFAULT
# Call Spambouncer
INCLUDERC=${SBDIR}/sb.rc
# all else goes to the inbox
# --------------------------
:0
$DEFAULT
I created a folder in my home directory called spam where i keep my config files for spambouncer. I created a folder called mail in network neighbourhood where i keep the config files i want to be able to change on a regular basis.
The deny.txt and nocheck.txt go into this folder.
If you do all of this as root you may have to change the permissions around. I generally logon as the user as per this method
http://www.dungog.net/sme/howto/usershell.html
to do this kind of stuff.
This solution takes up a lot of resources when filtering mail. I set the
EXECHECKING=no
EXEDOCCHECKING=no
because i am using RAV. Setting these to yes on a low end machine will bog the system down when large e-mails come in.
Have a go, and post any problems here.
Regards Duncan