|
|
#183 (permalink) |
|
Registered User
Comfy Contributor
Joined in Nov 2006
Hosted on SH107
105 posts
Gave thanks: 8
Thanked 0 times
|
Please see my script below. It reflects what we've worked on in this thread. Surpass reports that my spamd processes are hanging SH107
and I'd like to stop that if it's related to the script. #!/bin/sh for SPAMFOLDER in `find /home/kdanieli/mail -name .SPAM -print` do echo " " echo -e "\tProcessing verified spam in $SPAMFOLDER" echo -n -e "\t\t" find $SPAMFOLDER/cur -type f -name \*S | sa-learn --spam --no-sync -f - echo -e "\t\tMoving messages marked as read..." cd $SPAMFOLDER cd ../.Trash echo -n -e "\t\tCurrent Directory: " ; pwd echo -n -e "\t\t" for MSG in `find $SPAMFOLDER/cur -type f -name \*S` do #echo -e -n "\t\t\t" ; mv -v $MSG cur/ echo -n "." ; mv $MSG cur/ done done echo " " echo "Learning from HAM" for HAMFOLDER in `find /home/kdanieli/mail -name .HAM -print` do echo " " echo -e "\tProcessing $HAMFOLDER/cur" echo -n -e "\t\t" find $HAMFOLDER/cur -type f -name \*, -or -name \*S | sa-learn --ham --no-sync -f - echo -e "\t\tRemoving ham messages..." echo -n -e "\t\t" for MSG in `find $HAMFOLDER/cur -type f -name \*, -or -name \*S` do #rm -v $MSG echo -n "." ; rm $MSG done done echo " " echo "Synchronising spam database" sa-learn --sync --progress Thanks. Last edited by kdanieli; June 15th, 2007 at 12:01 AM. |
|
|
|
|
|
#184 (permalink) | |
|
Surpass Fan
Comfy Contributor
Joined in Feb 2004
Lives in Norfolk, England
Hosted on Pass32
159 posts
Gave thanks: 21
Thanked 18 times
|
Quote:
I'm sorry the learnspam script is causing your shared server a problem. I can only remember one time where it caused server load to go sky-high: one particular mailbox had about 1000 spam messages in it when some old spam messages never got deleted, it was taking the server about 6 minutes to run the script. I wonder if something similar is happening to you. How many email accounts is the script processing and how many messages are in each spam/ham/learnspam folder? Regards Jonathan
__________________
Server: Pass32 and dedicated server |
|
|
|
|
|
|
#185 (permalink) | |
|
Searcher
Surpass Staff
Joined in May 2003
Lives in Orlando
24,514 posts
Gave thanks: 936
Thanked 788 times
|
Quote:
I think the problem here is just what you describe - too many messages..
__________________
Follow Surpass on Twitter and Facebook
Check out interesting finds on the Surpass Blog .... it's coming. |
|
|
|
|
|
|
#186 (permalink) |
|
Registered User
Comfy Contributor
Joined in Nov 2006
Hosted on SH107
105 posts
Gave thanks: 8
Thanked 0 times
|
Thanks for the help but I don't think that there were many messages. There are 3 or 4 accounts....and only a few messages in each except for the first time when I loaded maybe 50 or 100 messages into the SPAM folder (not sure) and the spam account. I believe that I currently have the 8+* spams sent to a spam account. That one currently has 108 messages in the SPAM folder - but I think the script should have emptied all the SPAM folders already - dunno why it hasn't.
My cron job i is set to 0 0 2 * * - to run every 2 days but I think that's not doing it as I haven't received the email report for some time. thanks Last edited by kdanieli; June 17th, 2007 at 9:58 PM. |
|
|
|
|
|
#187 (permalink) | ||
|
Surpass Fan
Comfy Contributor
Joined in Feb 2004
Lives in Norfolk, England
Hosted on Pass32
159 posts
Gave thanks: 21
Thanked 18 times
|
Hello,
Quote:
Quote:
EDIT: Have you seen my post with the newer, completely re-written version of the learn spam script? It should give better performance as it doesn't execute sa-learn unless it has to. I have also tried to make it easier to configure and read what it is doing. Cheers Jonathan
__________________
Server: Pass32 and dedicated server Last edited by jdcopelin; June 18th, 2007 at 6:01 AM. Reason: added more info |
||
|
|
|
|
|
#188 (permalink) |
|
minor deity
Super #1
Joined in Apr 2004
Lives in Georgia
Hosted on XEON
7,340 posts
Gave thanks: 23
Thanked 93 times
|
WOW.
The old (original script) with MBOX runs on my server in a minute - and I have several mail box spam folders with THOUSANDS of spam (incase re-training is necessary...)... I'm liking this new "maildir" thing less and less as time goes forth... but that's just me, complain complain complain....
__________________
Proud to be a Surmunity Mod! XEON Make a fundamental difference! My Sites: Curious about Brewing Beer? Join the community! >>>>> Some Change is GOOD! Keep your paycheck! Support the Fair Tax Get into an Art museum Victorian London It's your brain -ON WEB - mybrainhost.com (under development) What SHOULD Government do? Much Less than it Does! |
|
|
|
|
|
#189 (permalink) |
|
Registered User
Comfy Contributor
Joined in Nov 2006
Hosted on SH107
105 posts
Gave thanks: 8
Thanked 0 times
|
That new script is at this thread: new spamassassin script
No, I haven't tried that yet. Thanks for the help. |
|
|
|