> I copied your test message and expression. It works for me. > > postmap -hq - pcre:./header_checks-ignored< test_message > Received: from localhost (localhost [127.0.0.1]) > by mta.example.com (Postfix) with ESMTP id 76ABF40DF1 > for <u...@example.com>; Tue, 19 Apr 2011 22:50:30 -0400 (EDT) IGNORE > > > What version of postfix do you have? > > Maybe you should fold the multi-line headers for testing.
>postconf mail_version mail_version = 2.7.1 [ubuntu 10.10]: >dpkg -l | grep -i postfix ii postfix 2.7.1-1ubuntu0.1 i've shortened it to a very rudimentary expression and just a single line match - it appears to be related somehow to the -h argument: >cat header_checks-ignored /^Received/ IGNORE >postmap -q - pcre:./header_checks-ignored < test_message Received: from localhost (localhost [127.0.0.1]) IGNORE >postmap -hq - pcre:./header_checks-ignored < test_message > there must be something basic i'm overlooking? -ben