34

I have the following postfix virtual file:

[email protected] [email protected]

This correctly forwards all emails to [email protected] to [email protected]

However I would like to forward these emails to [email protected] as well.

I tried this change and it does not seem to work:

[email protected] [email protected]
[email protected] [email protected]

How do I tell postfix to forward all emails to multiple recipients?

2 Answers 2

60

Put all your addresses on the same line separated by commas as explained in the Postfix manual for virtual.

[email protected] [email protected],[email protected]

Should do the trick.

3
  • 1
    is it possible to do this entire domains somehow? I tried @xyz.com @xyz.net, @xyz.org, but it didn't work Jul 18, 2020 at 16:59
  • I have the same question @MohamedHafez , I can't find a way to send the catch all emails to 2 mailboxes. Did you find a solution? Mar 14, 2022 at 22:04
  • 1
    A separate line/directive for each domain should work: @xyz.com [email protected],[email protected]\n xyz.org [email protected],[email protected] should work - but comments don't allow new lines so replace the \n with a newline!
    – dunxd
    Apr 13, 2022 at 17:29
1

You can make alias on multiply addresses and setup a bcc for that alias:

Find or edit bcc_map (or else name) file in /etc/postfix, compile this into a postfix hash file using:

postmap bcc_map

Add tp postfix main.cf config:

sender_bcc_maps = hash:/etc/postfix/bcc_map

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .