31

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?

53

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.

| improve this answer | |
  • is it possible to do this entire domains somehow? I tried @xyz.com @xyz.net, @xyz.org, but it didn't work – Mohamed Hafez Jul 18 at 16:59
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
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.