Solved

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

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Replace Ubuntu Desktop with Ubuntu Server 7 91
linux boot fsck problem 3 61
Sendmail STARTTLS error 37 83
AWS- KeepAlived notify script not working 23 44
In this tutorial I will explain how to make squid prevent malwares in five easy steps: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-…
This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
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…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

920 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