I use this cron job:
#!/bin/sh
FILEEXT=`/bin/date +%m-%d-%Y`
cp /var/spool/qmailscan/qmail-queue.log
/var/spool/qmailscan/qmail-queue.log-$FILEEXT
echo "" > /var/spool/qmailscan/qmail-queue.log
chown qmailq.qmail /var/spool/qmailscan/qmail-queue.log
Hope this help someone.
Marcello
----- Original Message -----
From: "Jason Haar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 10, 2002 7:05 AM
Subject: Re: [Qmail-scanner-general]TMP dir Cleanup Fail
> On Fri, May 10, 2002 at 11:14:16AM +0700, Anang Syarifudin wrote:
> > Then I dig into qmailscan/working/tmp, there's old files which is
supposed
> > to be deleted after qmailscan process, I don't know why it still there.
>
> Did you read the documentation?
>
> "Any SMTP sessions that are dropped (due to network outages/etc) may lead
to
> files lying around in /var/spool/qmailscan . Running
> /var/qmail/bin/qmail-scanner-queue.pl -z at least once daily will ensure
> such files are deleted when they're over 30 hours old - make a cronjob to
do
> that. Also realise that /var/spool/qmailscan/qmail-queue.log will grow
> without bounds. At some stage turn debugging off ($DEBUG=0 ) and delete
the
> logfile. Personally, I like the logfile, so I run a cronjob that just does
> "mv -f qmail-queue.log qmail-queue.log.1" at 3am every morning. That way
> logs don't grow without bound, but you still end up with the logs from the
> past two days."
>
>
> --
> Cheers
>
> Jason Haar
>
> Information Security Manager
> Trimble Navigation Ltd.
> Phone: +64 3 9635 377 Fax: +64 3 9635 417
>
> _______________________________________________________________
>
> Have big pipes? SourceForge.net is looking for download mirrors. We supply
> the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
> _______________________________________________
> Qmail-scanner-general mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general
_______________________________________________________________
Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general