Using razor2 with spamassassin
You need two things for Razor support. You must enable it in Spamassassin. In a standard system, /etc/mail/spamassassin/v310.pre. Make sure that this line is uncommented:
loadplugin Mail::SpamAssassin::Plugin::Razor2
Second, make sure that you have the module installed. The quick way to check is to use perl directly. I also included a sample of a module that I knew did not exist. If you see that error when you try to use Razor2, then you need to install the Razor agent from the RepoForge repo:
# perl -e 'use Mail::SpamAssassin::Plugin::Razor2'
# perl -e 'use Mail::SpamAssassin::Plugin::Razor3'
Can't locate Mail/SpamAssassin/Plugin/Razor3.pm in @INC (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
# rpm -qa | grep Razor
perl-Razor-Agent-2.85-1.el5.rf
Finally verify that spamassassin is actually using this module when it loads:
# spamassassin -D < riz.cf 2>&1 | grep Razor
Jun 26 18:13:42.521 [303] dbg: plugin: loading Mail::SpamAssassin::Plugin::Razor2 from @INC