In this article we’re going to learn how to configure Postfix to BCC all outgoing mail for a domain or specific user.
First, let’s create the following file in Postfix with the following command:
nano /etc/postfix/sender_bcc_maps
To BCC all outgoing mail for a single domain, use the following:
*@example-a.tld [email protected]
*@examble-b.tld [email protected]
If you would only like to BCC outgoing mail for a specific user account, use the following:
[email protected] [email protected]
[email protected] [email protected]
You can use any combination of the above configurations in the /etc/postfix/sender_bcc_maps file.
Save the file.
Next, we’re going to add the following snippet to our /etc/postfix/main.cf
# BCC Outgoing Mail
sender_bcc_maps = hash:/etc/postfix/sender_bcc_maps
Finally, to finish the configuration, we’ll run the following:
postfix reload
Post comments (0)