Showing posts with label Antispam. Show all posts
Showing posts with label Antispam. Show all posts

ASSP: how to correct email notspam that have been past

check email notspam yang sudah terlewat dari log ASSP

masuk ke direktori notspam ASSP
# cd /usr/share/assp/spam
# ls |grep -i "<subject email yang ingin dicari>"

jika sudah menemukan email yang ingin di koreksi sebagai notspam
lakukan langkah berikut

1. masuk ke web-base ASSP
2. klik salah satu email spam
3. copy url email spam yang dari log















klik gambar untuk memperbesar

4. paste di address-bar 
5. copy subject email yang ingin dikembalikan (dalam format *.eml)
6. ganti subject email URL yang telah di copy pada address-bar dengan subject email yang ingin di koreksi
caranya:
-hapus setelah kata "edit?file=spam%2F" sampai dengan "*.eml" (tanpa tanda kutip)
kemudian paste-kan subject email yang ingin dikoreksi lengkap dengan format *.eml pada subject email yang telah dihapus <enter> *yaps,, masuk editor email yang ingin dikoreksi.
setelah masuk ke editor email yang ingin dikoreksi
cara mengoreksi email 
7. klik "select action" => pilih "copy file to correctednotspam" => klik "do it"
8. klik "select action" => pilih "resend file" => klik "do it" => close
email telah di koreksi dan telah di resend
9. langkah terakhir cek mailbox,,

langkah mengoreksi email ini sangat berguna, jika kehilangan email file penting yang dianggap spam oleh antispam

ASSP issue

jika terdapat kesalahan (baca: gagal) sewaktu menjalankan perl assp.pl dengan issue  Can't locate HTML/Entities.pm

maka perlu melakukan langkah berikut 
install (dengan yum) paket berikut:
 
perl-XML-Parser
perl-BIND-Conf_Parser
perl-HTML-Parser
 
lanjut install module perl-nya

perl -MCPAN -e shell
cpan> install HTML::Parser
 
jika sudah selesai  instalasi cpan tekan q untuk keluar

yap,, coba jalankan kembali perl assp.perl atau /etc/init.d/assp start  
 

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