Hi Viktor,
> On Apr 7, 2018, at 12:36 AM, Viktor Dukhovni <[email protected]>
> wrote:
>
> That's PCRE syntax.
>
>> Does anyone know what I’m doing wrong and/or is there a way to make Postfix
>> provide more debug output for a regexp: operation ?
>
> You're using a "regexp" table, those don't support PCRE.
Thanks for your response and that’s definitely the problem I had.
I did some Googling for doing PCRE to POSIX regular expressions and updated the
string:
/^(Received:\sfrom)[^;]+(;\s[A-Z]{1}[a-z]{2,3},)\s+([[:digit:]]{1,2}[^\n]+)/
REPLACE $1 [127.0.0.1] (localhost [127.0.0.1]) by myserver.com$2 $3
… and it works!
Not sure why I had it in my head that regexp: was PCRE (especially when there’s
another dictionary type that explicitly says pcre:), but at least I’ve learned
something.
- J