Free Web Hosting | free host | Free Web Space | BlueHost Review

       
       

 

 

 

__________

Linux command and other help

__________

Fedora Core 2 installation.

(for DNS server)

__________

Fedora Core 4 installation.

(for DNS server)

__________

Net-Qmail Installation Powerful Linux E-mail Server

_________

To install webmin in fedora core 3

__________

INSTALLATION OF MRTG & RRD TOOL (Fedora Core2/ Redhat 8/ 9)

__________

Squid Installation.

__________

Another Squid installation

_________

Apache Installation

__________

ISP Servers IPtables firewall setup

__________

Linux Monitoring system Setup

_________

Linux Base POP/ POP3 and SMTP traffic Virus and Spam Scanning/ filtering Firewall

_________

Clam Anti Virus Installation

_________

Spam-Assassin Installation

_________

Bonding / Binding Multiple interfaces into single interface

_________

Use more than 1 DSL modems without noticing disconnectivity

 

_________

 

 

 

 

 

 

 

 

 

 

 

 

rrizwanahmed@gmail.com 

 

All configuration are working fine in live/ LAB environments

 

 

 

SpamAssassin, Razor, Pyzor and DCC Installation

 

 

 

           

 

SpamAssassin Installation

 

         

First Of First:

            Install some perl modules for you Redhat/ Fedora Core Distribution, before continuing your SpamAssassin/ Qmail installation, so you will not intimate between your installation for dependencies or face low errors. (find rpms for the same perl modules according to you distribution)

Before installations check weither you already have these modules installed or not.

You will better find these perl modules for your distribution form.

 

Or you can install these perl modules from Perl CPAN, with the help of

 

perl -MCPAN -e shell

 

OR go to  http://ftp.heanet.ie/pub/freshrpms/pub/dag/dries/     to download rpm's

perldoc -l Digest::SHA1

perldoc 僕 Digest::HMAC

perldoc 僕 Net::DNS

perldoc 僕 Time::HiRes

perldoc 僕 HTML::Tagset

perldoc 僕 HTML::Parser

perldoc 僕 Pod::Usage         

perldoc 僕 Parse::Syslog

perldoc 僕 Statistics::Distributions

perldoc 僕 MIME::Base64

perldoc 僕 Email::MIME::Encodings

perldoc 僕 MIME::Lite

perldoc 僕 suidperl

perldoc -l Sys::Syslog

perldoc 僕 HTTP::Date

perldoc 僕 IO::Zlib

 

Optional:

perldoc -l DB::File

perldoc 僕 Archive::Tar

perldoc 僕 Net::SMTP

perldoc 僕 Mail::SPF

perldoc 僕 Mail::SPF::Query

perldoc 僕 Net::CIDR::Lite

perldoc 僕 Sys::Hostname::Long

perldoc 僕 IP::Country::Fast

perldoc 僕 Net::Ident

perldoc 僕 IO::Socket::INET6

perldoc 僕 Socket6

perldoc 僕 IO::Socket::SSL

perldoc 僕 Net::SSLeay

perldoc 僕 Compress::Zlib

perldoc 僕 Compress::Raw::Zlib

perldoc 僕 IO::Compress::Base

perldoc 僕 Mail::DKIM

perldoc 僕 Mail::DomainKeys

perldoc 僕 Crypt::OpenSSL::RSA

perldoc 僕 Mail::Address

perldoc 僕 Encode::Detect

perldoc 僕 Apache::Test

perldoc 僕 Sys::SysLog::Mail

perldoc 僕 Encode

 

Perl modules list:

perl-Email-MIME-Encodings-1.3-1.2.fc4.rf.noarch.rpm

wget http://ftp.belnet.be/packages/dries.ulyssis.org/fedora/fc4/i386/RPMS.dries/perl-Email-MIME-Encodings-1.3-1.2.fc4.rf.noarch.rpm

perl-MIME-Base64-2.06-1.i386.rpm

wget ftp://ftp.funet.fi/pub/mirrors/archive.redhat.com/contrib/libc5/i386/perl-MIME-Base64-2.06-1.i386.rpm

perl-MIME-Lite-3.01-2.2.fc4.rf.noarch.rpm

wget http://ftp.belnet.be/packages/dries.ulyssis.org/fedora/fc4/i386/RPMS.dries/perl-MIME-Lite-3.01-2.2.fc4.rf.noarch.rpm

perl-Parse-Syslog-1.09-1.fc4.rf.noarch.rpm

wget http://ftp.belnet.be/packages/dries.ulyssis.org/fedora/fc4/i386/RPMS.dries/perl-Parse-Syslog-1.09-1.fc4.rf.noarch.rpm

perl-Statistics-Distributions-1.02-1.2.fc4.rf.noarch.rpm

wget http://ftp.belnet.be/packages/dries.ulyssis.org/fedora/fc4/i386/RPMS.dries/perl-Statistics-Distributions-1.02-1.2.fc4.rf.noarch.rpm

perl-suidperl-5.8.6-24.i386.rpm         (for FedoraCore-4)

wget http://download.fedora.redhat.com/pub/fedora/linux/core/updates/4/i386/perl-suidperl-5.8.6-24.i386.rpm

perl- suidperl-5.8.3-18 rpm                (for FedoraCore-2)

wget http://download.fedora.redhat.com/pub/fedora/linux/core/2/i386/os/Fedora/RPMS/perl-suidperl-5.8.3-18.1.i386.rpm

 

perl(Digest::HMAC)

perl(Digest::SHA1)

perl(HTML::Parser)

perl(HTML::Tagset)

perl(NET::DNS)

perl(TIME::HiRes)

perl(Pod::Usage)

perl(DBD::File)

perl(Sys::Syslog)

wget http://ftp.heanet.ie/pub/freshrpms/pub/dag/dries/fedora/fc4/i386/RPMS.dries/perl-Parse-Syslog-1.09-1.fc4.rf.noarch.rpm

 

perl(Sys::SysLog::Mail)

wget http://ftp.heanet.ie/pub/freshrpms/pub/dag/dries/fedora/fc4/i386/RPMS.dries/perl-Parse-Syslog-Mail-0.11-1.fc4.rf.noarch.rpm

LWP (aka libwww-perl) (from CPAN)

Perl(HTTP::Date)

Perl(IO::Zlib)

wget http://ftp.heanet.ie/pub/freshrpms/pub/dag/dries/fedora/fc4/i386/RPMS.dries/perl-IO-Zlib-1.05-1.fc4.rf.noarch.rpm

Perl(Archive::Tar)

 

Optional:

 

Perl(Net::SMTP)

Perl(Mail::SPF)

wget http://ftp.heanet.ie/pub/freshrpms/pub/dag/dries/fedora/fc4/i386/RPMS.dries/perl-Mail-SPF-2.005-1.fc4.rf.noarch.rpm

Perl(Mail::SPF::Query)

wget http://ftp.heanet.ie/pub/freshrpms/pub/dag/dries/fedora/fc4/i386/RPMS.dries/perl-Mail-SPF-Query-1.999.1-1.2.fc4.rf.noarch.rpm

perl(Net::CIDR::Lite)

wget http://ftp.heanet.ie/pub/freshrpms/pub/dag/dries/fedora/fc4/i386/RPMS.dries/perl-Net-CIDR-Lite-0.20-1.2.fc4.rf.noarch.rpm

perl(Sys::Hostname::Long)

wget http://ftp.heanet.ie/pub/freshrpms/pub/dag/dries/fedora/fc4/i386/RPMS.dries/perl-Sys-Hostname-Long-1.4-1.2.fc4.rf.noarch.rpm

Perl(IP::Country::Fast)

wget http://ftp.heanet.ie/pub/freshrpms/pub/dag/dries/fedora/fc4/i386/RPMS.dries/perl-IP-Country-2.23-1.fc4.rf.noarch.rpm

Perl(Net::Ident)

Perl(IO::Socket::INET6)

wget http://ftp.heanet.ie/pub/freshrpms/pub/dag/dries/fedora/fc4/i386/RPMS.dries/perl-IO-Socket-INET6-2.51-1.2.fc4.rf.noarch.rpm

perl(Socket6)

wget http://ftp.heanet.ie/pub/freshrpms/pub/dag/dries/fedora/fc4/i386/RPMS.dries/perl-Socket6-0.19-1.2.fc4.rf.i386.rpm

Perl(IO::Socket::SSL)

wget http://ftp.heanet.ie/pub/freshrpms/pub/dag/dries/fedora/fc4/i386/RPMS.dries/perl-IO-Socket-SSL-1.07-2.fc4.rf.noarch.rpm

perl(Net::SSLeay)

wget http://ftp.heanet.ie/pub/freshrpms/pub/dag/dries/fedora/fc4/i386/RPMS.dries/perl-Net-SSLeay-1.30-1.fc4.rf.i386.rpm

Perl(Compress::Zlib)

wget http://ftp.heanet.ie/pub/freshrpms/pub/dag/dries/fedora/fc4/i386/RPMS.dries/perl-IO-Compress-Zlib-2.005-1.fc4.rf.noarch.rpm

Perl(Compress::Raw::Zlib)

wget http://ftp.heanet.ie/pub/freshrpms/pub/dag/dries/fedora/fc4/i386/RPMS.dries/perl-Compress-Raw-Zlib-2.005-1.fc4.rf.i386.rpm

perl(IO::Compress::Base)

wget http://ftp.heanet.ie/pub/freshrpms/pub/dag/dries/fedora/fc4/i386/RPMS.dries/perl-IO-Compress-Base-2.005-1.fc4.rf.noarch.rpm

Perl(Mail::DKIM)

wget http://ftp.heanet.ie/pub/freshrpms/pub/dag/dries/fedora/fc4/i386/RPMS.dries/perl-Mail-DKIM-0.26-1.fc4.rf.noarch.rpm

Perl(Mail::DomainKeys)

wget http://ftp.heanet.ie/pub/freshrpms/pub/dag/dries/fedora/fc4/i386/RPMS.dries/perl-Mail-DomainKeys-1.0-1.fc4.rf.noarch.rpm

perl(Crypt::OpenSSL::RSA)

wget http://ftp.heanet.ie/pub/freshrpms/pub/dag/dries/fedora/fc4/i386/RPMS.dries/perl-Crypt-OpenSSL-RSA-0.25-1.fc4.rf.i386.rpm

perl(Mail::Address)

wget http://ftp.heanet.ie/pub/freshrpms/pub/dag/dries/fedora/fc4/i386/RPMS.dries/perl-Email-Address-1.887-1.fc4.rf.noarch.rpm

Perl(Encode)

wget http://ftp.heanet.ie/pub/freshrpms/pub/dag/dries/fedora/fc4/i386/RPMS.dries/perl-Encode-2.20-1.fc4.rf.i386.rpm

Perl(Encode::Detect)

Perl(Apache::Test)

 

Optional:

Tnef:     TNEF provides a way to unpack those pesky Microsoft MS-TNEF MIME attachments. It operates like tar in order to upack any files which may have been put into the MS-TNEF attachment instead of being attached seperately.

wget http://switch.dl.sourceforge.net/sourceforge/tnef/tnef-1.4.3.tar.gz

AddOn: download Pico text editor for Fedora Core.

wget http://ftp.belnet.be/packages/dries.ulyssis.org/fedora/fc4/i386/RPMS.dries/pine-4.64-1.2.fc4.rf.i386.rpm

 

 

 

 

 

SpamAssassin Installation :

 

 

Now download tar.gz file of Mail-SpamAssassin from http://www.spamassassin.org

Now untar your SpamAssassin tar file.

I use Mail-SpamAssassin-3.1.8.tar.gz

tar 奔xvf  Mail-SpamAssassin-3.1.8.tar.gz

cd Mail-SpamAssassin-3.1.8

perl Makefile.pl

make

make install

 

 

Now start your SpamAssassin by typing this command on your command prompt

Now check your spamassassin daemon is it running or not

 

[root@qmailemailtest src]# ps aux | grep spamd

root      9833 26.6 10.4 32460 26896 ?       S    17:41   0:01 /usr/bin/spamd -x -u spamd -H /home/spamd -d

spamd     9845  0.0 10.4 32460 26900 ?       S    17:41   0:00 spamd child

spamd     9846  0.0 10.4 32460 26900 ?       S    17:41   0:00 spamd child

root      9849  0.0  0.2  4920  580 pts/0    R    17:41   0:00 grep spamd

(OPTIONAL: For NetQmail installation)

IMPORTANT: To Scan email痴 of your SMTP relay accept users , just add this in your tcp.smtp file.

 

127.0.0.:allow,RELAYCLIENT="",QS_SPAMASSASSIN="on"

202.125.153.:allow,RELAYCLIENT="",QS_SPAMASSASSIN="on"

10.:allow,RELAYCLIENT="",QS_SPAMASSASSIN="on"

192.168.1.:allow,RELAYCLIENT="",QS_SPAMASSASSIN="on"

80.:allow,RELAYCLIENT="",QS_SPAMASSASSIN="on"

192.168.0.:allow,RELAYCLIENT="",QS_SPAMASSASSIN="on"

,QS_SPAMASSASSIN="on"     will allow spamassassin to scan emails arrived from your SMTP relay enabled servers/ IP痴  

 

Razor Installation  

Download Razor tar file from http://sourceforge.net/project/showfiles.php?group_id=3978 

tar -jxvf razor-agents-sdk-2.07.tar.bz2
tar -jxvf razor-agents-2.82.tar.bz2
cd razor-agents-sdk-2.07
perl Makefile.PL
make
make test
make install
cd ../razor-agents-2.82
perl Makefile.PL
make
make test
make install  

Now that Razor is installed we must run three utilities to make it working:  

razor-admin -home=/etc/mail/spamassassin/.razor -create
razor-admin -home=/etc/mail/spamassassin/.razor -discover
razor-admin -home=/etc/mail/spamassassin/.razor 睦egister  

IMPORTANT: make sure your server have internet access to create , discover, and register your razor installation.  

 

 

Pyzor Installation  

To install Pyzor locate the tar with the latest version and download it from

https://sourceforge.net/project/showfiles.php?group_id=50000 

then uncompress it and proceed to install:  

tar -jxvf pyzor-0.4.0.tar.bz2
cd pyzor-0.4.0
python setup.py build
python setup.py install
python -c 'import gdbm' && echo 'gdbm found'

 

run the next command to complete pyzor installation  

pyzor --homedir /etc/mail/spamassassin discover  

IMPORTANT: make sure your server have internet access

 

DCC Installation  

This is the last step, locate DCC and download it from

http://www.rhyolite.com/anti-spam/dcc/ 

uncompress it, compile and install it:  

tar -xzvf dcc.tar.Z
cd dcc-1.3.42/
./configure
make
make install  

We must now edit the following enabling DCC:  

pico /etc/mail/spamassassin/v310.pre  

Locate the line

#loadplugin Mail::SpamAssassin::Plugin::DCC  

and uncomment it

loadplugin Mail::SpamAssassin::Plugin::DCC

Save the file and that's done.

IMPORTANT: after these packages installation try to reinstall your only and only your Spamassassin if this not work with Pyzor, Razor and DCC.

IMPORTANT: make sure your server have internet access

 

 

 

 

 

 

 

-------------Configuration Complete-------------

 

 

 

 

 

 

 

 

 

 

 

 

 


 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

@Copyright 2007 Rizwan, All Rights Reserved