--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
Daniel T. Staal
---------------------------------------------------------------
This email copyright the author. Unless otherwise noted, you
are expressly allowed to retransmit, quote, or otherwise use
the contents for non-commercial purposes. This copyright will
expire 5 years after the author's death, or in 30 years,
whichever is longer, unless such a period is in excess of
local copyright law.
---------------------------------------------------------------
_______________________________________________
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"