[SA-exim] clearing out SAspamaccept

Thomas Kinghorn thomask at mtnns.net
Tue Apr 29 10:32:04 PDT 2003


many thanks Paul.

-----Original Message-----
From: Paul Makepeace [mailto:merlins.org at paulm.com]
Sent: 29 April 2003 09:26
To: Thomas Kinghorn
Cc: Sa-Exim at Lists. Merlins. Org (E-mail)
Subject: Re: [SA-exim] clearing out SAspamaccept


On Tue, Apr 29, 2003 at 09:00:15AM +0200, Thomas Kinghorn wrote:
> Is there a way to zip or clear the mail in SAspamaccept?
> 
> My directory is massive.
> There must be a way to automate this, however, I am pretty new to SA-Exim.

You could try something like,

find /var/spool/exim/SAspamaccept -mtime +7 -print0 | xargs -0 rm

Which will remove anything modified (or created in this case) over seven
days. The -0 deals with the horrid filenames being produced.

You could have this scheduled to happen at regular intervals. Look in
man 5 crontab and man 1 crontab.

Paul

-- 
Paul Makepeace ....................................... http://paulm.com/

"If one paper burns well, then what can you do."
   -- http://paulm.com/toys/surrealism/



More information about the SA-Exim mailing list