You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Jose Luis Marin Perez <jo...@hotmail.com> on 2010/06/03 00:01:46 UTC

Error Spamassassin with pyzor

Dear Sirs,

I have
 installed SA 3.3.1 with pyzor 0.5.0 on a server with CentOS 4.8, reviewing SA logs shows the following 
message:

warn: pyzor: check failed: internal error, python traceback seen in response

It 
should be noted that I recently updated to version 4.7 CentOS 4.8

What
 is wrong?

Thanks

Jose Luis

Additional 
Information

Centos 4.8
Spamassassin 3.3.1
perl 5.8.5-49.el4
python 2.3.4-14.7.el4_8.2

pyzor --homedir /etc/mail/spamassassin ping
public.pyzor.org:24441  (200, 'OK')

my local.cf

ok_locales all
skip_rbl_checks 1

required_hits 3
report_safe 0
rewrite_header Subject ***SPAM***

########################################################################



use_pyzor 1
pyzor_options --homedir /etc/mail/spamassassin
use_razor2 1
dcc_path /usr/local/bin/dccproc
dcc_home /var/dcc
dcc_body_max 999999
dcc_timeout 10
dcc_fuz1_max 999999
dcc_fuz2_max 999999


use_auto_whitelist 1

use_bayes 1
use_bayes_rules 1
bayes_auto_learn 1
bayes_auto_learn_threshold_nonspam 0.1
bayes_auto_learn_threshold_spam 12

######################################################################

user_scores_dsn                 DBI:mysql:spamassassin:localhost
user_scores_sql_username        spamuser
user_scores_sql_password        spampass
user_scores_sql_custom_query    SELECT preference, value FROM _TABLE_ WHERE  username = '$GLOBAL' OR username = CONCAT('%',_DOMAIN_) OR usern
ame = _USERNAME_ ORDER BY username ASC

auto_whitelist_factory Mail::SpamAssassin::SQLBasedAddrList
user_awl_dsn                    DBI:mysql:spamassassin:localhost
user_awl_sql_username           spamuser
user_awl_sql_password           spampass
user_awl_sql_table              awl

bayes_store_module              Mail::SpamAssassin::BayesStore::MySQL
bayes_sql_dsn                   DBI:mysql:spamassassin:localhost
bayes_sql_username              spamuser
bayes_sql_password              spampass

#####################################################################

# Modified default scores
score BAYES_99 5.5                      # 5.4
score RAZOR2_CHECK 2.5                  # 0.899
score RAZOR2_CF_RANGE_51_100 4.5        # 1.552
score RAZOR2_CF_RANGE_11_50 1.5         # 0.559
score DCC_CHECK 3.0                     # 1.806
score PYZOR_CHECK 3.0                   # 0.322
#######################################################################

 		 	   		  
_________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us

Re: Error Spamassassin with pyzor

Posted by Scott Hughes <so...@gmail.com>.
Jose Luis,
>    
>> I have installed SA 3.3.1 with pyzor 0.5.0 on a server with CentOS 4.8,
>> reviewing SA logs shows the following message:
>>    warn: pyzor: check failed: internal error, python traceback seen
>>    in response
>> It should be noted that I recently updated to version 4.7 CentOS 4.8
>>      
>    

Try opening the port that Pyzor requires in order to operate correctly.  
I used the command: iptables -A INPUT -p udp -m udp --dport 24441 -j ACCEPT

Hope that helps.


Re: Error Spamassassin with pyzor

Posted by Mark Martinec <Ma...@ijs.si>.
Jose Luis,

> I have installed SA 3.3.1 with pyzor 0.5.0 on a server with CentOS 4.8,
> reviewing SA logs shows the following message:
>   warn: pyzor: check failed: internal error, python traceback seen
>   in response
> It should be noted that I recently updated to version 4.7 CentOS 4.8

So what does the traceback say?  Turn up the pyzor debugging to see it.

  spamassassin -D pyzor -t <test.msg

Could be due to a deprecated sha module, or a permission problem.

  Mark

Re: Error Spamassassin with pyzor

Posted by fchan <fc...@molsci.org>.
>Dear Sirs,
>
>I have installed SA 3.3.1 with pyzor 0.5.0 on a server with CentOS 
>4.8, reviewing SA logs shows the following message:
>
>warn: pyzor: check failed: internal error, python traceback seen in response
>
>It should be noted that I recently updated to version 4.7 CentOS 4.8
>
>What is wrong?
>
>Thanks
>
>Jose Luis
>
>Additional Information
>
>Centos 4.8
>Spamassassin 3.3.1
>perl 5.8.5-49.el4
>python 2.3.4-14.7.el4_8.2
>
>pyzor --homedir /etc/mail/spamassassin ping
>public.pyzor.org:24441  (200, 'OK')
>
>my local.cf
>
>ok_locales all
>skip_rbl_checks 1
>
>required_hits 3
>report_safe 0
>rewrite_header Subject ***SPAM***
>
>########################################################################
>
>
>
>use_pyzor 1
>pyzor_options --homedir /etc/mail/spamassassin
>use_razor2 1
>dcc_path /usr/local/bin/dccproc
>dcc_home /var/dcc
>dcc_body_max 999999
>dcc_timeout 10
>dcc_fuz1_max 999999
>dcc_fuz2_max 999999
>
>
>use_auto_whitelist 1
>
>use_bayes 1
>use_bayes_rules 1
>bayes_auto_learn 1
>bayes_auto_learn_threshold_nonspam 0.1
>bayes_auto_learn_threshold_spam 12
>
>######################################################################
>
>user_scores_dsn                 DBI:mysql:spamassassin:localhost
>user_scores_sql_username        spamuser
>user_scores_sql_password        spampass
>user_scores_sql_custom_query    SELECT preference, value FROM 
>_TABLE_ WHERE  username = '$GLOBAL' OR username = 
>CONCAT('%',_DOMAIN_) OR usern
>ame = _USERNAME_ ORDER BY username ASC
>
>auto_whitelist_factory Mail::SpamAssassin::SQLBasedAddrList
>user_awl_dsn                    DBI:mysql:spamassassin:localhost
>user_awl_sql_username           spamuser
>user_awl_sql_password           spampass
>user_awl_sql_table              awl
>
>bayes_store_module              Mail::SpamAssassin::BayesStore::MySQL
>bayes_sql_dsn                   DBI:mysql:spamassassin:localhost
>bayes_sql_username              spamuser
>bayes_sql_password              spampass
>
>#####################################################################
>
># Modified default scores
>score BAYES_99 5.5                      # 5.4
>score RAZOR2_CHECK 2.5                  # 0.899
>score RAZOR2_CF_RANGE_51_100 4.5        # 1.552
>score RAZOR2_CF_RANGE_11_50 1.5         # 0.559
>score DCC_CHECK 3.0                     # 1.806
>score PYZOR_CHECK 3.0                   # 0.322
>#######################################################################
>
>
>
>Invite your mail contacts to join your friends list with Windows 
>Live Spaces. It's easy! 
><http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us>Try 
>it!

Try to increase the pyzor timeout to 15.

pyzor_timeout   15

Frank