1 / 27

Postfix-Amavis-ClamAV-Spamassassin Installation

Postfix-Amavis-ClamAV-Spamassassin Installation. Pendahuluan. Disini dijelaskan cara installasi antivirus pada postfix mailserver. Untuk antivirus, dipakai clamav karena selama ini respon dari clamav bila ada virus baru muncul cukup cepat dan yang pasti gratis. Untuk antar muka dipilih amavis.

Download Presentation

Postfix-Amavis-ClamAV-Spamassassin Installation

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Postfix-Amavis-ClamAV-SpamassassinInstallation

  2. Pendahuluan • Disini dijelaskan cara installasi antivirus pada postfix mailserver. Untuk antivirus, dipakai clamav karena selama ini respon dari clamav bila ada virus baru muncul cukup cepat dan yang pasti gratis. Untuk antar muka dipilih amavis.

  3. Security Email Process

  4. Installasi Postfix Mailserver • Jalankan perintah: # apt-get install postfix • Kemudian akan ditanyakan tipe mailserver • Internet site • Isikan email root • Contoh isikan debian • Mail name • Isikan dengan full domain • Domain yang lainnya • Force synchronous NO

  5. Modifikasi postfix • Jalankan perintah: • # postconf –e 'home_mailbox=Maildir/' • # postconf -e 'mailbox_command=' • # postconf -e 'myhostname=ilc' • # postconf -e 'myorigin=ilc.eepis-its.edu' • # postconf -e 'mydestination=ilc.eepis-its.edu, localhost, $myhostname, $myorigin'

  6. Mengaktifkan postfix • Dengan perintah: • # /etc/init.d/postfix start • Atau • # /etc/init.d/postfix stop • # /etc/init.d/postfix restart

  7. Installasi Clam-AV • Jalankan perintah : # apt-get install unrar lha unzoo zoo arj unzip bzip2 lzop daemon # apt-get install clamav clamav-daemon clamav-freshclam • Kemudian pilih daemon • Kemudian pilih virus update server • Pilih db.id.clamav.net (Indonesia) • Masukkan proxy server (options) • Format : http://proxy.eepis-its.edu:3128 • Notified (yes)

  8. Mengaktifkan service Clam-AV • # /etc/init.d/clamav-daemon start • Perintah lainnya • # /etc/init.d/clamav-daemon restart • # /etc/init.d/clamav-daemon stop

  9. Spamassassin • Untuk installasi jalankan perintah • # apt-get install spamassassin pyzor razor • Rubah di file /etc/default/spamassassin • ENABLED=0 menjadi • ENABLED=1

  10. Mengaktifkan spamassassin • Jalankan perintah : • # /etc/init.d/spamassassin start • Perintah lainnya : • # /etc/init.d/spamassassin stop • # /etc/init.d/spamassassin restart

  11. Installasi AMAVISD • Jalankan perintah : • # apt-get install amavis

  12. Integrasi dgn postfix • Edit file /etc/postfix/master.cf, tambahkan smtp-amavis unix - - n - 2 smtp -o smtp_data_done_timeout=1200 -o smtp_send_xforward_command=yes -o disable_dns_lookups=yes

  13. Integrasi dgn Postfix (2) • Tambahkan baris berikut pada /etc/posfix/master.cf 127.0.0.1:10025 inet n - n - - smtpd -o content_filter= -o local_recipient_maps= -o relay_recipient_maps= -o smtpd_restriction_classes= -o smtpd_client_restrictions= -o smtpd_helo_restrictions= -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject -o mynetworks=127.0.0.1 -o strict_rfc821_envelopes=no -o smtpd_error_sleep_time=0 -o smtpd_soft_error_limit=1001 -o smtpd_hard_error_limit=1000

  14. Integrasi dgn Postfix (3) • Jalankan perintah • # postconf -e 'content_filter=smtp-amavis:[127.0.0.1]:10024‘ • # postconf -e 'mailbox_command=' • # /etc/init.d/postfix restart

  15. Integrasi dengan ClamAV • Ubah permission /var/run/clamav ke user amavis • # chown amavis.amavis –R /var/run/clamav • Ubah “User clamav” pada /etc/clamav/clamd.conf • User amavis • # /etc/init.d/clamav-daemon restart • # /etc/init.d/amavis restart

  16. Integrasi dengan spamassassin • Pada /etc/amavis/amavisd.conf, rubah • $sa_local_tests_only = 1; Menjadi • $sa_local_tests_only = 0; • Restart amavis • # /etc/init.d/amavis restart

  17. Webmail • Install squirrelmail • # apt-get install apache2 php4 php4-imap libapache2-mod-php4 • # a2enmod php4 • # apt-get install squirrelmail courier-imap • Buat symlink untuk apache2 • # ln –s /etc/squirrelmail/apache.conf /etc/apache2/conf.d/squirrelmail.conf • Untuk mengkonfigurasi squirrelmail • # /etc/squirrelmail/conf.pl

  18. Konfigurasi squirrelmail • Pilih • 2 – server • A – update imap server • 8 – imap server • courier • s – save data

  19. Modifikasi untuk user • Jalankan perintah • # cd /etc/skel • # maildirmake Maildir • Tambahkan user • # adduser coba

  20. Test installasi • Menggunakan browser arahkan • http://localhost/squirrelmail • Menggunakan web-ssl • https://localhost/squirrelmail/ • Masuk dengan user yg telah dibuat

  21. Coba email bervirus • telnet localhost 10024 • Isikan dengan • MAIL FROM:heh@hehe.com • RCPT TO:postmaster • DATA • Subject : virus • X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H* • .

More Related