nrspot.com

Open Source , Linux , Firewall , Wireless , WiMax , Security , IT
Subscribe to RSS feed

« Authentication, Authorization & Accounting dengan FreeRadius & MySQL Backend & Web Based Management with Daloradius
Introduction About WiMax »

Cara Install qmailrocks.com packages for Fedora , Centos and Redhat Enterprise Linux .

centos-transparent.png fedora-logo.pngredhat.jpeg

This tutorial has been tested on several distro linux but still base upon Redhat platform.

This could be installed on Linux Fedora Core 7/8/9 ( fedora recommendation under Linux Fedora Core 3 ) , Redhat Enterprise Linux and the Linux Centos 5.1/5.2 + earlier versions . the option for qmail or qmailrocks packages installation with no mysql integration and using xinetd .

First , you have to configure the rpm files , those file would be needed for qmailrocks packages instalations . For Linux Fedora Core 8 ( could be used on Centos 5.2/5.1 & Redhat Enterprise Linux 5 ) , one thing for sure that you can find those rpms file on your Linux RPMS CD’s or start googling and download those files :

rpm -ivh perl-Digest-SHA1-2.11-4.fc8.i386.rpm
rpm -ivh perl-Digest-HMAC-1.01-16.noarch.rpm

you need to install the perl-Net-Dns , but before that , you need to install the perl-Net-IP because the dependencies modules between those files .

rpm -ivh perl-Net-IP-1.25-4.fc8.noarch.rpm
rpm -ivh perl-Net-DNS-0.61-1.fc8.i386.rpm

Install the modul perl(Time::HiRes)
rpm -ivh perl-Time-HiRes-Value-0.01-1.fc7.rf.noarch.rpm

install the modul perl(Tag::Set)
rpm -ivh perl-HTML-Tagset-3.10-6.fc8.noarch.rpm

Install modul perl(HTML::Parser)
rpm -ivh perl-HTML-Parser-3.56-2.fc8.i386.rpm

Follow the instruction step 12 from qmailrocks.com , courrierpassd installation and if you don’t have xinetd being installed on your system

– nrspot.com supported by www.metrochip8.com

ads2.jpg

rpm –ivh xinetd-2.3.13-6.2.1.i386.rpm

On step 14 from qmailrocks.com tutorial you need to do a little adjustment on your ClamAV installation  , but before that you need to check your perl rpm modules that need to be installed earlier for ClamAV installation which are :

Digest::SHA1
Digest::HMAC
Net::DNS
Time::HiRes
HTML::Tagset
HTML::Parser
Pod::Usage
Parse::Syslog
Statistics::Distributions
Dan juga file perl berikut :
perl-suidperl
unzip

You could check the rpm files by executing the running script from qmailrocks.com tutorial , you need to change your user login to another login , not the ROOT user .

su bantal
/downloads/qmailrocks/scripts/util/check_perlmods.script

the result :

QMR check_perlmods v1.1
Checking for the existence of needed perl modules…
checking for Time::HiRes…
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/Time/HiRes.pm

You have to install a newer version of ClamAV rmp’s packages or simply log on to www.clamav.net and download the latest stable version of ClamAV .

I have tried to download ClamAV packages and looks good for me .

rpm -ivh clamav-db-0.91.2-1.fc7.rf.i386.rpm
rpm -ivh clamav-0.91.2-1.fc7.rf.i386.rpm
rpm -ivh clamav-devel-0.91.2-1.fc7.rf.i386.rpm
rpm -ivh clamd-0.91.2-1.fc7.rf.i386.rpm

Edit clamd.conf

vi /etc/clamd.conf

“LogFile” - set to /tmp/clamd.log
“LogTime” - uncommmented.
“LogSyslog” - uncommented.
“User” – set to qscand
“ScanMail” - uncommented.

Then you need to create a user that will run the ClamAV which is qscand

restart Clamd.
/etc/init.d/clamd stop
/etc/init.d/clamd start

Update the ClamAV for the first time :

/usr/bin/freshclam -l /var/log/clamav/clam-update.log

The result :

[root@server clamav] freshclam -l /var/log/clamav/clamav-update.log
ClamAV update process started at Sun Oct 24 23:36:22 2004
main.cvd is up to date (version: 27, sigs: 23982, f-level: 2, builder: tomek)
daily.cvd is up to date (version: 549, sigs: 1583, f-level: 3, builder: ccordes)

Create a cronjob to do this task :

crontab -e
insert this :

25 1 * * * /usr/bin/freshclam –quiet -l /var/log/clamav/freshclam.log
Save crontab and exit.

For the step 16 from qmailrocks.com tutorial , when the qmailstats command being execute would display some errors :
[root@server qlogtools-3.1]# /var/qmail/bin/qmailstats

sort: open failed: +2: No such file or directory
sort: open failed: +2: No such file or directory

Edit the zdeferrals, zfailures dan zsuccesses files in /usr/local/qmailanalog/bin
Change the parameter from ’sort +2′ to ’sort -k 3′

The qmailstats command need to be execute again :

[root@server qlogtools-3.1]# /var/qmail/bin/qmailstats

And there would be no errors.

Follow the instruction from qmailrocks.com to finish your email server installation using qmailrocks packages .

If any errors occurs , google would be there and waiting for your questions.

Hope that it might help and any informations regarding to these informations would be published as soon as possible .

Indonesian Languange Version :

Bisa dicoba untuk instalasi pada OS linux fedora 7/8/9 , Redhat Enterprise Linux versi terakhir baik 32/64 bit ataupun Centos 5.1 dan Centos 5.2 .

Terlebih dahulu sesuaikan paket perl yang ada dengan dibawah ini karena qmailrocks membutuhkan paket-paket rpm tersebut :

untuk Linux fedora core 8 , paket ini pernah digunakan juga untuk Centos 5.1 dan Centos 5.2 dan RHEL 5

rpm -ivh perl-Digest-SHA1-2.11-4.fc8.i386.rpm
rpm -ivh perl-Digest-HMAC-1.01-16.noarch.rpm
untuk modul perl Net::DNS diperlukan file perl(Net::IP) , install perl(Net::IP)

rpm -ivh perl-Net-IP-1.25-4.fc8.noarch.rpm

rpm -ivh perl-Net-DNS-0.61-1.fc8.i386.rpm

install modul perl(Time::HiRes)
rpm -ivh perl-Time-HiRes-Value-0.01-1.fc7.rf.noarch.rpm

install modul perl(Tag::Set)
rpm -ivh perl-HTML-Tagset-3.10-6.fc8.noarch.rpm

Install modul perl(HTML::Parser)
rpm -ivh perl-HTML-Parser-3.56-2.fc8.i386.rpm

pada langkah 12. install couriespassd biasanya untuk fedora core 7/8 tidak terinstall xinetd , install paket rpm untuk xinetd tersebut :

Lakukan :
rpm –ivh /downloads/xinetd-2.3.13-6.2.1.i386.rpm

kemudian ikuti langkah 1 - 13 dari qmailrocks.com dan pada langkah ke 14 yaitu instalasi clamAV ada sedikit penyesuaian .

Modul – modul perl yang dibutuhkan untuk install Clam Antivirus & SpamAssassin :
Digest::SHA1
Digest::HMAC
Net::DNS
Time::HiRes
HTML::Tagset
HTML::Parser
Pod::Usage
Parse::Syslog
Statistics::Distributions
Dan juga file perl berikut :
perl-suidperl
unzip

Untuk mengecek ada atau tidak adanya file perl modul di OS Linux FC7 lakukan langkah berikut , jalankan script sebagai NON-ROOT user!!
su bantal
/downloads/qmailrocks/scripts/util/check_perlmods.script
hasilnya :
QMR check_perlmods v1.1
Checking for the existence of needed perl modules…
checking for Time::HiRes…
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/Time/HiRes.pm
dll …

kemudian instalasi paket ClamAV :Masuk Ke direktori downloads dan Paket-paket rpm clam anti virus disesuaikan dengan kebutuhan , dapat anda cari paket yang sesuai di web site www.clamav.net atau cari paket rpm yang tercantum dibawah ini dengan google .cd downloads
rpm -ivh clamav-db-0.91.2-1.fc7.rf.i386.rpm
rpm -ivh clamav-0.91.2-1.fc7.rf.i386.rpm
rpm -ivh clamav-devel-0.91.2-1.fc7.rf.i386.rpm
rpm -ivh clamd-0.91.2-1.fc7.rf.i386.rpmEdit File clamd.conf
vi /etc/clamd.conf
Hasilnya :“LogFile” - set ke /tmp/clamd.log
“LogTime” - uncommmented.
“LogSyslog” - uncommented.
“User” – set ke qscand
“ScanMail” - uncommented.

Kemudian create user untuk menjalankan Clamd yaitu user qscand
Perintahnya :
useradd -c “Qmail-Scanner Account” -s /bin/false qscand

start Clamd.
/etc/init.d/clamd stop
/etc/init.d/clamd start

Update Clam Antivirus untuk pertama kali :
/usr/bin/freshclam -l /var/log/clamav/clam-update.log
kalau berhasil akan ditampilkan seperti ini:

[root@server clamav] freshclam -l /var/log/clamav/clamav-update.log
ClamAV update process started at Sun Oct 24 23:36:22 2004
main.cvd is up to date (version: 27, sigs: 23982, f-level: 2, builder: tomek)
daily.cvd is up to date (version: 549, sigs: 1583, f-level: 3, builder: ccordes)

Buat file crontab –e untuk menjalankan update antivirus ( user ROOT )
crontab -e

masukkan
25 1 * * * /usr/bin/freshclam –quiet -l /var/log/clamav/freshclam.log

Save crontab dan exit. ( :wq )

Untuk instalasi SpamAssassins ,

www.qmailrocks.com )Instalasi , masuk ke direktori downloads :cd /downloads/qmailrocks/perlmods/rpms/
install paket perl mail SpamAssassin
rpm -Uvh perl-Mail-SpamAssassin-3.0.2-1.i386.rpm
cd /downloads/qmailrocks/
rpm -Uvh spamassassin-3.0.2-1.i386.rpm spamassassin-tools-3.0.2-1.i386.rpm
Bila terjadi ERROR , install perl-libwww modul terlebih dahulu :
Masuk ke direktori downloads
cd /downloads
install perl-libwww
rpm –ivh perl-libwww-perl-5.805-1.1.1.noarch.rpm
jalankan kembali install SpamAssassins
cd /downloads/qmailrocks/
rpm -Uvh spamassassin-3.0.2-1.i386.rpm spamassassin-tools-3.0.2-1.i386.rpm
dan ikuti langkah-langkah cara instalasi dari qmailrocks.comkemudian pada langkah ke 16 , ketika mencoba menjalankan qmailstats akan ada error seperti ini :[root@server qlogtools-3.1]# /var/qmail/bin/qmailstats
sort: open failed: +2: No such file or directory
sort: open failed: +2: No such file or directory

coba rubah file zdeferrals, zfailures dan zsuccesses di /usr/local/qmailanalog/bin

rubah parameter ’sort +2′  menjadi ’sort -k 3′  .

jalankan kembali qmailstats :

/var/qmail/bin/qmailstats
dan tidak akan muncul error tersebut .

ikuti sampai langkah terakhir sesuai dengan tutorial qmailrocks.com

Instalasi selesai , baik untuk fedora core linux 6/7/8 , Redhat Enterprise Linux ataupun Centos 5.1 dan Centos 5.2 .

Sebenarnya untuk alasan keamanan terhadap spam email , tutorial dari qmailrocks menggunakan konfigurasi dari instalasi SpamAssasin yang paling minimum , untuk itu perlu di optimalkan dengan melakukan instalasi paket-paket lain yang dibutuhkan .

optimize qmailrocks packageDapat dicoba dan kalau ada error atau bug bisa digoogle .Selamat Mencoba .

This entry was posted on Monday, October 6th, 2008 at 3:57 am and is filed under Linux. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

One Response to “Cara Install qmailrocks.com packages for Fedora , Centos and Redhat Enterprise Linux .”

  1. nrspot.com » Blog Archive » ClamAV / Clam Anti Virus on October 10th, 2008 at 7:45 am

    […] to install ClamAV , Qmailrocks and Linux Fedora Core 6/7/8 or Linux Centos 5.1/5.2 could be found here […]

Leave a Reply

You must be logged in to post a comment.

  • www.Metrochip8.com Toko Komputer Online

    ads3kecil.jpgKomputer, Printer, Notebook, Network & Aksesoris, Harga Murah Diskon.
  • Recent Posts

    • Aplikasi Human Resource Development & penggajian menggunakan Open Source
    • Cuma 2 Operator yang Penuhi Kewajiban Wimax
    • Postel: Wimax TRG Penuhi Syarat TKDN
    • 2010, TRG Bangun Pabrik Wimax Rp 65 Miliar di Jababeka
    • 2009 / Sun / MySQL / Open Source
    • Produk Wimax, BTS, CPE, EMS Server dari trg.co.id
    • Nokia N810 menggunakan Linux Maemo 4 dan bisa mengakses Wimax.
    • Green SQL & Perlindungan terhadap SQL Injection Attack
    • PT. LEN ( Lembaga Elektronika Nasional) ikut memproduksi perangkat WiMax
    • Menkominfo Tanggung Jawab Jika BWA & WiMAX Gagal Berjalan
  • Categories

    • Anti Virus
    • Fashion
    • Hardware
    • Linux
    • Lowongan Kerja
    • Music
    • Networking
    • Open Source
    • Security
    • Sistem Informasi
    • Software
    • Sport
    • Wimax
    • Wireless
  • Pages

    • About
    • Komputer & Aksesoris
    • Product
  • Spam Blocked

    108 spam comments
    blocked by
    Akismet
  • Blogroll

    • Cisco System
    • donalda
    • Fedora Linux
    • Linux Centos
    • Metropolar Komputer / Metrochip8
    • Narcist Union
    • Narcist Union Blog
    • Narcit Union , Genuine Leather, Wallet Dompet, Tas, Bahan Kulit
    • Redhat Linux
    • Smart Surabaya
  • RSS Linux

    • Creating An NFS-Like Standalone Storage Server With GlusterFS On Ubuntu 10.04
    • Qmail OpenLdap On Ubuntu
    • Installing Apache2 With PHP5 And MySQL Support On Mandriva 2010.1 Spring (LAMP)
    • vtiger Installation On CentOS 5.x
    • How To Set Up Apache2 With mod_fcgid And PHP5 On Ubuntu 10.04
  • RSS Fedora

    • Virtual Hosting With PureFTPd And MySQL (Incl. Quota And Bandwidth Management) On Fedora 13
    • Integrating XCache Into PHP5 (Fedora 13/CentOS 5.5 & Apache2)
    • Integrating APC (Alternative PHP Cache) Into PHP5 (Fedora 13 & Apache2)
    • Fedora 13 Samba Standalone Server With tdbsam Backend
    • Installing Lighttpd With PHP5 And MySQL Support On Fedora 13
  • Meta

    • Login
    • Entries RSS
    • Comments RSS
    • WordPress.org
  • Alexa


Copyright © nrspot.com - Powered by WordPress
ProSense theme created by Dosh Dosh and The Wrong Advices.