1

I have sender_bcc_maps = pcre:/etc/postfix/conf/sender_bcc in my postfix in this file I have rules such as

/foo@bar.tld/       bcchere@bar.tld

Now i need to send blind copy to more than one email. I tried use whitespace and comma as delimeter, but it did not work. What is the solution here? Thank you.

EDIT: The solution is (thx dynax60) to send copy to alias in sender_bcc_maps file. And then set this alias with desired addresses.

Lucas Kauffman
  • 16,880
  • 9
  • 58
  • 93
DominikM
  • 117
  • 1
  • 1
  • 4

2 Answers2

4
  • in /etc/postfix/main.cf:

sender_bcc_maps = pcre:/etc/postfix/sender_bcc

  • in /etc/postfix/sender_bcc:

/foo@bar.tld/ bcc_duplicator@bar.tld

  • in $virtual_alias_maps:

bcc_duplicator@bar.tld bcc1@bar.tld, bcc2@bar.tld, bcc3@bar.tld

adaptr
  • 16,576
  • 23
  • 34
0

Try this in main.cf:

sender_bcc_maps = hash:/usr/local/etc/postfix/bcc

Content of bcc file is:

user1@domain.tld bigbro@domain.tld
user2@domain.tld bigbro@domain.tld
user3@domain.tld bigbro@domain.tld

Don't forget postmap bcc under /usr/local/etc/postfix/.

dynax60
  • 3
  • 3