May 26, 2004

Automated spam learning on Linux with SpamAssassin

Hey! Enki has moved his blog to Armyofevilrobots.com. Check it out after you are done here. This page is going nowhere though...

So I told you all a while back about an experiment with a spam-trap mailbox. I am happy to announce that it is working exactly as I had hoped, and has cut down on the number of spam emails that I have been receiving at my primary employer's place of business.

So here is the howto:

First of all, create a new user account, or virtual mail account for your spamtrap. Mine is Al Goholic, but you can choose whatever you like. I suggest a mailbox name that has zero chance of receiving legitimate mail. I am also assuming that this mailbox will be located in /var/spool/mail/usernamehere. Finally, you will need a fairly new Spamassassin, since the older ones in many linux distros do not include the bayesian filter.

So next off, we have to create a cron job that will run the spam learning. Mine is here (and a little crude, but it works):

#!/bin/bash
if [[ `cat /var/spool/mail/algoholic | wc -c` -ge 10 ]] ; then
sa-learn --spam --showdots --mbox /var/spool/mail/algoholic
rm -f /var/spool/mail/algoholic
fi

Now that we have the spam learner ready, we can start placing links all over the place which point at our decoy user. If you want, you can add a style="display:none" parameter inside of the a href so that the link is invisible to people, but visible to computers.

That is all folks. It takes a couple of weeks for you to get fully indexed by the spam bots, although you can also hit some reply to unsubscribe links with this email address substituted for your real addy if you want.

Posted by Enki at May 26, 2004 10:49 AM | TrackBack
Comments

u r a wanker

Posted by: at June 21, 2004 01:47 AM

Your ultimate video on demand solutions

Posted by: at September 13, 2004 07:06 PM

Cialis information site.

Posted by: Cialis at October 8, 2004 01:52 PM

Info on Levaquin online.

Posted by: Levaquin at October 12, 2004 01:43 PM

Seasonale online site.

Posted by: Seasonale at October 14, 2004 08:17 AM

Generic Fioricet online site.

Posted by: Generic Fioricet at October 15, 2004 10:34 AM

Fioricet prescription info site.

Posted by: Fioricet at October 18, 2004 03:20 AM

Remeron information.

Posted by: Remeron online at October 22, 2004 11:32 AM

Effexor online information site.

Posted by: cheap Effexor at October 23, 2004 02:14 PM

Check Celexa info.

Posted by: Celexa at October 25, 2004 04:21 AM

Hello.

I've been looking around and came across your site by accident. The information you link to from your home page is quite informative so thanks for taking the time to post it.

Joe
burn calories with trimspa

Posted by: burn calories with trimspa at October 28, 2004 05:00 PM

Hello there,

Iwas browsing the web and found this blog. Some interesting quotes. Keep them coming!

Alice
meltrx

Posted by: meltrx at October 29, 2004 11:04 AM

Elidel online site.

Posted by: Buy Elidel at November 2, 2004 09:12 AM

Wellbutrin cheap source.

Posted by: Wellbutrin at November 5, 2004 07:53 AM

Mortgage
Mortgage Calculator
Mortgage Calculator
Debt Consolidation
Loan Programs
Mortgage Rates
Commercial Mortgage
Construction Loans
Home Equity Loans
Home Equity Line of Credit
Mortgage Company
Mortgage Refinance
For a great
Mortgage Quote
Mortgage Advice

also visit

http://www.bestlowmortgagerates.com
http://mortgage-calculator.bestlowmortgagerates.com

Posted by: mortgage at November 11, 2004 08:44 AM

incest movies http://incest-photos.stories-pics.com/

Posted by: incest pictures father daughter at November 12, 2004 02:12 PM

In peace there's nothing so becomes a man as modest stillness and humility. celebrex buy celebrex Misery acquaints a man with strange bedfellows.

Posted by: celebrex at November 14, 2004 12:11 AM

For aught that I could ever read,Could ever hear by tale or history,The course of true love never did run smooth. diflucan buy diflucan How sharper than a serpent's tooth it isTo have a thankless child!

Posted by: diflucan at November 14, 2004 12:41 PM

A little more than kin, and less than kind. plavix buy plavix Praising what is lost makes the remembrance dear.

Posted by: plavix at November 14, 2004 06:33 PM

But, soft! what light through yonder window breaks? It is the east, and Juliet is the sun. spam filter buy spam filter Although the last, not least.

Posted by: spam filter at November 16, 2004 10:52 AM
Post a comment









Remember personal info?