0

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)

cz.steve
  • 3
  • 1
  • 4

1 Answers1

0

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:

recipient@server.com monitoring@internal.com

then run

postmap /etc/postfix/shadow_sender
/etc/init.d/posfix reload
Gerald Schneider
  • 23,274
  • 8
  • 57
  • 89
cz.steve
  • 3
  • 1
  • 4