procmail
[Top] [All Lists]

Re: Disappearing Emails

2007-03-21 06:47:29

My problem with this is storing all the spam on the hard drive in
.in.spam - we used to do something like that but it would fill up the
hard drive. Bring everything to a halt.

Erm... how small is the drive?  most spam messages are under 10K, so  
100,000 per gigabyte, right?

What I do is write the spam out to an archive gzip file:

DATE=`date '+%d-%b-%Y'`

{ stuff }

   # Archive to gzip file
   :0:
   | gzip -fc9 >> $HOME/backup/archive-$DATE.gz

Then I use logrotate to expire the old archives.  (I think it's  
logrotate at least, been ages since I set that up).

-- 
But just because you've seen me on your TV
Doesn't mean I'm any more enlightened than you



____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>