Re: Cannot scan! SpamAssassin/PerMsgStatus.pm line 164. - SpamAssassin

This is a discussion on Re: Cannot scan! SpamAssassin/PerMsgStatus.pm line 164. - SpamAssassin ; On Thu, 2008-07-03 at 10:11 +0100, Richard Johnson wrote: > I'm running Ubuntu gutsy and have spamassassin installed. The original > plan was to use it with Evolution. However, when I selected it as a > plugin within Evolution it ...

+ Reply to Thread
Results 1 to 6 of 6

Thread: Re: Cannot scan! SpamAssassin/PerMsgStatus.pm line 164.

  1. Re: Cannot scan! SpamAssassin/PerMsgStatus.pm line 164.

    On Thu, 2008-07-03 at 10:11 +0100, Richard Johnson wrote:

    > I'm running Ubuntu gutsy and have spamassassin installed. The original
    > plan was to use it with Evolution. However, when I selected it as a
    > plugin within Evolution it put every item of mail into the 'junk'
    > folder and there were no spamassassin headers.


    The Evolution plugin will not alter the message, but check the return
    code only. It does not insert X-Spam headers.


    > My thinking was, let me test spamassassin is working at all before I
    > get into MTA's, MUA's etc.
    >
    > So, I ran this:
    > spamassassin --lint
    >
    > and ended up with:
    >
    > [9086] dbg: bayes: untie-ing
    > check: no loaded plugin implements 'check_main': cannot scan!
    > at /usr/share/perl5/Mail/SpamAssassin/PerMsgStatus.pm line 164.


    Last time I've seen this (chatter on bugzilla, sigh) the cause of this
    problem was, that the .pre files have been missing.

    > ´╗┐[9086] dbg: config: using "/etc/spamassassin" for site rules pre
    > files


    Check there, if there are any *.pre files, and which plugins they
    include. If not, your install (or the package) likely is broken. The
    requested, failing functionality is added in the default .pre files.

    guenther


    --
    char *t="\10pse\0r\0dtu\0.@ghno\x4e\xc8\x79\xf4\xab\x51\x8a \x10\xf4\xf4\xc4";
    main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i (c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}


  2. Re: Cannot scan! SpamAssassin/PerMsgStatus.pm line 164.

    On Thu, 2008-07-03 at 18:01 +0100, Richard Johnson wrote:

    > Thank you, Karsten. I've learned the [ctrl] + [l] now. My apologies, I
    > did not want to start a war.


    Nah, you didn't, don't worry.

    guenther


    --
    char *t="\10pse\0r\0dtu\0.@ghno\x4e\xc8\x79\xf4\xab\x51\x8a \x10\xf4\xf4\xc4";
    main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i (c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}


  3. Re: Cannot scan! SpamAssassin/PerMsgStatus.pm line 164.


    On Thu, 2008-07-03 at 13:34 -0400, Theo Van Dinter wrote:
    > On Thu, Jul 03, 2008 at 06:01:21PM +0100, Richard Johnson wrote:
    > > As the .pre files are missing, what would I do to rectify it? What
    > > should they contain?

    >
    > If you're missing pre files, I would suggest reinstalling SA. A normal
    > installation will include the content you need, and who knows what else you
    > are missing.
    >

    I tried that before I started to look for help. The results were the
    same. Only at first I also had warnings of empty/no bayes DB's.

    What do the .pre files contain and can I recreate them?


  4. Re: Cannot scan! SpamAssassin/PerMsgStatus.pm line 164.

    On Thu, 2008-07-03 at 20:38 +0100, Richard Johnson wrote:
    > On Thu, 2008-07-03 at 13:34 -0400, Theo Van Dinter wrote:


    > > If you're missing pre files, I would suggest reinstalling SA. A normal
    > > installation will include the content you need, and who knows what else you
    > > are missing.

    >
    > I tried that before I started to look for help. The results were the
    > same. Only at first I also had warnings of empty/no bayes DB's.
    >
    > What do the .pre files contain and can I recreate them?


    Then your install is seriously broken. Are you using the official Ubuntu
    debs, or anything else?

    guenther


    --
    char *t="\10pse\0r\0dtu\0.@ghno\x4e\xc8\x79\xf4\xab\x51\x8a \x10\xf4\xf4\xc4";
    main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i (c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}


  5. Re: Cannot scan! SpamAssassin/PerMsgStatus.pm line 164.

    Richard Johnson wrote:

    > Stopping SpamAssassin Mail Filter Daemon: No /usr/bin/perl found
    > running; none killed.
    > spamd.


    > I have just spotted the line: "No /usr/bin/perl found"


    It didn't just say that.

    It said "No /usr/bin/perl found running; none killed.", wich has
    a very different meaning.

    Considering that it was prefixed "Stopping SpamAssassin Mail
    Filter Daemon:" I suspect that the script was looking for a
    running spamd (wich would be a perl process) and didn't find any.

    > check: no loaded plugin implements 'check_main': cannot scan!
    > at /usr/share/perl5/Mail/SpamAssassin/PerMsgStatus.pm line 164.


    > Would that look 'seriously broke'?


    For a just installed and never modified SpamAssassin package that
    do look broken. Unless the package came with some information
    about additional setup instructions the maintainer expects you to
    follow in order to get it wirking.

    Regards
    /Jonas
    --
    Jonas Eckerman, FSDB & Frukttr├Ądet
    http://whatever.frukt.org/
    http://www.fsdb.org/
    http://www.frukt.org/


  6. Re: Cannot scan! SpamAssassin/PerMsgStatus.pm line 164.


    On Fri, 2008-07-04 at 16:47 +0200, Alex Woick wrote:
    > Richard Johnson schrieb am 04.07.2008 06:35:
    > > I then reinstall:
    > > apt-get install spamassassin

    > [...]
    > > Suggested packages:
    > > razor libnet-ident-perl libio-socket-ssl-perl pyzor libmail-dkim-perl
    > > Recommended packages:
    > > spamc re2c libsys-syslog-perl
    > > The following NEW packages will be installed
    > > spamassassin
    > > 0 upgraded, 1 newly installed, 0 to remove and 6 not upgraded.

    >
    > Your Linux distribution seems to have split SpamAssassin in 2 packages:
    > spamassassin and spamc. Spamc is a light-weight spamassassin replacement
    > (used in combination with spamd). Perhaps the missing *.pre files are
    > contained in that package. Try to install it in addition to the
    > spamassassin package.
    >
    > Tschau
    > Alex
    >


    Tried adding spamc, then even re2c, libsys-syslog-perl but still doing
    just the same.

    There are still no *.pre files to be found on the system.

    If I try to restart spamassassin I get this:

    /etc/init.d/spamassassin stop
    Stopping SpamAssassin Mail Filter Daemon: No /usr/bin/perl found
    running; none killed.
    spamd.

    and as before the spamassassin -D --lint gives:

    [27161] dbg: bayes: no dbs present, cannot tie DB
    R/O: /user1/.spamassassin/bayes_toks
    check: no loaded plugin implements 'check_main': cannot scan!
    at /usr/share/perl5/Mail/SpamAssassin/PerMsgStatus.pm line 164.

    This is driving me crazy now. This has to be a bust install?


+ Reply to Thread