Install Razor

From QmailToaster wiki
Revision as of 15:10, 7 December 2009 by Fsgiudice (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

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

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

vi /etc/mail/spamassassin/

and add the following 2 lines:

use_razor2 1
razor_config /etc/mail/spamassassin/.razor/razor-agent.conf