You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Jeffrey Rice <py...@finity.org> on 2010/12/11 19:45:30 UTC

Failed to parse line in 60_adsp_override_dkim.cf

I'm running SpamAssassin version 3.3.1, running on Perl version 5.10.0.  
I'm seeing a lot of errors similar to:

config: failed to parse line, skipping, in 
"/tmp/.spamassassin13924v0B7j5tmp/60_adsp_override_dkim.cf": 
adsp_override ebay.com

during the daily cron run.  (the entire output is here: 
http://pastebin.com/jJdb92dF)

  I can't find where these errors are coming from!

Spamassassin -D --lint gives me an error about 'no rules found, do you 
need to run sa-update?' - and sa-update results in the errors as noted.

Everything has been running fine for quite some time until an update 
broke things, but I'm not sure where or how.  Any hints?

Dec 11 13:43:08.328 [13970] dbg: logger: adding facilities: all
Dec 11 13:43:08.328 [13970] dbg: logger: logging level is DBG
Dec 11 13:43:08.329 [13970] dbg: generic: SpamAssassin version 3.3.1
Dec 11 13:43:08.329 [13970] dbg: generic: Perl 5.010000, 
PREFIX=/usr/local, DEF_RULES_DIR=/usr/local/share/spamassassin, 
LOCAL_RULES_DIR=/etc/mail/spamassassin, 
LOCAL_STATE_DIR=/var/lib/spamassassin
Dec 11 13:43:08.329 [13970] dbg: config: timing enabled
Dec 11 13:43:08.331 [13970] dbg: config: score set 0 chosen.
Dec 11 13:43:08.332 [13970] warn: netset: cannot include 
0:0:0:0:0:0:0:1/128 as it has already been included
Dec 11 13:43:08.333 [13970] warn: netset: cannot include 
0:0:0:0:0:0:0:1/128 as it has already been included
Dec 11 13:43:08.334 [13970] dbg: util: running in taint mode? yes
Dec 11 13:43:08.334 [13970] dbg: util: taint mode: deleting unsafe 
environment variables, resetting PATH
Dec 11 13:43:08.335 [13970] dbg: util: PATH included '/usr/local/sbin', 
keeping
Dec 11 13:43:08.335 [13970] dbg: util: PATH included '/usr/local/bin', 
keeping
Dec 11 13:43:08.335 [13970] dbg: util: PATH included '/usr/sbin', keeping
Dec 11 13:43:08.336 [13970] dbg: util: PATH included '/usr/bin', keeping
Dec 11 13:43:08.336 [13970] dbg: util: PATH included '/sbin', keeping
Dec 11 13:43:08.336 [13970] dbg: util: PATH included '/bin', keeping
Dec 11 13:43:08.336 [13970] dbg: util: PATH included '/usr/X11R6/bin', 
keeping
Dec 11 13:43:08.337 [13970] dbg: util: final PATH set to: 
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
Dec 11 13:43:08.345 [13970] dbg: dns: is Net::DNS::Resolver available? yes
Dec 11 13:43:08.345 [13970] dbg: dns: Net::DNS version: 0.66
Dec 11 13:43:08.681 [13970] dbg: diag: perl platform: 5.010000 linux
Dec 11 13:43:08.682 [13970] dbg: diag: [...] module installed: 
Digest::SHA1, version 2.13
Dec 11 13:43:08.682 [13970] dbg: diag: [...] module installed: 
HTML::Parser, version 3.68
Dec 11 13:43:08.682 [13970] dbg: diag: [...] module installed: Net::DNS, 
version 0.66
Dec 11 13:43:08.682 [13970] dbg: diag: [...] module installed: 
NetAddr::IP, version 4.035
Dec 11 13:43:08.683 [13970] dbg: diag: [...] module installed: 
Time::HiRes, version 1.9721
Dec 11 13:43:08.683 [13970] dbg: diag: [...] module installed: 
Archive::Tar, version 1.68
Dec 11 13:43:08.683 [13970] dbg: diag: [...] module installed: IO::Zlib, 
version 1.10
Dec 11 13:43:08.683 [13970] dbg: diag: [...] module installed: 
Digest::SHA1, version 2.13
Dec 11 13:43:08.684 [13970] dbg: diag: [...] module installed: 
MIME::Base64, version 3.09
Dec 11 13:43:08.684 [13970] dbg: diag: [...] module installed: DB_File, 
version 1.82
Dec 11 13:43:08.684 [13970] dbg: diag: [...] module installed: 
Net::SMTP, version 2.31
Dec 11 13:43:08.684 [13970] dbg: diag: [...] module installed: 
Mail::SPF, version v2.006
Dec 11 13:43:08.685 [13970] dbg: diag: [...] module installed: 
IP::Country::Fast, version 604.001
Dec 11 13:43:08.685 [13970] dbg: diag: [...] module installed: 
Razor2::Client::Agent, version 2.84
Dec 11 13:43:08.685 [13970] dbg: diag: [...] module installed: 
Net::Ident, version 1.23
Dec 11 13:43:08.685 [13970] dbg: diag: [...] module installed: 
IO::Socket::INET6, version 2.65
Dec 11 13:43:08.686 [13970] dbg: diag: [...] module installed: 
IO::Socket::SSL, version 1.34
Dec 11 13:43:08.686 [13970] dbg: diag: [...] module installed: 
Compress::Zlib, version 2.03
Dec 11 13:43:08.686 [13970] dbg: diag: [...] module installed: 
Mail::DKIM, version 0.38
Dec 11 13:43:08.686 [13970] dbg: diag: [...] module installed: DBI, 
version 1.615
Dec 11 13:43:08.687 [13970] dbg: diag: [...] module installed: 
Getopt::Long, version 2.38
Dec 11 13:43:08.687 [13970] dbg: diag: [...] module installed: 
LWP::UserAgent, version 5.835
Dec 11 13:43:08.687 [13970] dbg: diag: [...] module installed: 
HTTP::Date, version 5.831
Dec 11 13:43:08.687 [13970] dbg: diag: [...] module installed: 
Encode::Detect, version 1.01
Dec 11 13:43:08.688 [13970] dbg: ignore: using a test message to lint rules
Dec 11 13:43:08.688 [13970] dbg: config: using "/etc/mail/spamassassin" 
for site rules pre files
Dec 11 13:43:08.689 [13970] dbg: config: read file 
/etc/mail/spamassassin/init.pre
Dec 11 13:43:08.690 [13970] dbg: config: read file 
/etc/mail/spamassassin/local.pre
Dec 11 13:43:08.690 [13970] dbg: config: read file 
/etc/mail/spamassassin/v310.pre
Dec 11 13:43:08.690 [13970] dbg: config: read file 
/etc/mail/spamassassin/v312.pre
Dec 11 13:43:08.691 [13970] dbg: config: read file 
/etc/mail/spamassassin/v320.pre
Dec 11 13:43:08.691 [13970] dbg: config: read file 
/etc/mail/spamassassin/v330.pre
Dec 11 13:43:08.692 [13970] dbg: config: using 
"/usr/local/share/spamassassin" for sys rules pre files
Dec 11 13:43:08.692 [13970] dbg: config: using 
"/usr/local/share/spamassassin" for default rules dir
config: no rules were found!  Do you need to run 'sa-update'?
zsh: exit 9     sudo spamassassin -D --lint



Re: Failed to parse line in 60_adsp_override_dkim.cf

Posted by Mark Martinec <Ma...@ijs.si>.
Jeffrey,

> I'm running SpamAssassin version 3.3.1, running on Perl version 5.10.0.
> I'm seeing a lot of errors similar to:
> 
> config: failed to parse line, skipping, in
> "/tmp/.spamassassin13924v0B7j5tmp/60_adsp_override_dkim.cf":
> adsp_override ebay.com
> 
> during the daily cron run.  (the entire output is here:
> http://pastebin.com/jJdb92dF)
> 
>   I can't find where these errors are coming from!
> 
> Spamassassin -D --lint gives me an error about 'no rules found, do you
> need to run sa-update?' - and sa-update results in the errors as noted.
> 
> Everything has been running fine for quite some time until an update
> broke things, but I'm not sure where or how.  Any hints?

Seems like the 'no rules found' is the good starting point
to start resolving the mystery.

The error:

> config: failed to parse line, skipping, in
> "/tmp/.spamassassin13924v0B7j5tmp/60_adsp_override_dkim.cf":
> adsp_override ebay.com

indicate that the DKIM plugin is not available, or is somehow
broken, perhaps its code comes from a previous version of
your SpamAssassin installation.

Two things are unusual there: why is the rules path reported in the
message under /tmp, and where does the .spamassassin13924v0B7j5tmp
come from.

The second thing that is unusual is that the 'adsp_override'
rules in 60_adsp_override_dkim.cf are protected with
a  ifplugin Mail::SpamAssassin::Plugin::DKIM
So if the DKIM plugin were not loaded, these rules would
have to be skipped. This lead me to my previous guess that
maybe you have a mixup of SA versions installed.

> config: no rules were found!  Do you need to run 'sa-update'?

Checks your paths first, then try running sa-update and see
if things improve.

  Mark