Link to home
Start Free TrialLog in
Avatar of CME-IT
CME-IT

asked on

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.
ASKER CERTIFIED SOLUTION
Avatar of xDamox
xDamox
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CME-IT
CME-IT

ASKER

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.
Avatar of CME-IT

ASKER


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