I use the wonderful MUA, Mutt, and suffer (like most) from spam. I often get reoccurring spam from the same address … here is a short HOWTO to make your email spam free.
As mentioned earlier I use Spam Bouncer to filter most of my email. However, some still gets through to my inbox … to help rid myself of this I did the following.
First here is what you’ll need on your system:
- PHP
- Mutt
- Procmail
Next you’ll need to put the following in your .procmailrc
:
@@@SMARTY:TRIM:PRE@@@
Next you’ll want to download this script and put it in your path somewhere.
You’ll also need to set DEVNULL
to ~/.devnull
(ie DEVNULL=~/.devnull
) in your .procmailrc
.
Finally, you need to create a small mutt macro to mark email as spam … put the following in your .muttrc
.
@@@SMARTY:TRIM:PRE@@@
Now when you hit F1
the From:
address will be added to the file ~/.devnull
. This is when procmail
takes over – all email addresses in .devnull
will be sent to /dev/null
. So if the email address appears in the From
, To
, Cc
, Bcc
, or Reply-To
headers the email will never reach your inbox. Email me if you have any questions.