configuring sender_bcc on Postfix

Posted on 2006-05-30
Last Modified: 2012-06-27
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 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.
Question by:CME-IT
    LVL 16

    Accepted Solution


    Did you read:

           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.

    Author Comment

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


    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.

    Author Comment


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

    In /etc/postfix/ add:

    sender_bcc_maps = hash:/etc/postfix/sender_bcc

    Then edit or create /etc/postfix/sender_bcc in the following format:
    and run postmap /etc/postfix/sender_bcc and posfix reload.
    Postfix version must be at least  2.1.
    LVL 16

    Expert Comment


    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
    SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now