spamassassin

Move spam messages

Deliver messages that have been flagged as spam by Spamassassin or dspam into special IMAP folders and remove some clutter from your Inbox.

Spamassassin
There's a couple of ways to have spam messages filltered depending on how your Spamassassin has been configured:

  • Spamassassin has been configured to add X-Spam- headers to messages:
    if (/^X-Spam-Flag: *YES/)
    {
      to $VHOME/Maildir/.Spam
      exit
    }
  • Subject rewritten:
    if (/^X-Spam-Flag: *YES/)
    {
      to $VHOME/Maildir/.Spam
      exit
    }

SARE Rules

SpamAssassin Rules Emporium (SARE) has a robust collection of SpamAssassin rules that can really help your spam detection rates.

Installation

Rules du jour
Rule_du_jour script is not at that link anymore. However, according to the SARE website (last checked June 27, 2009) the rules weren't being updated. Don't need to run rulesdujour each night until they start updating the rules again (if ever).
Download the rules du jour script that will update the SARE ruleset automatically:

cd /usr/local/bin
wget http://sandgnat.com/rdj/rules_du_jour
chmod ugo+x rules_du_jour

Technology:

Razor

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

Technology:

Pyzor

Pyzor is a collaborative, networked system to detect and block spam using identifying digests of messages.

Installation
Download the latest source:

cd /extra/src
wget http://umn.dl.sourceforge.net/sourceforge/pyzor/pyzor-0.4.0.tar.bz2
tar -jxvf pyzor-0.4.0.tar.bz2
cd pyzor-0.4.0

Build and install Pyzor:

python setup.py build
python setup.py install

Create a directory for the Pyzor config files:

mkdir /etc/mail/spamassassin/.pyzor

Add Pyzor to the SpamAssassin config file /etc/mail/spamassassin/local.cf:

pyzor_options --homedir /etc/mail/spamassassin/.pyzor

Technology:

SpamAssassin

Prerequisites
Spamassassin has a boatload of Perl modules that it uses. Some can be installed via yum:

yum -y install perl-HTML-Parser perl-Digest-SHA1 perl-Digest-HMAC perl-Net-DNS
yum -y install perl-HTML-Tagset perl-Time-HiRes perl-DBI

Others are best installed from CPAN:

perl -MCPAN -e shell
install HTML::Parser
install Pod::Usage
install Parse::Syslog
install Statistics::Distributions
install MIME::Base64
install Net::DNS
install Net::SMTP
install Mail::SPF::Query
install LWP
install LWP::UserAgent
install HTTP::Date

Technology:

Subscribe to RSS - spamassassin

Recent Updates

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