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
NOTMUCH-MUTT(1) 					User Contributed Perl Documentation					   NOTMUCH-MUTT(1)

NAME
notmuch-mutt - notmuch (of a) helper for Mutt SYNOPSIS
notmuch-mutt [OPTION]... search [SEARCH-TERM]... notmuch-mutt [OPTION]... thread < MAIL notmuch-mutt [OPTION]... tag [TAGS]... < MAIL DESCRIPTION
notmuch-mutt is a frontend to the notmuch mail indexer capable of populating a maildir with search results. OPTIONS
-o DIR --output-dir DIR Store search results as (symlink) messages under maildir DIR. Beware: DIR will be overwritten. (Default: ~/.cache/notmuch/mutt/results/) -p --prompt Instead of using command line search terms, prompt the user for them (only for "search"). -h --help Show usage information and exit. INTEGRATION WITH MUTT
notmuch-mutt can be used to integrate notmuch with the Mutt mail user agent (unsurprisingly, given the name). To that end, you should define macros like the following in your Mutt configuration (usually one of: ~/.muttrc, /etc/Muttrc, or a configuration snippet under /etc/Muttrc.d/): macro index <F8> "<enter-command>unset wait_key<enter><shell-escape>notmuch-mutt --prompt search<enter><change-folder-readonly>~/.cache/notmuch/mutt/results<enter>" "notmuch: search mail" macro index <F9> "<enter-command>unset wait_key<enter><pipe-message>notmuch-mutt thread<enter><change-folder-readonly>~/.cache/notmuch/mutt/results<enter><enter-command>set wait_key<enter>" "notmuch: reconstruct thread" macro index <F6> "<enter-command>unset wait_key<enter><pipe-message>notmuch-mutt tag -inbox<enter>" "notmuch: remove message from inbox" The first macro (activated by <F8>) prompts the user for notmuch search terms and then jump to a temporary maildir showing search results. The second macro (activated by <F9>) reconstructs the thread corresponding to the current mail and show it as search results. The third macro (activated by <F6>) removes the tag "inbox" from the current message; by changing "-inbox" this macro may be customised to add or remove tags appropriate to the users notmuch work-flow. To keep notmuch index current you should then periodically run "notmuch new". Depending on your local mail setup, you might want to do that via cron, as a hook triggered by mail retrieval, etc. SEE ALSO
mutt(1), notmuch(1) AUTHOR
Copyright: (C) 2011-2012 Stefano Zacchiroli <zack@upsilon.cc> License: GNU General Public License (GPL), version 3 or higher perl v5.14.2 2012-06-02 NOTMUCH-MUTT(1)