The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Previous Message  |  Next Message 
 Re: how to read root mail
Author: Dan 
Date:   02-01-07 22:44

Are you really logging in as root? Or logging in as your usual user and using su?

Regardless, I usually forward all mail for root to myself. An easy way to do this is /etc/mail/aliases. In there, you will find a commented out alias for root. Change it to yourself, like this:

$ grep root /etc/mail/aliases
root: dan

Then all mail for root on this machine will go to dan's account.

You could also specify dan@example.org, instead of just dan.

Depending on what mail server you are using, you need to invoke the changes you made to that file: newaliases is what you'd use on a default system. If using postfix, then postalias /etc/mail/aliases is what you want.

--
Webmaster

 Reply To This Message  |  Forum List  |  Flat View   Newer Topic  |  Older Topic 

 Topics Author  Date
 how to read root mail   new
cbrace 02-01-07 22:23 
 Re: how to read root mail   new
Dan 02-01-07 22:44 
 Re: how to read root mail   new
cbrace 02-01-07 23:12 
 Re: how to read root mail   new
Dan 03-01-07 00:32 
 Re: how to read root mail   new
cbrace 03-01-07 02:17 
 No getting mail for root   new
robi_cse2k 11-08-11 06:36 
 Re: No getting mail for root   new
Dan 11-08-11 11:50 
 Re: how to read root mail   new
Jim Trigg 19-01-07 19:25 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org