36

I have the following postfix virtual file:

test@domain.com bob@me.com

This correctly forwards all emails to test@domain.com to bob@me.com

However I would like to forward these emails to bob2@me.com as well.

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

test@domain.com bob@me.com
test@domain.com bob2@me.com

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

Sam Saffron
  • 2,019

2 Answers2

63

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

test@domain.com bob@me.com,bob2@me.com

Should do the trick.

dunxd
  • 9,874
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
shcherbak
  • 299
  • 1
  • 12