Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jan 2009 00:31:24 -0200
From:      Gonzalo Nemmi <gnemmi@gmail.com>
To:        freebsd-questions@freebsd.org
Cc:        Rem P Roberti <remegius@comcast.net>
Subject:   Re: Delivering system mail
Message-ID:  <200901260031.24297.gnemmi@gmail.com>
In-Reply-To: <497D0B57.8040804@comcast.net>
References:  <497D0B57.8040804@comcast.net>

next in thread | previous in thread | raw e-mail | index | archive | help

On Sunday 25 January 2009 11:01:11 pm Rem P Roberti wrote:
> I currently have to retrieve crontab generated system mail from the command
> line.  Is it possible to have system mail delivered to my Thunderbird
> mail client?
>
> Rem

On a default system, you probably want to edit /etc/aliases an make root mail 
get redirected to you ...

In order to do so, open your /etc/aliases file, look for the line that reads:

# Pretty much everything else in this file points to "root", so
# you would do well in either reading root's mailbox or forwarding
# root's email from here.

root:

and edit it so it looks like this:

 # Pretty much everything else in this file points to "root", so
# you would do well in either reading root's mailbox or forwarding
# root's email from here.

root:   yourusername

save the changes and run the following command as root:

newaliases

From then on, all mail directed to "root" (like those crontab send) will be 
forwarded to you .. so all you need to do is set up your mail client to pick 
up it's mail from /var/mail/yourusername and there you go :)

Hope that helps.

Regards
-- 
Blessings
Gonzalo Nemmi



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901260031.24297.gnemmi>