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 [98
no loaded plugin implements 'check_main': cannot scan!
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 /usr/share/spamassassin/20_net_tests.cf [9874] dbg: config: read file /usr/share/spamassassin/20_phrases.cf [9874] dbg: config: read file /usr/share/spamassassin/20_porn.cf [9874] dbg: config: read file /usr/share/spamassassin/20_ratware.cf [9874] dbg: config: read file /usr/share/spamassassin/20_uri_tests.cf [9874] dbg: config: read file /usr/share/spamassassin/20_vbounce.cf [9874] dbg: config: read file /usr/share/spamassassin/23_bayes.cf [9874] dbg: config: read file /usr/share/spamassassin/25_accessdb.cf [9874] dbg
Re: check: no loaded plugin implements 'check_main': cannot scan!
Mark, Thanks! My problem was acces denied in /etc/mail to amavis user. Greetings... -- []'s Thiago Henrique Network Administration Digirati Networks K8 Networks On Sex, 2008-08-22 at 18:23 +0200, Mark Martinec wrote: Thiago, Running spamassassin - lint -D the .pre files are read: # spamassassin --lint -D ... [1002] dbg: config: using /etc/mail/spamassassin for site rules pre files [1002] dbg: config: read file /etc/mail/spamassassin/init.pre [1002] dbg: config: read file /etc/mail/spamassassin/v310.pre [1002] dbg: config: read file /etc/mail/spamassassin/v312.pre [1002] dbg: config: read file /etc/mail/spamassassin/v320.pre For a valid test, run spamassassin under the same uid as amavisd, e.g.: # su vscan -c 'spamassassin --lint -D' Mark
Re: check: no loaded plugin implements 'check_main': cannot scan!
Matt, thank you for help. Running spamassassin - lint -D the .pre files are read: # spamassassin --lint -D ... [1002] dbg: config: using /etc/mail/spamassassin for site rules pre files [1002] dbg: config: read file /etc/mail/spamassassin/init.pre [1002] dbg: config: read file /etc/mail/spamassassin/v310.pre [1002] dbg: config: read file /etc/mail/spamassassin/v312.pre [1002] dbg: config: read file /etc/mail/spamassassin/v320.pre I think that the permissions are correct for the Amavis read the files # ls -ld /etc/mail/spamassassin/ drwxr-xr-x 3 amavis amavis 4096 2008-08-22 13:02 /etc/mail/spamassassin// # ls -ld /etc/mail/spamassassin/* -rw-r--r-- 1 amavis amavis 1299 2007-09-08 11:22 /etc/mail/spamassassin/init.pre -rw-r--r-- 1 amavis amavis 1366 2007-09-08 11:22 /etc/mail/spamassassin/local.cf drwx-- 2 amavis amavis 79 2008-08-20 19:44 /etc/mail/spamassassin/sa-update-keys/ -rw-r--r-- 1 amavis amavis 62 2007-09-08 11:22 /etc/mail/spamassassin/spamassassin-default.rc -rw-r--r-- 1 amavis amavis 55 2007-09-08 11:22 /etc/mail/spamassassin/spamassassin-spamc.rc -rw-r--r-- 1 amavis amavis 2604 2007-09-08 11:22 /etc/mail/spamassassin/v310.pre -rw-r--r-- 1 amavis amavis 1195 2007-09-08 11:22 /etc/mail/spamassassin/v312.pre -rw-r--r-- 1 amavis amavis 2416 2008-08-21 19:37 /etc/mail/spamassassin/v320.pre -- []'s Thiago Henrique Network Administration Digirati Networks K8 Networks Do you get the same thing out of spamassassin --lint -D? In general, it sounds like your site config directory (ie: /etc/mail/spamassassin) doesn't have the requisite .pre files in it, so no plugins are loaded.
Re: check: no loaded plugin implements 'check_main': cannot scan!
Thiago, Running spamassassin - lint -D the .pre files are read: # spamassassin --lint -D ... [1002] dbg: config: using /etc/mail/spamassassin for site rules pre files [1002] dbg: config: read file /etc/mail/spamassassin/init.pre [1002] dbg: config: read file /etc/mail/spamassassin/v310.pre [1002] dbg: config: read file /etc/mail/spamassassin/v312.pre [1002] dbg: config: read file /etc/mail/spamassassin/v320.pre For a valid test, run spamassassin under the same uid as amavisd, e.g.: # su vscan -c 'spamassassin --lint -D' Mark
check: no loaded plugin implements 'check_main': cannot scan!
Hi, I have a MTA server with Postfix2.4.5 + Amavisd-New2.5.2 + SpamAssassin3.2.3. When i start amavis in debug mode (amavisd -d config debug-sa), I get the following error: Suicide () TROUBLE in pre_loop_hook: check: no loaded plugin implements 'check_main': cannot scan! at /usr/lib/perl5/vendor_perl/5.8.8/Mail/SpamAssassin/PerMsgStatus.pm line 164. Note: Amavis isn't chrooted. Someone could help me? Thank you all in advance. Best Regards -- []'s Thiago Henrique Network Administration Digirati Networks K8 Networks
Re: check: no loaded plugin implements 'check_main': cannot scan!
Try the amavisd mailing list, as nothing you've mentioned relates to spamassassin. On Aug 21, 2008, at 1:14 PM, Thiago Henrique wrote: I have a MTA server with Postfix2.4.5 + Amavisd-New2.5.2 + SpamAssassin3.2.3. When i start amavis in debug mode (amavisd -d config debug-sa), I get the following error: Suicide () TROUBLE in pre_loop_hook: check: no loaded plugin implements 'check_main': cannot scan! at /usr/lib/perl5/vendor_perl/5.8.8/Mail/SpamAssassin/PerMsgStatus.pm line 164. Note: Amavis isn't chrooted. Someone could help me? Thank you all in advance. Best Regards -- []'s Thiago Henrique Network Administration Digirati Networks K8 Networks -- Jo Rhett Net Consonance : consonant endings by net philanthropy, open source and other randomness
Re: check: no loaded plugin implements 'check_main': cannot scan!
Thiago Henrique wrote: Hi, I have a MTA server with Postfix2.4.5 + Amavisd-New2.5.2 + SpamAssassin3.2.3. When i start amavis in debug mode (amavisd -d config debug-sa), I get the following error: Suicide () TROUBLE in pre_loop_hook: check: no loaded plugin implements 'check_main': cannot scan! at /usr/lib/perl5/vendor_perl/5.8.8/Mail/SpamAssassin/PerMsgStatus.pm line 164. Note: Amavis isn't chrooted. Someone could help me? Do you get the same thing out of spamassassin --lint -D? In general, it sounds like your site config directory (ie: /etc/mail/spamassassin) doesn't have the requisite .pre files in it, so no plugins are loaded.