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 October 11th, 2004, 4:15 PM   #46 (permalink)
minor deity
Super #1
 
Bigjohn's Avatar
 
Joined in Apr 2004
Lives in Georgia
Hosted on XEON
7,337 posts
Gave thanks: 23
Thanked 93 times
The cron job should work again, if not email support. Patrickb fixed it on my server.

The spam and ham folders don't work unless you run their contents through the learner, which is what the script does.

The servers are 'autolearning' HAM right now. At least mine is.

John
__________________
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 October 12th, 2004, 11:52 AM   #47 (permalink)
Surpass Fan
Comfy Contributor
 
pseudoswede's Avatar
 
Joined in Jun 2003
Lives in Denver
Hosted on D9
142 posts
Gave thanks: 4
Thanked 3 times
I got this from the cron this morning...

Code:
/bin/sh: /home/larvez/script/learnspam: bad interpreter: Permission denied
script folder is set to 755, and the learnspam file is set to 644.
__________________
"In the end, everything will be fine - if it is not fine, it is not the end."
PseudoSwede
larvez.com
Dime9
pseudoswede is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old October 12th, 2004, 11:54 AM   #48 (permalink)
Destroyer of Evil Robots
Excelling Contributor
 
tch3's Avatar
 
Joined in Oct 2003
Lives in Atlanta, GA
760 posts
Gave thanks: 17
Thanked 9 times
Quote:
Originally Posted by pseudoswede
I got this from the cron this morning...

Code:
/bin/sh: /home/larvez/script/learnspam: bad interpreter: Permission denied
script folder is set to 755, and the learnspam file is set to 644.
The script itself (learnspam) needs to be executable.

clair
__________________
clair
http://tch3.com
(dedicated)
tch3 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old October 23rd, 2004, 2:19 PM   #49 (permalink)
CJF
Registered User
Fresh Surpasser
 
Joined in May 2003
14 posts
Gave thanks: 0
Thanked 0 times
I just completed all of the instructions on this 4-page thread, including a double-check of everything, including permissions.

Upon completion, I logged in to Horde. Log in page displays fine but when it executes log in, I now get the following error: Warning: main(Date/Calc.php): failed to open stream: No such file or directory in /usr/local/cpanel/base/horde/kronolith/lib/base.php on line 63

Fatal error: main(): Failed opening required 'Date/Calc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /usr/local/cpanel/base/horde/kronolith/lib/base.php on line 63

Any ideas?

Last edited by CJF; October 23rd, 2004 at 2:20 PM.
CJF is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old October 23rd, 2004, 11:15 PM   #50 (permalink)
Skittles
Super #1
 
DewKnight's Avatar
 
Joined in Aug 2004
Lives in a space ship
Hosted on dedi
6,665 posts
Gave thanks: 96
Thanked 190 times
Well it went through these folders twice so far (got 2 emails with the info on them), then all of a sudden it decides "No such file or directory".... nothing has changed....... any idea?
__________________
Mountain Dew Knight
People should not be afraid of their governments. Governments should be afraid of their people.
DewKnight is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old October 26th, 2004, 4:00 PM   #51 (permalink)
Surpass Fan
Comfy Contributor
 
pseudoswede's Avatar
 
Joined in Jun 2003
Lives in Denver
Hosted on D9
142 posts
Gave thanks: 4
Thanked 3 times
Test message.

Is it me, or did about 2 pages of this thread disappear?
__________________
"In the end, everything will be fine - if it is not fine, it is not the end."
PseudoSwede
larvez.com
Dime9
pseudoswede is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old October 26th, 2004, 6:43 PM   #52 (permalink)
Surpass Fan
Comfy Contributor
 
pseudoswede's Avatar
 
Joined in Jun 2003
Lives in Denver
Hosted on D9
142 posts
Gave thanks: 4
Thanked 3 times
Hmmm...

This thread seems to be a little flaky. Earlier today, I could only view the first 30 posts or so. There was no sign on the other 20. They're back now. Oh well.
__________________
"In the end, everything will be fine - if it is not fine, it is not the end."
PseudoSwede
larvez.com
Dime9
pseudoswede is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old November 10th, 2004, 8:14 PM   #53 (permalink)
Surpass Fan
Comfy Contributor
 
pseudoswede's Avatar
 
Joined in Jun 2003
Lives in Denver
Hosted on D9
142 posts
Gave thanks: 4
Thanked 3 times
Is there a way to modify the script so that it deletes mail from both the HAM and SPAM folders after it's been analyzed?
__________________
"In the end, everything will be fine - if it is not fine, it is not the end."
PseudoSwede
larvez.com
Dime9
pseudoswede is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old November 10th, 2004, 8:31 PM   #54 (permalink)
Destroyer of Evil Robots
Excelling Contributor
 
tch3's Avatar
 
Joined in Oct 2003
Lives in Atlanta, GA
760 posts
Gave thanks: 17
Thanked 9 times
Quote:
Originally Posted by pseudoswede
Is there a way to modify the script so that it deletes mail from both the HAM and SPAM folders after it's been analyzed?
Yes, it's actually in the script already... only partially in place. I don't know that I'd totally dump the file because if it's empty the next time you run the script, you'll get errors that are harmless, but not needed.

I also wouldn't clean out the SPAM folder just because it is good to keep 500 spam messages ready to be re-learned in case the Spam Assassin databases become lost.

However, this will clean out the file.

Code:
#!/bin/sh
echo "Learning SPAM"
for FILE in `find $HOME -name SPAM -print`
do
    echo "Processing $FILE"
    sa-learn --spam --mbox $FILE
    cat /dev/null > $FILE
done

echo "Learning HAM"
for FILE in `find $HOME -name HAM -print`
do
    echo "Processing $FILE"
    sa-learn --ham  --mbox $FILE
    cat /dev/null > $FILE
done
echo "Done"

This will remove it altogether.
Code:
#!/bin/sh
echo "Learning SPAM"
for FILE in `find $HOME -name SPAM -print`
do
    echo "Processing $FILE"
    sa-learn --spam --mbox $FILE
    rm $FILE
done

echo "Learning HAM"
for FILE in `find $HOME -name HAM -print`
do
    echo "Processing $FILE"
    sa-learn --ham  --mbox $FILE
    rm $FILE
done
echo "Done"
__________________
clair
http://tch3.com
(dedicated)

Last edited by tch3; November 10th, 2004 at 8:35 PM.
tch3 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