Install Razor

From QmailToaster
Revision as of 09:40, 16 March 2024 by Ebroch (talk | contribs) (Created page with "This how to came from Gilbert T. Gutierrez, Jr. Operations Manager of [http://phoenixinternet.net/ Phoenix Internet] based on [http://wiki.apache.org/spamassassin/RazorSiteWide RazorSiteWide] <br> Create temporer razor folder <blockquote><code> mkdir razor<br> cd razor </code></blockquote> Install razor-agents-sdk <blockquote><code> wget http://prdownloads.sourceforge.net/razor/razor-agents-sdk-2.07.tar.bz2?download<br> tar xvjf razor-agents-sdk-2.07.tar.bz2<br> c...")
(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

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