On 12/21/2015 12:08 PM, Alex wrote:
>>
>> Your expression looks OK.  You can test it with
>> postmap -hq - pcre:auth_header_checks.pcre  < testfile
>>
>> where testfile is a saved message including the headers you want to
>> replace.
> 
> Is it possible that it only replaces the first pattern that matches
> and not throughout the whole file?

Postfix processes header_checks one header at a time.  Each header
is presented and run through the whole header_checks file until the
first match or no match, then the process starts over with the next
header.

So each header that matches will be replaced, and each header will
only match one pattern.



  -- Noel Jones

Reply via email to