Re: Solved: Re: [Exim] local_part in exiscan

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Philip Hazel
Dátum:  
Címzett: Avleen Vig
CC: exim-users
Tárgy: Re: Solved: Re: [Exim] local_part in exiscan
On Sun, 2 Nov 2003, Avleen Vig wrote:


> ditch_spam:
>   driver = redirect
>   allow_fail
>   data = :blackhole:
>   condition = ${if >{$spam_score_int}{${lookup mysql{select sa_refuse * 10 from users,domains \
>                 where localpart = '${quote_mysql:$local_part}' \
>                 and domain = '${quote_mysql:$domain}' \
>                 and users.on_spamassassin = '1' \
>                 and users.domain_id=domains.domain_id }{$value}{999999}}} {yes}{no}}
>   local_part_suffix = -*
>   local_part_suffix_optional
>   retry_use_local_part


...

> Can I replace the '999999' with 'fail' ?


You can replace '{999999}' with 'fail'. Note the subtle difference. A
'fail' to cause a 'forced failure' is NOT enclosed in {}.

--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book