re-delivering email

Martijn van Oosterhout kleptog at svana.org
Fri Aug 10 12:31:13 EST 2001


On Fri, Aug 10, 2001 at 11:59:12AM +1000, Grant Morphett wrote:
> So, I was asked to have a quick look at a linux box acting as a firewall/email server connected to the net.  Usual thing.  It appears that root is extremely popular with 50Meg of
> email!!!!  For unexplained reasons email is sometimes failing local delivery and going to the root user by default.  I will investigate that shortly but the urgent thing is to get
> that huge file re-delivered to all the correct users.  Ideas on how I should do this automatically would be great otherwise I will spend an hour or two doing it by hand.

well, formail can take mbox file and split it up. If all the headers are
intact, formail -s sendmail should deliver everything in it.

Don't forget to move root's mbox first, or you might get an infinite loop.

-- 
Martijn van Oosterhout <kleptog at svana.org>
http://svana.org/kleptog/
> It would be nice if someone came up with a certification system that
> actually separated those who can barely regurgitate what they crammed over
> the last few weeks from those who command secret ninja networking powers.




More information about the linux mailing list