Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Apr 2007 09:04:19 -0400
From:      Steve Bertrand <iaccounts@ibctech.ca>
To:        wodfer@gmail.com
Cc:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: How do I forward old root emails from the root mailbox to my address?
Message-ID:  <462F51D3.9010500@ibctech.ca>
In-Reply-To: <20070425095713.GA9767@nemesis.frida.mouhaha.de>
References:  <23ed14b80704250211l16756f5dkab26503c0f66e2a2@mail.gmail.com> <20070425095713.GA9767@nemesis.frida.mouhaha.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Oliver Peter wrote:
> On Wed, Apr 25, 2007 at 11:11:07AM +0200, Andreas Widere Andersen wrote:
>> Hi,
>> On one of my FreeBSD servers all system emails to root is stored in the root
>> mailbox under /var/mail/root. I have updated my alias file so new mail is
>> forwarded to one of my email adresses, but is there a simple way for me to
>> send all these old mails in root's mailbox to my email address without
>> logging in through pop3/imap?

Perform the following command, assuming 'user' is the account you have
with the alias to somewhere else:

# mail -f /var/mail/root -F user

..which will merrily dump each message to the alias user, and from there
forward it to your email account.

Steve



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