Score:0

how to copy all emails send to external email account(postfix)

in flag

The company at which i work, requested to copy all emails sent to a specific external email address(bcc those emails to an internal monitoring email account). They specifically asked for one recipient account, and not for all the outgoing emails. Is it possible to implement this in postfix?

The postfix server uses virtual users (set up in a plain text file, not mysql)

in flag
Does this answer your question? [How can I configure Postfix to retain copies of all email sent through it?](https://serverfault.com/questions/407302/how-can-i-configure-postfix-to-retain-copies-of-all-email-sent-through-it)
cz.steve avatar
in flag
@GeraldSchneider Not really. I want to bcc a specific recipient to a specific monitoring address.
in flag
That is explained in the accepted answer of the linked question
cz.steve avatar
in flag
@GeraldSchneider unfortunately the mentioned solution does not work for external email recipients.
in flag
If you found a working configuration, please post it as an answer and accept it when you are allowed to do so.
Score:0
in flag

the following configuration works: Add to main.cf:

# shadow bcc
sender_bcc_maps = hash:/etc/postfix/shadow_sender
recipient_bcc_maps = hash:/etc/postfix/shadow_sender 

add to the shadow_sender file:

[email protected] [email protected]

then run

postmap /etc/postfix/shadow_sender
/etc/init.d/posfix reload
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.