SMTP Sender BCC - POSTFIX

If you want to make a Sender BCC for specific email account under your postfix, you can
add the following in your config.

Edit your main.cf, and add in below
   
    sender_bcc_maps = hash:/etc/postfix/sender_bcc

Now create a file for it

    echo "anthony@example.com     test@example.com" >> /etc/postfix/sender_bcc

Now, hash the file for postfix to read it

    postmap /etc/postfix/sender_bcc

And you will get a file named

    /etc/postfix/sender_bcc.db
   
Check on the timestamp, both should have the same timestamp

    -rw-r--r-- 1 root root        394 Mar 20 17:03 sender_bcc
    -rw-r--r-- 1 root root      12288 Mar 20 17:03 sender_bcc.db

No comments: