Quick tip to improve the quality of the spam sigs

Forum for getting help with Project Gamera, Spamassassin, Clamav, qmail-scanner and other anti-spam tools.
User avatar
mikeshinn
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 4149
Joined: Thu Feb 07, 2008 7:49 pm
Location: Chantilly, VA

Quick tip to improve the quality of the spam sigs

Unread post by mikeshinn »

Make sure you regularly run the spamassassin rule updater. The default ruleset, provided by spamassasin.org can be updated with this command:

sa-update

And then you need to restart spamassasin to load the new rules. We recommend you set this up as a cronjob.

If you want to use additional rule providers, here is an example using the main and a third party rule provider and also checking the GPG signatures on the updates to ensure they are legit:

sa-update --allowplugins --gpgkey D1C035168C1EBC08464946DA258CDB3ABDE9DC10 --channel saupdates.openprotect.com --channel updates.spamassassin.org

If you are missing GPG keys you will need to check with those projects for their keys (we do not run those projects). Here are some example commands that may work for you:

wget http://spamassassin.apache.org/updates/GPG.KEY
sa-update --import GPG.KEY

gpg --keyserver pgp.mit.edu --recv-keys BDE9DC10
sa-update --import pub.gpg

You can also check new rules to make sure they work by running this command:

spamassassin --lint
Galactic Zero
Forum Regular
Forum Regular
Posts: 471
Joined: Mon Dec 06, 2004 10:43 pm

Unread post by Galactic Zero »

After running spamassassin --lint I get no reply, it just returns to the next line. Is this a good thing?

Franklyn
User avatar
mikeshinn
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 4149
Joined: Thu Feb 07, 2008 7:49 pm
Location: Chantilly, VA

Unread post by mikeshinn »

Yep, that means no errors.
mdtiberi
Forum Regular
Forum Regular
Posts: 124
Joined: Thu Jan 17, 2008 5:48 pm

Unread post by mdtiberi »

A little more information on implementing openprotect.com SA rules update.

http://saupdates.openprotect.com/
Kalimari
Forum Regular
Forum Regular
Posts: 526
Joined: Wed Jan 02, 2008 3:21 pm
Location: United Kingdom

Unread post by Kalimari »

Galactic Zero wrote:After running spamassassin --lint I get no reply, it just returns to the next line. Is this a good thing?
Franklyn
For anyone interested in seeing what is going on behind the scenes and viewing the full output, try running

Code: Select all

spamassassin --lint -D
Post Reply