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

Olivier Nicole on at
Thu Apr 26 06:29:39 UTC 2007

> 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?

A combination of cat /var/mail/root | formail -s and something.

cat /var/mail/root | formail -s will read /var/mail/root, separate
each message and pipe it to the command that follow the -s. The
command could be a sendmail new at or something, you may have to

cat /var/mail/root | formail -s /usr/sbin/sendmail new at


More information about the freebsd-questions mailing list