LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-27-2004, 02:39 AM   #1
robberttheman
LQ Newbie
 
Registered: Jul 2004
Posts: 15

Rep: Reputation: 0
Question mail daily root@localhost to private email?


Hi could someone tell me how and if it is possible to e-mail the daily report from the server that is send to root@localhost to my own email?

I have Fedora core 2 running, does someone know how to fix this please?

Kind regards Robbert
 
Old 08-27-2004, 06:46 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
What MTA are you using? Setup your root alias in the config to get forwarded to your other email, etc. But more details please to get a better answer.
 
Old 08-27-2004, 08:00 AM   #3
robberttheman
LQ Newbie
 
Registered: Jul 2004
Posts: 15

Original Poster
Rep: Reputation: 0
I don't use a MTA(that is a mailserver right?) I have sendmail installed and running though. I want to install a mailserver too, but i am still trying to find out what mailserver to install and which server is installed easily.

Hope you help me out anyway or ask me things i can lookup for you. I posted it in the newbie section
 
Old 08-27-2004, 08:09 AM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally posted by robberttheman
I don't use a MTA(that is a mailserver right?) I have sendmail installed and running though. I want to install a mailserver too, but i am still trying to find out what mailserver to install and which server is installed easily.

Hope you help me out anyway or ask me things i can lookup for you. I posted it in the newbie section
Sendmail is a MTA..

Go into your /etc/mail/ directory and edit your aliases file. (It might be located elsewhere but by default the configuration files for sendmail are in /etc/mail/)

And if it has a line that says:

Code:
root:        root
You can set that to whatever you want. Like myself, I run a mail server but have all messages go to my sysadmin alias. But you can also specify full email addresses if the user is not local on the system.

Example:

That would send all root email to trickykid@blahblah.com

After you edit the aliases file, just run newaliases as root.. and it will make the changes on the fly, no need to restart sendmail or your system.

Cheers
 
Old 08-27-2004, 08:36 AM   #5
robberttheman
LQ Newbie
 
Registered: Jul 2004
Posts: 15

Original Poster
Rep: Reputation: 0
Gr8 thx for writing it out for me, i really appreciate it. I found it, only on my machine it could be found under /etc/aliases, just for those who can't find it

Thx for your help,
Kind regards Robbert
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make Sendmail forward all incoming mail to localhost port 26 (Domino mail) speedgelb Linux - Software 3 09-27-2013 11:18 AM
Send root mail to email address GUIPenguin Linux - General 1 03-01-2005 08:16 PM
recieving root at localhost mail GraemeK Linux - Networking 10 08-29-2003 03:16 AM
Mail daily logs through shell scripts klnasveschuk Linux - Software 0 08-07-2003 06:02 AM
Mail to root forwarded to normal user email client? undecipherable Linux - Software 1 11-21-2002 02:47 PM


All times are GMT -5. The time now is 06:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration