You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Dan O'Brien <li...@axonsolutions.com> on 2006/05/27 13:00:01 UTC

Razor2 Error

Just started using Razor again... Have SA 3.1.2 installed from CPAN on 
stock CentOS 4.3 w/ updates.  SA 3.1.1 results the same.  Razor Agents at 
2.8.1.  When I issue a "spamassassin --lint" I get the following error:

[17261] warn: razor2: razor2 check failed: No such file or directory Can't 
use an undefined value as a SCALAR reference at 
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/Razor2/Client/Agent.pm 
line 896. at 
/usr/lib/perl5/site_perl/5.8.5/Mail/SpamAssassin/Plugin/Razor2.pm line 
317.

Running a standalone "razor-check" on a set of messages works OK.  spamd 
issues the above error to the maillog for each message also, but seems to 
call Razor successfully and process the response.

Anyone else see this?

RE: Razor2 Error

Posted by Jim Hermann - UUN Hostmaster <ho...@uuism.net>.
Full worked, with the correct number of parameters.

full    RAZOR2_CF_RANGE_00_01   eval:check_razor2_range('','00','01')
tflags  RAZOR2_CF_RANGE_00_01   net
describe RAZOR2_CF_RANGE_00_01  Razor2 gives confidence between 00 and 01

full    RAZOR2_CF_RANGE_02_10   eval:check_razor2_range('','02','10')
tflags  RAZOR2_CF_RANGE_02_10   net
describe RAZOR2_CF_RANGE_02_10  Razor2 gives confidence between 02 and 10

full    RAZOR2_CF_RANGE_11_50  eval:check_razor2_range('','11','50')
tflags  RAZOR2_CF_RANGE_11_50  net
describe RAZOR2_CF_RANGE_11_50 Razor2 gives confidence level of 10-50%

full    RAZOR2_CF_RANGE_51_90  eval:check_razor2_range('','51','90')
tflags  RAZOR2_CF_RANGE_51_90  net
describe RAZOR2_CF_RANGE_51_90 Razor2 gives confidence level of 50-90%

full    RAZOR2_CF_RANGE_91_100  eval:check_razor2_range('','91','100')
tflags  RAZOR2_CF_RANGE_91_100  net
describe RAZOR2_CF_RANGE_91_100 Razor2 gives confidence level above 90%

Jim 

-----Original Message-----
From: Daryl C. W. O'Shea [mailto:spamassassin@dostech.ca] 
Sent: Tuesday, May 30, 2006 08:49 PM
To: Jim Hermann - UUN Hostmaster
Cc: users@spamassassin.apache.org
Subject: Re: Razor2 Error

Try using full rules, instead of body rules, like the ones included with 
SpamAssassin.

Daryl




Re: Razor2 Error

Posted by "Daryl C. W. O'Shea" <sp...@dostech.ca>.
Try using full rules, instead of body rules, like the ones included with 
SpamAssassin.

Daryl


On 5/29/2006 9:48 AM, Jim Hermann - UUN Hostmaster wrote:
> I tried changing the definitions to the new format.  I still got the error.
> 
> # complete set of ranges - jwh 9/29/05
> body    RAZOR2_CF_RANGE_00_01   eval:check_razor2_range('','00','01')
> tflags  RAZOR2_CF_RANGE_00_01   net
> describe RAZOR2_CF_RANGE_00_01  Razor2 gives confidence between 00 and 01
> 
> body    RAZOR2_CF_RANGE_02_10   eval:check_razor2_range('','02','10')
> tflags  RAZOR2_CF_RANGE_02_10   net
> describe RAZOR2_CF_RANGE_02_10  Razor2 gives confidence between 02 and 10
> 
> body    RAZOR2_CF_RANGE_11_50  eval:check_razor2_range('','11','50')
> tflags  RAZOR2_CF_RANGE_11_50  net
> describe RAZOR2_CF_RANGE_11_50 Razor2 gives confidence level of 10-50%
> 
> body    RAZOR2_CF_RANGE_51_90  eval:check_razor2_range('','51','90')
> tflags  RAZOR2_CF_RANGE_51_90  net
> describe RAZOR2_CF_RANGE_51_90 Razor2 gives confidence level of 50-90%
> 
> body    RAZOR2_CF_RANGE_91_100  eval:check_razor2_range('','91','100')
> tflags  RAZOR2_CF_RANGE_91_100  net
> describe RAZOR2_CF_RANGE_91_100 Razor2 gives confidence level above 90%
> 
> My local.cf contained
> 
> score RAZOR2_CF_RANGE_00_01 0.01
> score RAZOR2_CF_RANGE_02_10 0.10
> score RAZOR2_CF_RANGE_11_50 0.50
> score RAZOR2_CF_RANGE_51_100 0.00
> score RAZOR2_CF_RANGE_51_90 3.70
> score RAZOR2_CF_RANGE_91_100 7.50
> 
> 
> 
> -----Original Message-----
> From: Daryl C. W. O'Shea [mailto:spamassassin@dostech.ca] 
> Sent: Monday, May 29, 2006 02:37 AM
> To: Jim Hermann - UUN Hostmaster
> Cc: users@spamassassin.apache.org
> Subject: Re: Razor2 Error
> 
> Jim Hermann - UUN Hostmaster wrote:
> 
>>I found my problem.  I had some custom definitions that used
>>eval:check_razor2_range.  I deleted the custom definitions and the error
>>went away.
> 
> 
> What were the custom rules you had that caused that error?  It's likely 
> that we could add/improve validation of that config.
> 
> Daryl
> 


RE: Razor2 Error

Posted by Jim Hermann - UUN Hostmaster <ho...@uuism.net>.
I tried changing the definitions to the new format.  I still got the error.

# complete set of ranges - jwh 9/29/05
body    RAZOR2_CF_RANGE_00_01   eval:check_razor2_range('','00','01')
tflags  RAZOR2_CF_RANGE_00_01   net
describe RAZOR2_CF_RANGE_00_01  Razor2 gives confidence between 00 and 01

body    RAZOR2_CF_RANGE_02_10   eval:check_razor2_range('','02','10')
tflags  RAZOR2_CF_RANGE_02_10   net
describe RAZOR2_CF_RANGE_02_10  Razor2 gives confidence between 02 and 10

body    RAZOR2_CF_RANGE_11_50  eval:check_razor2_range('','11','50')
tflags  RAZOR2_CF_RANGE_11_50  net
describe RAZOR2_CF_RANGE_11_50 Razor2 gives confidence level of 10-50%

body    RAZOR2_CF_RANGE_51_90  eval:check_razor2_range('','51','90')
tflags  RAZOR2_CF_RANGE_51_90  net
describe RAZOR2_CF_RANGE_51_90 Razor2 gives confidence level of 50-90%

body    RAZOR2_CF_RANGE_91_100  eval:check_razor2_range('','91','100')
tflags  RAZOR2_CF_RANGE_91_100  net
describe RAZOR2_CF_RANGE_91_100 Razor2 gives confidence level above 90%

My local.cf contained

score RAZOR2_CF_RANGE_00_01 0.01
score RAZOR2_CF_RANGE_02_10 0.10
score RAZOR2_CF_RANGE_11_50 0.50
score RAZOR2_CF_RANGE_51_100 0.00
score RAZOR2_CF_RANGE_51_90 3.70
score RAZOR2_CF_RANGE_91_100 7.50



-----Original Message-----
From: Daryl C. W. O'Shea [mailto:spamassassin@dostech.ca] 
Sent: Monday, May 29, 2006 02:37 AM
To: Jim Hermann - UUN Hostmaster
Cc: users@spamassassin.apache.org
Subject: Re: Razor2 Error

Jim Hermann - UUN Hostmaster wrote:
> I found my problem.  I had some custom definitions that used
> eval:check_razor2_range.  I deleted the custom definitions and the error
> went away.

What were the custom rules you had that caused that error?  It's likely 
that we could add/improve validation of that config.

Daryl

-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.7.2/349 - Release Date: 05/26/06
 


Re: Razor2 Error

Posted by "Daryl C. W. O'Shea" <sp...@dostech.ca>.
Jim Hermann - UUN Hostmaster wrote:
> I found my problem.  I had some custom definitions that used
> eval:check_razor2_range.  I deleted the custom definitions and the error
> went away.

What were the custom rules you had that caused that error?  It's likely 
that we could add/improve validation of that config.

Daryl

RE: Razor2 Error

Posted by Jim Hermann - UUN Hostmaster <ho...@uuism.net>.
I found my problem.  I had some custom definitions that used
eval:check_razor2_range.  I deleted the custom definitions and the error
went away.

Jim 

-----Original Message-----
From: news [mailto:news@sea.gmane.org] On Behalf Of Jim Hermann
Sent: Sunday, May 28, 2006 02:17 PM
To: users@spamassassin.apache.org
Subject: Re: Razor2 Error

Dan O'Brien <list-admin <at> axonsolutions.com> writes:

> 
> Just started using Razor again... Have SA 3.1.2 installed from CPAN on 
> stock CentOS 4.3 w/ updates.  SA 3.1.1 results the same.  Razor Agents at 
> 2.8.1.  When I issue a "spamassassin --lint" I get the following error:
> 
> [17261] warn: razor2: razor2 check failed: No such file or directory Can't

> use an undefined value as a SCALAR reference at 
> /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-
multi/Razor2/Client/Agent.pm 
> line 896. at 
> /usr/lib/perl5/site_perl/5.8.5/Mail/SpamAssassin/Plugin/Razor2.pm line 
> 317.
> 
> Running a standalone "razor-check" on a set of messages works OK.  spamd 
> issues the above error to the maillog for each message also, but seems to 
> call Razor successfully and process the response.
> 
> Anyone else see this?

yes.  I get the same error and the same results for razor-check.  I have
using 
Perl 5.8.8.

The offending line in Agent.pm is:

my ($headers, $body) = split /\n\r*\n/, ${$obj->{orig_mail}}, 2;

Any help out there?

Jim



-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.7.2/349 - Release Date: 05/26/06
 


Re: Razor2 Error

Posted by Jim Hermann <ho...@uuism.net>.
Dan O'Brien <list-admin <at> axonsolutions.com> writes:

> 
> Just started using Razor again... Have SA 3.1.2 installed from CPAN on 
> stock CentOS 4.3 w/ updates.  SA 3.1.1 results the same.  Razor Agents at 
> 2.8.1.  When I issue a "spamassassin --lint" I get the following error:
> 
> [17261] warn: razor2: razor2 check failed: No such file or directory Can't 
> use an undefined value as a SCALAR reference at 
> /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-
multi/Razor2/Client/Agent.pm 
> line 896. at 
> /usr/lib/perl5/site_perl/5.8.5/Mail/SpamAssassin/Plugin/Razor2.pm line 
> 317.
> 
> Running a standalone "razor-check" on a set of messages works OK.  spamd 
> issues the above error to the maillog for each message also, but seems to 
> call Razor successfully and process the response.
> 
> Anyone else see this?

yes.  I get the same error and the same results for razor-check.  I have using 
Perl 5.8.8.

The offending line in Agent.pm is:

my ($headers, $body) = split /\n\r*\n/, ${$obj->{orig_mail}}, 2;

Any help out there?

Jim