Solved

how can i get mail coming into /var/spool/mail/root forwarded on to an email address?

Posted on 2003-11-17
2
313 Views
Last Modified: 2013-12-15
how can i get mail coming into /var/spool/mail/root forwarded on to an email address?
0
Comment
Question by:greenbug2000
[X]
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
2 Comments
 
LVL 38

Expert Comment

by:yuzh
ID: 9768262
You can put a .forward file under the root home dir, and the .forward file looks like:

soemone@abc.com

or
root, soemone@abc.com    

the first one will forward to soemone@abc.com, the 2nd one root will keep a copy of
the email in the mail box.

You could also use mail aliase (sendmail), to make root's email pointing to soemone@abc.com    

0
 
LVL 12

Accepted Solution

by:
paullamhkg earned 55 total points
ID: 9768813
yuzh gave you the solution, I'm just expend a little on the aliases

vi /etc/aliases

root: someoneloginid

or

root: someone@abc.com

or

root: root, someoneloginid, someone@abc.com

after change save it and run newaliases

the 1st one is for send root mail to someone who have the login id/name on the same mail server, the 2nd one is send mail to someone in other mail server, the 3rd keep a copy for root and send mail to someone who have the login id/name on the same mail server and someone in other mail server.
0

Featured Post

Create CentOS 7 Newton Packstack Running Keystone

A bug was filed against RDO for the installation of Keystone v3. This guide is designed to walk you through the configuration for using Keystone v3 with Packstack. You will accomplish this using various repos and the Answers file.

Question has a verified solution.

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

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

622 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