Install Razor: Difference between revisions

From QmailToaster
Jump to navigation Jump to search
No edit summary
(Blanked the page)
Tag: Blanking
Line 1: Line 1:
[[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]


<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>
cd razor-agents-sdk-2.07<br>
perl Makefile.PL && make && make install<br>
cd ..<br>
</code></blockquote>
Install razor-agents
<blockquote><code>
wget http://prdownloads.sourceforge.net/razor/razor-agents-2.84.tar.bz2?download <br>
tar xvjf razor-agents-2.84.tar.bz2<br>
cd razor-agents-2.84<br>
perl Makefile.PL && make && make install<br>
cd ..<br>
</code></blockquote>
create the directory /etc/mail/spamassassin/.razor
<blockquote><code>
mkdir /etc/mail/spamassassin/.razor<br>
razor-admin -home=/etc/mail/spamassassin/.razor -register<br>
razor-admin -home=/etc/mail/spamassassin/.razor -create<br>
razor-admin -home=/etc/mail/spamassassin/.razor -discover<br>
</code></blockquote>
I then edit v310.pre and uncomment the razor2 plugin.
<blockquote><code>
vi /etc/mail/spamassassin/v310.pre
</code></blockquote>
I then edit /etc/mail/spamassassin/.razor/razor-agent.conf
<blockquote><code>
vi /etc/mail/spamassassin/.razor/razor-agent.conf
</code></blockquote>
and append:
<blockquote><code>
razorhome = /etc/mail/spamassassin/.razor/
</code></blockquote>
To call the razor2 plugin I edit local.cf
<blockquote><code>
vi /etc/mail/spamassassin/local.cf
</code></blockquote>
and add the following 2 lines:
<blockquote><code>
use_razor2 1<br>
razor_config /etc/mail/spamassassin/.razor/razor-agent.conf<br>
</code></blockquote>

Revision as of 19:54, 16 April 2024