LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Postfix, copy all outgoing mail to admin account. (https://www.linuxquestions.org/questions/linux-software-2/postfix-copy-all-outgoing-mail-to-admin-account-583868/)

exodist 09-11-2007 08:55 AM

Postfix, copy all outgoing mail to admin account.
 
I am administrator of an e-mail server running postfix. My boss wants to have a copy of all e-mail sent out using the server to be copied to him. I am not sure how to accomplish this.

all 5 employees at this firm are aware of e-mail monitoring, this is not an act of espionage or invasion of privacy. It is a business e-mail server used by employees to conduct business.

Berhanie 09-12-2007 03:53 AM

For general info about bcc, read this. If the always_bcc option is too much (it bcc's everything, including incoming), I think the alternative is to have two smtpd daemons running, one for incoming mail and the other for outgoing, and turn off always_bcc for the incoming one as per the link above. But, search the postfix mailing list archive to make sure that there isn't an easier way of doing it.

exodist 09-13-2007 10:54 PM

Thank you, but this caused another problem, when e-mail is sent to the address bcc's go to, the message is received twice, or duplicated... I am having trouble understanding parts of this document, I am unclear on how one might exlude a single recipient from having the messages bcc'd

le_hung_nb 09-13-2007 11:20 PM

Quote:

Originally Posted by exodist (Post 2891335)
Thank you, but this caused another problem, when e-mail is sent to the address bcc's go to, the message is received twice, or duplicated... I am having trouble understanding parts of this document, I am unclear on how one might exlude a single recipient from having the messages bcc'd

Hi all.

I have a question like exodist too, but if mail to the BCC address bounces it will be returned to the sender.
I want to copy all email to my special account without my user notice,
Have any way in postfix complete this.

Please help me if you known.
Thank all.

Berhanie 09-14-2007 01:03 AM

Quote:

I am unclear on how one might exlude a single recipient from having the messages bcc'd
Use recipient_bcc_maps with a pcre or regexp table:
Code:

!/^bob@example\.com$/    bob@example.com
where bob@example.com is the address that receives the bcc's.

NaCo 01-31-2008 12:03 AM

does recipient_bcc_maps works for virtual accounts?
 
I have not made a research yet at Postfix's site for this matter, but does anyone happen to know if recipient_bcc_maps works with virtual accounts?

If it does it might be the solution I am looking for.

Thanks

Berhanie 01-31-2008 06:47 AM

Yes, it works for virtual. It works for all mail not generated by postfix itself.

NaCo 01-31-2008 11:45 PM

Can someone confirm this?
 
Thank you for your reply Berhanie!

So if I set recipient_bcc_maps in Postfix's main.cf I would be able to solve my goal? which is:
http://www.linuxquestions.org/questi...ivery.-616559/

I will be greatful if someone can confirm this.

Thank you.

Angel

Berhanie 02-01-2008 09:39 AM

Answered in the original thread.


All times are GMT -5. The time now is 08:59 PM.