RE: [Exim] using bogofilter reject/drop/whatever mails

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Matt Sealey
Datum:  
To: John Jetmore, matt
CC: Exim-Users
Betreff: RE: [Exim] using bogofilter reject/drop/whatever mails

> -----Original Message-----
> From: jetmore@???
> [mailto:jetmore@wembley.cinergycom.net]On Behalf Of John Jetmore
> Sent: 04 December 2003 17:06
> To: matt@???
> Cc: Exim-Users
> Subject: Re: [Exim] using bogofilter reject/drop/whatever mails
>
>
> On Thu, 4 Dec 2003, Matt Sealey wrote:
>
> > What's the easiest way to reject mails that Bogofilter has marked
> > as Spam, either from the return code, or using X-Bogosity: yes,
> > or the number, or what? Someone must be doing this already. I
> > must admit I'm not skilled enough to know what the best way is
> > even if I could roll these kinds of configurations by hand.
>
> this may not work exactly as written, it's off the cuff, plus I have no
> idea what the bogosity header looks like, but it might give you a place
> to start:
>
> reject_spam:
> driver = redirect
> condition = ${if match{$h_X-Bogosity:}{Possible spam detected}{yes}{no}}
> data = :fail: message rejected as spam


Well, that will match all mails, it adds them to all..

The basic format is

X-Bogosity: No, tests=bogofilter, spamicity=0.000000, version=0.15.7

(I took that from your mail to the list..)

I think I can safely reject spams with a spamicity of >0.9, or
just ones that are "yes" (which is 1.00000, always.. two ways of
checking..) but the string is flexible enough that simple matching
didn't work for me.. and looking for "X-Bogosity: Yes," seems a
little less elegant :)

I am certain someone already has done this. I'd rather learn from
experience than roll my own potentially crappy useless spend-3-hours-at-it
solution.

--
Matt Sealey <matt@???>