On 3/6/2011 5:39 PM, Erik de Castro Lopo wrote:
Hi all,
I'm running postfix version 2.8.1 from Debian.
I've got basic pcre header checks working as they should. I'm trying
to reject mail that has a DKIM signature that says its from att.net
but a Message-ID ending in 'yahoo.com'.
I've got this:
if /^DKIM-Signature: .*; d\=att.net;/i
/^Message-ID: .*\.yahoo\.com>/i REJECT
endif
but it doesn't seem to work. Clues?
Postfix evaluates headers one at a time, and doesn't save
state from one header to the next. Consequently, you can't
compare two headers.
To compare reject mail based on two headers, you'll need to
use a milter or smtpd_proxy_filter.
-- Noel Jones