How to auto CC all outgoing e-mail?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How to auto CC all outgoing e-mail?
# 1  
Old 06-30-2010
How to auto CC all outgoing e-mail?

I'm using Debian 5.0.4, exim4 and mutt.
I would like all outgoing mail sent by any/all users CC (not BCC) to a specified e-mail account.
(I do have it working for BCC using 'unseen'.)
I have spent hours of searching/reading/testing how 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 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.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

SFTP -- Outgoing IP

Hi Gurus; I had 2 interface. eth1 : 10.x.x.x eth2 : 30.x.x.x My default out is 10.x.x.x Now, I need to connect to public SFTP Server If I use sftp user@public IP. I can not connect. because my out is 10.x.x.x But I telnet it: telnet -z 30.x.x.x <public IP - sftp server>... (5 Replies)
Discussion started by: Mujakol
5 Replies

2. UNIX for Advanced & Expert Users

AIX - Sendmail - add hostname to subject of outgoing mail

Hello, I'm configuring sendmail on an AIX 7.1 server (bos.net.tcp.client 7.1.1.15). I've gotten sendmail to send mail through our Novell GroupWise server, so that mail from a user on the server appears to come from their GroupWise account, and replies to the email would go to their GroupWise... (0 Replies)
Discussion started by: eyebeam
0 Replies

3. Linux

awk filter & Auto gen Mail

hi experts 2012-01-30 10:30:01:812 "y" "NA" "30/01/2012 10:30:01:154 AM" 2012-01-30 10:33:46:342 "y" "NA" "30/01/2012 10:33:45:752 AM" 2012-01-30 10:41:11:148 "n" "200" "30/01/2012 10:41:10:558 AM" 2012-01-30 10:44:48:049 "y" "NA" ... (7 Replies)
Discussion started by: nith_anandan
7 Replies

4. Solaris

How do I configure sendmail to block all OUTGOING mail FROM one userid TO the world?

Hello, ENVIRONMENT: OS: Solaris 10 Sendmail: 8.13.8+Sun BACKGROUND: We had a user account that was compromised and was used as a relay. She sent out (or would have if we didn't kill sendmail) ~10K emails alerting people they just won $75K. The target for this spam was everyone internal... (1 Reply)
Discussion started by: avikb
1 Replies

5. AIX

AIX auto delete old mail messages

We have had an issue where the mail file filled up. Is there a setting in sendmail.cf to automatically remove old emails? Say after 14 days. If not is there any way automatically to delete older mail files?? (1 Reply)
Discussion started by: daveisme
1 Replies

6. UNIX for Dummies Questions & Answers

Disable Outgoing Mail

I have a Solaris 2.6 server running sendmail (Version 8.9.3p2). It actually receives email and runs the sendmail process. I need to configure it so that it continues to receive email, but disable its ability to send email out. My initial ideas was to just rename the mail and mailx binaries. But... (0 Replies)
Discussion started by: Rosko
0 Replies

7. Solaris

auto mail

Hi All, I have solaris 8 on sparc machine, i need to know how i can let my system send to my e-mail any impacts or troubles.... how i can do that?! :confused: thx, (1 Reply)
Discussion started by: ahmad_one
1 Replies

8. UNIX for Dummies Questions & Answers

Need help for configuring outgoing mail in Solaris 9

G'day, I've a solaris 9 box that I want to configure so that users can send out mails to internet. How can I do it? Can someone pls list me the steps or direct me to a detailed website. Thanks in advance. (1 Reply)
Discussion started by: Albert J.
1 Replies

9. UNIX for Dummies Questions & Answers

Sendmail outgoing mail only setup.

Hi. I need to set up sendmail so that it can send mail to a mail relay. I have never touched sendmail before so I am not sure how to do this. All incoming mail is directed to a different server - this is just to enable me to get mail out. Running Solaris 8 on Sparc. Many thanks, ... (6 Replies)
Discussion started by: warrend
6 Replies
Login or Register to Ask a Question
msgchk(1mh)															       msgchk(1mh)

Name
       msgchk - check for messages

Syntax
       msgchk [ -help ] [ -nodate ] [ -notify all|mail|nomail ] [ users ...  ]

Description
       The  program checks all known mail drops for mail that is waiting for you.  It displays whether you have mail waiting to be read or not and
       shows the date that you last read your mail.

       You can check other user's maildrops by specifying their user names as the users argument on the command line.

Options
       -help	 Prints a list of the valid options for this command.

       -date
       -nodate	 Prints the date when you last read your mail.	This is the default behavior of The -nodate option can be used of you do not  want
		 to print this date.

       -notify
       -nonotify Indicates  under  what circumstances should produce a message.  There are three legal values: all, mail, and nomail.  The default
		 is -notify all, which reports the status of the maildrop regardless of whether it has mail in it or not.  The -notify mail option
		 reports  the  status of the maildrop only if there is mail waiting.  The -notify nomail option reports the status of the maildrop
		 only if there is no mail in it.

       -source file
		 Specifies the source which are checked for mail.  The only value allowed is file, which is the user's maildrop.  Additional  val-
		 ues are supported only for use with other mail systems.

Restrictions
       does  not  understand the $MAILDROP environmental variable.  If mail is fetched from a location other than will not be able to determine if
       new mail has arrived.  However, can still be used to fetch mail when it arrives.

       For this version, the -source option only supports the value file.  Additional values are supported for use only with other mail systems.

Examples
       This example shows a user Smith checking his own maildrop:
       % msgchk
       Smith:
	  New file source mail waiting ; last read on Tue, 07 Jun 88 17
       :21:49 WET

       The next example shows a user checking the maildrops of two other local users on the same system, Rabb and Jones:
       % msgchk Rabb Jones
       Rabb:
	  No file-source mail waiting ; last read on Tue, 07 Jun 13:22:
       25 WET
       Jones:
	  New file source mail waiting ; last read on Tue, 07 Jun 17:30
       :05 WET

Files
       The user profile.

       The system customization file.

       The user's maildrop.

See Also
       inc(1mh)

																       msgchk(1mh)