Bogofilter doesn't work with qmail

Chris Wilkes cwilkes-bf at ladro.com
Mon Jul 7 20:32:16 CEST 2003


On Mon, Jul 07, 2003 at 10:06:09PM +0200, Fabian S wrote:
> 
> i am using qmail and i want to filter my spammails with bogofilter. I
> installed the QMAILQUEUE patch and set this var to my "bogofilter-run"
> script.

Why are you using qmailqueue to do this?  You can (and probably should)
do this on an individual user basis.

Here's how I've done it with stock qmail and now qmailldap, which has
virtual users:

   # cat .qmail
	| condredirect myname-spam /usr/bin/bogofilter -u -2
   ./Maildir/

   # cat .qmail-spam
   ./Maildir/.spam/

Replacing "myname" with the name of the account.  If bogofilter marks
the email as spam it will get redelivered to the myname-spam account,
which then drops into a different Maildir.  You can also have it add a
line to the headers, but I find it easier to filter out like this.

Chris




More information about the Bogofilter mailing list