Author Topic: External Alias forwarding to more than one address  (Read 159 times)

grl

  • Zen Apprentice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
External Alias forwarding to more than one address
« on: August 27, 2022, 10:31:58 pm »
HI!
Is it possible to add an External Alias to a virtual mail domain so it forwards to several external addresses?
I want to achieve:
Incoming mail for team1@example.org is forwarded to member1@otherdomain1.org AND to member2@otherdomain2.org AND to member3@otherdomain3.org

As far as I can see I can only enter one destination mail address into the gui - but for postfix several destination addresses are no problem. In my SQL-driven postfix I just add several lines into the database - one for each destination. In the above example that would create three lines into my database:
team1@example.org -> member1@otherdomain1.org
team1@example.org -> member2@otherdomain2.org
team1@example.org -> member3@otherdomain3.org

Any idea how to get that behaviour?


regards
Lukas

grl

  • Zen Apprentice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: External Alias forwarding to more than one address
« Reply #1 on: September 10, 2022, 11:53:51 pm »
btw - the LDAP scheme does not need any change for that.

in the example above the CN=team1@example.org,CN=alias,CN=mail,CN=zentyal,CN=Configuration,<baseDN of your server>
just needs a second entry in the attribute maildrop.

Then postfix will forward the mail to both (or more) addresses.

So I think this would just need some change in the webadmin UI...

Tried it using phpLDAPAdmin to change the attribute value...

regards
Lukas