[email protected]:
> I am trying to re-write sender email address [email protected] to be 
> [email protected].
> 
> In main.cf I have:
> 
> sender_canonical_classes = envelope_sender
> sender_canonical_maps = pcre:/etc/postfix/generic-pcre

canonical_maps are recursive, as documented.

> In /etc/postfix/generic-pcre I have:
> 
> /^(.*)@(\w+).([.\w]+)/ ${1}+${2}@other.domain

This is what smtp_generic_maps is intended to solve, and that mapping
is non-recursive (i.e. won't loop producing user+host+host...@host).

The above will loop because canonical maps are recursive, as documented.

        Wietse

Reply via email to