Monday Sep 06
English French German Italian Portuguese Russian Spanish Filipino

ASSP the best free Open Source Anti-Spam SMTP Proxy - Page 3 Starting ASSP

Attention: open in a new window. PrintE-mail
Article Index
ASSP the best free Open Source Anti-Spam SMTP Proxy
Page 2 Installing 1.3.3.8
Page 3 Starting ASSP
Page 4 Making script executable
Page 5 Login
Page 6 Test mode
Page 7 Forwarding spam
Page 8 Installing 1.4.3.0
Page 9 Create directories
Page 10 1.4.3.0 Startup script
Page 11 Making 1.4.3.0 script executable
All Pages

cd /usr/share/assp

At this point I am ready to start ASSP for the first time.

Start assp

perl assp.pl

If there are no errors go ahead and stop ASSP, type in at command prompt.

ctrl-c

To have ASSP start during bootup
Create start|shutdown script in /etc/rc.d/init.d/assp

Create a file called assp.
vi /etc/rc.d/init.d/assp (Copy and paste script below.)

There is also a new startup script which could be found here, I haven't tried this one yet.

Script obtained from ASSP forum:

#!/bin/sh
#
# assp This shell script takes care of starting and stopping
# the Anti-Spam SMTP Proxy daemon.
#
# chkconfig: 235 99 10
# description: The Anti-Spam SMTP Proxy (ASSP) implements whitelists, \
# Bayesian, and basic anti-virus filtering to rid the \
# planet of the blight of unsolicited email (UCE).
#
### BEGIN INIT INFO
# Provides: ASSP
# Required-Start: $network $syslog
# Required-Stop: $network
# Default-Start: 2 3 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ASSP
# Description: ASSP is the Anti-Spam SMTP Proxy
### END INIT INFO

# Source function library.
if [ -f /etc/init.d/functions ] ; then
. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
. /etc/rc.d/init.d/functions
else
exit 1
fi

# change base to location of your ASSP installation
base=/usr/share/assp
prog=$base/assp.pl
lockfile=/var/lock/subsys/assp

start() {
echo -n $"Starting the Anti-Spam SMTP Proxy: "
daemon $prog $base
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch $lockfile || RETVAL=1
return $RETVAL
}

stop() {
echo -n $"Stopping the Anti-Spam SMTP Proxy: "
killproc $prog
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -f $lockfile
return $RETVAL
}

restart() {
stop
start
}

reload() {
echo -n $"Reloading assp.cfg: "
killproc $prog -HUP
RETVAL=$?
echo
return $RETVAL
}

rhstatus() {
status $prog
return $?
}

case "$1" in
start)
start
;;
stop)
stop
;;
status)
rhstatus
;;
restart)
restart
;;
reload)
reload
;;
*)
echo $"Usage: $0 {start|stop|restart|reload|status}"
RETVAL=2
esac

exit $RETVAL