Install Razor: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
[[User_Tips_%26_Tricks#Anti_Spam|Back]]<br> | [[User_Tips_%26_Tricks#Anti_Spam|Back]]<br> | ||
[[https://www.binarytides.com/install-spamassassin-with-postfix-dovecot/ Razor]]<br> | |||
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] | 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] | ||
Revision as of 20:14, 14 April 2024
Back
[Razor]
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