Solved

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

Posted on 2003-11-17
2
296 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
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

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.

Question has a verified solution.

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

Suggested Solutions

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

828 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