Jean-Yves Avenard:
> > I thought I could add something like this in the canonical file:
> > /^(reg)-(.*)-(.*)$/ ${2}
> >
> > However, I read in a few place that this would break recipient validation.
>
> Should add that while with the canonical above I do get the email to
> the proper mailbox delivered, the recipient is being rewritten to the
> simple form instead.
> so if I send to [email protected], the recipient I can
> see in the mail client is [email protected]
I kindly suggest that you read the manual (RTFM) before asking
questions that are already answered there.
Canonical mappings can rewrite the envelope addresses (i.e. what
Postfix delivers) without changing the addresses in the message
header (i.e. what the mail client shows).
http://www.postfix.org/ADDRESS_REWRITING_README.html
If it is not documented, then it is not supported.
Wietse