Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Apr 2007 14:56:08 -0500
From:      Eric Crist <mnslinky@gmail.com>
To:        =?ISO-8859-1?Q?Andreas_Wider=F8e_Andersen?= <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:  <987BC865-AF4A-4324-B2EB-A16E00907847@gmail.com>
In-Reply-To: <23ed14b80704250423n21d5eaa1hc78ce1262d710959@mail.gmail.com>
References:  <23ed14b80704250211l16756f5dkab26503c0f66e2a2@mail.gmail.com> <20070425095713.GA9767@nemesis.frida.mouhaha.de> <23ed14b80704250423n21d5eaa1hc78ce1262d710959@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Apr 25, 2007, at 6:23 AMApr 25, 2007, Andreas Wider=F8e Andersen =
wrote:

> On 4/25/07, Oliver Peter <hoschi@mouhaha.de> wrote:
>>
>> On Wed, Apr 25, 2007 at 11:11:07AM +0200, Andreas Widere Andersen =20
>> wrote:
>> > Hi,
>> > On one of my FreeBSD servers all system emails to root is stored =20=

>> in the
>> root
>> > mailbox under /var/mail/root. I have updated my alias file so =20
>> new mail
>> is
>> > forwarded to one of my email adresses, but is there a simple way =20=

>> for me
>> to
>> > send all these old mails in root's mailbox to my email address =20
>> without
>> > logging in through pop3/imap?
>> >
>> > A command line trick would be perfect.
>>
>> mutt is your friend.
>>
>> Open the mbox file with
>>           # mutt -R -f /var/mail/root
>>
>> Then Tag all mails (press 'T' then enter '.') and bounce the tagged
>> messages (press ';' and thenn 'b') to your personal email address.
>>
>> That's the easiest way I know.
>> (Of course you need a running MTA, too)
>
>
> Thanks for your reply. I don't have mutt installed and I was hoping =20=

> for a
> way of doing this without installing additional software. Also, I =20
> didn't
> mention that on one of the machines there are probably a year of =20
> emails so
> the box is quite large.
>
> Any other ways? I have sendmail installed and running.
>
> Cheers,
> Andreas

Andreas,

Edit /etc/mail/aliases and uncomment the root: line and make it look =20
like:

root:  <your_username>

Where <your_username> is the local account and/or email address you =20
want to recieve root email.

Save the file, while in the /etc/mail directory, run 'make install && =20=

make restart' as root, without the quotes.  all email will now go to =20
the new address.

Eric=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?987BC865-AF4A-4324-B2EB-A16E00907847>