How do I forward old root emails from the root mailbox to my address?

Andreas Widerøe Andersen wodfer at
Wed Apr 25 13:43:03 UTC 2007

On 4/25/07, Steve Bertrand <iaccounts at> wrote:
> 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

Thank you all for helping out.


More information about the freebsd-questions mailing list