Date: Sat, 19 Feb 2011 22:39:59 +0100 From: Andy Wodfer <wodfer@gmail.com> To: freebsd-questions <freebsd-questions@freebsd.org> Subject: Re: How to forward old root mails to an external email address? Message-ID: <AANLkTimLMMpwk_jh18rPmh9TLw7aB7=XspNnU8T1P1Ps@mail.gmail.com> In-Reply-To: <1837CB358903EB8C60F348FA@mac-pro.magehandbook.com> References: <AANLkTi=KzYd%2BHpozAGqoTL7a7w0Smvn3=QENbmjzZTeo@mail.gmail.com> <1837CB358903EB8C60F348FA@mac-pro.magehandbook.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Feb 19, 2011 at 10:24 PM, Daniel Staal <DStaal@usa.net> wrote: > --As of February 19, 2011 9:33:26 PM +0100, Andy Wodfer is alleged to have > said: > > 'm running FreeBSD 8.0 Release on this particular server and I have a >> rather large root mailbox under /var/mail/root. >> >> I have set up an alias under /etc/aliases for new emails, but I need to >> forward all the old emails in this mailbox to an external email address. >> >> How can I do that? >> > > --As for the rest, it is mine. > > Easiest way I know of is to set up a procmail rule to forward everything to > the external address, then feed the old mailbox to procmail via formail. > > ===== .procmailrc: > :0 > ! new@example.com > > ==== Command line: > cat /var/mail/root | formail -s procmail > Hi Daniel and thanks for your reply! I already tried something similare, but I keep getting command not found for formail. I was hoping there was a way of doing this without installing additional software - just use what comes with a default FreeBSD installation. Cheers, Andreas
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimLMMpwk_jh18rPmh9TLw7aB7=XspNnU8T1P1Ps>