sru...@gemneye.org: > I am trying to re-write sender email address n...@host.some.domain to be > name+host@other.domain. > > 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