Skip to main content

Blokir/Whitelist Email & Domain Tertentu pada Zimbra Mail Server


Mendapatkan Pertanyaan Client , kenapa selalu masuk Notifikasi dari Facebook ataupun tweeter ke email zimbra? gimana caranya agar  notifikasi mail tersebut tidak masuk ke dalam inbox saya ? apakah email tersebut memang mengandung Spam atau virus ?  bisa saja spam yang bisa menyebar ke PC maupun PC antar Jaringan ...


Permasalahan diatas dapat diatasi dengan cara edit file  /opt/zimbra/conf/amavisd.conf.in

Buka file vi /opt/zimbra/conf/amavisd.conf.in

Cari Bagian seperti dibawah ini :

{ # a hash-type lookup table (associative array)
'nobody@cert.org' => -3.0,
'cert-advisory@us-cert.gov' => -3.0,
'owner-alert@iss.net' => -3.0,
'slashdot@slashdot.org' => -3.0,
'bugtraq@securityfocus.com' => -3.0,
'ntbugtraq@listserv.ntbugtraq.com' => -3.0,
'security-alerts@linuxsecurity.com' => -3.0,

# soft-blacklisting (positive score)
'sender@example.net'
=> 3.0
 
Lakukan Editing dengan menekan Tombol Insert
Silahkan masukan nama domain yang ingin di whitelist atau di blacklist
Keterangan untuk Whitelist berikan tanda minus (-) dan untuk Blacklist Positif Score
Berikan score positif agar email yang masuk ditandai sebagai spam dan otomatis di kill. Misalnya saya ingin memblokir email dari Facbookmail.com (bukan Facebook.com ) lihat settingan dibawah ini kemudian memberinya score tinggi, misalnya 15 sebagai berikut:
[code language='cpp']
{ # a hash-type lookup table (associative array)
'nobody@cert.org' => -3.0,
'cert-advisory@us-cert.gov' => -3.0,
'owner-alert@iss.net' => -3.0,
'slashdot@slashdot.org' => -3.0,
'bugtraq@securityfocus.com' => -3.0,
'ntbugtraq@listserv.ntbugtraq.com' => -3.0,
'security-alerts@linuxsecurity.com' => -3.0,

# soft-blacklisting (positive score)
'sender@example.net' => 3.0,
'facebookmail.com' => 15.0,
'domainspam.com' => 20.0,
 
Semakin besar score blacklist maka akan semakin tinggi email tersebut akan di delete oleh amavis zimbra
 Setelah dimodifikasi, simpan file yang sudah diubah (jika menggunakan vi/vim, gunakan perintah :wq! untuk menyimpan file berjenis read only .

Restart service anti virus dan anti spam dengan perintah :
su - zimbra
zmamavisdctl stop && zmamavisdctl start
 
 
 
Selamat Mencoba 


Taufan M 
 

Comments

Popular posts from this blog

[Arsip] Uninstal Zimbra Mail Server

UnInstalling Zimbra on Linux Uninstall Directions for Linux/All Other Operating Systems As root: 1) Run the commands: su – zimbra zmcontrol stop exit (you should be root after you run exit) 2a) Run the command:  ps -ef | grep -i zimbra If you see running processes 2b) Kill any lingering processes:  kill -9 <pid> 3a) Run the command:  df If you see "amavisd" 3b) run command:  umount /opt/zimbra/amavisd<-new-blah>/tmp 4)  cd /<tmp_tar_install_dir>/zcs/ 5) Run the command:  ./install.sh -u 6) Run the following commands to complete the unistall: rm -rf /opt/zimbra rm -rf /var/log/*zimbra* rm -rf /tmp/*zimbra* rm -rf /tmp/hsperfdata* rm -rf /tmp/install.* rm -rf /tmp/*swatch* rm -rf /tmp/log* Ensure that you removed ALL the files owned by the user zimbra AND that contain the name "zimbra" in: /var/log/ /tmp/ 7) Run the following commands to delete the users and groups: userdel zimbra userdel postfix groupdel zimbra groupdel postfix 8) Remove th...

Membuat fungsi “terbilang” Excel menggunakan macro VBA

Jika Anda ingin menerjemahkan Angka menjadi Kata-kata , contohnya saja dalam pembuatan Form Kwitansi suatu Transaksi , anda dapat membuatnya dengan menggunakan aplikasi Microsoft Excel dan Macro Visual Basic Application ( VBA ) .saya menggunakan Excel 2007 Untuk membuatnya silahkan ikuti langkah-langkah dibawah ini :  buka Microsoft Excel , lalu tekan alt+F11  Setelah Muncul Microsoft Visual Basic , lalu pilih Insert > module Isikan code Seperti diatas  silahkan anda download source code nya disini !! Save Book ( ctrl+S)   Save As type : pilih Excel Macro - Enable Workbook  (*.xlsm) lalu klik Save  pilih File > Close and return to microsoft excel , macro sudah dibuat , sekarang kita tinggal test macro tersebut Tempatkan cell A2 , pilih Formulas > Insert Function lalu pilih Category User Defined Terlihat Function terbilang yang sudah dibuat tadi di VBA , klik Ok Akan Tampil Form Seperti diatas ,  Nilai_angka  arahkan ke Cell A1 ( ters...