icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » Email » Make SPAM ASSASSIN work for you...

Email General questions, webmail, mailing lists.

Reply
 
LinkBack Thread Tools Search this Thread Rating: Thread Rating: 11 votes, 4.82 average.
Old June 7th, 2007, 6:56 PM   #181 (permalink)
Registered User
Comfy Contributor
 
kdanieli's Avatar
 
Joined in Nov 2006
Hosted on SH107
105 posts
Gave thanks: 8
Thanked 0 times
great catch. thanks. it's working better now!
kdanieli is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 8th, 2007, 4:28 PM   #182 (permalink)
Surpass Fan
Comfy Contributor
 
jdcopelin's Avatar
 
Joined in Feb 2004
Lives in Norfolk, England
Hosted on Pass32
159 posts
Gave thanks: 21
Thanked 18 times
Quote:
Originally Posted by kdanieli View Post
great catch. thanks. it's working better now!
Thank you. Glad to hear that it is working again.
Cheers,
Jonathan
__________________
Server: Pass32 and dedicated server
jdcopelin is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 15th, 2007, 12:00 AM   #183 (permalink)
Registered User
Comfy Contributor
 
kdanieli's Avatar
 
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.
kdanieli is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 15th, 2007, 4:32 PM   #184 (permalink)
Surpass Fan
Comfy Contributor
 
jdcopelin's Avatar
 
Joined in Feb 2004
Lives in Norfolk, England
Hosted on Pass32
159 posts
Gave thanks: 21
Thanked 18 times
Quote:
Originally Posted by kdanieli View Post
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.
Hello kdanieli,

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
jdcopelin is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 15th, 2007, 7:07 PM   #185 (permalink)
Searcher
Surpass Staff
 
Kayla's Avatar
 
Joined in May 2003
Lives in Orlando
24,514 posts
Gave thanks: 936
Thanked 788 times
Quote:
Originally Posted by jdcopelin View Post
Hello kdanieli,

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
Jonathan, thank you very much for your help.

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.


Kayla is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 17th, 2007, 9:48 PM   #186 (permalink)
Registered User
Comfy Contributor
 
kdanieli's Avatar
 
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.
kdanieli is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 18th, 2007, 5:57 AM   #187 (permalink)
Surpass Fan
Comfy Contributor
 
jdcopelin's Avatar
 
Joined in Feb 2004
Lives in Norfolk, England
Hosted on Pass32
159 posts
Gave thanks: 21
Thanked 18 times
Hello,

Quote:
Originally Posted by kdanieli View Post
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
Hmm. I think "0 0 2 * *" tells cron to run on the 2nd day of each month. You need something like "0 0 * * 1,3,5" which will run on mondays, wednesdays and fridays.

Quote:
Originally Posted by kdanieli View Post
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.
Can you ask support to run it from the console/ssh to check that it finishes executing and doesn't hang? Might also be worth asking them to confirm the last cron runs of the script aren't still running. It sounds to me though like your script hasn't been running (looking at the cron config and the number of spam messages you say you have).

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
jdcopelin is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 18th, 2007, 8:47 AM   #188 (permalink)
minor deity
Super #1
 
Bigjohn's Avatar
 
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 PASS60 PASS61
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!
Bigjohn is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 18th, 2007, 9:04 AM   #189 (permalink)
Registered User
Comfy Contributor
 
kdanieli's Avatar
 
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.
kdanieli is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On