Admin Life Errors, Fixes, and Encounters

28Jan/101

Postfix Recipient BCC Maps freebsd

Problem: email account was created on postfix but other people want to get that email also BUT don't want to check it.

Solution: Recipient BCC Maps with postfix

Start off by adding the correct lines to postfix's main.cf file

# vi /etc/postfix/main.cf

//email for John to get bcc'ed on everything support gets
recipient_bcc_maps = hash:/etc/postfix/recipient_bcc

# vi /etc/postfix/recipient_bcc
// this line will bcc John on everything support gets.
support@domain.com john@domain.com

//since it's a hash file, we use postmap to hash it.
# /usr/local/sbin/postmap recipient_bcc

// we then restart apache.
# cd /usr/local/sbin/
# ./postfix reload
postfix/postfix-script: refreshing the Postfix mail system

That's it, now every email support gets, John will be BCC'ed on

Filed under: software-setup, Unix 1 Comment