Re: /var/spool/qmailscan/tmp and /var/spool/qmailscan/working

Salvatore Toribio <[email protected]>
Newsgroups gmane.mail.qmail.scanner
Message-ID <a06240801c32292cb520e@[10.0.1.2]>
At 21:42 +1000 27-09-2007, Christian Lerrahn wrote:
>  > Hi
>>
>>  You should stop qmail and wait until all the active connections are
>>  close properly, then you can safely remove purge those directories,
>>  and restart qmail.
>
>I purged the directories meanwhile and restarted everything. However,
>the directories keep growing sometimes at a rapid rate. The strange
>thing is that I can check /var/spool/qmailscan/qmail-queue.log, find an
>entry like
>
>Thu, 27 Sep 2007 06:38:22 EST:2609: SA: yup, this smells like SPAM -
>hits=6.4/4.2/4.2 - tagging message... Thu, 27 Sep 2007 06:38:22
>EST:2609: SA: finished scan in 6.022031 secs - hits=6.4/4.2 Thu, 27 Sep
>2007 06:38:22 EST:2609: p_s: finished scan in 0.022091 secs Thu, 27 Sep
>2007 06:38:22 EST:2609: ini_sc: finished scan of
>"/var/spool/qmailscan/tmp/mail11908930947182609"... Thu, 27 Sep 2007
>06:38:22 EST:2609: ------ Process 2609 finished. Total of 7.881787 secs
>
>However, if I check for /var/spool/qmailscan/tmp/mail11908930947182609
>that directory still exists and there are files in it. Should these
>files not be deleted once they aren't needed any more? Any hints why
>they are not getting deleted?
>

Of course those files and directories shouls be deleted when 
qmail-scanner finish processing them.

In version 1.25st, this is the code thar removes those files and directories:

   system("$rm_binary -rf $ENV{'TMPDIR'}/ 
$scandir/$wmaildir/new/$file_id") if ($DEBUG < 100 && $file_id ne "");

ST

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.