Date: Wed, 25 Apr 2007 17:44:06 +0200 From: Christoph Schug <chris+freebsd-questions@schug.net> To: Andreas =?iso-8859-15?Q?Wider=F8e?= Andersen <wodfer@gmail.com> Cc: freebsd-questions <freebsd-questions@freebsd.org> Subject: Re: How do I forward old root emails from the root mailbox to my address? Message-ID: <20070425154406.GD32616@voodoo.schug.net> In-Reply-To: <23ed14b80704250423n21d5eaa1hc78ce1262d710959@mail.gmail.com> References: <23ed14b80704250211l16756f5dkab26503c0f66e2a2@mail.gmail.com> <20070425095713.GA9767@nemesis.frida.mouhaha.de> <23ed14b80704250423n21d5eaa1hc78ce1262d710959@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Apr 25, 2007, Andreas Widerĝe Andersen wrote: > Thanks for your reply. I don't have mutt installed and I was hoping for a > way of doing this without installing additional software. Also, I didn't > mention that on one of the machines there are probably a year of emails so > the box is quite large. Well, this one requires additional software too, but maybe you've got formail(1) (which is part of the procmail(1) distribution) installed. # formail -f -s /usr/sbin/sendmail -oiee newaccount@example.com \ </var/mail/root As this can put reasonable pressure on the receiving server, especially when doing sort of spam scanning, etc., you might want to add an delay: # formail -f -s /bin/sh -c \ '/usr/sbin/sendmail -oiee newaccount@example.com; sleep 1' \ </var/mail/root -cs
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070425154406.GD32616>