Re: How do I redirect the daily log messages to another address?

2006-09-21 Thread Andreas Maus

On 9/21/06, Steve B [EMAIL PROTECTED] wrote:

Hi Steve.


I'd like to redirect the daily log messages that go to root to an external

[... snip ...]

Could someone point me in the right direction as to what I should be looking
for? I'm pretty sure it has to do with Sendmail.

Setting up an alias for root that points to the external address should work.
Putting the alias in /etc/mail/aliases and rebuild the aliases database with
newaliases -see man 8 newaliases.

HTH,

Andreas.

P.S.: Of cause the external address can be resolved.

--
Hobbes : Shouldn't we read the instructions?
Calvin : Do I look like a sissy?



Re: How do I redirect the daily log messages to another address?

2006-09-21 Thread Terry
On Thu, Sep 21, 2006 at 02:24:29PM -0700, Steve B wrote:
 I'd like to redirect the daily log messages that go to root to an external
 email address. I have searched Google for information but I am just not
 supplying the right keywords to find a good match. I did find references
 telling me that this is a bad idea, and I accept the risk that it poses.
 Could someone point me in the right direction as to what I should be looking
 for? I'm pretty sure it has to do with Sendmail.
 
 Steve
 

You could edit /etc/mail/aliases and then run newaliases or you could
put a .forward in root's home dir.

-- 
Terry
http://tyson.homeunix.org



Re: How do I redirect the daily log messages to another address?

2006-09-21 Thread Matthew R. Dempsky
On Thu, Sep 21, 2006 at 02:24:29PM -0700, Steve B wrote:
 I'd like to redirect the daily log messages that go to root to an external
 email address.

Explanations have already been given on how to redirect all of root's
mail to someone else, but in case you really want just the daily log
messages directed elsewhere, you can edit root's crontab to mail to a
different address.  Just replace ``root'' in ``mail -s ... root''
with an appropriate alternative address.