> On Apr 7, 2018, at 12:34 AM, J Doe <gene...@nativemethods.com> wrote:
> 
> I tried the following with a visual regex program (to make checking captures 
> easier):
> 
>     /etc/postfix/submission_privacy_header
>         
> /(Received\:\s*from)[^\;]+(\;\s[A-Z]{1}[a-z]{2,3}\,)\s+(\d{1,2}[^\n]+)/    
> REPLACE $1 [127.0.0.1] (localhost [127.0.0.1]) by myserver.com$2 $3

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.

-- 
        Viktor.

Reply via email to