Le 07/03/2011 00:39, Erik de Castro Lopo a écrit : > 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? >
Obviously, no header can simultaneously start with" DKIM-Signature" and "Message-ID". hint: header checks apply to headers, one at at a time. if you want multi-header checks, then you need a content filter or a miler.