Paul J Stevens wrote:

Tom Allison wrote:
I'm accustomed to using a spam filter called bogofilter.

I use it. I like it.

Unfortunately it's not quite like Amavis in it's network configurability.
But it's very fast and very effective.

I also use amavis:

postfix -> amavis(clamav+spamassassin+dspam) -> bogofilter -> postfix ->
procmail (dbmail-smtp)


What I do is filter-chaining. I've written a filter in python that uses
bogofilter for additional spam-filtering. Postfix's master.cf looks like
this:

127.0.0.1:10025     inet  n      -      n      -      - smtpd -o
        content_filter=bogofilter
bogofilter    unix  -       n       n       -       2       pipe
        flags=R user=amavis argv=/usr/local/bin/bogofilter.py ${sender}
        ${recipient}
127.0.0.1:10032     inet  n      -      n      -      - smtpd -o
        content_filter=


Using it like this, makes it orthogonal to sieve.

I'm attaching bogofilter.py


OK, this makes sense.
Reminds me of the postfix FILTER_README, "Simple content filter example".
But they caution this approach because of robustness.

I'm not Python guru but have you addressed some of this via network sockets?

Reply via email to