how to copy all outgoing mail from postfix

1,843 views
Skip to first unread message

Sham Arsiwala

unread,
Apr 5, 2007, 1:49:06 AM4/5/07
to Linux Group
hello every body
i want to copy all outgoing mail from postfix to one account
how is it possible to do

--
Regards
SHAM ARSIWALA.
Senior System & Network Administrator
Electromech
Baroda.

CyberOrg

unread,
Apr 5, 2007, 1:57:10 AM4/5/07
to VGLUG
On Apr 5, 10:49 am, "Sham Arsiwala" <shamarsiw...@gmail.com> wrote:
> hello every body
> i want to copy all outgoing mail from postfix to one account
> how is it possible to do
>

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

nilesh vaghela

unread,
Apr 5, 2007, 10:16:16 AM4/5/07
to VG...@googlegroups.com
Some more input for BCC

always_bcc (default: empty)

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.

----------------------------------------
recipient_bcc_maps
(default: empty)

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
-----------------------------------------------------
sender_bcc_maps (default: empty)

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
hope will  help you all.

25, The Emperor, Fatehgunj, Baroda.
www.electromech.info
Reply all
Reply to author
Forward
0 new messages