You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by fugtruck <fu...@yahoo.com> on 2009/10/27 22:14:13 UTC

Error from sa-update script

I have an SMTP gateway setup with Postfix+SpamAssassin on a CentOS 5.3 server
that is functioning.  Lately, I've noticed an increase in the amount of SPAM
getting through the gateway.  That's when I discovered an error that is
showing up daily in the cron logs (see below) from the sa-update script.  So
I suspect that my Spamassassin is not updating properly.  FYI, I am running
Spamassassin version 3.2.5.  Can anyone please advise?




/etc/cron.daily/sa-update:

[8809] info: generic: base extraction starting. this can take a while...
[8809] info: generic: extracting from rules of type body_0
.
100% Completed 1175.17 rules/sec in 00m01s
.......................................................................
100% Completed 317.13 bases/sec in 00m06s
[8809] info: body_0: 1587 base strings extracted in 7 seconds
Possible unintended interpolation of @un in string at
/etc/mail/spamassassin/local.cf,
rule LOCAL_NT3SPAM, line 1.
rules: failed to compile head tests, skipping:
	(Global symbol "@un" requires explicit package name at
/etc/mail/spamassassin/local.cf,
rule LOCAL_NT3SPAM, line 1.
)
[8809] info: rules: meta test FM_PHN_NODNS has dependency 'RDNS_NONE' with a
zero
score
sa-compile: not compiling; 'spamassassin --lint' check failed!
Stopping spamd: [  OK  ]
Starting spamd: [  OK  ]

-- 
View this message in context: http://www.nabble.com/Error-from-sa-update-script-tp26085317p26085317.html
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.


Re: Error from sa-update script

Posted by fugtruck <fu...@yahoo.com>.


John Hardin wrote:
> 
> 
> The error message indicates the problem. If you use "@" in a RE, you need 
> to escape it (e.g. "\@").
> 
> Try changing that and see if SA passes a --lint check.
> 
> _ALWAYS_ do a --lint check after editing your rules!
> 
> -- 
>   John Hardin KA7OHZ                    http://www.impsec.org/~jhardin/
> 
> 

I corrected the rule and the lint check is not producting any errors.  The
sa-compile not compiling errors are gone too.  Thank you so much!
-- 
View this message in context: http://www.nabble.com/Error-from-sa-update-script-tp26085317p26097806.html
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.


Re: Error from sa-update script

Posted by John Hardin <jh...@impsec.org>.
On Tue, 27 Oct 2009, Jari Fredriksson wrote:

>
>
> 27.10.2009 23:14, fugtruck kirjoitti:
>>
>> /etc/mail/spamassassin/local.cf,
>> rule LOCAL_NT3SPAM, line 1.
>> rules: failed to compile head tests, skipping:
>> 	(Global symbol "@un" requires explicit package name at
>> /etc/mail/spamassassin/local.cf,
>
> Did you read the error message yourself, or just pasted it here?
>
> It clearly says that a local rule (your's) LOCAL_NT3SPAM in
> /etc/mail/spamassassin/local.cf is broken.
>
> Show the rule, so the regex masters can spot the error.

The error message indicates the problem. If you use "@" in a RE, you need 
to escape it (e.g. "\@").

Try changing that and see if SA passes a --lint check.

_ALWAYS_ do a --lint check after editing your rules!

-- 
  John Hardin KA7OHZ                    http://www.impsec.org/~jhardin/
  jhardin@impsec.org    FALaholic #11174     pgpk -a jhardin@impsec.org
  key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
   ...the Fates notice those who buy chainsaws...
                                               -- www.darwinawards.com
-----------------------------------------------------------------------
  4 days until Halloween

Re: Error from sa-update script

Posted by Jari Fredriksson <ja...@iki.fi>.

27.10.2009 23:14, fugtruck kirjoitti:
> 
> I have an SMTP gateway setup with Postfix+SpamAssassin on a CentOS 5.3 server
> that is functioning.  Lately, I've noticed an increase in the amount of SPAM
> getting through the gateway.  That's when I discovered an error that is
> showing up daily in the cron logs (see below) from the sa-update script.  So
> I suspect that my Spamassassin is not updating properly.  FYI, I am running
> Spamassassin version 3.2.5.  Can anyone please advise?
> 
> 
> 
> 
> /etc/cron.daily/sa-update:
> 
> [8809] info: generic: base extraction starting. this can take a while...
> [8809] info: generic: extracting from rules of type body_0
> .
> 100% Completed 1175.17 rules/sec in 00m01s
> .......................................................................
> 100% Completed 317.13 bases/sec in 00m06s
> [8809] info: body_0: 1587 base strings extracted in 7 seconds
> Possible unintended interpolation of @un in string at
> /etc/mail/spamassassin/local.cf,
> rule LOCAL_NT3SPAM, line 1.
> rules: failed to compile head tests, skipping:
> 	(Global symbol "@un" requires explicit package name at
> /etc/mail/spamassassin/local.cf,
> rule LOCAL_NT3SPAM, line 1.
> )
> [8809] info: rules: meta test FM_PHN_NODNS has dependency 'RDNS_NONE' with a
> zero
> score
> sa-compile: not compiling; 'spamassassin --lint' check failed!
> Stopping spamd: [  OK  ]
> Starting spamd: [  OK  ]
> 

Did you read the error message yourself, or just pasted it here?

It clearly says that a local rule (your's) LOCAL_NT3SPAM in
/etc/mail/spamassassin/local.cf is broken.

Show the rule, so the regex masters can spot the error.


-- 
http://www.iki.fi/jarif/