On Aug 7, 2014, at 11:13 AM, emailitis.com <i...@emailitis.com> wrote:

>> -----Original Message-----
>> From: Philip Prindeville [mailto:philipp_s...@redfish-solutions.com]
>> Sent: 07 August 2014 06:01
>> To: Paul Stead
>> Cc: users@spamassassin.apache.org
>> Subject: Re: rule for repeated tracking numbers
>> 
>> 
>> On Aug 6, 2014, at 1:23 PM, Paul Stead <paul.st...@zeninternet.co.uk>
> wrote:
>> 
>> Uh. the hostname in all of these URL's always resolves to 98.124.199.1.
>> 
>> I just use:
>> 
>> uri_block_cidr L_BLOCK_CIDR     98.124.199.1
>> body L_BLOCK_CIDR               eval:check_uri_local_bl()
>> describe L_BLOCK_CIDR           Block URI's pointing to bad CIDR's
>> score L_BLOCK_CIDR              7.5
>> 
>> and this nails it.  See:
>> 
>> https://issues.apache.org/SpamAssassin/show_bug.cgi?id=7060
>> 
>> -Philip
> 
> Forgive my ignorance, but I have just tried adding Philip's rule as
> suggested and it is failing lint.  There must be something taken for granted
> which I am not getting (I am not the guru that you all are, sorry) but can
> someone advise?  I guess there is a whole local criteria config I have not
> set up?
> 
> uri_block_cidr L_BLOCK_CIDR     98.124.199.1
> body L_BLOCK_CIDR               eval:check_uri_local_bl()
> describe L_BLOCK_CIDR           Block URI's pointing to bad CIDR's
> score L_BLOCK_CIDR              7.5
> 
> [root@plesk3 ~]# spamassassin --lint
> Aug  7 18:03:33.253 [21633] warn: config: failed to parse line, skipping, in
> "/etc/mail/spamassassin/custom_rules.cf": uri_block_cidr L_BLOCK_CIDR
> 98.124.199.1
> Aug  7 18:03:34.334 [21633] warn: rules: failed to run L_BLOCK_CIDR test,
> skipping:
> Aug  7 18:03:34.334 [21633] warn:  (Can't locate object method
> "check_uri_local_bl" via package "Mail: [...]:SpamAssassin::PerMsgStatus" at
> (eval 1175) line 3269.
> Aug  7 18:03:34.335 [21633] warn: )
> Aug  7 18:03:34.402 [21633] warn: lint: 2 issues detected, please rerun with
> debug enabled for more information
> [root@plesk3 ~]#
> 
> Kind Regards,
> 
> Christoph


Did you go the URL I posted:

https://issues.apache.org/SpamAssassin/show_bug.cgi?id=7060

follow it to the commit:

http://svn.apache.org/viewvc?view=revision&revision=1604881

and download the file called “URILocalBL.pm” into your Plugin/ directory?

-Philip

Reply via email to