Re: no loaded plugin implements 'check_main': cannot scan!
Hi, just to let you know that I have found what was wrong. At the end of emerge, I didn't accept modification of my /etc/conf.d/spamd script when I upgrade to SpamAssassin 3.2.1-r1. To fix the issue, I have finally just replaced my old SPAMD_OPTS in /etc/conf.d/spamd file by SPAMD_OPTS="-m 5 -H -u qscand -v -x --siteconfigpath=/etc/spamassassin/" (instead of SPAMD_OPTS="-m 5 -H -u qscand -v -x --siteconfigpath=/etc/spamassassin/local.cf") and it works fine now. Alex Alex a écrit : Hi, I just upgrade my version of SpamAssassin from 3.1 to 3.2.1-r1. I am using Gentoo. Since I upgraded, I have following error message in mail.err : check: no loaded plugin implements 'check_main': cannot scan! at /usr/lib/perl5/vendor_perl/5.8.8/Mail/SpamAssassin/PerMsgStatus.pm line 164 Before it works correctly and spam was correctly labelled ***SPAM*** in my emails box I checked permissions on directories and files to /etc/mail/spamassassin and everything seems ok to me : ls -lrt /etc/mail/spamassassin/ total 28 -rw-r--r-- 1 root root 2397 jun 2 2006 v310.pre -rw-r--r-- 1 root root 1343 jun 2 2006 local.cf -rw-r--r-- 1 root root 2067 nov 22 13:47 v320.pre -rw-r--r-- 1 root root 922 nov 22 13:47 v312.pre -r 1 root root 664 nov 22 13:47 secrets.cf.example -rw-r--r-- 1 root root 140 nov 22 13:47 local.cf.example -rw-r--r-- 1 root root 951 nov 22 13:47 init.pre Here is the output of following command : su qscand -c 'spamassassin --lint -D' [9874] dbg: logger: adding facilities: all [9874] dbg: logger: logging level is DBG [9874] dbg: generic: SpamAssassin version 3.2.1 [9874] dbg: config: score set 0 chosen. [9874] dbg: util: running in taint mode? no [9874] dbg: dns: no ipv6 [9874] dbg: dns: is Net::DNS::Resolver available? yes [9874] dbg: dns: Net::DNS version: 0.53 [9874] dbg: diag: perl platform: 5.008008 linux [9874] dbg: diag: module installed: Digest::SHA1, version 2.11 [9874] dbg: diag: module installed: HTML::Parser, version 3.48 [9874] dbg: diag: module installed: Net::DNS, version 0.53 [9874] dbg: diag: module installed: MIME::Base64, version 3.07 [9874] dbg: diag: module installed: DB_File, version 1.815 [9874] dbg: diag: module installed: Net::SMTP, version 2.29 [9874] dbg: diag: module not installed: Mail::SPF ('require' failed) [9874] dbg: diag: module not installed: Mail::SPF::Query ('require' failed) [9874] dbg: diag: module not installed: IP::Country::Fast ('require' failed) [9874] dbg: diag: module not installed: Razor2::Client::Agent ('require' failed) [9874] dbg: diag: module not installed: Net::Ident ('require' failed) [9874] dbg: diag: module installed: IO::Socket::INET6, version 2.51 [9874] dbg: diag: module installed: IO::Socket::SSL, version 0.97 [9874] dbg: diag: module installed: Compress::Zlib, version 2.015 [9874] dbg: diag: module installed: Time::HiRes, version 1.9715 [9874] dbg: diag: module not installed: Mail::DomainKeys ('require' failed) [9874] dbg: diag: module not installed: Mail::DKIM ('require' failed) [9874] dbg: diag: module installed: DBI, version 1.50 [9874] dbg: diag: module installed: Getopt::Long, version 2.35 [9874] dbg: diag: module installed: LWP::UserAgent, version 2.033 [9874] dbg: diag: module installed: HTTP::Date, version 1.46 [9874] dbg: diag: module installed: Archive::Tar, version 1.40 [9874] dbg: diag: module installed: IO::Zlib, version 1.09 [9874] dbg: diag: module not installed: Encode::Detect ('require' failed) [9874] dbg: ignore: using a test message to lint rules [9874] dbg: config: using "/etc/mail/spamassassin" for site rules pre files [9874] dbg: config: read file /etc/mail/spamassassin/init.pre [9874] dbg: config: read file /etc/mail/spamassassin/v310.pre [9874] dbg: config: read file /etc/mail/spamassassin/v312.pre [9874] dbg: config: read file /etc/mail/spamassassin/v320.pre [9874] dbg: config: using "/usr/share/spamassassin" for sys rules pre files [9874] dbg: config: using "/usr/share/spamassassin" for default rules dir [9874] dbg: config: read file /usr/share/spamassassin/10_default_prefs.cf [9874] dbg: config: read file /usr/share/spamassassin/11_gentoo.cf [9874] dbg: config: read file /usr/share/spamassassin/20_advance_fee.cf [9874] dbg: config: read file /usr/share/spamassassin/20_body_tests.cf [9874] dbg: config: read file /usr/share/spamassassin/20_compensate.cf [9874] dbg: config: read file /usr/share/spamassassin/20_dnsbl_tests.cf [9874] dbg: config: read file /usr/share/spamassassin/20_drugs.cf [9874] dbg: config: read file /usr/share/spamassassin/20_dynrdns.cf [9874] dbg: config: read file /usr/share/spamassassin/20_fake_helo_tests.cf [9874] dbg: config: read file /usr/share/spamassassin/20_head_tests.cf [9874] dbg: config: read file /usr/share/spamassassin/20_html_tests.cf [9874] dbg: config: read file /usr/share/spamassassin/20_imageinfo.cf [9874] dbg: config: read file /usr/share/spamassassin/20_meta_tests.cf [9874] dbg: config: read file
Re: no loaded plugin implements
[EMAIL PROTECTED] wrote: ### May 14 21:29:21 MARTINI.happynetworks.net /usr/local/sbin/amavisd[23697]: (!!)TROUBLE in pre_loop_hook: check: no loaded plugin implements 'check_main': cannot scan! at /usr/local/libdata/perl5/site_perl/Mail/SpamAssassin/PerMsgStatus.pm line 164. My v320.pre file has: # Check - Provides main check functionality # loadplugin Mail::SpamAssassin::Plugin::Check Googling didnt bring up anything in particular.. anyone have any ideas? Run 'spamassassin -D --lint' to make sure SA is loading your config from where you think it should be. For whatever reason it's not reading your v320.pre file (probably due to location or permissions). Daryl
Re: no loaded plugin implements
Run 'spamassassin -D --lint' to make sure SA is loading your config from where you think it should be. For whatever reason it's not reading your v320.pre file (probably due to location or permissions). Daryl Thanks Daryl, Here is the output and the config file is being read where i edited and expect. Any ideas from the output? # spamassassin -D --lint [28524] dbg: logger: adding facilities: all [28524] dbg: logger: logging level is DBG [28524] dbg: generic: SpamAssassin version 3.2.0 [28524] dbg: config: score set 0 chosen. [28524] dbg: util: running in taint mode? yes [28524] dbg: util: taint mode: deleting unsafe environment variables, resetting PATH [28524] dbg: util: PATH included '/sbin', keeping [28524] dbg: util: PATH included '/usr/sbin', keeping [28524] dbg: util: PATH included '/bin', keeping [28524] dbg: util: PATH included '/usr/bin', keeping [28524] dbg: util: PATH included '/usr/X11R6/bin', which doesn't exist, dropping [28524] dbg: util: PATH included '/usr/local/sbin', keeping [28524] dbg: util: PATH included '/usr/local/bin', keeping [28524] dbg: util: final PATH set to: /sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin [28524] dbg: dns: is Net::DNS::Resolver available? yes [28524] dbg: dns: Net::DNS version: 0.59 [28524] dbg: diag: perl platform: 5.008008 openbsd [28524] dbg: diag: module installed: Digest::SHA1, version 2.11 [28524] dbg: diag: module installed: HTML::Parser, version 3.56 [28524] dbg: diag: module installed: Net::DNS, version 0.59 [28524] dbg: diag: module installed: MIME::Base64, version 3.07 [28524] dbg: diag: module installed: DB_File, version 1.814 [28524] dbg: diag: module installed: Net::SMTP, version 2.29 [28524] dbg: diag: module not installed: Mail::SPF ('require' failed) [28524] dbg: diag: module installed: Mail::SPF::Query, version 1.999001 [28524] dbg: diag: module installed: IP::Country::Fast, version 604.001 [28524] dbg: diag: module installed: Razor2::Client::Agent, version 2.82 [28524] dbg: diag: module not installed: Net::Ident ('require' failed) [28524] dbg: diag: module installed: IO::Socket::INET6, version 2.51 [28524] dbg: diag: module installed: IO::Socket::SSL, version 1.06 [28524] dbg: diag: module installed: Compress::Zlib, version 2.004 [28524] dbg: diag: module installed: Time::HiRes, version 1.9707 [28524] dbg: diag: module not installed: Mail::DomainKeys ('require' failed) [28524] dbg: diag: module not installed: Mail::DKIM ('require' failed) [28524] dbg: diag: module not installed: DBI ('require' failed) [28524] dbg: diag: module installed: Getopt::Long, version 2.36 [28524] dbg: diag: module installed: LWP::UserAgent, version 2.033 [28524] dbg: diag: module installed: HTTP::Date, version 1.47 [28524] dbg: diag: module installed: Archive::Tar, version 1.30 [28524] dbg: diag: module installed: IO::Zlib, version 1.05 [28524] dbg: diag: module not installed: Encode::Detect ('require' failed) [28524] dbg: ignore: using a test message to lint rules [28524] dbg: config: using /etc/mail/spamassassin for site rules pre files [28524] dbg: config: read file /etc/mail/spamassassin/init.pre [28524] dbg: config: read file /etc/mail/spamassassin/v310.pre [28524] dbg: config: read file /etc/mail/spamassassin/v312.pre [28524] dbg: config: read file /etc/mail/spamassassin/v320.pre [28524] dbg: config: using /usr/local/share/spamassassin for sys rules pre files [28524] dbg: config: using /usr/local/share/spamassassin for default rules dir [28524] dbg: config: read file /usr/local/share/spamassassin/10_default_prefs.cf [28524] dbg: config: read file /usr/local/share/spamassassin/20_advance_fee.cf [28524] dbg: config: read file /usr/local/share/spamassassin/20_body_tests.cf [28524] dbg: config: read file /usr/local/share/spamassassin/20_compensate.cf [28524] dbg: config: read file /usr/local/share/spamassassin/20_dnsbl_tests.cf [28524] dbg: config: read file /usr/local/share/spamassassin/20_drugs.cf [28524] dbg: config: read file /usr/local/share/spamassassin/20_dynrdns.cf [28524] dbg: config: read file /usr/local/share/spamassassin/20_fake_helo_tests.cf [28524] dbg: config: read file /usr/local/share/spamassassin/20_head_tests.cf [28524] dbg: config: read file /usr/local/share/spamassassin/20_html_tests.cf [28524] dbg: config: read file /usr/local/share/spamassassin/20_imageinfo.cf [28524] dbg: config: read file /usr/local/share/spamassassin/20_meta_tests.cf [28524] dbg: config: read file /usr/local/share/spamassassin/20_net_tests.cf [28524] dbg: config: read file /usr/local/share/spamassassin/20_phrases.cf [28524] dbg: config: read file /usr/local/share/spamassassin/20_porn.cf [28524] dbg: config: read file /usr/local/share/spamassassin/20_ratware.cf [28524] dbg: config: read file /usr/local/share/spamassassin/20_uri_tests.cf [28524] dbg: config: read file /usr/local/share/spamassassin/20_vbounce.cf [28524] dbg: config: read file /usr/local/share/spamassassin/23_bayes.cf [28524] dbg: config: read file
Re: no loaded plugin implements
[EMAIL PROTECTED] wrote: Run 'spamassassin -D --lint' to make sure SA is loading your config from where you think it should be. For whatever reason it's not reading your v320.pre file (probably due to location or permissions). Daryl Thanks Daryl, Here is the output and the config file is being read where i edited and expect. Any ideas from the output? # spamassassin -D --lint [28524] dbg: plugin: Mail::SpamAssassin::Plugin::Check=HASH(0x813b0fdc) implements 'check_main', priority 0 On its own SA appears to be working. I'd check to make sure that whatever user amavisd runs as (or at least starts as) can read your config files. If that looks good and it still doesn't work I'd check with the folks on the amavisd list. Daryl
Re: no loaded plugin implements
On Tue, May 15, 2007 at 01:23:08PM -0400, [EMAIL PROTECTED] wrote: Here is the output and the config file is being read where i edited and expect. Any ideas from the output? [...] [28524] dbg: config: read file /etc/mail/spamassassin/v320.pre [...] [28524] dbg: plugin: loading Mail::SpamAssassin::Plugin::Check from @INC It appears that SA is working fine and loads the plugin. You said you were running through amavis though, which is something completely different. If there's a debug option there, you'd want to check it that way. -- Randomly Selected Tagline: ...Unix, MS-DOS, and Windows NT (also known as the Good, the Bad, and the Ugly). (By Matt Welsh) pgpG04HZjcGeG.pgp Description: PGP signature
Re: no loaded plugin implements
Run 'spamassassin -D --lint' to make sure SA is loading your config from where you think it should be. For whatever reason it's not reading your v320.pre file (probably due to location or permissions). Daryl Thanks Daryl, Here is the output and the config file is being read where i edited and expect. Any ideas from the output? # spamassassin -D --lint ... [28524] dbg: config: read file /etc/mail/spamassassin/v320.pre [28524] dbg: config: using /usr/local/share/spamassassin for sys rules pre files [28524] dbg: config: using /usr/local/share/spamassassin for default rules dir Now run amavisd -d config debug-sa Amavisd-new may disagree on where it looks for SA stuff. Gary V _ More photos, more messages, more storageget 2GB with Windows Live Hotmail. http://imagine-windowslive.com/hotmail/?locale=en-usocid=TXT_TAGHM_migration_HM_mini_2G_0507
Re: no loaded plugin implements
Now run amavisd -d config debug-sa Amavisd-new may disagree on where it looks for SA stuff. Gary V Thanks all for the help .. Here is the output to Gary's suggeston .. Seems all the same .. Again thank you everyone. # amavisd -d config debug-sa ps: pid: No such file or directory Pid_file /var/amavisd/amavisd.pid already exists. Overwriting! [13583] dbg: config: score set 0 chosen. [13583] dbg: config: using /etc/mail/spamassassin for site rules pre files [13583] dbg: config: read file /etc/mail/spamassassin/init.pre [13583] dbg: config: read file /etc/mail/spamassassin/v310.pre [13583] dbg: config: using /usr/local/share/spamassassin for sys rules pre files [13583] dbg: config: using /usr/local/share/spamassassin for default rules dir [13583] dbg: config: read file /usr/local/share/spamassassin/10_default_prefs.cf [13583] dbg: config: read file /usr/local/share/spamassassin/20_advance_fee.cf [13583] dbg: config: read file /usr/local/share/spamassassin/20_body_tests.cf [13583] dbg: config: read file /usr/local/share/spamassassin/20_compensate.cf [13583] dbg: config: read file /usr/local/share/spamassassin/20_dnsbl_tests.cf [13583] dbg: config: read file /usr/local/share/spamassassin/20_drugs.cf [13583] dbg: config: read file /usr/local/share/spamassassin/20_dynrdns.cf [13583] dbg: config: read file /usr/local/share/spamassassin/20_fake_helo_tests.cf [13583] dbg: config: read file /usr/local/share/spamassassin/20_head_tests.cf [13583] dbg: config: read file /usr/local/share/spamassassin/20_html_tests.cf [13583] dbg: config: read file /usr/local/share/spamassassin/20_imageinfo.cf [13583] dbg: config: read file /usr/local/share/spamassassin/20_meta_tests.cf [13583] dbg: config: read file /usr/local/share/spamassassin/20_net_tests.cf [13583] dbg: config: read file /usr/local/share/spamassassin/20_phrases.cf [13583] dbg: config: read file /usr/local/share/spamassassin/20_porn.cf [13583] dbg: config: read file /usr/local/share/spamassassin/20_ratware.cf [13583] dbg: config: read file /usr/local/share/spamassassin/20_uri_tests.cf [13583] dbg: config: read file /usr/local/share/spamassassin/20_vbounce.cf [13583] dbg: config: read file /usr/local/share/spamassassin/23_bayes.cf [13583] dbg: config: read file /usr/local/share/spamassassin/25_accessdb.cf [13583] dbg: config: read file /usr/local/share/spamassassin/25_antivirus.cf [13583] dbg: config: read file /usr/local/share/spamassassin/25_asn.cf [13583] dbg: config: read file /usr/local/share/spamassassin/25_dcc.cf [13583] dbg: config: read file /usr/local/share/spamassassin/25_dkim.cf [13583] dbg: config: read file /usr/local/share/spamassassin/25_domainkeys.cf [13583] dbg: config: read file /usr/local/share/spamassassin/25_hashcash.cf [13583] dbg: config: read file /usr/local/share/spamassassin/25_pyzor.cf [13583] dbg: config: read file /usr/local/share/spamassassin/25_razor2.cf [13583] dbg: config: read file /usr/local/share/spamassassin/25_replace.cf [13583] dbg: config: read file /usr/local/share/spamassassin/25_spf.cf [13583] dbg: config: read file /usr/local/share/spamassassin/25_textcat.cf [13583] dbg: config: read file /usr/local/share/spamassassin/25_uribl.cf [13583] dbg: config: read file /usr/local/share/spamassassin/30_text_de.cf [13583] dbg: config: read file /usr/local/share/spamassassin/30_text_fr.cf [13583] dbg: config: read file /usr/local/share/spamassassin/30_text_it.cf [13583] dbg: config: read file /usr/local/share/spamassassin/30_text_nl.cf [13583] dbg: config: read file /usr/local/share/spamassassin/30_text_pl.cf [13583] dbg: config: read file /usr/local/share/spamassassin/30_text_pt_br.cf [13583] dbg: config: read file /usr/local/share/spamassassin/50_scores.cf [13583] dbg: config: read file /usr/local/share/spamassassin/60_awl.cf [13583] dbg: config: read file /usr/local/share/spamassassin/60_shortcircuit.cf [13583] dbg: config: read file /usr/local/share/spamassassin/60_whitelist.cf [13583] dbg: config: read file /usr/local/share/spamassassin/60_whitelist_dk.cf [13583] dbg: config: read file /usr/local/share/spamassassin/60_whitelist_dkim.cf [13583] dbg: config: read file /usr/local/share/spamassassin/60_whitelist_spf.cf [13583] dbg: config: read file /usr/local/share/spamassassin/60_whitelist_subject.cf [13583] dbg: config: read file /usr/local/share/spamassassin/72_active.cf [13583] dbg: config: using /etc/mail/spamassassin for site rules dir [13583] dbg: config: read file /etc/mail/spamassassin/local.cf [13583] dbg: config: using /var/amavisd/.spamassassin/user_prefs for user prefs file [13583] dbg: config: score set 1 chosen. Suicide () TROUBLE in pre_loop_hook: check: no loaded plugin implements 'check_main': cannot scan! at /usr/local/libdata/perl5/site_perl/Mail/SpamAssassin/PerMsgStatus.pm line 164. #
Re: no loaded plugin implements
On its own SA appears to be working. I'd check to make sure that whatever user amavisd runs as (or at least starts as) can read your config files. If that looks good and it still doesn't work I'd check with the folks on the amavisd list. Daryl BTW the permissions for the spamassassin directory is: drwxr-xr-x 2 root wheel512 May 13 14:02 spamassassin Thanks again ..
Re: no loaded plugin implements
[EMAIL PROTECTED] wrote: Now run amavisd -d config debug-sa Amavisd-new may disagree on where it looks for SA stuff. Gary V Thanks all for the help .. Here is the output to Gary's suggeston .. Seems all the same .. Again thank you everyone. # amavisd -d config debug-sa ps: pid: No such file or directory Pid_file /var/amavisd/amavisd.pid already exists. Overwriting! [13583] dbg: config: score set 0 chosen. [13583] dbg: config: using /etc/mail/spamassassin for site rules pre files [13583] dbg: config: read file /etc/mail/spamassassin/init.pre [13583] dbg: config: read file /etc/mail/spamassassin/v310.pre [13583] dbg: config: using /usr/local/share/spamassassin for sys rules pre files It's not using v320.pre. Make sure the permissions for that file are the same as init.pre or v310.pre. Daryl
Re: no loaded plugin implements
# amavisd -d config debug-sa ps: pid: No such file or directory Pid_file /var/amavisd/amavisd.pid already exists. Overwriting! [13583] dbg: config: score set 0 chosen. [13583] dbg: config: using /etc/mail/spamassassin for site rules pre files [13583] dbg: config: read file /etc/mail/spamassassin/init.pre [13583] dbg: config: read file /etc/mail/spamassassin/v310.pre [13583] dbg: config: using /usr/local/share/spamassassin for sys rules pre files It's not using v320.pre. Make sure the permissions for that file are the same as init.pre or v310.pre. Daryl Thanks guys.. You were right .. It was file location. I looked over the docs again and its referring to /var/amavisd/etc/mail/spamassassin .. So after copying over the files from /etc/mail/spamassassin .. All is well now. Thank you.
Re: no loaded plugin implements
# amavisd -d config debug-sa ps: pid: No such file or directory Pid_file /var/amavisd/amavisd.pid already exists. Overwriting! [13583] dbg: config: score set 0 chosen. [13583] dbg: config: using /etc/mail/spamassassin for site rules pre files [13583] dbg: config: read file /etc/mail/spamassassin/init.pre [13583] dbg: config: read file /etc/mail/spamassassin/v310.pre [13583] dbg: config: using /usr/local/share/spamassassin for sys rules pre files It's not using v320.pre. Make sure the permissions for that file are the same as init.pre or v310.pre. Daryl Thanks guys.. You were right .. It was file location. I looked over the docs again and its referring to /var/amavisd/etc/mail/spamassassin .. So after copying over the files from /etc/mail/spamassassin .. All is well now. Thank you. Ah, running amavisd-new chrooted, yes? Gary V _ More photos, more messages, more storageget 2GB with Windows Live Hotmail. http://imagine-windowslive.com/hotmail/?locale=en-usocid=TXT_TAGHM_migration_HM_mini_2G_0507
Re: no loaded plugin implements
Ah, running amavisd-new chrooted, yes? Gary V Yes Sir! I had copy all files over but I guess some way some how that 320 file didnt copy over. Now to sort through the rest of the setup and get it to start filtering :) Thanks!