Results 1 to 3 of 3

Thread: Spam training problem...

Hybrid View

  1. #1
    Join Date
    May 2007
    Posts
    21
    Rep Power
    8

    Default Spam training problem...

    I noticed the mail in my junk folder was not going away.

    So I got to searching the forums and found reference tot his file:

    spamtrain.log

    and I see this in my spamtrain.log file..

    Can't locate Digest/SHA1.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.5 /opt/zimbra/zimbramon/lib /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl) at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin/EvalTests.pm line 34.
    BEGIN failed--compilation aborted at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin/EvalTests.pm line 34.
    Compilation failed in require at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin/PerMsgStatus.pm line 57.
    BEGIN failed--compilation aborted at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin/PerMsgStatus.pm line 57.
    Compilation failed in require at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin.pm line 72.
    BEGIN failed--compilation aborted at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin.pm line 72.
    Compilation failed in require at /opt/zimbra/libexec/sa-learn line 76.
    BEGIN failed--compilation aborted at /opt/zimbra/libexec/sa-learn line 76.
    Can't locate Digest/SHA1.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.5 /opt/zimbra/zimbramon/lib /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl) at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin/EvalTests.pm line 34.
    BEGIN failed--compilation aborted at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin/EvalTests.pm line 34.
    Compilation failed in require at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin/PerMsgStatus.pm line 57.
    BEGIN failed--compilation aborted at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin/PerMsgStatus.pm line 57.
    Compilation failed in require at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin.pm line 72.
    BEGIN failed--compilation aborted at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin.pm line 72.
    Compilation failed in require at /opt/zimbra/libexec/sa-learn line 76.
    BEGIN failed--compilation aborted at /opt/zimbra/libexec/sa-learn line 76.
    Can't locate Digest/SHA1.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.5 /opt/zimbra/zimbramon/lib /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl) at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin/EvalTests.pm line 34.
    BEGIN failed--compilation aborted at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin/EvalTests.pm line 34.
    Compilation failed in require at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin/PerMsgStatus.pm line 57.
    BEGIN failed--compilation aborted at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin/PerMsgStatus.pm line 57.
    Compilation failed in require at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin.pm line 72.
    BEGIN failed--compilation aborted at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin.pm line 72.
    Compilation failed in require at /opt/zimbra/libexec/sa-learn line 76.
    BEGIN failed--compilation aborted at /opt/zimbra/libexec/sa-learn line 76.

    So I hunt down this SHA1.pm file in some i386... subdirectory of zimbramon and copied it to the lib directory.

    Now I see this in my log:

    Can't locate loadable object for module Digest::SHA1 in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.5 /opt/zimbra/zimbramon/lib /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl) at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin/EvalTests.pm line 34
    Compilation failed in require at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin/EvalTests.pm line 34.
    BEGIN failed--compilation aborted at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin/EvalTests.pm line 34.
    Compilation failed in require at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin/PerMsgStatus.pm line 57.
    BEGIN failed--compilation aborted at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin/PerMsgStatus.pm line 57.
    Compilation failed in require at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin.pm line 72.
    BEGIN failed--compilation aborted at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin.pm line 72.
    Compilation failed in require at /opt/zimbra/libexec/sa-learn line 76.
    BEGIN failed--compilation aborted at /opt/zimbra/libexec/sa-learn line 76.
    Can't locate loadable object for module Digest::SHA1 in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.5 /opt/zimbra/zimbramon/lib /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl) at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin/EvalTests.pm line 34
    Compilation failed in require at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin/EvalTests.pm line 34.
    BEGIN failed--compilation aborted at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin/EvalTests.pm line 34.
    Compilation failed in require at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin/PerMsgStatus.pm line 57.
    BEGIN failed--compilation aborted at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin/PerMsgStatus.pm line 57.
    Compilation failed in require at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin.pm line 72.
    BEGIN failed--compilation aborted at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin.pm line 72.
    Compilation failed in require at /opt/zimbra/libexec/sa-learn line 76.
    BEGIN failed--compilation aborted at /opt/zimbra/libexec/sa-learn line 76.
    Can't locate loadable object for module Digest::SHA1 in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.5 /opt/zimbra/zimbramon/lib /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl) at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin/EvalTests.pm line 34
    Compilation failed in require at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin/EvalTests.pm line 34.
    BEGIN failed--compilation aborted at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin/EvalTests.pm line 34.
    Compilation failed in require at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin/PerMsgStatus.pm line 57.
    BEGIN failed--compilation aborted at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin/PerMsgStatus.pm line 57.
    Compilation failed in require at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin.pm line 72.
    BEGIN failed--compilation aborted at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin.pm line 72.
    Compilation failed in require at /opt/zimbra/libexec/sa-learn line 76.
    BEGIN failed--compilation aborted at /opt/zimbra/libexec/sa-learn line 76.


    Any ideas what may be wrong?
    Last edited by TaskMaster; 05-07-2007 at 05:09 PM.

  2. #2
    Join Date
    May 2007
    Posts
    21
    Rep Power
    8

    Default

    Still looking for a little help here.

    I did some searching on the Net and found some stuff about perl.

    So I ran this command as the zimbra user:

    perl -e 'use Digest::SHA1; print map {"$_ => $INC{$_}\n"} keys %INC'

    And got this back:

    Carp.pm => /usr/share/perl/5.8/Carp.pm
    warnings/register.pm => /usr/share/perl/5.8/warnings/register.pm
    Digest/SHA1.pm => /opt/zimbra/zimbramon/lib/i386-linux-thread-multi/Digest/SHA1.pm
    Exporter.pm => /usr/share/perl/5.8/Exporter.pm
    vars.pm => /usr/share/perl/5.8/vars.pm
    strict.pm => /usr/share/perl/5.8/strict.pm
    warnings.pm => /usr/share/perl/5.8/warnings.pm
    AutoLoader.pm => /usr/share/perl/5.8/AutoLoader.pm
    Config.pm => /usr/lib/perl/5.8/Config.pm
    Digest/base.pm => /usr/share/perl/5.8/Digest/base.pm
    DynaLoader.pm => /usr/lib/perl/5.8/DynaLoader.pm

    So, it appears that perl finds SHA1.pm just fine. But, when I run zmtrainsa as the zimbra user I get that error that says the @INC path doesn't find the SHA1.pm file.

    I can't understand why that would be. If I run this:

    perl -e 'print join "\n", @INC'

    I get this, which clearly shows the @INC path including the SHA1.pm file:

    /opt/zimbra/zimbramon/lib/x86_64-linux-thread-multi
    /opt/zimbra/zimbramon/lib
    /opt/zimbra/zimbramon/lib/i386-linux-thread-multi
    /opt/zimbra/zimbramon/lib/i486-linux-gnu-thread-multi
    /opt/zimbra/zimbramon/lib/i586-linux-thread-multi
    /opt/zimbra/zimbramon/lib/darwin-thread-multi-2level
    /etc/perl
    /usr/local/lib/perl/5.8.8
    /usr/local/share/perl/5.8.8
    /usr/lib/perl5
    /usr/share/perl5
    /usr/lib/perl/5.8
    /usr/share/perl/5.8
    /usr/local/lib/site_perl

    It seems as if the zmtrainsa command is either changing the @INC path or running as a user other than zimbra, even though I am running it manually as the zimbra user.

    Does anyone have any insite?

  3. #3
    Join Date
    May 2007
    Posts
    21
    Rep Power
    8

    Default

    I added this line:

    use lib '/opt/zimbra/zimbramon/lib/i386-linux-thread-multi';

    to the top of my sa-learn file and made the error go away. So I believe it is working now.

    Now, it doesn't seem to be processing any mail. Is it suppose to grab all of the mail in each users junk folder automatically?

Similar Threads

  1. Trying to understand Zimbra's anti-spam system
    By TaskMaster in forum Users
    Replies: 11
    Last Post: 01-25-2008, 09:59 AM
  2. Deleted spam training accounts by fault
    By karmek in forum Administrators
    Replies: 6
    Last Post: 07-13-2007, 06:05 AM
  3. How to check if spam training is working?
    By tbovingdon in forum Administrators
    Replies: 1
    Last Post: 03-13-2007, 06:57 AM
  4. Training spam and ham
    By Justin in forum Developers
    Replies: 2
    Last Post: 10-31-2006, 03:39 PM
  5. Spam training has no cron job
    By richard-hdd in forum Administrators
    Replies: 3
    Last Post: 09-13-2006, 12:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •