Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Spam training from junk folders

  1. #1
    mdeneen is offline Active Member
    Join Date
    Jul 2007
    Posts
    45
    Rep Power
    8

    Question Spam training from junk folders

    Hi,

    I've read this link about getting zmtrainsa to process all messages in the junk folder, not just those marked as junk from the web UI.

    I was planning on using the following script to do this for me:

    Code:
    #!/bin/bash
    
    for i in `zmprov gaa mydomain.com`
    do
            /opt/zimbra/bin/zmtrainsa $i spam Junk >> /opt/zimbra/log/spamtrain.log
    done
    Then, I looked at the zimbra crontab. There is a line which calls zmtrainsa with a --cleanup option 45 minutes after the spam training starts. What does --cleanup do, and what happens if it takes more than 45 minutes for spam training?

    If I am forcing spam training to happen on all messages, do I have to force a cleanup as well?

    This is my first Zimbra install. I have to say, I'm really impressed!

    Best Regards,
    Mark

  2. #2
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,492
    Rep Power
    56

    Default

    You don't need to use zmtrainsa against the Junk folder, anything that's in there will also have gone to the spam training account. They are automatically checked and cleared by cron jobs.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    mdeneen is offline Active Member
    Join Date
    Jul 2007
    Posts
    45
    Rep Power
    8

    Default are you sure?

    From the other thread:

    In the Zimbra Web interface, you need to press the "Junk" button to train the spam filters. Dragging a message to the "Junk" folder does not do the same thing.

    There's already an enhancement request filed in bugzilla to make IMAP COPY to Junk train the spam filters. Please vote for it if you'd like to see it implemented!
    Are you saying that if I move a message to the Junk folder in Thunderbird, that it will be processed by zmtrainsa? I tried this and no messages were processed. When I called "zmtrainsa userid@domain Spam Junk", the messages were processed.

    Mark
    Last edited by mdeneen; 07-26-2007 at 12:31 PM. Reason: added "

  4. #4
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,492
    Rep Power
    56

    Default

    No, I was talking about the web client. If you want to do it from a client such a Thunderbird or Outlook then you need to forward them inline to the spam training account (and I mean the spam training account not the Junk folder) - it has been mentioned once or twice in the forums. There's also an RFE in bugzilla for a 'Junk folder' feature in Outlook (and possibly T'bird) - search and vote.
    Last edited by phoenix; 07-26-2007 at 01:29 PM.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  5. #5
    mdeneen is offline Active Member
    Join Date
    Jul 2007
    Posts
    45
    Rep Power
    8

    Default

    Quote Originally Posted by phoenix View Post
    No, I was talking about the web client. If you want to do it from a client such a Thunderbird or Outlook then you need to forward them inline to the spam training account - it has been mentioned once or twice in the forums. There's also an RFE in bugzilla for a 'Junk folder' feature in Outlook (and possibly T'bird) - search and vote.
    Ok, we're almost there!

    I understand that you can forward inline or use the web client... but in the thread I linked to in my first post, it was mentioned that you could use zmtrainsa to train on a user spam folder. At the time, the issue was that zmtrainsa required a userid/password. This is no longer the case with the latest release of Zimbra.


    I do not wish to give my users the ham/spam email addresses. What I am trying to do is manually train spamassassin for IMAP clients. When the RFE is complete, I will move over to the included solution.

    My tests show that calling zmtrainsa on a particular folder appears to process the spam messages exactly like I expect it to. My only question is about what the --cleanup option does.

    Thanks Again,
    Mark

  6. #6
    dwmtractor's Avatar
    dwmtractor is offline Moderator
    Join Date
    Jul 2007
    Location
    San Jose, CA
    Posts
    1,027
    Rep Power
    10

    Default And is it possible to run zmtransa on the junk folders of ALL accounts?

    Because if it is, we should be able to put a batch in crontab to do so, and it should process the contents of the folders that have been filtered by TBird or whatever other client people are using.

    Bottom line, it looks like there are a bunch of us who want to use external clients instead of the web client and are looking for ways to make this easier. An auto-analysis of the contents of all junk folders, without regard to what client put the messages in there, would be a big step in that direction.

    Dan

  7. #7
    gkra's Avatar
    gkra is offline Senior Member
    Join Date
    May 2007
    Location
    San Diego
    Posts
    53
    Rep Power
    8

    Default

    Quote Originally Posted by dwmtractor View Post
    Bottom line, it looks like there are a bunch of us who want to use external clients instead of the web client and are looking for ways to make this easier. An auto-analysis of the contents of all junk folders, without regard to what client put the messages in there, would be a big step in that direction.
    I have to agree with this. Most of our users prefer Thunderbird, Apple Mail, or Outlook for their daily email use, and it seems I've erroneously been telling them that "anything put in the Junk folder will be used to train the spam filters."

    From my searching in the forums, it seems that that's not the case, which really isn't all that useful.

  8. #8
    gkra's Avatar
    gkra is offline Senior Member
    Join Date
    May 2007
    Location
    San Diego
    Posts
    53
    Rep Power
    8

    Default

    Quote Originally Posted by phoenix View Post
    You don't need to use zmtrainsa against the Junk folder, anything that's in there will also have gone to the spam training account. They are automatically checked and cleared by cron jobs.
    Given that most of our users are using IMAP clients, myself included, I guess the "checked and cleared" only applies to messages put in a user's Junk folder by using the web client's "Spam" button on a message.

    Similarly, are messages which are auto-filed by Zimbra into the Junk folder considered for spam training and cleared?

    Thanks,

    Gregory

  9. #9
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,492
    Rep Power
    56

    Default

    Quote Originally Posted by gkra View Post
    Similarly, are messages which are auto-filed by Zimbra into the Junk folder considered for spam training and cleared?
    Yes, they are. They will have already gone through the spam checking system and are filed in the Junk folder (rather than removed as spam immediately) because of your spam settings. You should also check the Junk folder occasionally for any false positives.

    There's an RFE for Junk folder functionality in IMAP clients, vote on that if you want the feature.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  10. #10
    gkra's Avatar
    gkra is offline Senior Member
    Join Date
    May 2007
    Location
    San Diego
    Posts
    53
    Rep Power
    8

    Default

    Quote Originally Posted by phoenix View Post
    Yes, they are. They will have already gone through the spam checking system and are filed in the Junk folder (rather than removed as spam immediately) because of your spam settings.
    Okay... There's a couple things I'm still not certain I understand, and I apologize if I'm being obtuse.
    • Are the individual users' Junk folders supposed to be automatically cleared?
    • If a message is marked as Junk by a user in the web client, should I see a copy of that message in the INBOX of the spam user account, or where is that collected?

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. I got Ubuntu and Zimbra working
    By pacsteel in forum Installation
    Replies: 73
    Last Post: 06-23-2008, 11:41 AM
  2. Spam training from Outlook
    By kogo in forum Administrators
    Replies: 2
    Last Post: 02-21-2007, 06:12 PM
  3. Spam training. Junk or Junk E-mail folders?
    By azilber in forum Zimbra Connector for Outlook
    Replies: 0
    Last Post: 02-15-2007, 01:24 PM
  4. Spam training and Junk folder behavior
    By flyerguybham in forum Administrators
    Replies: 9
    Last Post: 02-14-2007, 12:09 PM
  5. Training spam and ham
    By Justin in forum Developers
    Replies: 2
    Last Post: 10-31-2006, 03:39 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
  •