Account Links: Cart | Your Account | Logout

Skip to content

Red Hat Knowledgebase

Red Hat Knowledgebase Search:

Updated Within the Last:

New Solutions within the last day New Solutions within the last week New Solutions within the last month

Browse by topics:


Click to View a Topic
Red Hat Enterprise Linux > Red Hat Enterprise Linux 5 > Issue <<  279 of 367 >>

Solution Tools:


Email a Solution Postcard Printer version Submit a comment on this answer Update notifications Request an answer Back

Article Reference

Article ID: 12637
Last update: 05-06-08
Issue:
How to deliver a copy of sent and received mail in Red Hat Enterprise Linux 5 to the specified address in postfix?
Resolution:

Postfix providers three mechanisms:

always_bcc = address

Deliver a copy of all mail to the specified address.

sender_bcc_maps = type:table

Search the specified "type:table" lookup table with the envelope sender address for an automatic BCC address.

recipient_bcc_maps = type:table

Search the specified "type:table" lookup table with the envelope recipient address for an automatic BCC address.

For example, there are three accounts jerry, john,and berry in the system. The email sent to

jerry, will deliver a copy to john. The email sent from jerry, will deliver a

copy to berry.

Step 1:  create a file named "sender" in /etc/postfix with the following content:

jerry berry

Step 2:  create a file named "receiver" in /etc/postfix with the following content:

jerry john

Step 3: run postmap to create db file.

cd /etc/postfix

postmap hash:sender

postmap hash:receiver

Step 4:  modify /etc/postfix/main.cf , adding the following lines:

recipient_bcc_maps = hash:/etc/postfix/receiver
sender_bcc_maps = hash:/etc/postfix/sender

Step 5:  restart postfix

service postfix restart


How well did this entry answer your question?


good wrong incomplete out of date
Red Hat Enterprise Linux > Red Hat Enterprise Linux 5 > Issue <<   279  of  367  >>