Autor: Nico Erfurth Fecha: A: rossz Cc: exim-users Asunto: Re: [Exim] redirect problem
Rossz Vamos-Wentworth wrote: > (reposting because I forgot to use the correct account for this mail
> list).
>
> I tried to search through the mail list archives but the search facility
> returns nothing. I think it's broke.
>
> I have exim 4.10 installed and working along with SpamAssassin
> 2.43. Now I want to redirect very high scoring spam to my
> spambox. I've tried a number of different routers, but nothing
> works. Basically, if the spamassassin assigns a score of 13 or
> more, send it to "spam" instead of the original receipient.
> SpamAssassin puts 'X-Spam-Level: ************" in the header to
> indicate the score. one * for each point. Here is my most recent
> attempt:
>
>
> spambox:
> driver = redirect
> data = spam@???
> condition = ${if match {$header_X-Spam-Level} {\*{13\}} {1}{0}} Exim unescapes the \* when it parses it, so the pcre-engine sees
/*{13}/, try this, using \N forces exim to read everything as it is,
till the next \N.
condition = ${if match {$header_X-Spam-Level} {\N\*{13}\N} {1}{0}}