-------- Original-Nachricht --------
> Datum: Thu, 3 May 2012 17:03:15 -0500
> Von: Chad M Stewart <[email protected]>
> An: Postfix users <[email protected]>
> Betreff: a header check rule to do <= or >=
Hello Chad,
>
> Is it possible to write a header check (I'm thinking pcre is probably the
> way to go) that would find a header, and then take action based on the
> value of said header.
>
> Sample header
>
> X-spam-Confidence: 0.8505
>
>
> In pseudo code I'd like something like
>
> if header (/X-spam-Confidence/) && ($value >= 0.7000)
> then redirect msg to /dev/null
>
I think I know what direction you are trying to go. DSPAM? Right?
Below the untested code but I think it should work:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
if /^X\-DSPAM\-Confidence\:\s+/
/^X\-DSPAM\-Confidence\:\s+(0\.[7-9]\d+)$/ DISCARD DSPAM confidence ${1}
greater than 0.700
endif
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>
> I'm looking to have sieve script functionality, but at the MTA layer and
> not delivery. This will be implemented on a relay machine. The intent
> being that when the anti-spam engine has assigned a high enough score to the
> message that instead of delivering to the user, we simply throw it away,
> assuming of course the user has opt-in for such a service.
>
>
> Thank you,
> Chad
>
Steve
--
NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone!
Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a