Instalação do
SpamAssassin:
São necessários alguns módulos extras para o funcionamento do SpamAssassin.
Existem duas formas de se fazer isso, uma é a instalação de módulo a módulo, o grande problema disso é que diversos módulos tem pré-requisitos, fazendo a lista crescer ainda mais.
A segunda forma é através do CPAN, que facilita a instalação instalando os pré-requisitos para os módulos que deseja instalar.
Aqui coloco a primeira forma e na minha opinião a mais trabalhosa, mas para fins de conhecimento e talvez de resolução de problemas pela segunda forma aqui está:
Primeiro a instalação através dos módulos um a um, aconselho fazer o download de todos os listados e depois a instalação na ordem que se segue mais abaixo.
URL:
http://search.cpan.org/
Através dela pode-se buscar os módulos necessários.
Download Digest::SHA1
URL:
http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/Digest-SHA1-2.11.tar.gz
Download HTML::Parser >= 3.43
URL:
http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/HTML-Parser-3.56.tar.gz
Download Net::DNS
URL:
http://search.cpan.org/CPAN/authors/id/O/OL/OLAF/Net-DNS-0.63.tar.gz
Download HTTP::Date
URL:
http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/libwww-perl-5.813.tar.gz
Download IO::Zlib
URL:
http://search.cpan.org/CPAN/authors/id/T/TO/TOMHUGHES/IO-Zlib-1.09.tar.gz
Download Archive::Tar
URL:
http://search.cpan.org/CPAN/authors/id/K/KA/KANE/Archive-Tar-1.38.tar.gz
Download MIME::Base64
URL:
http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/MIME-Base64-3.07.tar.gz
Download DB_File
URL:
http://search.cpan.org/CPAN/authors/id/P/PM/PMQS/DB_File-1.817.tar.gz
Download Net::SMTP
URL:
http://search.cpan.org/CPAN/authors/id/G/GB/GBARR/libnet-1.22.tar.gz
Download Mail::SPF
URL:
http://search.cpan.org/CPAN/authors/id/J/JM/JMEHNLE/mail-spf/Mail-SPF-v2.005.tar.gz
Download IP::Country::Fast
URL:
http://search.cpan.org/CPAN/authors/id/N/NW/NWETTERS/IP-Country-2.25.tar.gz
Download Net::Ident
URL:
http://search.cpan.org/CPAN/authors/id/J/JP/JPC/Net-Ident-1.20.tar.gz
Download IO::Socket::INET6
URL:
http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/IO-Socket-INET6-2.54.tar.gz
Download IO::Socket::SSL
URL:
http://search.cpan.org/CPAN/authors/id/S/SU/SULLR/IO-Socket-SSL-1.14.tar.gz
Download Compress::Zlib
URL:
http://search.cpan.org/CPAN/authors/id/P/PM/PMQS/Compress-Zlib-2.012.tar.gz
Download Time::HiRes
URL:
http://search.cpan.org/CPAN/authors/id/J/JH/JHI/Time-HiRes-1.9715.tar.gz
Download Mail::DKIM
URL:
http://search.cpan.org/CPAN/authors/id/J/JA/JASLONG/Mail-DKIM-0.32.tar.gz
Download Mail::DomainKeys
URL:
http://search.cpan.org/CPAN/authors/id/A/AN/ANTHONYU/Mail-DomainKeys-1.0.tar.gz
Download Encode::Detect
URL:
http://search.cpan.org/CPAN/authors/id/J/JG/JGMYERS/Encode-Detect-1.01.tar.gz
Download IO-Compress-Zlib-2.012.tar.gz
URL:
http://search.cpan.org/CPAN/authors/id/P/PM/PMQS/IO-Compress-Zlib-2.012.tar.gz
Download HTML-Tagset-3.20.tar.gz
URL:
http://search.cpan.org/CPAN/authors/id/P/PE/PETDANCE/HTML-Tagset-3.20.tar.gz
Download IO-Compress-Base-2.012.tar.gz
URL:
http://search.cpan.org/CPAN/authors/id/P/PM/PMQS/IO-Compress-Base-2.012.tar.gz
Download Compress-Raw-Zlib-2.012.tar.gz
URL:
http://search.cpan.org/CPAN/authors/id/P/PM/PMQS/Compress-Raw-Zlib-2.012.tar.gz
Download IO-Compress-Zlib-2.012.tar.gz
URL:
http://search.cpan.org/CPAN/authors/id/P/PM/PMQS/IO-Compress-Zlib-2.012.tar.gz
Download Module-Build-0.2808.tar.gz
URL:
http://search.cpan.org/CPAN/authors/id/K/KW/KWILLIAMS/Module-Build-0.2808.tar.gz
Download ExtUtils-CBuilder-0.23.tar.gz
URL:
http://search.cpan.org/CPAN/authors/id/K/KW/KWILLIAMS/ExtUtils-CBuilder-0.23.tar.gz
Download Digest-HMAC-1.01.tar.gz
URL:
http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/Digest-HMAC-1.01.tar.gz
Download Net-IP-1.25.tar.gz
URL:
http://search.cpan.org/CPAN/authors/id/M/MA/MANU/Net-IP-1.25.tar.gz
Download SpamAssassin
URL:
http://spamassassin.apache.org/
URL:
http://search.cpan.org/CPAN/authors/id/J/JM/JMASON/Mail-SpamAssassin-3.2.5.tar.gz
Download Net-SSLeay-1.33_01.tar.gz
http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/Net-SSLeay-1.33_01.tar.gz
Download Sub-Uplevel-0.1901.tar.gz
URL:
http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/Sub-Uplevel-0.1901.tar.gz
Download Test-Exception-0.27.tar.gz
URL:
http://search.cpan.org/CPAN/authors/id/A/AD/ADIE/Test-Exception-0.27.tar.gz
Download Array-Compare-1.16.tar.gz
URL:
http://search.cpan.org/CPAN/authors/id/D/DA/DAVECROSS/Array-Compare-1.16.tar.gz
Download Test-Warn-0.11.tar.gz
URL:
http://search.cpan.org/CPAN/authors/id/C/CH/CHORNY/Test-Warn-0.11.tar.gz
Download Tree-DAG_Node-1.06.tar.gz
URL:
http://search.cpan.org/CPAN/authors/id/C/CO/COGENT/Tree-DAG_Node-1.06.tar.gz
Download Test-1.25.tar.gz
URL:
http://search.cpan.org/CPAN/authors/id/S/SB/SBURKE/Test-1.25.tar.gz
Download Crypt-OpenSSL-Random-0.04.tar.gz
URL:
http://search.cpan.org/CPAN/authors/id/I/IR/IROBERTS/Crypt-OpenSSL-Random-0.04.tar.gz
Download Crypt-OpenSSL-RSA-0.25.tar.gz
URL:
http://search.cpan.org/CPAN/authors/id/I/IR/IROBERTS/Crypt-OpenSSL-RSA-0.25.tar.gz
Download MailTools-2.03.tar.gz
URL:
http://search.cpan.org/CPAN/authors/id/M/MA/MARKOV/MailTools-2.03.tar.gz
Download TimeDate-1.16.tar.gz
URL:
http://search.cpan.org/CPAN/authors/id/G/GB/GBARR/TimeDate-1.16.tar.gz
Download Pod-Escapes-1.04.tar.gz
URL:
http://search.cpan.org/CPAN/authors/id/S/SB/SBURKE/Pod-Escapes-1.04.tar.gz
Download Pod-Simple-3.07.tar.gz
URL:
http://search.cpan.org/CPAN/authors/id/A/AR/ARANDAL/Pod-Simple-3.07.tar.gz
Download Test-Pod-1.26.tar.gz
URL:
http://search.cpan.org/CPAN/authors/id/P/PE/PETDANCE/Test-Pod-1.26.tar.gz
Download Digest-SHA-5.47.tar.gz
URL:
http://search.cpan.org/CPAN/authors/id/M/MS/MSHELOR/Digest-SHA-5.47.tar.gz
Download Net-DNS-Resolver-Programmable-v0.003.tar.gz
URL:
http://search.cpan.org/CPAN/authors/id/J/JM/JMEHNLE/net-dns-resolver-programmable/Net-DNS-Resolver-Programmable-v0.003.tar.gz
Download NetAddr-IP-4.007.tar.gz
URL:
http://search.cpan.org/CPAN/authors/id/L/LU/LUISMUNOZ/NetAddr-IP-4.007.tar.gz
Download Net-LibIDN-0.10.tar.gz
URL:
http://search.cpan.org/CPAN/authors/id/T/TH/THOR/Net-LibIDN-0.10.tar.gz
Download Socket6-0.20.tar.gz
URL:
http://search.cpan.org/CPAN/authors/id/U/UM/UMEMOTO/Socket6-0.20.tar.gz
Após feitos todos os Downloads, segue a instalação dos módulos.
Obs.: Atentar às mensagens dos comandos "perl Makefile.Pl" e "make test", pois muitas vezes trazem informações como falta de pré-requisitos entre outras coisas.
Para instalar via CPAN, pular esses passos.
tar xvzf IO-Compress-Base-2.012.tar.gz
$ cd IO-Compress-Base-2.012
$ perl Makefile.PL
$ make
$ make test
# make install
tar xvzf Compress-Raw-Zlib-2.012.tar.gz
$ cd Compress-Raw-Zlib-2.012
$ perl Makefile.PL
$ make
$ make test
# make install
$ tar xvzf IO-Compress-Zlib-2.012.tar.gz
$ cd IO-Compress-Zlib-2.012
$ perl Makefile.PL
$ make
$ make test
# make install
tar xvzf Compress-Zlib-2.012.tar.gz
$ cd Compress-Zlib-2.012
$ perl Makefile.PL
$ make
# make install
$ tar xvzf Digest-SHA1-2.11.tar.gz
$ cd Digest-SHA1-2.11
$ perl Makefile.PL
$ make
$ make test
# make install
$ tar xvzf HTML-Tagset-3.20.tar.gz
$ cd HTML-Tagset-3.20
$ perl Makefile.PL
$ make
$ make test
# make install
$ tar xvzf HTML-Parser-3.56.tar.gz
$ cd HTML-Parser-3.56
$ perl Makefile.PL
$ make
$ make test
# make install
$ tar xvzf IO-Zlib-1.09.tar.gz
$ cd IO-Zlib-1.09
$ perl Makefile.PL
$ make
$ make test
# make install
$ tar xvzf Time-HiRes-1.9715.tar.gz
$ cd Time-HiRes-1.9715
$ perl Makefile.PL
$ make
$ make test
# make install
$ tar xvzf Archive-Tar-1.38.tar.gz
$ cd Archive-Tar-1.38
$ perl Makefile.PL
$ make
$ make test
# make install
$ tar xvzf Module-Build-0.2808.tar.gz
$ cd Module-Build-0.2808
$ perl Makefile.PL
$ make
$ make test
# make install
$ tar xvzf ExtUtils-CBuilder-0.23.tar.gz
$ cd ExtUtils-CBuilder-0.23
$ perl Makefile.PL
$ make
$ make test
# make install
$ tar xvzf Encode-Detect-1.01.tar.gz
$ cd Encode-Detect-1.01
$ perl Makefile.PL
$ make
$ make test
# make install
$ tar xvzf DB_File-1.817.tar.gz
$ cd DB_File-1.817
$ perl Makefile.PL
$ make
$ make test
# make install
$ tar xvzf libnet-1.22.tar.gz
$ cd libnet-1.22
$ perl Makefile.PL
$ make
$ make test
# make install
$ tar xvzf MIME-Base64-3.07.tar.gz
$ cd MIME-Base64-3.07
$ perl Makefile.PL
$ make
$ make test
# make install
$ tar xvzf Digest-HMAC-1.01.tar.gz
$ cd Digest-HMAC-1.01
$ perl Makefile.PL
$ make
$ make test
# make install
$ tar xvzf Net-IP-1.25.tar.gz
$ cd Net-IP-1.25
$ perl Makefile.PL
$ make
$ make test
# make install
$ tar xvzf Net-DNS-0.63.tar.gz
$ cd Net-DNS-0.63
$ perl Makefile.PL
$ make
# make install
$ tar xvzf Net-Ident-1.20.tar.gz
$ cd Net-Ident-1.20
$ perl Makefile.PL
$ make
# make install
$ tar xvzf Socket6-0.20.tar.gz
$ cd Socket6-0.20
$ perl Makefile.PL
$ make
$ make test
# make install
$ tar xvzf IO-Socket-INET6-2.54.tar.gz
$ cd IO-Socket-INET6-2.54
$ perl Makefile.PL
$ make
$ make test
# make install
$ tar xvzf Net-LibIDN-0.10.tar.gz
$ cd Net-LibIDN-0.10
$ perl Makefile.PL
$ make
$ make test
# make install
$ tar xvzf Array-Compare-1.16.tar.gz
$ cd Array-Compare-1.16
$ perl Makefile.PL
$ make
$ make test
# make install
$ tar xvzf Tree-DAG_Node-1.06.tar.gz
$ cd Tree-DAG_Node-1.06
$ perl Makefile.PL
$ make
$ make test
# make install
$ tar xvzf Sub-Uplevel-0.1901.tar.gz
$ cd Sub-Uplevel-0.1901
$ perl Makefile.PL
$ make
$ make test
# make install
$ tar xvzf Test-1.25.tar.gz
$ cd Test-1.25
$ perl Makefile.PL
$ make
$ make test
# make install
$ tar xvzf Test-Exception-0.27.tar.gz
$ cd Test-Exception-0.27
$ perl Makefile.PL
$ make
$ make test
# make install
$ tar xvzf Test-Warn-0.11.tar.gz
$ cd Test-Warn-0.11
$ perl Makefile.PL
$ make
$ make test
# make install
$ tar xvzf Net-SSLeay-1.33_01.tar.gz
$ cd Net-SSLeay-1.33_01
$ perl Makefile.PL
$ make
# make install
$ tar xvzf IO-Socket-SSL-1.14.tar.gz
$ cd IO-Socket-SSL-1.14
$ perl Makefile.PL
$ make
# make install
$ tar xvzf libwww-perl-5.813.tar.gz
$ cd libwww-perl-5.813
$ perl Makefile.PL
$ make
# make install
$ tar xvzf IP-Country-2.25.tar.gz
$ cd IP-Country-2.25
$ perl Makefile.PL
$ make
$ make test
# make install
$ tar xvzf Crypt-OpenSSL-Random-0.04.tar.gz
$ cd Crypt-OpenSSL-Random-0.04
$ perl Makefile.PL
$ make
$ make test
# make install
$ tar xvzf Crypt-OpenSSL-RSA-0.25.tar.gz
$ cd Crypt-OpenSSL-RSA-0.25
$ perl Makefile.PL
$ make
$ make test
# make install
$ tar xvzf TimeDate-1.16.tar.gz
$ cd TimeDate-1.16
$ perl Makefile.PL
$ make
$ make test
# make install
$ tar xvzf Pod-Escapes-1.04.tar.gz
$ cd Pod-Escapes-1.04
$ perl Makefile.PL
$ make
$ make test
# make install
$ tar xvzf Pod-Simple-3.07.tar.gz
$ cd Pod-Simple-3.07
$ perl Makefile.PL
$ make
$ make test
# make install
$ tar xvzf Test-Pod-1.26.tar.gz
$ cd Test-Pod-1.26
$ perl Makefile.PL
$ make
$ make test
# make install
$ tar xvzf MailTools-2.03.tar.gz
$ cd MailTools-2.03
$ perl Makefile.PL
$ make
$ make test
# make install
$ tar xvzf Mail-DomainKeys-1.0.tar.gz
$ cd Mail-DomainKeys-1.0
$ perl Makefile.PL
$ make
$ make test
# make install
$ tar xvzf Digest-SHA-5.47.tar.gz
$ cd Digest-SHA-5.47
$ perl Makefile.PL
$ make
$ make test
# make install
$ tar xvzf Mail-DKIM-0.32.tar.gz
$ cd Mail-DKIM-0.32
$ perl Makefile.PL
$ make
# make install
$ tar xvzf Net-DNS-Resolver-Programmable-v0.003.tar.gz
$ cd Net-DNS-Resolver-Programmable-v0.003
$ perl Makefile.PL
$ make
$ make test
# make install
$ tar xvzf NetAddr-IP-4.007.tar.gz
$ cd NetAddr-IP-4.007
$ perl Makefile.PL
$ make
# make install
$ tar xvzf Mail-SPF-v2.005.tar.gz
$ cd Mail-SPF-v2.005
$ perl Makefile.PL
$ make
# make install
$ tar xvzf Mail-SpamAssassin-3.2.5.tar.gz
$ cd Mail-SpamAssassin-3.2.5
$ perl Makefile.PL
$ make
$ make test
# make install
Com isso já foi foi instalado o Spamassassin com grande parte de suas funções já habilitadas para uso.
É, ficou bem grande, e caso eu não tenha esquecido nenhum módulo, está tudo aí.
Mas como gostamos de facilidade, vamos para o meio mais fácil.