On Mon, Jul 8, 2024 at 10:58 PM Viktor Dukhovni via Postfix-users <
postfix-users@postfix.org> wrote:

> 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.
>

Sorry, my language might not be clear enough...

Any email to {alias}@mydomain.com, is duplicated and resent (forwarded?) to
a list of other domains, such as {alias}@domain1.com, {alias}@domain2.com,
etc.

The goal is to be able to turn on/off a flow of email for people to use in
their sales environments. I will sign up al...@mydomain.com to a range of
websites and services that generate traffic, as well as use my own email
creation tools. We want copies of all these emails to then be sent to a
configurable set of domains. I will build a web interface to manage the
domains and from what i've seen so far, I can store this data in a database
for Postfix to read when each email comes in and know what domains to
duplicate and forward the email to.

I need to spend a few hours reading the content you've sent.


> > 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
>
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to