Error from sa-update script

View: New views
4 Messages — Rating Filter:   Alert me  

Error from sa-update script

by fugtruck :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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  ]

Re: Error from sa-update script

by Jari Fredriksson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



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/




signature.asc (259 bytes) Download Attachment

Re: Error from sa-update script

by John Hardin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...    FALaholic #11174     pgpk -a jhardin@...
  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

by fugtruck :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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!