Skip to content

Instantly share code, notes, and snippets.

@mjf
Created November 28, 2022 07:47
Show Gist options
  • Save mjf/88852043f88f461daf11c48e7abc3233 to your computer and use it in GitHub Desktop.
Save mjf/88852043f88f461daf11c48e7abc3233 to your computer and use it in GitHub Desktop.
Enable BCC Forwarding For All Domain Users

Enable BCC Forwarding For All Domain Users

# /etc/postfix/main.cf
sender_bcc_maps    = pcre:/etc/postfix/domain_users_bcc_maps
recipient_bcc_maps = pcre:/etc/postfix/domain_users_bcc_maps
# /etc/postfix/domain_users_bcc_maps
/^(.+)@domain\.tld$/ $1@backup.domain.tld
postfix reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment