![]() |
|
|
|
||||
|
__________ __________ (for DNS server) __________ (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) __________ __________ _________ __________ ISP Servers IPtables firewall setup __________ _________ Linux Base POP/ POP3 and SMTP traffic Virus and Spam Scanning/ filtering Firewall _________ _________ Spam-Assassin Installation _________ Bonding / Binding Multiple interfaces into single interface _________ Use more than 1 DSL modems without noticing disconnectivity
_________
|
All configuration are working fine in live/ LAB environments
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 perl-MIME-Base64-2.06-1.i386.rpm perl-MIME-Lite-3.01-2.2.fc4.rf.noarch.rpm perl-Parse-Syslog-1.09-1.fc4.rf.noarch.rpm perl-Statistics-Distributions-1.02-1.2.fc4.rf.noarch.rpm perl-suidperl-5.8.6-24.i386.rpm (for FedoraCore-4) perl- suidperl-5.8.3-18 rpm (for FedoraCore-2)
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)
perl(Sys::SysLog::Mail) LWP (aka libwww-perl) (from CPAN) Perl(HTTP::Date) Perl(IO::Zlib) Perl(Archive::Tar)
Optional:
Perl(Net::SMTP) Perl(Mail::SPF) Perl(Mail::SPF::Query) perl(Net::CIDR::Lite) perl(Sys::Hostname::Long) Perl(IP::Country::Fast) Perl(Net::Ident) Perl(IO::Socket::INET6) perl(Socket6) Perl(IO::Socket::SSL) perl(Net::SSLeay) Perl(Compress::Zlib) Perl(Compress::Raw::Zlib) perl(IO::Compress::Base) Perl(Mail::DKIM) Perl(Mail::DomainKeys) perl(Crypt::OpenSSL::RSA) perl(Mail::Address) Perl(Encode) 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.
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
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 Now that
Razor is installed we must run three utilities to make it working: razor-admin -home=/etc/mail/spamassassin/.razor
-create 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 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 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.
-------------Configuration Complete-------------
|
|
||
|
|
||||