Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

keep a copy of using email!!

Posted on 1998-05-26
12
283 Views
Last Modified: 2010-03-18
I want set the email system on linux, the root(or administrator or a user) can receieve a cc mail of what other users send and receieve.

Anyone know how to setup it on sendmail???

thanks
0
Comment
Question by:boingone
  • 5
  • 3
  • 3
  • +1
12 Comments
 

Expert Comment

by:muesli
ID: 1584398
Is this ethical?  If you can't configure it yourself, maybe you shouldn't be doing it.  See sendmail.cf
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1584399
If it's a standalone system, sendmail.cf usually needs not be changed, just start sendmail.
If your system is part of LAN/WAN, you first need to setup DNS.
If you just want to reseive mail from a mailhost use POP3.
0
 

Author Comment

by:boingone
ID: 1584400
The reason to set like this is, the root or administrator want to receieve a copy of  mail of what other users send and receieve. How to setup it on sendmail ?
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 10

Accepted Solution

by:
rbr earned 150 total points
ID: 1584401
To option is -O MeToo="root"

0
 

Author Comment

by:boingone
ID: 1584402
how? setup at which file(s)?
0
 
LVL 10

Expert Comment

by:rbr
ID: 1584403
You should have a /etc/sendmail.cf file. Use this one.
0
 

Author Comment

by:boingone
ID: 1584404
just add a line ( -O MeToo = "root" ) at any part of sendmail.cf and restart it will ok?
0
 
LVL 10

Expert Comment

by:rbr
ID: 1584405
Look for a me too line.
I could look like OmFalse alter this in
Omroot
or if it looks like O MeToo alter this in
O MeToo="root"

0
 

Author Comment

by:boingone
ID: 1584406
I edit the following line at /etc/sendmail.cf

# send to me too, even in an alias expansion?
O MeToo="root"

and reboot again, my Linux is slackware 2.0.30

I try both send out and receieve by a user, but the root still can't get any mail of that user!

did I do the right thing?

thanks
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1584407
I don't think that the O MeToo  option will do what boingone wants. It just makes a copy of each mail send back to the originator.

Try to modify the  Mprog  and/or  Mlocal  macros (sorry don't have the bat-book handy right now for the syntax). You must add the Cc: or (for you "big brother" watching Bcc:) to the command line of the appropriate deliver program.
0
 

Author Comment

by:boingone
ID: 1584408
can u tell more detail on how to set it up on the macros
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1584409
try following in sendmail.cf:

   HBcc: root

or

   H?P?Bcc: root
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question