Configure BCC Maps in Postfix
April 29, 2009 1:36 pm MailBCC maps are handled in postfix by the following tags:
always_bcc = address
Deliver a copy of all mail to the specified address. In Postfix versions before 2.1, this feature is implemented by smtpd(8), qmqpd(8), or pickup(8).
sender_bcc_maps = type:table
Search the specified “type:table” lookup table with the envelope sender address for an automatic BCC address. This feature is available in Postfix 2.1 and later.
recipient_bcc_maps = type:table
Search the specified “type:table” lookup table with the envelope recipient address for an automatic BCC address. This feature is available in Postfix 2.1 and later.
So this is how I did it:
Added the following lines to /etc/postfix/main.cf:
sender_bcc_maps = hash:/etc/postfix/bcc_maps
recipient_bcc_maps = hash:/etc/postfix/bcc_maps
Edited the file /etc/postfix/bcc_maps :
monitorme@linuxzone.org admin@linuxzone.org
This way for all messages sent and received by monitorme@linuxzone.org, a copy will be sent to admin@linuxzone.org
Ran postmap /etc/postfix/bcc_maps
restarted postfix.

