LinuxQuestions.org
Review your favorite Linux distribution.
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 07-02-2010, 05:06 AM   #1
juliej
LQ Newbie
 
Registered: Jul 2010
Posts: 9

Rep: Reputation: 2
Question How to 'auto' CC all outgoing e-mail?


Hello
I'm using Debian 5.0.4 with shell access only, exim4 and mutt.
I would like 'all' outgoing mail sent by any/all users to be auto'ed CC (not BCC) to a specified e-mail account for auditing purposes.
I do have it working for BCC using 'unseen', but I really want it be CC.
I have spent hours of searching/reading/testing and have not been able to find out how.
I have seen it done on other shells I've been on as a user; any mail that I sent out, I did not see it was being CC'd but once the recipient received it was also addressed 'toaddr@thatshell.com').

It's not practical to add an alias for every user on the system (/etc/aliases) and to remember to do so each time adding a user.
If I set in etc/profile alias mail= mail toaddr
Users can still find ways around that.

Thank you very much
 
Old 07-02-2010, 05:51 AM   #2
redgoblin
Member
 
Registered: Jun 2005
Location: UK
Distribution: Debian
Posts: 189

Rep: Reputation: 41
Sounds like you want to grab the mail as it passes through exim. This link might help

http://www.devco.net/archives/2006/0...using_exim.php

Last edited by redgoblin; 07-02-2010 at 05:51 AM. Reason: typo
 
Old 07-02-2010, 07:39 AM   #3
juliej
LQ Newbie
 
Registered: Jul 2010
Posts: 9

Original Poster
Rep: Reputation: 2
Thank you redgoblin
Yes I'm using a similar method as in the link you posted, 'unseen'
which will BCC a copy of all e-mail to a specified address. Works great.
I was just wondering/hoping there is a more transparent method so it is done in CC.

btw if you change unseen to seen it then redirects all e-mail to the specified address, meaning recipient never receives it.

Last edited by juliej; 07-02-2010 at 07:41 AM. Reason: add btw
 
  


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
Best solution for outgoing-only mail MS3FGX Linux - Server 3 09-05-2009 04:35 AM
Which qmail log file details outgoing mail? (have huge outgoing mail volume) hilljockey Linux - Server 2 12-08-2008 04:26 PM
How to Trap all outgoing mail of all user of my mail server singh_chitranjan Linux - Server 1 07-09-2008 06:15 AM
sendmail and outgoing mail shafey Linux - Networking 1 11-16-2005 04:57 AM
How to separate Incoming Mail and Outgoing Mail on SENDMAIL LiloAma Linux - Networking 1 03-22-2004 02:24 AM

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

All times are GMT -5. The time now is 03:03 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