On Mon, Jul 08, 2024 at 10:44:46PM -0700, Simon Thorpe (PST) via Postfix-users wrote:
> All emails to {alias}@mydomain.com sent onto any of a list of other > domains, i.e. {alias}@domain1.com, {alias}@domain2.com, etc. This lists a condition, but no action. > If I can do this without code and purely in config, perfect. <this> being what? General questions about address rewriting are covered in: https://www.postfix.org/ADDRESS_REWRITING_README.html The main tool to use is virtual(5) alias mappings, which rewrite each input address (regardless of "address class") to one or more output addresses, recursively, terminating a given branch of the search when no match is found, an address maps to itself, or too many addresses have resulted from the original input. https://www.postfix.org/postconf.5.html#virtual_alias_maps https://www.postfix.org/postconf.5.html#virtual_alias_expansion_limit https://www.postfix.org/ADDRESS_CLASS_README.html Related, primarily needed for normalising header addresses in outbound mail is "canonical_maps". In most cases, avoid "sender_canonical_maps" and "recipient_canonical_maps". There's also "smtp_generic_maps", which performs rewriting on output rather than input, and so cannot affect message routing. -- Viktor. _______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org