Razor

Credits

Various bits of code, scripts, and procedures were put together with information from John Simpson's qmail.jms1.net website. It's an excellent resource on managing and setting up a Qmail server.

Vipul's Razor is a distributed, collaborative, spam detection and filtering network. Through user contribution, Razor establishes a distributed and constantly updating catalogue of spam in propagation that is consulted by email clients to filter out known spam.

Installation
Install the prerequisite Perl modules:

perl -MCPAN -e shell
install Time::HiRes
install Digest::SHA1
install MIME::Base64
install Test::Simple
install Test::Harness
install Getopt::Long
install File::Copy
install URI::Escape
exit

Download the latest version of the Razor agents:

cd /extra/src/
wget http://easynews.dl.sourceforge.net/sourceforge/razor/razor-agents-2.84.tar.bz2
tar -jxvf razor-agents-2.84.tar.bz2
cd razor-agents-2.84

Build and install the programs:

perl Makefile.PL
make
make test
make install

Make a directory to hold the configuration files and then create a default config:

mkdir /etc/mail/spamassassin/.razor
razor-admin -home=/etc/mail/spamassassin/.razor/ -create

Razor v2 requires reporters to be registered so their reputations can be computed over time and they can participate in the revocation mechanism. You can have a username and password automatically assigned (details will be saved in /etc/mail/spamassassin/.razor//identity-rui_6F7ubn) during registration with:

razor-admin -home=/etc/mail/spamassassin/.razor/ -register

Download a list of Razor servers:

razor-admin -home=/etc/mail/spamassassin/.razor/ -discover

Edit /etc/mail/spamassassin/v310.pre and uncomment the Razor2 plugin line:

loadplugin Mail::SpamAssassin::Plugin::Razor2

Edit the Razor agent config file, /etc/mail/spamassassin/.razor/razor-agent.conf, and add the config directory

razorhome = /etc/mail/spamassassin/.razor/

Then edit SpamAssassin's config file /etc/mail/spamassassin/local.cf and tell it where the Razor config directory is:

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

Restart SpamAssassin:

svc -t /service/spamd

Recent Updates

  • 8 months 3 weeks ago
    1.27.2 update
  • 9 months 4 days ago
    Drupal 10/11 config
  • 9 months 6 days ago
  • PHP
    9 months 6 days ago
    PHP 8.3.11 and AlmaLinux
  • 9 months 6 days ago
    New version of Pound