Hi Sham
It is very easy to send a BCC of all mails passing through a postfix
server to one particular email address. It is very useful for
organisations that want to scrutinize all incoming as well as outgoing
emails for security reasons.
Here is how it can be done:
Just add the following in /etc/postfix/main.cf
always_bcc = snoopy...@mydomain.com
You can read more here:
http://www.postfix.org/ADDRESS_REWRITING_README.html#auto_bcc
Optional address that receives a "blind carbon copy" of each message that is received by the Postfix mail system.
Note: if mail to the BCC address bounces it will be returned to the sender.
Note: automatic BCC recipients are produced only for new mail. To avoid mailer loops, automatic BCC recipients are not generated for mail that Postfix forwards internally, nor for mail that Postfix generates itself.
Optional BCC (blind carbon-copy) address lookup tables, indexed by recipient address. The BCC address (multiple results are not supported) is added when mail enters from outside of Postfix.
This feature is available in Postfix 2.1 and later.
The table search order is as follows:
Specify the types and names of databases to use. After change, run "postmap /etc/postfix/recipient_bcc".
Note: if mail to the BCC address bounces it will be returned to the sender.
Note: automatic BCC recipients are produced only for new mail. To avoid mailer loops, automatic BCC recipients are not generated for mail that Postfix forwards internally, nor for mail that Postfix generates itself.
Example:
recipient_bcc_maps = hash:/etc/postfix/recipient_bcc
Optional BCC (blind carbon-copy) address lookup tables, indexed by sender address. The BCC address (multiple results are not supported) is added when mail enters from outside of Postfix.
This feature is available in Postfix 2.1 and later.
The table search order is as follows:
Specify the types and names of databases to use. After change, run "postmap /etc/postfix/sender_bcc".
Note: if mail to the BCC address bounces it will be returned to the sender.
Note: automatic BCC recipients are produced only for new mail. To avoid mailer loops, automatic BCC recipients are not generated for mail that Postfix forwards internally, nor for mail that Postfix generates itself.
Example:
sender_bcc_maps = hash:/etc/postfix/sender_bcc
25, The Emperor, Fatehgunj, Baroda.
www.electromech.info