Re: [Exim] Input spool folder overrun

Top Page
Delete this message
Reply to this message
Author: Nico Erfurth
Date:  
To: Klaus.Dreher
CC: exim-users
Subject: Re: [Exim] Input spool folder overrun
Nico Erfurth wrote:
> Sopmething like this mostly happens when the local_scan-function exits
> exim abnormaly, exim-sa does this in previous versions, i don't know
> about Exiscan.
>
> You can savely delete the -D files, but to be on the safe side, only
> delete the one, which are older than 10 minutes or so (maybe 1h).
>
> A little perl-script could do the job :)


Ok, it's not a perl-script, but this should do the job to, you can
increase the -cmin parameter to be more safe, if you have real LOOONG
running local_scans

#!/bin/bash
for FILE in `find input/ -cmin +10 -name '*-D' -type f`; do
   FILEX=`echo $FILE|sed -e 's/-D$/-H/'`
   echo "Checking $FILE for header ($FILEX)"
   if [ ! -e $FILEX ] ; then
     echo "Removing stale $FILE"
     rm "$FILE"
   fi ;
done



ciao