On Tue, Jan 27, 2004 at 10:50:37AM +0100, Brent Frère wrote:
I have users with large mailboxes
(/var/spool/mail/$LOGIN).
They need a forward (/home/$LOGIN/.forward)
How can I re-process the stored e-mail such a way that
it is
forwarded to their new e-mail address ?
Run
formail /var/spool/mail/$LOGIN -s /usr/sbin/sendmail -oi -f '<>'
newaddress@newdomain
Slightly more robust: Instead of an empty sender, use
<loop@yourdomain> (make sure your sendmail accepts this and doesn't
silently set it to $LOGIN@yourdomain), and read the mail sent to
loop@ to see if everything went well.
Alternatively, you could run
mutt -f /var/spool/mail/$LOGIN
T.
;bnewadress@newdomain
q
(Be sure to do something sensible with bounces in the mutt case)
--
Lionel