Individual user database on MTA [was: Teching bogofilter by forwarding messages]

Gyepi SAM gyepi at praxis-sw.com
Thu Dec 18 20:44:52 CET 2003


On Thu, Dec 18, 2003 at 10:57:15AM -0800, Chris Wilkes wrote:
> On Thu, Dec 18, 2003 at 09:32:49PM +0100, Michal Wieja wrote:
> Why not do this on an individual basis, with each user getting their own
> wordlist.db?

> If you're wondering how people can train their own filter, you can put
> some routing information into your procmailrc that looks for the
> sender's address and then updates that user's wordlist.db only.  You can
> do so by spitting the email out to a seperate program that grabs the
> From: address and matches that up to a list of your usernames.

Better yet, if you use qmail or postfix, then take advantage of extension
addresses: each user sends registrations/corrections to themselves. Then you
don't need to have to figure out which user it is. Messages to the following
addresses will "do the right thing".

  #registration
  user-bogofilter-register-spam at example.net
  user-bogofilter-register-nonspam at example.net

  #corrections
  user-bogofilter-spam at example.net
  user-bogofilter-nonspam at example.net

See the docs/integrating-with-{qmail,postfix} files for further explanations and ideas.
Note that both of those documents assume a central database so you'll have to make the necessary
adjustments. Note also, that you don't want those addresses to be accessible to the world.
Imagine the fun spammers can have with your database!


-Gyepi




More information about the Bogofilter mailing list