AW: MCP Check not working
Daniel Fuhrer
daniel at danielf.ch
Wed Jun 20 14:30:05 IST 2007
Hi Glenn
Here is the output:
[77171] dbg: logger: adding facilities: all
[77171] dbg: logger: logging level is DBG
[77171] dbg: generic: SpamAssassin version 3.2.0
[77171] dbg: config: score set 0 chosen.
[77171] dbg: util: running in taint mode? yes
[77171] dbg: util: taint mode: deleting unsafe environment variables, resetting PATH
[77171] dbg: util: PATH included '/sbin', keeping
[77171] dbg: util: PATH included '/bin', keeping
[77171] dbg: util: PATH included '/usr/sbin', keeping
[77171] dbg: util: PATH included '/usr/bin', keeping
[77171] dbg: util: PATH included '/usr/games', keeping
[77171] dbg: util: PATH included '/usr/local/sbin', keeping
[77171] dbg: util: PATH included '/usr/local/bin', keeping
[77171] dbg: util: PATH included '/usr/X11R6/bin', keeping
[77171] dbg: util: PATH included '/root/bin', which doesn't exist, dropping
[77171] dbg: util: final PATH set to: /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin
[77171] dbg: dns: is Net::DNS::Resolver available? yes
[77171] dbg: dns: Net::DNS version: 0.59
[77171] dbg: config: using "/usr/local/etc/MailScanner/mcp/" for site rules pre files
[77171] dbg: config: using "/usr/local/etc/MailScanner/mcp/" for sys rules pre files
[77171] dbg: config: using "/usr/local/etc/MailScanner/mcp/" for default rules dir
[77171] dbg: config: read file /usr/local/etc/MailScanner/mcp//10_example.cf
[77171] dbg: config: read file /usr/local/etc/MailScanner/mcp//mail.delivery.failed.cf
[77171] dbg: config: read file /usr/local/etc/MailScanner/mcp//mail.reply.spam.cf
[77171] dbg: config: using "/usr/local/etc/MailScanner/mcp/" for site rules dir
[77171] dbg: config: read file /usr/local/etc/MailScanner/mcp//10_example.cf
[77171] dbg: config: read file /usr/local/etc/MailScanner/mcp//mail.delivery.failed.cf
[77171] dbg: config: read file /usr/local/etc/MailScanner/mcp//mail.reply.spam.cf
[77171] dbg: config: using "/root/.spamassassin" for user state dir
[77171] dbg: config: using "/usr/local/etc/MailScanner/mcp/mcp.spam.assassin.prefs.conf" for user prefs file
[77171] dbg: config: read file /usr/local/etc/MailScanner/mcp/mcp.spam.assassin.prefs.conf
[77171] info: config: failed to parse line, skipping, in "/usr/local/etc/MailScanner/mcp/mcp.spam.assassin.prefs.conf": use_dcc 0
[77171] info: config: failed to parse line, skipping, in "/usr/local/etc/MailScanner/mcp/mcp.spam.assassin.prefs.conf": use_pyzor 0
[77171] info: config: failed to parse line, skipping, in "/usr/local/etc/MailScanner/mcp/mcp.spam.assassin.prefs.conf": use_razor1 0
[77171] info: config: failed to parse line, skipping, in "/usr/local/etc/MailScanner/mcp/mcp.spam.assassin.prefs.conf": use_razor2 0
[77171] dbg: conf: finish parsing
[77171] dbg: config: score set 1 chosen.
[77171] dbg: message: main message type: text/plain
check: no loaded plugin implements 'check_main': cannot scan! at /usr/local/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin/PerMsgStatus.pm line 164.
I don't understand what's wrong with the config directives " use_dcc 0", " use_pyzor 0", "use_razor1 0" and "use_razor2 0"?
Is there a something wrong in the PerMsgStatus.pm on line 164?
There is the following Code:
158: # The primary check functionality occurs via a plugin call. For more
159: # information, please see: Mail::SpamAssassin::Plugin::Check
160: if (!$self->{main}->call_plugins ("check_main", { permsgstatus => $self }))
161: {
162: # did anything happen? if not, this is fatal
163: if (!$self->{main}->have_plugin("check_main")) {
164: die "check: no loaded plugin implements 'check_main': cannot scan!";
165: }
166: }
Hope that helps.
Cheers Daniel
-----Ursprüngliche Nachricht-----
Von: mailscanner-bounces at lists.mailscanner.info [mailto:mailscanner-bounces at lists.mailscanner.info] Im Auftrag von Glenn Steen
Gesendet: Mittwoch, 20. Juni 2007 12:44
An: Mailscanner
Betreff: Re: MCP Check not working
On 20/06/07, Daniel Fuhrer <daniel at danielf.ch> wrote:
> Hi Glenn
> Ok her is he output.
>
(snip)
>
> Does that help?
>
Nope, sorry... I forgot to set the relevant siteconfigdir etc ... Try
do this instead:
1) Create a very basic "testmessage" like this:
echo "Subject: this subject is banned\
this text is banned" > testmcp.txt
2) Run it through like this:
spamassassin -D -t -C /etc/MailScanner/mcp/
--siteconfigpath=/etc/MailScanner/mcp/ -p
/etc/MailScanner/mcp/mcp.spam.assassin.prefs.conf < testmcp.txt 2>&1 |
less -e
(that is all on one line...)
If everything is correct, you should get a score of 7 on that... Else
you should eb seeing some error messages (the ones about missing
directives like use_dcc (etc) shouldn't matter one whit... But you
might see whatever is preventing things from working;).
Cheers
--
-- Glenn
email: glenn < dot > steen < at > gmail < dot > com
work: glenn < dot > steen < at > ap1 < dot > se
--
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner
Before posting, read http://wiki.mailscanner.info/posting
Support MailScanner development - buy the book off the website!
More information about the MailScanner
mailing list