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/SHA.pm 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/String.pm line 9. [/quote]
The "String.pm" 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) }
}[/code]
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.
Spamassassin/Razor plugin startup errors
-
- Posts: 10642
- Joined: 2005/08/05 15:19:54
- Location: Northern Illinois, USA
Re: Spamassassin/Razor plugin startup errors
That's what happens when you install stuff outside of yum.
Try 'yum install perl-Digest-SHA1'
Try 'yum install perl-Digest-SHA1'
Re: Spamassassin/Razor plugin startup errors
If you install the EPEL repository then they have a lot of this already packaged and ready to install via yum.
[code]
# 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
URL : http://razor.sourceforge.net/
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.
[/code]
Installing that proceeds to pull in the packages perl-Digest-HMAC perl-Digest-SHA1 perl-Net-DNS perl-Time-HiRes and perl-URI
[code]
# 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
URL : http://razor.sourceforge.net/
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.
[/code]
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
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.
Thanks for the help.
Re: Spamassassin/Razor plugin startup errors
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
[code]
# yum provides \*/Digest/SHA.pm
[/code]
[code]
# yum provides \*/Digest/SHA.pm
[/code]