Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question

2 Answers 2

up vote 0 down vote accepted
  • 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

share|improve this answer

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/.

share|improve this answer
    
Thanks, but this seems to not solve my problem. I need something like user@domain.tld bigbro1@domain.tld, bigbro2@domain.tld –  DominikM Apr 17 '12 at 10:09
    
why don't you use alias for this way? bigbro@ could be an alias to target users :) –  dynax60 Apr 17 '12 at 10:15
    
Clever.I did not realize that i can do that. I will try it. –  DominikM Apr 17 '12 at 10:21

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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