I have little faith in installing spamassassin from cpan.  I'd recommend
uninstalling it if you can, and installing from whatever packaging system
your OS uses, which I believe is ports.  

But if there is a related bug in installation from cpan, it would be nice
to track it down and fix it.

>From your debug output:

Jan  1 17:06:23.374 [20281] dbg: generic: Perl 5.010000,
PREFIX=/usr/pkg, DEF_RULES_DIR=/usr/pkg/share/spamassassin,
LOCAL_RULES_DIR=/usr/pkg/etc/mail/spamassassin,
LOCAL_STATE_DIR=/usr/pkg/var/spamassassin

What exactly is the directory sa-update is downloading to?  Is it one of
those?  Does it actually contain rules?

$ sa-update -D 2>&1 | grep LOCAL_STATE
Jan  1 14:08:54.614 [9446] dbg: generic: Perl 5.010001, PREFIX=/usr, 
DEF_RULES_DIR=/usr/share/spamassassin, LOCAL_RULES_DIR=/etc/spamassassin, 
LOCAL_STATE_DIR=/var/lib/spamassassin 

$ spamassassin -D </dev/null 2>&1 | grep LOCAL_STATE
Jan  1 14:09:38.542 [9459] dbg: generic: Perl 5.010001, PREFIX=/usr, 
DEF_RULES_DIR=/usr/share/spamassassin, LOCAL_RULES_DIR=/etc/spamassassin, 
LOCAL_STATE_DIR=/var/lib/spamassassin

So on my machine, sa-update is downloading to, and spamassassin is loading
rules from, the LOCAL_STATE_DIR, and the rule definitions are all in
/var/lib/spamassassin/3.004000/updates_spamassassin_org/ .

On 01/01, Steve Blinkhorn wrote:
> Thank you for your various responses.
> 
> spamassassin --lint -D output is at  http://pastebin.com/Hjmt8CbE
> 
> There is only one sa-update on the system.
> 
> I installed from CPAN
> 
> --
> Steve Blinkhorn <st...@prd.co.uk>
> 
> > 
> > --f46d04428890f2fb1a04b568e766
> > Content-Type: text/plain; charset=ISO-8859-1
> > 
> > Check you've only got one saupdate etc installed and you are calling the
> > saupdate associated with the spamassassin you are running. Ie check there's
> > not one installed from ports or as the base install if you hand installed a
> > version and vice versa
> > 
> > Martin
> > 
> > On Saturday, 31 December 2011, Steve Blinkhorn <st...@prd.co.uk> wrote:
> > > Hi,
> > > I just tried to install spamassassin: everything proceeded normally,
> > > AFAIK, but the basic "spamassassin -t' on the provided sample fails
> > > because no rules are found (line 400, which looks to my untutored eye
> > > like an all-purpose error-spitter). sa-update appears to run, and
> > > exits silently.   There is a rules directory under the the directory
> > > where I ran the installation, and also under usr/pkg/share, and they
> > > are both populated with files which look relevant.
> > >
> > > I tweaked the script so as not to require rules, and it ran and
> > > produced output.
> > >
> > > NetBSD 4.01, working as root.   What is amiss?
> > >
> > > --
> > > Steve Blinkhorn <st...@prd.co.uk>
> > >
> > >
> > ****************************************************************************
> > > This email is for the addressee only.   If you are not the addressee
> > > you should immediately delete this email from your system(s) and
> > > inform us.   It may contain information that is confidential or
> > > otherwise privileged, and should not be copied or redistributed to
> > > recipients not originally specified as addressees without permission.
> > >
> > > Psychometric Research & Development Ltd.
> > > PO Box 1143, St Albans, Herts, AL1 9UT, UK
> > > Registered in England No. 1909571
> > > Registered Office: 47 Holywell Hill, St Albans, Herts, AL1 1HD
> > > Phone: +44 (0)1727 841455
> > > www.prd.co.uk
> > >
> > ****************************************************************************
> > >
> > 
> > -- 
> > -- 
> > Martin Hepworth
> > Oxford, UK
> > 
> > --f46d04428890f2fb1a04b568e766
> > Content-Type: text/html; charset=ISO-8859-1
> > Content-Transfer-Encoding: quoted-printable
> > 
> > Check you&#39;ve only got one saupdate etc installed and you are calling th=
> > e saupdate associated with the spamassassin you are running. Ie check there=
> > &#39;s not one installed from ports or as the base install if you hand inst=
> > alled a version and vice versa<br>
> > <br>Martin<br><br>On Saturday, 31 December 2011, Steve Blinkhorn &lt;<a hre=
> > f=3D"mailto:st...@prd.co.uk";>st...@prd.co.uk</a>&gt; wrote:<br>&gt; Hi,<br>=
> > &gt; I just tried to install spamassassin: everything proceeded normally,<b=
> > r>
> > &gt; AFAIK, but the basic &quot;spamassassin -t&#39; on the provided sample=
> >  fails<br>&gt; because no rules are found (line 400, which looks to my untu=
> > tored eye<br>&gt; like an all-purpose error-spitter). sa-update appears to =
> > run, and<br>
> > &gt; exits silently. =A0 There is a rules directory under the the directory=
> > <br>&gt; where I ran the installation, and also under usr/pkg/share, and th=
> > ey<br>&gt; are both populated with files which look relevant.<br>&gt;<br>
> > &gt; I tweaked the script so as not to require rules, and it ran and<br>&gt=
> > ; produced output.<br>&gt;<br>&gt; NetBSD 4.01, working as root. =A0 What i=
> > s amiss?<br>&gt;<br>&gt; --<br>&gt; Steve Blinkhorn &lt;<a href=3D"mailto:s=
> > t...@prd.co.uk">st...@prd.co.uk</a>&gt;<br>
> > &gt;<br>&gt; **************************************************************=
> > **************<br>&gt; This email is for the addressee only. =A0 If you are=
> >  not the addressee<br>&gt; you should immediately delete this email from yo=
> > ur system(s) and<br>
> > &gt; inform us. =A0 It may contain information that is confidential or<br>&=
> > gt; otherwise privileged, and should not be copied or redistributed to<br>&=
> > gt; recipients not originally specified as addressees without permission.<b=
> > r>
> > &gt;<br>&gt; Psychometric Research &amp; Development Ltd.<br>&gt; PO Box 11=
> > 43, St Albans, Herts, AL1 9UT, UK<br>&gt; Registered in England No. 1909571=
> > <br>&gt; Registered Office: 47 Holywell Hill, St Albans, Herts, AL1 1HD<br>
> > &gt; Phone: +44 (0)1727 841455<br>&gt; <a href=3D"http://www.prd.co.uk";>www=
> > .prd.co.uk</a><br>&gt; ****************************************************=
> > ************************<br>&gt;<br><br>-- <br>-- <br>Martin Hepworth<br>
> > Oxford, UK<br>
> > 
> > --f46d04428890f2fb1a04b568e766--
> > 
> 
> 
> -- 
> Steve Blinkhorn <st...@prd.co.uk>
> 
> ****************************************************************************
> This email is for the addressee only.   If you are not the addressee
> you should immediately delete this email from your system(s) and
> inform us.   It may contain information that is confidential or
> otherwise privileged, and should not be copied or redistributed to
> recipients not originally specified as addressees without permission.
> 
> S F Blinkhorn MA PhD CPsychol FBPsS Chairman,
> Psychometric Research & Development Ltd.
> PO Box 1143, St Albans, Herts, AL1 9UT, UK
> Registered in England No. 1909571
> Registered Office: 47 Holywell Hill, St Albans, Herts, AL1 1HD
> Phone: +44 (0)1727 841455
> www.prd.co.uk
> ****************************************************************************
> 

-- 
"Blessed are the cracked, for they shall let in the light."
http://www.ChaosReigns.com

Reply via email to