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'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