Avoid spam and worms with bmf

Introduction

If bmf is completely new to you, you should probably read A Plan for Spam.

While our RBL lookups prevents most spam from even being delivered here, some slips through every once in a while. bmf can be trained to recognise spam and email-based worms, leaving you to do more beneficial things with your time than deleting crap from your mailbox.

Activating bmf

Insert the following near the top of your .procmailrc:

:0fw
* < 256000
| bmf -p

:0e
{
EXITCODE=$?
}

:0:
* ^X-Spam-Status: Yes
spam/	

Messages that are recognised as spam will be delivered to your spam folder which you should make a habit of reviewing every once in a while.

Marking and unmarking messages as spam

Until you have trained bmf, it will not recognise any messages as spam. The system-wide mutt configuration on miracle contains macros that invokes bmf.

Press F3 to mark a message in your incoming (or a mailinglist) folder as unwanted mail and move it to your spam folder. bmf will use this new data for future decisions.

Press F4 to mark a message as wanted mail, and move it to your incoming folder. This is done if you discover wanted mail having been placed in your spam folder. bmf will use this new data for future decisions.