This is a how-to for ASSP, I've marked it as beta because this how-to needs some testing.
Install needed perl modules:
Create a directory for ASSP:
Download and extract ASSP:
Chmod downloaded files:
Create ASSP user/group:
Now we need to configure it. Open assp.cfg in your favorite editor and set these values:
Start it when the system comes up:
Add this to exim.conf:
Now create and chmod ASSP start/stop script:
You can also read ASSP documentation:
ASSP Documentation.htm
Regular Expression Tutorial.htm
Install needed perl modules:
Code:
perl -MCPAN -e "install Compress::Zlib"
perl -MCPAN -e "install Digest::MD5"
perl -MCPAN -e "install Email::Valid"
perl -MCPAN -e "install File::ReadBackwards"
perl -MCPAN -e "install Mail::SPF::Query"
perl -MCPAN -e "install Mail::SRS"
perl -MCPAN -e "install Net::DNS"
perl -MCPAN -e "install Sys::Syslog"
perl -MCPAN -e "install Net::LDAP"
perl -MCPAN -e "install Time::HiRes"
Create a directory for ASSP:
Code:
mkdir /usr/local/assp
cd /usr/local/assp
Download and extract ASSP:
Code:
wget http://switch.dl.sourceforge.net/sourceforge/assp/ASSP_1.2.6-Install.zip
unzip -d /usr/local/assp /usr/local/assp/ASSP_1.2.6-Install.zip
rm -fr ASSP_1.2.6* changelog.txt Install.txt __MACOSX/ README.txt
wget http://www.grscripts.com/service/start
chmod 755 start
wget http://www.grscripts.com/service/stop
chmod 755 stop
Chmod downloaded files:
Code:
chmod u+x /usr/local/assp/*.pl
Create ASSP user/group:
Code:
/usr/sbin/useradd assp -r
Now we need to configure it. Open assp.cfg in your favorite editor and set these values:
Code:
runAsGroup:=assp
runAsUser:=assp
AsADaemon:=1
webAdminPassword:=[B]random_password[/B]
smtpDestination:=127.0.0.1:125
listenPort:=25
localDomains:=file:/etc/virtual/domains
Start it when the system comes up:
Code:
chkconfig --add assp
Add this to exim.conf:
Code:
# ASSP
local_interfaces = 127.0.0.1
daemon_smtp_ports = 125
Now create and chmod ASSP start/stop script:
Code:
cat > /etc/init.d/assp << "EOF"
#!/bin/sh
# chkconfig: 235 99 10
# description: Start or stop the ASSP SPAM Proxy server
base=/usr/local/assp
confFile=$base/assp.cfg
start="$base/start $base"
stop="$base/stop $base"
lockfile=/var/lock/subsys/assp.lock
pidFile=$base/pid
name='ASSP'
case "$1" in
'start')
echo "Starting ASSP via: $start"
$start >/dev/null 2>&1 </dev/null
# $start
RETVAL=$?
if [ "$RETVAL" = "0" ]; then
touch $lockfile >/dev/null 2>&1
fi
;;
'stop')
$stop
RETVAL=$?
if [ "$RETVAL" = "0" ]; then
rm -f $lockfile
fi
;;
'status')
pidfile=`grep "^pidfile=" $confFile | sed -e 's/pidfile=//g'`
if [ "$pidfile" = "" ]; then
pidfile=$pidFile
fi
if [ -s $pidfile ]; then
pid=`cat $pidfile`
kill -0 $pid >/dev/null 2>&1
if [ "$?" = "0" ]; then
echo "$name (pid $pid) is running"
RETVAL=0
else
echo "$name is stopped"
RETVAL=1
fi
else
echo "$name is stopped"
RETVAL=1
fi
;;
'restart')
$stop && $start
RETVAL=$?
;;
*)
echo "Usage: $0 { start | stop | status | restart }"
RETVAL=1
;;
esac
exit $RETVAL
EOF
Code:
chmod 755 /etc/init.d/assp
You can also read ASSP documentation:
ASSP Documentation.htm
Regular Expression Tutorial.htm
Last edited: