spamassassin

comeback

Verified User
Joined
Aug 21, 2012
Messages
34
Hello,

I speak French, sorry for my bad English.

I installed DirectAdmin on CentOS 6.3.

I want to install spammassain, and I do this command:

Code:
yum -y install perl-ExtUtils-MakeMaker perl-Digest-SHA perl-Net-DNS perl-NetAddr-IP perl-Archive-Tar perl-IO-Zlib perl-Digest-SHA perl-Mail-SPF perl-IP-Country perl-Razor2 perl-Net-Ident perl-IO-Socket-INET6 perl-IO-Socket-SSL perl-Mail-DKIM perl-DBI perl-Encode-Detect

Code:
cd /usr/local/directadmin/scripts
./spam.sh

I have many errors:

Code:
checking module dependencies and their versions...

***************************************************************************
ERROR: the required HTML::Parser module is not installed,
minimum required version is 3.43.

  HTML is used for an ever-increasing amount of email so this dependency
  is unavoidable.  Run "perldoc -q html" for additional information.


***************************************************************************
ERROR: the required Time::HiRes module is not installed.

  Used by asynchronous DNS lookups to operate timeouts with subsecond
  precision and to report processing times accurately.


***************************************************************************
NOTE: the optional IP::Country module is not installed.

  Used by the RelayCountry plugin (not enabled by default) to determine
  the domain country codes of each relay in the path of an email.


***************************************************************************
NOTE: the optional Razor2 module is not installed,
minimum required version is 2.61.

  Used to check message signatures against Vipul's Razor collaborative
  filtering network. Razor has a large number of dependencies on CPAN
  modules. Feel free to skip installing it, if this makes you nervous;
  SpamAssassin will still work well without it.

  More info on installing and using Razor can be found
  at [url]http://wiki.apache.org/spamassassin/InstallingRazor[/url] .


***************************************************************************
NOTE: the optional Net::Ident module is not installed.

  If you plan to use the --auth-ident option to spamd, you will need
  to install this module.


***************************************************************************
NOTE: the optional LWP::UserAgent module is not installed.

  The "sa-update" program requires this module to make HTTP requests.


***************************************************************************
NOTE: the optional HTTP::Date module is not installed.

  The "sa-update" program requires this module to make HTTP
  If-Modified-Since GET requests.

REQUIRED module missing: HTML::Parser
REQUIRED module missing: Time::HiRes
optional module missing: IP::Country
optional module missing: Razor2
optional module missing: Net::Ident
optional module missing: LWP::UserAgent
optional module missing: HTTP::Date

warning: some functionality may not be available,
please read the above report before continuing!

make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target `install'.  Stop.
Cannot find /usr/bin/sa-update after install. Check for errors above.


Cannot find /usr/bin/spamd.  Check above for errors or missing perl modules.
If needed, use cpan to install the missing modules, eg:
  cpan -i Archive::Tar Digest::SHA Mail::SPF IP::Country Net::Ident IO::Socket::INET6 Compress::Zlib Mail::DKIM LWP::UserAgent HTTP::Date Encode::Detect ExtUtils::MakeMaker NetAddr::IP Mail::SpamAssassin::Plugin::Razor2 Razor2::Client::Agent IO::Socket::SSL DBI

Press enter to answer [yes] if it asks you to install dependencies (it will prepend them to the queue)
Answer no if it asks: Are you ready for manual configuration? [yes] no

Do you have an idea of the error?

This is a test server, I can erase and recommend several times, I use DirectAdmin to learn

I also had problems at the beginning, to install DirectAdmin, now I found a solution:

Code:
wget -q -O - http://www.atomicorp.com/installers/atomic | sh 
rpm -ihv http://centos.alt.ru/repository/centos/6/x86_64/centalt-release-6-1.noarch.rpm

For the latest versions of Apache, MySQL, PHP, etc. hanging down installing DirectAdmin

Code:
yum -y install wget gcc gcc-c++ flex bison make bind bind-libs bind-utils openssl openssl-devel perl quota libaio libcom_err-devel libcurl-devel tar diffutils nano dbus.x86_64 db4-devel cyrus-sasl-devel perl-ExtUtils-Embed.x86_64 cpan gd zlib-devel zip unzip libcap-devel cronie

Code:
wget http://www.directadmin.com/setup.sh
chmod 755 setup.sh
./setup.sh

Thank you for your help.
 

This is exactly what I did.

I just added two deposits, otherwise at the end of the installation, apache, php, mysql, etc. are not up to date, and I have to do everything by hand, with builds




I took the instructions to that address, but it does not work.

I got the error message I posted.

Thank you for your help


Regards
 
What about if you install the missing packages listed?

During installation setup.sh file ask you what version to install unless you did choose the "standard" install

Regards
 
It works. I edited the file / etc / exim.conf

The file / etc / exim.conf does not exist. Is it serious?

How to verify that Spam Assassin works well.

thank you
 
exim.conf doenst exist? That's pretty strange.

You need to reistore exim.conf file from custombuild and than edit it to work with spamassassin

Regards
 
exim.conf doenst exist? That's pretty strange.

You need to reistore exim.conf file from custombuild and than edit it to work with spamassassin

Regards

Excuse me, I was wrong! I wrote twice /etc/exim.conf

The file exists and I have changed.

This file is /etc/perl/CPAN/Config.pm.

It does not exist, is it serious?
 
I have folders:

Code:
/root/.cpan/
/root/.cpan/sources
/root/.cpan/sources/authors

But there are no files in these directories
 
Try run this:

Code:
echo "no"  | /usr/bin/perl -MCPAN -e "CPAN::Shell->force(qw(install YAML XS Scalar::Util HTML::Parser Net::DNS LWP Net::SSLeay Net::SSLeay Geo::IP DBD::mysql IPC::ShareLite Cache Cache::Cache IP::Country NetAddr::IP IO::Socket IO::Socket::SSL IO::Socket::INET6 Net::DNS::SEC Compress::Zlib Crypt::DES Digest::HMAC_MD5 Digest::SHA1 HTML::Tagset Net::SNMP Net::Server Socket6 URI Archive::Tar Digest::SHA Mail::SPF IP::Country Net::Ident Compress::Zlib Mail::DKIM LWP::UserAgent HTTP::Date Encode::Detect ExtUtils::MakeMaker IO::Socket::SSL DBI Geo::IP Geo::IP::PurePerl ExtUtils::Embed));"

Regards
 
There is a message in a loop:

Code:
Please enter the URL of your CPAN mirror
CPAN needs access to at least one CPAN mirror.

As you did not allow me to connect to the internet you need to supply
a valid CPAN URL now.
 
Hello,

I delete my server and recommend.

I took this instruction:

Code:
export PERL_EXTUTILS_AUTOINSTALL="--defaultdeps"

cpan -i Archive::Tar Digest::SHA Mail::SPF IP::Country Net::Ident IO::Socket::INET6 Compress::Zlib Mail::DKIM LWP::UserAgent HTTP::Date Encode::Detect ExtUtils::MakeMaker NetAddr::IP Mail::SpamAssassin::Plugin::Razor2 Razor2::Client::Agent IO::Socket::SSL DBI

I have this error message:

Code:
'YAML' not installed, will not store persistent state

I took this instruction:

Code:
cd /usr/local/directadmin/scripts
./spam.sh

At the end of the installation I get this message:

Code:
run:
  /usr/bin/spamd -d -c -m 15

I edited the file /etc/exim.conf and restart exim

I can not find the file:

Code:
/etc/perl/CPAN/Config.pm
or
/root/.cpan/CPAN/MyConfig.pm

How do I know if SpamAssassin works?

Thank you for your help
 
Did you run the command provided at the end of spam assassin installation? Did you restart exim after exim.conf changes?

For test, just check headers of any incoming email, you should have spamassassin related lines.

Regards
 
Back
Top