On 3/13/2014 6:48 AM, ML mail wrote:
> Hi Noel,
> 
> That makes sense, thanks for your help.
> 
> I have now adapted the PCRE map with the following entry instead:
> 
> if /^newsletter(-.+)?@domain.com$/
> newsletter-domaincom$1...@domain.com
> endif
> 
> but it must be wrong as I get:
> warning: pcre map /etc/postfix/recipient_canonical_domains, line 2:
> ignoring unrecognized request
> 
> Any idea what I did wrong here?

No, the idea is to protect an already-rewritten address so you don't
get a recursive loop. Additionally, each line inside the IF..ENDIF
must be a fully-formed expression. Something like:

IF !/^newsletter-domaincom.*@domain\.com$/
/^newsletter(-.+)?@domain\.com$/ newsletter-domaincom${1}@domain.com
ENDIF





  -- Noel Jones

Reply via email to