LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-11-2007, 08:55 AM   #1
exodist
Senior Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Arch
Posts: 1,374

Rep: Reputation: 47
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.
 
Old 09-12-2007, 03:53 AM   #2
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
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.
 
Old 09-13-2007, 10:54 PM   #3
exodist
Senior Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Arch
Posts: 1,374

Original Poster
Rep: Reputation: 47
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
 
Old 09-13-2007, 11:20 PM   #4
le_hung_nb
LQ Newbie
 
Registered: Sep 2007
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by exodist View Post
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.
 
Old 09-14-2007, 01:03 AM   #5
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
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.

Last edited by Berhanie; 09-14-2007 at 01:05 AM.
 
Old 01-31-2008, 12:03 AM   #6
NaCo
Member
 
Registered: Jun 2002
Location: L.A.
Distribution: Fedora
Posts: 46

Rep: Reputation: 15
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
 
Old 01-31-2008, 06:47 AM   #7
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Yes, it works for virtual. It works for all mail not generated by postfix itself.
 
Old 01-31-2008, 11:45 PM   #8
NaCo
Member
 
Registered: Jun 2002
Location: L.A.
Distribution: Fedora
Posts: 46

Rep: Reputation: 15
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
 
Old 02-01-2008, 09:39 AM   #9
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Answered in the original thread.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy of every outgoing and incoming mail gubak Linux - General 3 04-12-2007 11:52 PM
Outgoing Only mail server using Postfix opnsrc Linux - Networking 0 06-15-2006 10:37 AM
Can i copy outgoing mail on the server? Dman33 Linux - Software 1 07-09-2004 11:45 AM
Postfix - Don't masquerade Local only Outgoing mail... Help please... Vince0000 Linux - General 2 11-27-2003 09:08 AM
Copy all incoming/outgoing mail to admin account axelyeung Linux - Software 0 06-23-2003 11:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration