----- On 18 Aug, 2015, at 17:15, Alex mysqlstud...@gmail.com wrote: > I'm trying to match a pattern in a header_checks pcre file and can't > figure out why it's not matching. In /etc/postfix/header_checks.pcre, > I have: > > /^From:.*exampleuser@gmail\.com$/ REJECT
That regular expression matches text that starts with 'From:' exampleuser does not start with 'From:' and does not contain "@gmail.com" or even end with that text, so why should the postmap command show a match? Hope this helps. Regards, wolfgang