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
NMZMAIL(1)						      General Commands Manual							NMZMAIL(1)

NAME
nmzmail - a tool to use the namazu2 search engine from within mutt SYNOPSIS
nmzmail [ -b <base> ] [ -r <result> ] -i <maildir1> <maildir2> ... -or- nmzmail [ -b <base> ] [ -r <result> ] [ -n <limit> ] DESCRIPTION
nmzmail is a program that uses the namazu2 search engine (http://www.namazu.org) from within the mail client mutt to search and index mail stored in maildir folders. Based on the result of the namazu query, nmzmail generates a maildir folder containing symbolic links to the mail matching the query. A simple mutt macro makes it very easy to use nmzmail from within mutt, and a simple crontab entry always keeps your mail indexed by namazu. Add the following macro to your muttrc file: macro generic S "<shell-escape>nmzmail<return><esc>c~/.nmzmail/result<return>" "Search via nmzmail" Run mutt and hit "S" and enter your query when prompted. You can manually update your index periodically or via a cronjob with: nmzmail -i <maildir1> <maildir2> ... OPTIONS
-i This tells nmzmail to index your email. -b FILE Base. Where nmzmail builds its index. By default it is in $HOME/.nmzmail. -r FILE Result. Similar to -b, this lets you specify where the results are to be built. By default it is within $HOME/.nmzmail. -n NUM Limit. When making a query, nmzmail can be used directly from the command line instead of from within mutt. When the -n option is invoked, the number of results returned from your query will be limited to whatever integer you specify for NUM. SEE ALSO
namazu(1),mutt(1) AUTHOR
nmzmail was written by Johannes Hofmann <johannes.hofmann@gmx.de> This manual page was written by Kevin Coyner <kcoyner@debian.org>, for the Debian project (but may be used by others). March 2006 NMZMAIL(1)