Antispam: ASSP

instalasi ASSP:
chkconfig sendmail off
/etc/init.d/sendmail stop
langkah diatas guna mencegah terjadinya bentrokan port yang akan digunakan oleh ASSP, lengkapnya tentang ASSP
http://assp.sourceforge.net

langkah pertama instalasi
yum groupinstall "development tools"
yum groupinstall "development libraries"

kemudian install modul perl yang dibutuhkan :

sebelum install CPAN,, ni link CPAN site indonesia
http://cpan.biz.net.id/
http://komo.vlsm.org/CPAN/
ftp://komo.vlsm.org/CPAN/
http://cpan.cermin.lipi.go.id/
ftp://cermin.lipi.go.id/pub/CPAN/
http://cpan.pesat.net.id/

perl -MCPAN -e shell


install Compress::Zlib
install Digest::MD5
install Email::Valid
install File::ReadBackwards
install Mail::SPF::Query
install Mail::SRS
install Net::DNS
install Sys::Syslog
install Net::LDAP
install Time::HiRes

pindah ke direktori cd /usr/src/

download ASSPnya

wget -c http://sourceforge.net/projects/assp/files/ASSP%20Installation/ASSP%201.8.1.5/ASSP_1.8.1.5-Install.zip/download

kemudian ekstrak

unzip ASSP_1.8.1.5-Install.zip


mkdir -p /usr/share/assp/spam
mkdir /usr/share/assp/notspam
mkdir /usr/share/assp/errors
mkdir /usr/share/assp/errors/spam
mkdir /usr/share/assp/errors/notspam

mv -f ASSP/* /usr/share/assp


vi /etc/init.d/assp
#!/bin/bash
# 
# chkconfig: 2345 80 05
# Description: ASSP init.d script
# Hacked by : Hafiz - http://www.mhafiz07.blogspot.com
 
# Get function from functions library
. /etc/init.d/functions
 
# Start the service ASSP
start() {
        echo -n "Starting ASSP server: "
        cd /usr/share/assp
        perl assp.pl 2>&1 > /dev/null &
        ### Create the lock file ###
        touch /var/lock/subsys/ASSP
        success $"ASSP server startup"
        echo
}
 
# Restart the service ASSP
stop() {
        echo -n "Stopping ASSP server: "
        kill -9 `ps ax | grep "perl assp.pl" | grep -v grep | awk '{ print $1 }'`
        ### Now, delete the lock file ###
        rm -f /var/lock/subsys/ASSP
        success $"ASSP server shutdown"
        echo
}
 
### main logic ###
case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  status)
        status ASSP
        ;;
  restart|reload|condrestart)
        stop
        start
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|reload|status}"
        exit 1
esac
 
exit 0

jangan lupa di save selanjutnya ubah permission
chown -R 0.0 /usr/share/assp

Pindah ke direktori
cd /usr/share/assp

jalankan assp-nya
perl assp.pl

chmod 755 /etc/init.d/assp
chkconfig –add assp
chkconfig assp on
service assp start

buka web-browser anda
http://your-server.com:55555 atau dengan ip-address anda dengan port yang sama


login dengan
username bebas
password nospam4me

No comments:

Post a Comment