Install Razor
Back
This how to came from Gilbert T. Gutierrez, Jr. Operations Manager of Phoenix Internet based on RazorSiteWide
Create temporer razor folder
mkdir razor
cd razor
Install razor-agents-sdk
wget http://prdownloads.sourceforge.net/razor/razor-agents-sdk-2.07.tar.bz2?download
tar xvjf razor-agents-sdk-2.07.tar.bz2
cd razor-agents-sdk-2.07
perl Makefile.PL && make && make install
cd ..
Install razor-agents
wget http://prdownloads.sourceforge.net/razor/razor-agents-2.84.tar.bz2?download
tar xvjf razor-agents-2.84.tar.bz2
cd razor-agents-2.84
perl Makefile.PL && make && make install
cd ..
create the directory /etc/mail/spamassassin/.razor
mkdir /etc/mail/spamassassin/.razor
razor-admin -home=/etc/mail/spamassassin/.razor -register
razor-admin -home=/etc/mail/spamassassin/.razor -create
razor-admin -home=/etc/mail/spamassassin/.razor -discover
I then edit v310.pre and uncomment the razor2 plugin.
vi /etc/mail/spamassassin/v310.pre
I then edit /etc/mail/spamassassin/.razor/razor-agent.conf
vi /etc/mail/spamassassin/.razor/razor-agent.conf
and append:
razorhome = /etc/mail/spamassassin/.razor/
To call the razor2 plugin I edit local.cf
vi /etc/mail/spamassassin/local.cf
and add the following 2 lines:
use_razor2 1
razor_config /etc/mail/spamassassin/.razor/razor-agent.conf