6. Mailscanner :: Sendmail :: 04 Perl Installs

Table of Contents

MailScanner:: Sendmail

Perl packages that need installing.

We need to configure Pel for the first tme.

Run this line and mae sure it runs clean.

perl -MCPAN -e shell

If you seem to be having issues with per run the folloing command in the shell to reconfigure.

Answer no to the first question so you can enter your defaults.

cpan> o conf init

If the configurations for cpan is bad, then run this command at the cpan> prompt (o conf init)

This script some times needs to be run twice to get everyhting installed.

Make note of any errors that arise and find out why.

 

Copy the following to a file, say called runme, then type sh ./runme

echo 'Press Ctrl-c to cancel, enter to continue'
read
for i in Bundle::CPAN NetAddr::IP Mail::DomainKeys Mail::DKIM Data::Dump Encode::Detect \
   Net::DNS::Resolver::Programmable Razor2::Client::Agent Net::Ident IO::Socket::INET6 IO::Socket::SSL IP::Country::Fast \
   Parse::RecDescent Inline NetAddr::IP ExtUtils::ParseXS IO::String Test::Manifest \
   AnyDBM_File Archive::Zip bignum Carp Compress::Zlib Convert::BinHex Convert::TNEF \
   Data::Dumper Date::Parse DirHandle Fcntl File::Basename File::Copy FileHandle \
   File::Path File::Temp Filesys::Df HTML::Entities HTML::Parser HTML::TokeParser IO IO::File IO::Pipe \
   Mail::Header Math::BigInt Math::BigRat MIME::Base64 MIME::Decoder MIME::Decoder::UU MIME::Head MIME::Parser \
   MIME::QuotedPrint MIME::Tools Net::CIDR Net::IP OLE::Storage_Lite Pod::Escapes Pod::Simple POSIX Scalar::Util \
   Socket Storable Sys::Hostname::Long Sys::Syslog Test::Pod Test::Simple Time::HiRes Time::localtime \
   Archive::Tar bignum Business::ISBN Business::ISBN::Data Data::Dump DB_File DBD::SQLite DBI Digest Digest::HMAC \
   Digest::MD5 Digest::SHA1 Encode::Detect Error ExtUtils::CBuilder ExtUtils::ParseXS Getopt::Long Inline \
   IO::String IO::Zlib IP::Country Mail::ClamAV Mail::SPF Mail::SPF::Query Module::Build \
   Net::CIDR::Lite Net::DNS Net::DNS::Resolver::Programmable Net::LDAP Parse::RecDescent \
   Test::Harness Test::Manifest Text::Balanced URI version YAML \
   Mail::SpamAssassin Mail::SpamAssassin::Plugin::Razor2 \
   Mail::SpamAssassin::Plugin::Pyzor Mail::SpamAssassin::Plugin::DCC
do
   echo perl -MCPAN -e 'install "'$i'" '
   echo '--------------------------------------'
   perl -MCPAN -e 'install '$i' '
   echo '---------------------^----------^-------'
   echo ' How did the install of this go = '$i' '
   echo 'Press Ctrl-c to cancel, enter to continue'
   read
done

 

perl -MCPAN -e 'install Bundle::CPAN'
perl -MCPAN -e 'install Filesys::Df'
perl -MCPAN -e 'install NetAddr::IP'
Problems around recursive dependencies:
Bundle::CPAN
 => ExtUtils::MakeMaker
 => M/MS/MSCHWERN/ExtUtils-MakeMaker-6.62.tar.gz
 => File::Spec
 => S/SM/SMUELLER/PathTools-3.33.tar.gz
 => File::Path
 => D/DL/DLAND/File-Path-2.08.tar.gz
 => File::Spec.
Run install manually from shell

MailScanner -v
Then installed
perl -MCPAN -e 'install Business::ISBN'
perl -MCPAN -e 'install Business::ISBN::Data'
perl -MCPAN -e 'install Data::Dump'
perl -MCPAN -e 'install Error'
perl -MCPAN -e 'install Inline'
perl -MCPAN -e 'install IO::String'
perl -MCPAN -e 'install Mail::SpamAssassin'
perl -MCPAN -e 'install Mail::SPF'
perl -MCPAN -e 'install Net::DNS::Resolver::Programme'
perl -MCPAN -e 'install SAVI'
perl -MCPAN -e 'install Test::Manifest'
What to do about the rest.

perl -MCPAN -e 'install Mail::DomainKeys'
perl -MCPAN -e 'install Mail::DKIM'
perl -MCPAN -e 'install Data::Dump'
perl -MCPAN -e 'install Encode::Detect'
perl -MCPAN -e 'install Net::DNS::Resolver::Programmable'
perl -MCPAN -e 'install Razor2::Client::Agent'
perl -MCPAN -e 'install Net::Ident'
perl -MCPAN -e 'install IO::Socket::INET6'
perl -MCPAN -e 'install IO::Socket::SSL'
perl -MCPAN -e 'install IP::Country::Fast'
perl -MCPAN -e 'install Parse::RecDescent'
perl -MCPAN -e 'install Inline'
perl -MCPAN -e 'install NetAddr::IP'
perl -MCPAN -e 'install ExtUtils::ParseXS'
perl -MCPAN -e 'install IO::String'
perl -MCPAN -e 'install Test::Manifest'
perl -MCPAN -e 'install AnyDBM_File'
perl -MCPAN -e 'install Archive::Zip'
perl -MCPAN -e 'install bignum'
perl -MCPAN -e 'install Carp'
perl -MCPAN -e 'install Compress::Zlib'
perl -MCPAN -e 'install Convert::BinHex'
perl -MCPAN -e 'install Convert::TNEF'
perl -MCPAN -e 'install Data::Dumper'
perl -MCPAN -e 'install Date::Parse'
perl -MCPAN -e 'install DirHandle'
perl -MCPAN -e 'install Fcntl'
perl -MCPAN -e 'install File::Basename'
perl -MCPAN -e 'install File::Copy'
perl -MCPAN -e 'install FileHandle'
perl -MCPAN -e 'install File::Path'
perl -MCPAN -e 'install File::Temp'
perl -MCPAN -e 'install Filesys::Df'
perl -MCPAN -e 'install HTML::Entities'
perl -MCPAN -e 'install HTML::Parser'
perl -MCPAN -e 'install HTML::TokeParser'
perl -MCPAN -e 'install IO'
perl -MCPAN -e 'install IO::File'
perl -MCPAN -e 'install IO::Pipe'
perl -MCPAN -e 'install Mail::Header'
perl -MCPAN -e 'install Math::BigInt'
perl -MCPAN -e 'install Math::BigRat'
perl -MCPAN -e 'install MIME::Base64'
perl -MCPAN -e 'install MIME::Decoder'
perl -MCPAN -e 'install MIME::Decoder::UU'
perl -MCPAN -e 'install MIME::Head'
perl -MCPAN -e 'install MIME::Parser'
perl -MCPAN -e 'install MIME::QuotedPrint'
perl -MCPAN -e 'install MIME::Tools'
perl -MCPAN -e 'install Net::CIDR'
perl -MCPAN -e 'install Net::IP'
perl -MCPAN -e 'install OLE::Storage_Lite'
perl -MCPAN -e 'install Pod::Escapes'
perl -MCPAN -e 'install Pod::Simple'
perl -MCPAN -e 'install POSIX'
perl -MCPAN -e 'install Scalar::Util'
perl -MCPAN -e 'install Socket'
perl -MCPAN -e 'install Storable'
perl -MCPAN -e 'install Sys::Hostname::Long'
perl -MCPAN -e 'install Sys::Syslog'
perl -MCPAN -e 'install Test::Pod'
perl -MCPAN -e 'install Test::Simple'
perl -MCPAN -e 'install Time::HiRes'
perl -MCPAN -e 'install Time::localtime'
perl -MCPAN -e 'install Archive::Tar'
perl -MCPAN -e 'install bignum'
perl -MCPAN -e 'install Business::ISBN'
perl -MCPAN -e 'install Business::ISBN::Data'
perl -MCPAN -e 'install Data::Dump'
perl -MCPAN -e 'install DB_File'
perl -MCPAN -e 'install DBD::SQLite'
perl -MCPAN -e 'install DBI'
perl -MCPAN -e 'install Digest'
perl -MCPAN -e 'install Digest::HMAC'
perl -MCPAN -e 'install Digest::MD5'
perl -MCPAN -e 'install Digest::SHA1'
perl -MCPAN -e 'install Encode::Detect'
perl -MCPAN -e 'install Error'
perl -MCPAN -e 'install ExtUtils::CBuilder'
perl -MCPAN -e 'install ExtUtils::ParseXS'
perl -MCPAN -e 'install Getopt::Long'
perl -MCPAN -e 'install Inline'
perl -MCPAN -e 'install IO::String'
perl -MCPAN -e 'install IO::Zlib'
perl -MCPAN -e 'install IP::Country'
perl -MCPAN -e 'install Mail::ClamAV' DO NOT DO
perl -MCPAN -e 'install Mail::SPF'
perl -MCPAN -e 'install Mail::SPF::Query'
perl -MCPAN -e 'install Module::Build'
perl -MCPAN -e 'install Net::CIDR::Lite'
perl -MCPAN -e 'install Net::DNS'
perl -MCPAN -e 'install Net::DNS::Resolver::Programmable'
perl -MCPAN -e 'install Net::LDAP'
perl -MCPAN -e 'install Parse::RecDescent'
perl -MCPAN -e 'install Test::Harness'
perl -MCPAN -e 'install Test::Manifest'
perl -MCPAN -e 'install Text::Balanced'
perl -MCPAN -e 'install URI'
perl -MCPAN -e 'install version'
perl -MCPAN -e 'install YAML'
perl -MCPAN -e 'install Mail::SpamAssassin'
perl -MCPAN -e 'install Mail::SpamAssassin::Plugin::Razor2'
perl -MCPAN -e 'install Mail::SpamAssassin::Plugin::Pyzor'
perl -MCPAN -e 'install Mail::SpamAssassin::Plugin::DCC'
perl -MCPAN -e 'install SAVI'

Issues

Removed module from list as not valid

Problems with DB_File

perl -MCPAN -e 'install Parse::RecDescent'

(^This may not be needed)

wget http://mirror.centos.org/centos/6/os/i386/Packages/perl-Parse-RecDescent-1.962.2-2.el6.noarch.rpm

rpm -ihv perl-Parse-RecDescent-1.962.2-2.el6.noarch.rpm

yum install perl-File-System