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 » new spamassassin script

Email General questions, webmail, mailing lists.

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread
Old August 31st, 2007, 8:18 AM   #46 (permalink)
minor deity
Super #1
 
Bigjohn's Avatar
 
Joined in Apr 2004
Lives in Georgia
Hosted on XEON
7,395 posts
Gave thanks: 28
Thanked 94 times
You might want to run this instead... this is the one that gave me the output they needed to fix my problem:

Code:
#!/bin/sh
echo "Synching Spam"
sa-learn --sync -D
echo "Done"
__________________
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 August 31st, 2007, 1:25 PM   #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
In the middle of one of the three the cron results, I got this error message...

Code:
Learned tokens from 2 message(s) (2 message(s) examined) 
bayes: bayes db version 0 is not able to be used, aborting! at /usr/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin/BayesStore/DBM.pm line 196.
Learned tokens from 3 message(s) (3 message(s) examined)
Learned tokens from 0 message(s) (2 message(s) examined)
And it continues on through the other mailboxes (above and below this line) like there is no problem. I did not see this issue in the other cron result e-mails I got.
__________________
"In the end, everything will be fine - if it is not fine, it is not the end."
PseudoSwede
larvez.com
Dime9

Last edited by pseudoswede; August 31st, 2007 at 1:27 PM..
pseudoswede is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old August 31st, 2007, 4:38 PM   #48 (permalink)
Surpass Fan
Comfy Contributor
 
jdcopelin's Avatar
 
Joined in Feb 2004
Lives in Norfolk, England
Hosted on Pass32
167 posts
Gave thanks: 23
Thanked 19 times
Quote:
Originally Posted by pseudoswede View Post
In the middle of one of the three the cron results, I got this error message...

Code:
Learned tokens from 2 message(s) (2 message(s) examined) 
bayes: bayes db version 0 is not able to be used, aborting! at /usr/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin/BayesStore/DBM.pm line 196.
Learned tokens from 3 message(s) (3 message(s) examined)
Learned tokens from 0 message(s) (2 message(s) examined)
And it continues on through the other mailboxes (above and below this line) like there is no problem. I did not see this issue in the other cron result e-mails I got.
Hi,
I just used google to search for that error message and came across this thread in the CentOS mailing list. The original poster there said the error comes and goes periodically (ie just like it did when you ran the learnspam script). He says it was because there were two versions of spamassassin installed or the older version didn't get removed when he upgraded.
Hope this helps, are tech support still looking into the problem?

Cheers
Jonathan
__________________
Server: Pass32 and dedicated server
jdcopelin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 15th, 2007, 2:27 AM   #49 (permalink)
Registered User
Fresh Surpasser
 
Joined in Dec 2005
4 posts
Gave thanks: 1
Thanked 0 times
Hi everyone,

I tried to get this script functioning this morning, but my cron output spits this back at me:

/bin/sh: /home/******/script/learnspam: /bin/sh
: bad interpreter: No such file or directory

My site (andiyar.com) is running on sonet.

Anyone care to tell a bemused user what that means?


~A~

Last edited by andiyar; September 15th, 2007 at 2:31 AM..
andiyar is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 15th, 2007, 4:49 PM   #50 (permalink)
Surpass Fan
Comfy Contributor
 
jdcopelin's Avatar
 
Joined in Feb 2004
Lives in Norfolk, England
Hosted on Pass32
167 posts
Gave thanks: 23
Thanked 19 times
Quote:
Originally Posted by andiyar View Post
I tried to get this script functioning this morning, but my cron output spits this back at me:

/bin/sh: /home/******/script/learnspam: /bin/sh
: bad interpreter: No such file or directory

Anyone care to tell a bemused user what that means?
~A~
Hello,
Two things spring to mind... firstly it could be that the you have used a windows text editor (eg notepad) to edit/save the file and therefore contains windows style linefeeds. Try using a different text editor that saves in Unix format if you don't have access to the dos2unix command. Secondly, it could be that the bash executable is located at /bin/bash
Also it is worth checking that the command in the cron entry contains only /home/******/script/learnspam and no other text.

Regards
Jonathan
__________________
Server: Pass32 and dedicated server
jdcopelin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
This user thanks jdcopelin for this great post!
andiyar (September 15th, 2007)
Old September 15th, 2007, 10:50 PM   #51 (permalink)
Registered User
Fresh Surpasser
 
Joined in Dec 2005
4 posts
Gave thanks: 1
Thanked 0 times
Quote:
Originally Posted by jdcopelin View Post
Hello,
Two things spring to mind... firstly it could be that the you have used a windows text editor (eg notepad) to edit/save the file and therefore contains windows style linefeeds. Try using a different text editor that saves in Unix format if you don't have access to the dos2unix command. Secondly, it could be that the bash executable is located at /bin/bash
Also it is worth checking that the command in the cron entry contains only /home/******/script/learnspam and no other text.

Regards
Jonathan

Hi Jonathan,

Actually, I'd simply uploaded the file and then edited it using the built in file manager's code editor via CPanel. Anyway, after posting that message I decided to try downloading the script again, reuploading it, and seeing if that worked. And... it did. Not sure why, but my inbox had a nice cron output this morning. Weird - unless I'd accidentally changed something in the file without noticing. I was sure that bash was where it was supposed to be as I threw in another script and it punched output out to me, so I guess I just stuffed up the learnspam script somewhere.

Thanks for your help - and for the great script


~A~
__________________
andiyar.com sonet
andiyar is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 17th, 2007, 6:04 PM   #52 (permalink)
Surpass Fan
Comfy Contributor
 
jdcopelin's Avatar
 
Joined in Feb 2004
Lives in Norfolk, England
Hosted on Pass32
167 posts
Gave thanks: 23
Thanked 19 times
Quote:
Originally Posted by andiyar View Post
Thanks for your help - and for the great script
You are welcome, I'm glad it is working for you now. And thank you for the feedback!

Regards
Jonathan
__________________
Server: Pass32 and dedicated server
jdcopelin 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