You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Bill Landry <bi...@pointshare.com> on 2004/09/30 00:30:53 UTC
bogus "sa-learn --dump magic" report
Anyone have an idea why I would be getting the following output when I run
"sa-learn --dump magic":
==========
error: rule 'RCVD_IN_DNSRBL-DUN' has invalid characters (not Alphanumeric +
Underscore)
error: rule 'RCVD_IN_DNSRBL-SPAM' has invalid characters (not Alphanumeric +
Underscore)
error: rule 'RCVD_IN_DSBL-MULTI' has invalid characters (not Alphanumeric +
Underscore)
error: rule 'RCVD_IN_SECURITY-SAGE' has invalid characters (not Alphanumeric
+ Underscore)
error: rule 'DNS_FROM_RFCI-ABUSE' has invalid characters (not Alphanumeric +
Underscore)
error: rule 'DNS_FROM_MAILPOLICE-BULK' has invalid characters (not
Alphanumeric + Underscore)
error: rule 'DNS_FROM_MAILPOLICE-PORN' has invalid characters (not
Alphanumeric + Underscore)
error: rule 'DNS_FROM_RFCI-POSTMASTER' has invalid characters (not
Alphanumeric + Underscore)
error: rule 'DNS_FROM_RFCI-PIGS' has invalid characters (not Alphanumeric +
Underscore)
==========
These entries were all updated (converted all "-" to "_") when I upgraded to
SA 3.0, and "spamassassin --lint" reports no problems. Is there a way to
fix this, or should I log it as a bug on bugzilla?
Bill
Re: bogus "sa-learn --dump magic" report
Posted by Bill Landry <bi...@pointshare.com>.
----- Original Message -----
From: "Theo Van Dinter" <fe...@kluge.net>
> Run spamassassin with -D, it'll tell you what files its reading. Could
> be
> /usr/share/spamassassin/*.cf, user_prefs, etc.
Okay, I created a test.cf file and added the following entries (with hyphens
"-"):
header RCVD_IN_CSMA-SBL eval:check_rbl('CSMASBL',
'sbl.csma.biz.')
describe RCVD_IN_CSMA-SBL Sender listed in CSMA-SBL
tflags RCVD_IN_CSMA-SBL net
score RCVD_IN_CSMA-SBL 2.0
header RCVD_IN_DNSBL-T1 eval:check_rbl('DNSBLT1',
't1.dnsbl.net.au.')
describe RCVD_IN_DNSBL-T1 Sender listed in DNSBL-T1
tflags RCVD_IN_DNSBL-T1 net
score RCVD_IN_DNSBL-T1 1.0
Then ran "spamassassin --lint -D" and it came back with lots of detailed
information, including the directory where the CF files are being read from,
and the debug output included only the following warning/error messages,
which I had expected:
==========
error: rule 'RCVD_IN_CSMA-SBL' has invalid characters (not Alphanumeric +
Underscore)
error: rule 'RCVD_IN_DNSBL-T1' has invalid characters (not Alphanumeric +
Underscore)
warning: description exists for non-existent rule RCVD_IN_DNSBL-T1
warning: description exists for non-existent rule RCVD_IN_CSMA-SBL
warning: score set for non-existent rule RCVD_IN_DNSBL-T1
warning: score set for non-existent rule RCVD_IN_CSMA-SBL
==========
And the last line included of the debug output was:
==========
lint: 6 issues detected. please rerun with debug enabled for more
information.
==========
Additional thoughts/ideas?
Bill
Re: bogus "sa-learn --dump magic" report
Posted by Bill Landry <bi...@pointshare.com>.
----- Original Message -----
From: "Theo Van Dinter" <fe...@kluge.net>
> On Wed, Sep 29, 2004 at 03:51:28PM -0700, Bill Landry wrote:
> > Hmmm, where else could this configuration issue be, Theo, since none
> of my
> > CF files contain a "-" in the test definitions? Grep results:
>
> Run spamassassin with -D, it'll tell you what files its reading. Could
> be
> /usr/share/spamassassin/*.cf, user_prefs, etc.
>
> > And like I said, "spamassassin --lint" comes back with nothing -
> should it
> > not detect this apparent configuration issue, as well? I can send you
> the
> > "spamassassin --lint -D" output, if you would like.
>
> It should (not knowing what is causing the issue I can't answer for
> certain,) but
> there's nothing in the code that I know of which would be converting
> underscore to dash, so it has to be a config file somewhere.
Update on this issue:
=====
[root@gw2 billl]# ls -l /home/billl/Mail-SpamAssassin-3.0.0/sa-learn
-rwxr-xr-x 1 root root 36543 Sep 26 03:12
/home/billl/Mail-SpamAssassin-3.0.0/sa-learn
[root@gw2 billl]# /home/billl/Mail-SpamAssassin-3.0.0/sa-learn --dump magic
error: rule 'RCVD_IN_DNSRBL-DUN' has invalid characters (not Alphanumeric +
Underscore)
error: rule 'RCVD_IN_DNSRBL-SPAM' has invalid characters (not Alphanumeric +
Underscore)
error: rule 'RCVD_IN_DSBL-MULTI' has invalid characters (not Alphanumeric +
Underscore)
error: rule 'RCVD_IN_SECURITY-SAGE' has invalid characters (not Alphanumeric
+ Underscore)
error: rule 'DNS_FROM_RFCI-ABUSE' has invalid characters (not Alphanumeric +
Underscore)
error: rule 'DNS_FROM_MAILPOLICE-BULK' has invalid characters (not
Alphanumeric + Underscore)
error: rule 'DNS_FROM_MAILPOLICE-PORN' has invalid characters (not
Alphanumeric + Underscore)
error: rule 'DNS_FROM_RFCI-POSTMASTER' has invalid characters (not
Alphanumeric + Underscore)
error: rule 'DNS_FROM_RFCI-PIGS' has invalid characters (not Alphanumeric +
Underscore)
0.000 0 3 0 non-token data: bayes db version
0.000 0 153178 0 non-token data: nspam
0.000 0 75561 0 non-token data: nham
0.000 0 256644 0 non-token data: ntokens
0.000 0 1096903685 0 non-token data: oldest atime
0.000 0 1097004810 0 non-token data: newest atime
0.000 0 1097005094 0 non-token data: last journal sync
atime
0.000 0 1096990378 0 non-token data: last expiry atime
0.000 0 43200 0 non-token data: last expire atime
delta
0.000 0 83493 0 non-token data: last expire
reduction count
=====
[root@gw2 billl]# ls -l /usr/bin/sa-learn
-r-xr-xr-x 1 root root 36633 Sep 26 03:12 /usr/bin/sa-learn
[root@gw2 billl]# /usr/bin/sa-learn --dump magic
0.000 0 3 0 non-token data: bayes db version
0.000 0 153178 0 non-token data: nspam
0.000 0 75561 0 non-token data: nham
0.000 0 256644 0 non-token data: ntokens
0.000 0 1096903685 0 non-token data: oldest atime
0.000 0 1097004810 0 non-token data: newest atime
0.000 0 1097005094 0 non-token data: last journal sync
atime
0.000 0 1096990378 0 non-token data: last expiry atime
0.000 0 43200 0 non-token data: last expire atime
delta
0.000 0 83493 0 non-token data: last expire
reduction count
=====
Guess I figured that the sa-learn in the distribution directory would be the
same as the one installed during "make install". Guess I figured wrong...
Bill
Re: bogus "sa-learn --dump magic" report
Posted by Theo Van Dinter <fe...@kluge.net>.
On Wed, Sep 29, 2004 at 03:51:28PM -0700, Bill Landry wrote:
> Hmmm, where else could this configuration issue be, Theo, since none of my
> CF files contain a "-" in the test definitions? Grep results:
Run spamassassin with -D, it'll tell you what files its reading. Could be
/usr/share/spamassassin/*.cf, user_prefs, etc.
> And like I said, "spamassassin --lint" comes back with nothing - should it
> not detect this apparent configuration issue, as well? I can send you the
> "spamassassin --lint -D" output, if you would like.
It should (not knowing what is causing the issue I can't answer for certain,) but
there's nothing in the code that I know of which would be converting
underscore to dash, so it has to be a config file somewhere.
--
Randomly Generated Tagline:
"The most likely way for the world to be destroyed, most experts agree,
is by accident. That's where we come in. We're computer professionals. We
cause accidents." - Nathaniel Borenstein, inventor of MIME.
Re: bogus "sa-learn --dump magic" report
Posted by Bill Landry <bi...@pointshare.com>.
----- Original Message -----
From: "Theo Van Dinter" <fe...@kluge.net>
> On Wed, Sep 29, 2004 at 03:30:53PM -0700, Bill Landry wrote:
> > Anyone have an idea why I would be getting the following output when I
> run
> > "sa-learn --dump magic":
> > error: rule 'DNS_FROM_RFCI-PIGS' has invalid characters (not
> Alphanumeric +
> > Underscore)
> >
> > These entries were all updated (converted all "-" to "_") when I
> upgraded to
> > SA 3.0, and "spamassassin --lint" reports no problems. Is there a way
> to
> > fix this, or should I log it as a bug on bugzilla?
>
> Apparently they weren't updated everywhere since the names included in
> your
> output had dashes "-".
>
> If you really can't find the version with the dashes everywhere, I'd
> open a
> ticket and include the rule configuration. However, I wouldn't be
> surprised
> if this were not reproducable since it's almost guaranteed to be a
> configuration issue.
Hmmm, where else could this configuration issue be, Theo, since none of my
CF files contain a "-" in the test definitions? Grep results:
[root@gw1 billl]# grep "RCVD_IN_DNSRBL-DUN" /etc/mail/spamassassin/*.cf
[root@gw1 billl]# grep "RCVD_IN_DNSRBL-SPAM" /etc/mail/spamassassin/*.cf
[root@gw1 billl]# grep "RCVD_IN_DSBL-MULTI" /etc/mail/spamassassin/*.cf
[root@gw1 billl]# grep "RCVD_IN_SECURITY-SAGE" /etc/mail/spamassassin/*.cf
[root@gw1 billl]# grep "DNS_FROM_RFCI-ABUSE" /etc/mail/spamassassin/*.cf
[root@gw1 billl]# grep "DNS_FROM_MAILPOLICE-BULK"
/etc/mail/spamassassin/*.cf
[root@gw1 billl]# grep "DNS_FROM_MAILPOLICE-PORN"
/etc/mail/spamassassin/*.cf
[root@gw1 billl]# grep "DNS_FROM_RFCI-POSTMASTER"
/etc/mail/spamassassin/*.cf
[root@gw1 billl]# grep "DNS_FROM_RFCI-PIGS" /etc/mail/spamassassin/*.cf
And like I said, "spamassassin --lint" comes back with nothing - should it
not detect this apparent configuration issue, as well? I can send you the
"spamassassin --lint -D" output, if you would like.
Bill
Re: bogus "sa-learn --dump magic" report
Posted by Theo Van Dinter <fe...@kluge.net>.
On Wed, Sep 29, 2004 at 03:30:53PM -0700, Bill Landry wrote:
> Anyone have an idea why I would be getting the following output when I run
> "sa-learn --dump magic":
> error: rule 'DNS_FROM_RFCI-PIGS' has invalid characters (not Alphanumeric +
> Underscore)
>
> These entries were all updated (converted all "-" to "_") when I upgraded to
> SA 3.0, and "spamassassin --lint" reports no problems. Is there a way to
> fix this, or should I log it as a bug on bugzilla?
Apparently they weren't updated everywhere since the names included in your
output had dashes "-".
If you really can't find the version with the dashes everywhere, I'd open a
ticket and include the rule configuration. However, I wouldn't be surprised
if this were not reproducable since it's almost guaranteed to be a
configuration issue.
--
Randomly Generated Tagline:
Acting is the art of keeping the audience from coughing.