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

Steve Bertrand iaccounts at ibctech.ca
Wed Apr 25 13:04:14 UTC 2007


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


More information about the freebsd-questions mailing list