Hey Jake,
I have a script I run nightly which removes mail in the spam folders older 
than 10 days.  It gives users a chance to review or move to their ham folder 
if needed.  I've added this script to run from cron and every night it 
executes and sends me an email of what was removed (cron emails it).  I've 
added a couple of comments to help anyone reading trying to figure it out. 
It's actually very simple.

George

#!/bin/sh
#spam-clean.sh
#note you must have a /scripts dir and you must use a folder for spam called 
spam-folder (for your users)
echo "#################BEGIN REMOVE OLD SPAM SCRIPT ################"
locate spam-folder/ | grep -v S= | grep \/cur | uniq > /scripts/spam-folders
echo "moving to spam-clean file"
#note: mtime is for how many days to leave the messages on the server
cat /scripts/spam-folders | awk '{print "find "$0"/  -type f -mtime 
10  -exec rm -v {} \\; " };{ };{next}' > /scripts/spam-clean
echo "removing now"
sh /scripts/spam-clean
echo "if you want to see the spam directories which have been cleaned please 
do this:"
echo "cat /scripts/spam-clean"
echo "all done with spam cleanup"
echo
echo "################# END REMOVE OLD SPAM SCRIPT ################"



----- Original Message ----- 
From: "Jake Vickers" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, July 24, 2006 12:10 PM
Subject: Re: [qmailtoaster] DNSBL


There is a workaround for this until the better method rolls out in the
next version. You can set CHKUSER_MBXQUOTA="99" in your tcp.smtp for all
the hosts (127. and any others you may have set up) and this will fix
the quota issue. Only needed if you have a problem with this, and are
not deleting the messages on a regular basis. What I do is run a script
(also on my site) that runs sa-learn on the Spam directory, and then
deletes the messages. The main draw-back to this is if a legitimate
email makes it into the Spam box, it will be learned from as spam, and
then deleted at whatever time you run the script. The user may never
know the message was even there if for example you run the script at 1am
and the message comes in at 10pm (assuming the user stops checking their
spam box at 5pm), then it will be deleted at 1am and when they come in
at 8am it will already be gone.
But it works for me like that. I have not had an email make it into the
spam box that was not supposed to be there in a LONG time. The ones that
were I added to my white list in local.cf so they start with a score of
-100 to begin with.


---------------------------------------------------------------------
     QmailToaster hosted by: VR Hosted <http://www.vr.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
     QmailToaster hosted by: VR Hosted <http://www.vr.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to