• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2910
  • Last Modified:

configuring sender_bcc on Postfix

I have recently built and deployed a Postfix server to replace the aging Sendmail server.  The boss now wants to have all emails sent from employee1 copied to him.

I have read the various posts and I understand that I can accomplish this with automatic bcc .  My problem is that I am having a hard time understanding the specifics.  Could someone talk me thru this.  I realize that I will need to edit main.cf and I also believe that I will need to create a map table with employee1 name in it.  The details of how to do this is missing?

Thanks for all of your help now and in the past.
0
CME-IT
Asked:
CME-IT
  • 2
  • 2
1 Solution
 
xDamoxCommented:
Hi,

Did you read: http://www.postfix.org/cleanup.8.html

AUTOMATIC BCC RECIPIENT CONTROLS
       Postfix can automatically add BCC (blind carbon copy) when
       mail enters the mail system:

       always_bcc (empty)
              Optional address  that  receives  a  "blind  carbon
              copy" of each message that is received by the Post-
              fix mail system.

       Available in Postfix version 2.1 and later:

       sender_bcc_maps (empty)
              Optional BCC  (blind  carbon-copy)  address  lookup
              tables, indexed by sender address.

       recipient_bcc_maps (empty)
              Optional  BCC  (blind  carbon-copy)  address lookup
              tables, indexed by recipient address.
0
 
CME-ITAuthor Commented:
I have just looked at the cleanup.8.html file.

I must confess, I'm a confused newbie.  

<sender_bcc_maps (empty)
              Optional BCC  (blind  carbon-copy)  address  lookup
              tables, indexed by sender address.

What exactly do I type in in the main.cf file.  How do I create the lookup table?  I know the lookup table usually deals with a key, value ......  :(

If I want mail from employee1 to be bcc to boss  do I create a table called bcc2boss and enter
employee1, boss

or

employee1@company.com, boss@company.com

I understand the concept, but the details of how to do it are confusing me.

That's why simple minds need experts like you guys.
0
 
CME-ITAuthor Commented:

I found the answer I was looking for.  This is the detail I needed.

In /etc/postfix/main.cf add:

sender_bcc_maps = hash:/etc/postfix/sender_bcc

Then edit or create /etc/postfix/sender_bcc in the following format:
employee1@company.com boss@company.com
and run postmap /etc/postfix/sender_bcc and posfix reload.
Postfix version must be at least  2.1.
0
 
xDamoxCommented:
Hi,

Sorry for the long wait in reply, anways thats cool how you got it :) and thanks for posting your way of getting it to work.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now