Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: SpamAssassin: users

Error from sa-update script

 

 

SpamAssassin users RSS feed   Index | Next | Previous | View Threaded


fugtruck at yahoo

Oct 27, 2009, 2:14 PM

Post #1 of 4 (443 views)
Permalink
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.


jarif at iki

Oct 27, 2009, 2:22 PM

Post #2 of 4 (401 views)
Permalink
Re: Error from sa-update script [In reply to]

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/
Attachments: signature.asc (0.25 KB)


jhardin at impsec

Oct 27, 2009, 2:30 PM

Post #3 of 4 (407 views)
Permalink
Re: Error from sa-update script [In reply to]

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 [at] impsec FALaholic #11174 pgpk -a jhardin [at] impsec
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


fugtruck at yahoo

Oct 28, 2009, 9:30 AM

Post #4 of 4 (399 views)
Permalink
Re: Error from sa-update script [In reply to]

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.

SpamAssassin users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.