Page 5 of 7 FirstFirst ... 34567 LastLast
Results 41 to 50 of 65

Thread: Help dealing with spam

  1. #41
    tbullock is offline Advanced Member
    Join Date
    Oct 2005
    Location
    Calgary, AB
    Posts
    232
    Rep Power
    9

    Default

    Well, maybe I spoke to soon....or maybe not....

    Here are the results from a manual ./zmtrainsa:

    zmtrainsa
    [] INFO: Total messages processed: 0
    [] INFO: Total messages processed: 0
    upgrading to DB_File, please be patient: /opt/zimbra/amavisd/.spamassassin/old_bayes_seen
    DB_File: copied 10761 entries
    upgrading to DB_File, please be patient: /opt/zimbra/amavisd/.spamassassin/old_bayes_toks
    DB_File: copied 158313 entries
    import successful, original files saved with "old" prefix
    archive-iterator: readdir found no mail in '/tmp/spam.22224' directory
    Learned from 0 message(s) (0 message(s) examined).
    archive-iterator: readdir found no mail in '/tmp/ham.22224' directory
    Learned from 0 message(s) (0 message(s) examined).
    bayes: synced databases from journal in 3 seconds: 2560 unique entries (4277 total entries)
    dspam_clean starting
    PROCESSING USER: zimbra
    Processing sigs; age: 14
    Processing probabilities; age: 0
    Processing unused; any: 90 quota: 30 nospam: 15 onehit: 15


    What I find odd is the following:

    archive-iterator: readdir found no mail in '/tmp/spam.22224' directory
    Learned from 0 message(s) (0 message(s) examined).
    archive-iterator: readdir found no mail in '/tmp/ham.22224' directory
    Learned from 0 message(s) (0 message(s) examined).

    Does this mean that when I hit "Junk", a copy of the message is not successfully being copied to the spamaccount?

    Cheers,

    Travis

  2. #42
    cutigersfan is offline Active Member
    Join Date
    Apr 2006
    Posts
    49
    Rep Power
    9

    Default

    Oh, yea. I did find that one and we might be narrowing in on the problem. I get an error showing this perl include file isn't right.

    Code:
    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 33.
    I'm running the debian version of 3.1.1. Anyone know how to get that back?

    Quote Originally Posted by phoenix
    I think KevinH means "/opt/zimbra/log/spamtrain.log" and there's a cron job called zmtrainsa that's run daily to train Zimbra.

  3. #43
    tbullock is offline Advanced Member
    Join Date
    Oct 2005
    Location
    Calgary, AB
    Posts
    232
    Rep Power
    9

    Default

    So I am positive my Spam Training is not functioning. Let's see if I have this straight.

    How it is supposed to work?:

    1. User sees unflagged SPAM in folder
    2. User highlights message and presses "Junk" on the toolbar
    3. Message is moved to the users "Junk" folder
    4. A copy of the message is also sent to the "spam account junk folder"
    5. The zmtrainsa cron executes and learns from the contents in the "junk folder" of the Spamaccount

    Is that correct?

    So my problem is, when I designate a message in my Inbox as Junk, it does not appear in the account I have designated as the Spam Account. And when the zmtrainsa cron runs it does not appear that it is finding messages either.

    The system I am running is: Release 3.1.1_GA_394.FC3_20060505121237 FC3 FOSS edition

    'zmprov gcf zimbraSpamIsNotSpamAccount' returns: zimbraSpamIsNotSpamAccount: hamaccount@avmax-internal.net

    'zmprov gcf zimbraSpamIsSpamAccount' returns:
    zimbraSpamIsSpamAccount: spamaccount@avmax-internal.net

    The only thing I can think of at this point, is that I am clicking the "Junk" button on a 'avmax.ca' domain account while the SpamAccount is a 'avmax-internal.net' domain account. Is it possible that this is a problem? Or does the problem lie elsewhere?

    Thanks in advance,

    Travis

  4. #44
    tbullock is offline Advanced Member
    Join Date
    Oct 2005
    Location
    Calgary, AB
    Posts
    232
    Rep Power
    9

    Default

    Quote Originally Posted by cutigersfan
    Oh, yea. I did find that one and we might be narrowing in on the problem. I get an error showing this perl include file isn't right.

    Code:
    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 33.
    I'm running the debian version of 3.1.1. Anyone know how to get that back?
    Hey man. I have that file. It is in: /opt/zimbra/zimbramon/lib/i386-linux-thread-multi/Digest/SHA1.pm

    I could send it to you, but I am running FC3, so I am not sure if that would help you or not?

  5. #45
    tbullock is offline Advanced Member
    Join Date
    Oct 2005
    Location
    Calgary, AB
    Posts
    232
    Rep Power
    9

    Default

    Well......we seem to have lost cutigersfan......helloooooo Tigersfan!

    Anyone have any ideas on how to help me figure this one out?

  6. #46
    KevinH's Avatar
    KevinH is offline Expert Member
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    Default

    Travis did you try to just send a message to your two ham/junk accounts. Do they arrive?

    After you hit 'Junk' for a couple emails did can you try to run zmsatrain with a sh -x prefix to see if we get some more debug.
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

  7. #47
    tbullock is offline Advanced Member
    Join Date
    Oct 2005
    Location
    Calgary, AB
    Posts
    232
    Rep Power
    9

    Default

    I am able to successfully send to the spam accounts. I think that the 'zmtrainsa' script functions correctly but of course I can't be sure. I have a hunch that the problem is to do with the way the "Junk" button is configured, because when I press the "Junk" button, the messages are not going to the spamaccount.

    Attached is the output of sh -x zmtrainsa

    Thanks,

    Travis
    Attached Files Attached Files

  8. #48
    KevinH's Avatar
    KevinH is offline Expert Member
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    Default

    If you manually put a few messages in the Junk folder of the spam account do they get picked up by zmsatrain?
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

  9. #49
    tbullock is offline Advanced Member
    Join Date
    Oct 2005
    Location
    Calgary, AB
    Posts
    232
    Rep Power
    9

    Default

    Quote Originally Posted by KevinH
    If you manually put a few messages in the Junk folder of the spam account do they get picked up by zmsatrain?
    Kevin,

    I sent an e-mail from ham to spam and then logged into spam and processed it to "Junk".

    Running the zmtrainsa does not seem to pick up the message:

    [] INFO: Total messages processed: 0
    [] INFO: Total messages processed: 0
    upgrading to DB_File, please be patient: /opt/zimbra/amavisd/.spamassassin/old_bayes_seen
    DB_File: copied 3972 entries
    upgrading to DB_File, please be patient: /opt/zimbra/amavisd/.spamassassin/old_bayes_toks
    DB_File: copied 134357 entries
    import successful, original files saved with "old" prefix
    archive-iterator: readdir found no mail in '/tmp/spam.30781' directory
    Learned from 0 message(s) (0 message(s) examined).
    archive-iterator: readdir found no mail in '/tmp/ham.30781' directory
    Learned from 0 message(s) (0 message(s) examined).
    bayes: synced databases from journal in 0 seconds: 1258 unique entries (1603 total entries)
    dspam_clean starting
    PROCESSING USER: zimbra
    Processing sigs; age: 14
    Processing probabilities; age: 0
    Processing unused; any: 90 quota: 30 nospam: 15 onehit: 15


    What is this /tmp/spam.30781? Why would it look there and not in the spamaccounts directory?

    Cheers,

    Travis

  10. #50
    KevinH's Avatar
    KevinH is offline Expert Member
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    Default

    Quote Originally Posted by tbullock
    What is this /tmp/spam.30781? Why would it look there and not in the spamaccounts directory?
    This is where the zmsatrain puts the messages (via fetchmail). Take a look at the code in zmsatrain. If you didn't already try it maybe you can run it with

    sh -x zmsatrain

    this should give some debug of what the script is doing under the covers.
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

Page 5 of 7 FirstFirst ... 34567 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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. [SOLVED] Reject SPAM
    By s0undt3ch in forum Users
    Replies: 9
    Last Post: 08-22-2007, 03:07 AM
  3. Spam being scored with BAYES_00
    By flyerguybham in forum Administrators
    Replies: 6
    Last Post: 04-24-2007, 12:07 PM
  4. Training spam and ham
    By Justin in forum Developers
    Replies: 2
    Last Post: 10-31-2006, 03:39 PM
  5. Spam questions 3.11
    By cdyer in forum Administrators
    Replies: 10
    Last Post: 05-22-2006, 10:14 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
  •