qmail and bogofilter

Adam Morley adam-bogofilter-users at gmi.com
Sat Mar 6 13:21:43 CET 2004


Hi,

I'm planning on trying out bogofilter.  I saw the howto on the list:  (suggestion 1)

http://article.gmane.org/gmane.mail.bogofilter.general/7119

And I saw the suggestion on the qmail anti-spam howto:  (suggestiong 2)

"Chris Wilkes said: 'Its simple to use, just put something like this into your .qmail files:
  | condredirect myname-spam /usr/local/bin/bogofilter -u -2
  ./Maildir/
which says to send your email through bogofilter and update your database files accordingly. If the email is spam it exits with a return code of 0, meaning that condredirect will bounce it over to myname-spam, which is my spam folder. If it isn't spam it continues on through the .qmail file, in this case being delivered to ./Maildir/'"

(http://www.chrishardie.com/tech/qmail/qmail-antispam.html)  Note: I don't know what the -2 is for.

I assume in the above example, the .qmail-spam file will simply contain something like this:

"./Maildir/.PossiblySpam/"

And that a .qmail-notspam would be something like this:

"|bogofilter -n"

I kind of liked the second version better --- since it puts the spam into its own folder instead of simply tagging it (which is better for what I'm looking to provide).  But my big question is, I will want the -notspam alias to work with normal, GUI clients that can't bounce messages, only forward.  Ie: Mozilla.  So a user will see their normal email in their inbox, and what would be spam in their IMAP folder "INBOX.PossiblySpam."  And when they see a spam that isn't a spam, they simply Forward it to user-notspam at domain.

Does that work?  Or do the > and "On blah blah, blah blah said blah blah" lines confuse bogofilter?

As a secondary question, does bogofilter often corrupt or "wig out" when using libdb3 on Debian woody?  Ie: should I go build libdb4 until sarge goes stable (it has both bogofilter *and* libdb4!  yahoo!)?

Thanks!

-- 
adam




More information about the Bogofilter mailing list