Our goal is to have a copy of any email sent by a specific SMTP user account bcc'd to another email address.
With Postfix, we can setup an outgoing email address to always BCC another address on messages that are sent.
This can be done with a line in
sender_bcc_maps = hash:/etc/postfix/sender_bcc
And then in
But if the user simply changes thier outgoing mail settings to send mail as
email@example.com, the BCC breaks. What the user can't change, however, is their SMTP username.
So we really need a way to setup Postfix to create a BCC when a message is sent by an SMTP user logged in as
user, regardless of what email address that person claims to have.
Is this possible? How?