Running OS/X, SA 3.1.4... Have the following in my crontab:
@daily /usr/local/bin/rules_du_jour
(Run as root)
The e-mail I get via cron:
***NOTICE***: spamassassin --lint failed. This means that you have
an error somwhere in your SpamAssassin configuration. To determine
what the problem is, please run 'spamassassin --lint' from a shell
and notice the error messages it prints. For more (debug)
information, add the -D switch to the command. Usually the problem
will be found in local.cf, user_prefs, or some custom rulelset found
in /etc/mail/spamassassin. Here are the errors that 'spamassassin
--lint' reported:
[13163] warn: config: failed to parse, now a plugin, skipping: ok_languages all
[13163] warn: config: configuration file
"/etc/mail/spamassassin/20_body_tests.cf" requires version 3.000004
of SpamAssassin, but this is code version 3.001003. Maybe you need to
use the -C switch, or remove the old config files? Skipping this file
at /Library/Perl/5.8.6/Mail/SpamAssassin/Conf/Parser.pm line 344.
[13163] warn: config: configuration file
"/etc/mail/spamassassin/20_compensate.cf" requires version 3.000004
of SpamAssassin, but this is code version 3.001003. Maybe you need to
use the -C switch, or remove the old config files? Skipping this file
at /Library/Perl/5.8.6/Mail/SpamAssassin/Conf/Parser.pm line 344.
[13163] warn: config: configuration file
"/etc/mail/spamassassin/20_dnsbl_tests.cf" requires version 3.000004
of SpamAssassin, but this is code version 3.001003. Maybe you need to
use the -C switch, or remove the old config files? Skipping this file
at /Library/Perl/5.8.6/Mail/SpamAssassin/Conf/Parser.pm line 344.
[13163] warn: config: configuration file
"/etc/mail/spamassassin/20_drugs.cf" requires version 3.000004 of
SpamAssassin, but this is code version 3.001003. Maybe you need to
use the -C switch, or remove the old config files? Skipping this file
at /Library/Perl/5.8.6/Mail/SpamAssassin/Conf/Parser.pm line 344.
[13163] warn: config: configuration file
"/etc/mail/spamassassin/20_fake_helo_tests.cf" requires version
3.000004 of SpamAssassin, but this is code version 3.001003. Maybe
you need to use the -C switch, or remove the old config files?
Skipping this file at
/Library/Perl/5.8.6/Mail/SpamAssassin/Conf/Parser.pm line 344.
[13163] warn: config: configuration file
"/etc/mail/spamassassin/20_head_tests.cf" requires version 3.000004
of SpamAssassin, but this is code version 3.001003. Maybe you need to
use the -C switch, or remove the old config files? Skipping this file
at /Library/Perl/5.8.6/Mail/SpamAssassin/Conf/Parser.pm line 344.
[13163] warn: config: configuration file
"/etc/mail/spamassassin/20_html_tests.cf" requires version 3.000004
of SpamAssassin, but this is code version 3.001003. Maybe you need to
use the -C switch, or remove the old config files? Skipping this file
at /Library/Perl/5.8.6/Mail/SpamAssassin/Conf/Parser.pm line 344.
[13163] warn: config: configuration file
"/etc/mail/spamassassin/20_meta_tests.cf" requires version 3.000004
of SpamAssassin, but this is code version 3.001003. Maybe you need to
use the -C switch, or remove the old config files? Skipping this file
at /Library/Perl/5.8.6/Mail/SpamAssassin/Conf/Parser.pm line 344.
[13163] warn: config: configuration file
"/etc/mail/spamassassin/20_phrases.cf" requires version 3.000004 of
SpamAssassin, but this is code version 3.001003. Maybe you need to
use the -C switch, or remove the old config files? Skipping this file
at /Library/Perl/5.8.6/Mail/SpamAssassin/Conf/Parser.pm line 344.
[13163] warn: config: configuration file
"/etc/mail/spamassassin/20_porn.cf" requires version 3.000004 of
SpamAssassin, but this is code version 3.001003. Maybe you need to
use the -C switch, or remove the old config files? Skipping this file
at /Library/Perl/5.8.6/Mail/SpamAssassin/Conf/Parser.pm line 344.
[13163] warn: config: configuration file
"/etc/mail/spamassassin/20_uri_tests.cf" requires version 3.000004 of
SpamAssassin, but this is code version 3.001003. Maybe you need to
use the -C switch, or remove the old config files? Skipping this file
at /Library/Perl/5.8.6/Mail/SpamAssassin/Conf/Parser.pm line 344.
[13163] warn: config: configuration file
"/etc/mail/spamassassin/23_bayes.cf" requires version 3.000004 of
SpamAssassin, but this is code version 3.001003. Maybe you need to
use the -C switch, or remove the old config files? Skipping this file
at /Library/Perl/5.8.6/Mail/SpamAssassin/Conf/Parser.pm line 344.
[13163] warn: config: failed to parse line, skipping: pyzor_add_header 1
[13163] warn: config: warning: score set for non-existent rule RCVD_IN_RSL
[13163] warn: config: warning: score set for non-existent rule EXCUSE_3
[13163] warn: config: warning: score set for non-existent rule BANKRUPTCY
<SNIP>
However running the script in shell seems fine:
# /usr/local/bin/rules_du_jour
exec: curl -w %{http_code} --compressed -O -R -s -S -z
/etc/mail/spamassassin/RulesDuJour/rules_du_jour
http://sandgnat.com/rdj/rules_du_jour 2>&1
curl_output: 304
Performing preliminary lint (sanity check; does the CURRENT config lint?).
------ TRIPWIRE ------
RULESET_NAME=TRIPWIRE
<SNIP>
Any ideas what I'm missing?
Thanks.
Evan