Page 1 of 1

Spamassassin/Razor plugin startup errors

Posted: 2013/10/30 14:22:29
by TomE
I'm getting an error message when spamassassin tries to load the Razor2 plugin. It doesn't appear to be a fatal error as far as SA, but I'm guessing the Razor plugin isn't being loaded.

[quote]Oct 30 09:59:22 linux spamd[25500]: Can't locate Digest/ in @INC (@INC contains: lib /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8) at /usr/lib/perl5/vendor_perl/5.8.8/Razor2/ line 9. [/quote]

The "" file at line 9 looks like this:

[code]BEGIN {
eval { require Digest::SHA; import Digest::SHA qw(sha1_hex); 1 }
or do { require Digest::SHA1; import Digest::SHA1 qw(sha1_hex) }

I don't know where to go from here as I don't know anything about perl, any suggestions on how to remedy this would be appreciated.

Re: Spamassassin/Razor plugin startup errors

Posted: 2013/10/30 15:03:28
by gerald_clark
That's what happens when you install stuff outside of yum.

Try 'yum install perl-Digest-SHA1'

Re: Spamassassin/Razor plugin startup errors

Posted: 2013/10/30 15:45:48
by TrevorH
If you install the EPEL repository then they have a lot of this already packaged and ready to install via yum.

# yum info perl-Razor-Agent
Loaded plugins: downloadonly, priorities
Available Packages
Name : perl-Razor-Agent
Arch : x86_64
Version : 2.85
Release : 6.el6
Size : 119 k
Repo : epel
Summary : Use a Razor catalogue server to filter spam messages
License : Artistic 2.0
Description : Vipul's Razor is a distributed, collaborative, spam detection and
: filtering network. Razor establishes a distributed and constantly
: updating catalogue of spam in propagation. This catalogue is used
: by clients to filter out known spam. On receiving a spam, a Razor
: Reporting Agent (run by an end-user or a troll box) calculates and
: submits a 20-character unique identification of the spam (a SHA
: Digest) to its closest Razor Catalogue Server. The Catalogue Server
: echos this signature to other trusted servers after storing it in its
: database. Prior to manual processing or transport-level reception,
: Razor Filtering Agents (end-users and MTAs) check their incoming mail
: against a Catalogue Server and filter out or deny transport in case of
: a signature match. Catalogued spam, once identified and reported by
: a Reporting Agent, can be blocked out by the rest of the Filtering
: Agents on the network.
Installing that proceeds to pull in the packages perl-Digest-HMAC perl-Digest-SHA1 perl-Net-DNS perl-Time-HiRes and perl-URI

Re: Spamassassin/Razor plugin startup errors

Posted: 2013/10/30 16:15:20
by TomE
I'm not sure what it was I installed outside of yum, unless sa-update is the culprit. Anyway, SHA1 was already installed and up to date, but SHA was not. I installed that per Gerald's suggestion, and SA started with no issues.

Thanks for the help.

Re: Spamassassin/Razor plugin startup errors

Posted: 2013/10/30 16:38:15
by TrevorH
That looks like a bug that should be reported to EPEL if your copy came from them. For the future, you can discover things like this for yourself by using e.g

# yum provides \*/Digest/