Solved

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

Posted on 2003-11-17
2
282 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
Comment Utility
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
Comment Utility
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

772 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now