sa-update error

amphora

Verified User
Joined
Feb 21, 2013
Messages
56
Since today sa-update (without any parameters) suddenly gives this response:

Code:
config: invalid regexp for rule __PDS_FROM_2_EMAILS: /^\W+([\w+.-]+\@[\w.-]+\.\w\w++)(?:[^\n\w<]{0,80})?<(?!\1)[^\n\s]*\@/i: Nested quantifiers in regex; marked by <-- HERE in m/(?i)^\W+([\w+.-]+\@[\w.-]+\.\w\w++ <-- HERE )(?:[^\n\w<]{0,80})?<(?!\1)[^\n\s]*\@/

channel: lint check of update failed, channel failed

Any ideas?
 
Hello,

What if you run these commands:

Code:
mv /var/lib/spamassassin/ /var/lib/spamassassin~moved
sa-update -D
/etc/init.d/exim restart

?

Will it solve the issue?
 
Thanks for your reply, unfortunately it didn't help.
But the sa-update -D option made me realize I could give some more info regarding this message:

A snippet:
Code:
nov 26 16:54:29.791 [10361] dbg: plugin: loading Mail::SpamAssassin::Plugin::VBounce from @INC
nov 26 16:54:29.791 [10361] dbg: plugin: loading Mail::SpamAssassin::Plugin::ImageInfo from @INC
nov 26 16:54:29.792 [10361] dbg: plugin: loading Mail::SpamAssassin::Plugin::FreeMail from @INC
nov 26 16:54:29.838 [10361] dbg: plugin: Mail::SpamAssassin::Plugin::FreeMail=HASH(0xaa50ab0) implements 'parse_config', priority 0
config: invalid regexp for rule __PDS_FROM_2_EMAILS: /^\W+([\w+.-]+\@[\w.-]+\.\w\w++)(?:[^\n\w<]{0,80})?<(?!\1)[^\n\s]*\@/i: Nested quantifiers in regex; marked by <-- HERE in m/(?i)^\W+([\w+.-]+\@[\w.-]+\.\w\w++ <-- HERE )(?:[^\n\w<]{0,80})?<(?!\1)[^\n\s]*\@/

nov 26 16:54:30.288 [10361] dbg: config: warning: score set for non-existent rule RCVD_IN_MSPIKE_H4
nov 26 16:54:30.288 [10361] dbg: config: warning: score set for non-existent rule RCVD_IN_MSPIKE_WL
nov 26 16:54:30.288 [10361] dbg: config: warning: score set for non-existent rule HK_NAME_FM_MR_MRS
nov 26 16:54:30.288 [10361] dbg: config: warning: score set for non-existent rule FREEMAIL_FORGED_FROMDOMAIN

It does however seem to end ok but not with exit code 0 or 1 so no update was actually performed
Code:
nov 26 16:54:31.682 [10361] dbg: diag: updates complete, exiting with code 4
 
Last edited:
Perl version issue

Thanks for your reply, unfortunately it didn't help.
But the sa-update -D option made me realize I could give some more info regarding this message:

A snippet:
Code:
nov 26 16:54:29.791 [10361] dbg: plugin: loading Mail::SpamAssassin::Plugin::VBounce from @INC
nov 26 16:54:29.791 [10361] dbg: plugin: loading Mail::SpamAssassin::Plugin::ImageInfo from @INC
nov 26 16:54:29.792 [10361] dbg: plugin: loading Mail::SpamAssassin::Plugin::FreeMail from @INC
nov 26 16:54:29.838 [10361] dbg: plugin: Mail::SpamAssassin::Plugin::FreeMail=HASH(0xaa50ab0) implements 'parse_config', priority 0
config: invalid regexp for rule __PDS_FROM_2_EMAILS: /^\W+([\w+.-]+\@[\w.-]+\.\w\w++)(?:[^\n\w<]{0,80})?<(?!\1)[^\n\s]*\@/i: Nested quantifiers in regex; marked by <-- HERE in m/(?i)^\W+([\w+.-]+\@[\w.-]+\.\w\w++ <-- HERE )(?:[^\n\w<]{0,80})?<(?!\1)[^\n\s]*\@/

nov 26 16:54:30.288 [10361] dbg: config: warning: score set for non-existent rule RCVD_IN_MSPIKE_H4
nov 26 16:54:30.288 [10361] dbg: config: warning: score set for non-existent rule RCVD_IN_MSPIKE_WL
nov 26 16:54:30.288 [10361] dbg: config: warning: score set for non-existent rule HK_NAME_FM_MR_MRS
nov 26 16:54:30.288 [10361] dbg: config: warning: score set for non-existent rule FREEMAIL_FORGED_FROMDOMAIN

It does however seem to end ok but not with exit code 0 or 1 so no update was actually performed
Code:
nov 26 16:54:31.682 [10361] dbg: diag: updates complete, exiting with code 4

It appears they, spamassassin, is using perl 5.10 which added the ++
 
Hmm.... Guess I need to update perl then. current version is 5.8 on that box. Is there a safe way to upgrade to 5.10 or higher without needing to compile everything myself? A simple yum update won't do the trick ofc. Box is running CentOS 5.11 (yeah, quite old but still working just fine besides this)
 
That's actually strange, i'm using CentOS 5 64Bit and sa-update isnt givin this errors and perl version is 5.8.8

Have you tryed to update your perl modules using cpan and/or compile newset perl module needed by spamassassin from source?

Regards
 
Just as suddenly this problem occurred it now seems te have disappeared.
Maybe the people at spam assassin noticed some bug that only occurred on some systems/perl versions and fixed it.
 
Back
Top