[exim] Filtering or Delivery by Spam Score

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Steve Dobson
Datum:  
To: Exim Users
Betreff: [exim] Filtering or Delivery by Spam Score
Hi All

I have an Exim 4 configuration working nicely with SpamAssassin. SA
only adds to the headers the results of it's tests and then when it is
re-injected into Exim I want to
filter out higher level spams for instant deletion (or delivery
to /dev/null - same difference).

I would like to write a simple router like this:
   delete_spam:
    driver     = accept
    transport  = to_dev_null
    condition  = "${if > {$h_X-Spam-Score} {5.0} {yes}{no}}"


1). Is this right? I'm unsure if $h_X-Spam-Score contains the whole
header (in which case I need to substr it, or if it just contains the
score (which is what I'm interested in.

2). How do I test this? I assume there is something like "exim4
<option> < test-msg" I can do.

Thanks for your help
Steve
--
Steve Dobson

One pill makes you larger, And if you go chasing rabbits
And one pill makes you small. And you know you're going to fall.
And the ones that mother gives you, Tell 'em a hookah smoking
caterpillar
Don't do anything at all. Has given you the call.
Go ask Alice Call Alice
When she's ten feet tall. When she was just small.

When men on the chessboard When logic and proportion
Get up and tell you where to go. Have fallen sloppy dead,
And you've just had some kind of And the White Knight is talking
mushroom backwards
And your mind is moving low. And the Red Queen's lost her head
Go ask Alice Remember what the dormouse said:
I think she'll know. Feed your head.
Feed your head.
Feed your head.
-- Jefferson Airplane, "White Rabbit"