On Sun, 1 Jan 2012, 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
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?
Looking at that "--lint -D" output I see:
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
So if you go look in '/usr/pkg/share/spamassassin' &
'/usr/pkg/etc/mail/spamassassin' do you see any rules or SA config
stuff?
sa-update -should- put rules in a place where your SA can find them.
Usually that's something like "/var/lib/spamassassin/..." or
"/usr/share/spamassassin/..." Go look in those places to see if
you can find rules.
if you run sa-update with the "--debug" option, where does it say
that it's putting the new rules?
My bet is that your spamassassin was build with that "PREFIX=/usr/pkg"
and so expects -everthing- to be under /usr/pkg someplace but your
sa-update is putting the rules that it fetches in the more standard place
and so your spamassassin never finds them.
You need to make sure that spamassassin & sa-update agree upon the dirs to
use for rules. You can either install matching kits or use command line
switches to tell everybody where things are stored.
--
Dave Funk University of Iowa
<dbfunk (at) engineering.uiowa.edu> College of Engineering
319/335-5751 FAX: 319/384-0549 1256 Seamans Center
Sys_admin/Postmaster/cell_admin Iowa City, IA 52242-1527
#include <std_disclaimer.h>
Better is not better, 'standard' is better. B{