On 3/6/2011 5:47 PM, Jeroen Geilman wrote:
On 03/07/2011 12:39 AM, 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?
Headers are inspected one by one, and there is NO relationship
between one header and any other.
You are saying "match DKIM headers AND reject them when they
contain a Message-ID"
This wil never happen.
Correct.
Read http://www.postfix.org/header_checks.5.html, section
"TABLE FORMAT"
If you must have this, a policy service seems the best course
of action.
A postfix policy service sees the envelope, not the message
data. The OP will need a milter or smtpd_proxy_filter.
-- Noel Jones