On Sat, Feb 19, 2011 at 10:24 PM, Daniel Staal <dst...@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 > ! n...@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 _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"