Date: Wed, 25 Apr 2007 15:43:01 +0200 From: "=?ISO-8859-1?Q?Andreas_Wider=F8e_Andersen?=" <wodfer@gmail.com> To: freebsd-questions <freebsd-questions@freebsd.org> Subject: Re: How do I forward old root emails from the root mailbox to my address? Message-ID: <23ed14b80704250643u40e836b5xff493e77c9c6da24@mail.gmail.com> In-Reply-To: <462F51D3.9010500@ibctech.ca> References: <23ed14b80704250211l16756f5dkab26503c0f66e2a2@mail.gmail.com> <20070425095713.GA9767@nemesis.frida.mouhaha.de> <462F51D3.9010500@ibctech.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
On 4/25/07, Steve Bertrand <iaccounts@ibctech.ca> 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 > Sweet! Thank you all for helping out. Cheers, Andreas
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?23ed14b80704250643u40e836b5xff493e77c9c6da24>