Configure BCC Maps in Postfix

1:36 pm Mail

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

Leave a Comment

Your comment

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove that you're not a bot, enter this code
Anti-Spam Image

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.