b...@bitrate.net: > >postmap -q - regexp:./header_checks-ignored < test_message
You need to tell postmap that the file contains an email message. Wietse POSTMAP(1) POSTMAP(1) NAME postmap - Postfix lookup table management ... -h Enable message header query mode. When reading lookup keys from standard input with "-q -", process the input as if it is an email message in RFC 2822 format. Each logical header line becomes one lookup key. A multi-line header becomes one lookup key with one or more embedded newline characters. By default, the -h option generates lookup keys until the first non-header line is reached. To simulate header_checks(5) pro- cessing, enable MIME parsing with -m. With this, the -h option also generates header-style lookup keys for attachment MIME headers and for attached message/* headers. This feature is available in Postfix version 2.6 and later.