Thanks Noel,

Reviewing the regex with postmap I've found the error, it's working now.

KR,

2016-10-31 17:29 GMT+01:00 Noel Jones <njo...@megan.vbhcs.org>:

> On 10/31/2016 11:12 AM, Laura Martín wrote:
> > Hi all,
> >
> > I've been reviewing lots of documentation about Postfix rewriting,
> > but the closer example, does not work for me.
> >
> > I need to rewrite ALL the sender addresses except 2.
> >
> > Here's my main.cf <http://main.cf>
> >
> > *~*~*~*~
>
> ... random main.cf snippings ignored.
>
> to report a problem, please see:
> http://www.postfix.org/DEBUG_README.html#mail
>
> > *~*~*~*~
> >
> > (I've tried pcre/regexp in "smtp_header_checks"), same result
>
> Your pcre expression is broken. Test your expression with postmap.
>
> >
> > header_checks
>
> header_checks is the wrong tool.  Prefer smtp_header_checks or
> alternately canonical_maps to rewrite addresses on outgoing mail.
>
>
>
>
>   -- Noel Jones
>

Reply via email to