Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
 
Go Back   Zimbra - Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra - Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-13-2007, 12:35 PM
Active Member
 
Posts: 25
Default Spam training and Junk folder behavior

I have noticed that Zimbra's spam training and recognition is not improving over time as I expected it would. I've concluded that I don't really understand how Zimbra performs training as well as I should.

Three related questions:

1. I know that users can help Zimbra spam training by manually using the Junk / Not Junk button on the toolbar. However, does dragging a message into the Junk folder trigger similar learning behavior? This is important for us, as most of our users interact with Zimbra via something other than the web interface (mostly Thunderbird, sprinkling of other IMAP clients). It would be nice if they could drag mail to the Junk folder and have it learned.

2. Does marking a message as Junk using Thunderbird's Junk / Not Junk button (or similar buttons in other clients) do anything useful for Zimbra training?

3. This command is in zimbra's crontab: /opt/zimbra/bin/zmtrainsa
What is the behavior of this? From running it manually, I see it is looking only at the user zimbra's folder(s), but I can't tell which folder(s) or what it is doing. Is there any mechanism by which EVERY user's Junk folder is analyzed on a regular basis?

Ultimately, what I think we want is for users to be able to help Zimbra train by dragging messages to their Junk folder. In the meantime, I am manually running zmtrainsa on my own Junk folder once a week to help the process.

Any thoughts or advice here will be much appreciated. Thanks!
Reply With Quote
  #2 (permalink)  
Old 02-13-2007, 12:56 PM
Zimbra Employee
 
Posts: 1,434
Default At present, it's the Junk button or nothing

Quote:
Originally Posted by flyerguybham View Post
I know that users can help Zimbra spam training by manually using the Junk / Not Junk button on the toolbar. However, does dragging a message into the Junk folder trigger similar learning behavior?
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!

Quote:
Originally Posted by flyerguybham View Post
Does marking a message as Junk using Thunderbird's Junk / Not Junk button (or similar buttons in other clients) do anything useful for Zimbra training?
No. Although I believe that it trains Thunderbird's own spam filter, for what that's worth.
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #3 (permalink)  
Old 02-13-2007, 01:19 PM
Senior Member
 
Posts: 59
Default

In the interim, you can have your users forward the messages to the spam address you defined at setup. Zimbra should pick them up and train from them there.
Reply With Quote
  #4 (permalink)  
Old 02-14-2007, 06:51 AM
Moderator
 
Posts: 511
Default Not Sure You Want To Do That!!!

Quote:
Originally Posted by wdimmit View Post
In the interim, you can have your users forward the messages to the spam address you defined at setup. Zimbra should pick them up and train from them there.
Not sure you want to that!!!

Forwarding an email to a spam training account causes the forwarder's email address to be trained by the spam filter.

What you want is to do a REDIRECT, which is available in MUAs like KMail.

HTH,
Mark
__________________
___________________________________
L. Mark Stone, CIO


"Uptime. All the time."

477 Congress Street | Portland, ME 04101-3431 | (207) 772-5678

proactive maintenance and monitoring | technology consulting
Zimbra groupware | EMR implementations | data storage
Reply With Quote
  #5 (permalink)  
Old 02-14-2007, 10:03 AM
Senior Member
 
Posts: 57
Question zmtrainsa on user folders without password?

It seems undesirable to divulge the auto spam and ham training addresses at all, let alone trusting users to use them properly.

The ability to train on a user spam folder exists
Code:
./zmtrainsa <server> <user> <pass> <spam|ham> [folder]
That is essentially what I do on my existing non-zimbra server with a daily cronjob, but passwords are a non-issue when using Maildir.

Zmtrainsa calls zmspamextract which calls `zmjava com.zimbra.cs.util.SpamExtract`. By default no username is given and it seems to login as zimbra and extract email from presumably the "spam" and "ham" accounts (depending on a -s or -n argument). Correct?

It would be really nice to run zmtrainsa on a user without knowing their password. Can this be done?
Reply With Quote
  #6 (permalink)  
Old 02-14-2007, 10:30 AM
Senior Member
 
Posts: 59
Default

Apparently I was mistaken / misguided in my first response - so I'll make an attempt at vindication here ;-).

Building on dlbewley's suggestion, you could also use imapsync to move or copy mail from the users spam directories into the spam mailbox directly. This doesn't solve the password problem entirely, but it does give you a few more password and auth options, which I don't believe you could (easily) have with zmtrainsa directly.

On a related note, I remember seeing a bug lately regarding admin access to user accounts over IMAP. I don't recall if the bug/rfe was for preventing or allowing that, but I'll post back if I can find it in Bugzilla.

--Will

*Update* I found the Bug / Thread I was thinking of http://www.zimbra.com/forums/showthread.php?p=23931

Last edited by wdimmit : 02-14-2007 at 10:36 AM. Reason: Update
Reply With Quote
  #7 (permalink)  
Old 02-14-2007, 11:28 AM
Zimbra Consultant & Moderator
 
Posts: 11,508
Default

Quote:
Originally Posted by wdimmit View Post
Building on dlbewley's suggestion, you could also use imapsync to move or copy mail from the users spam directories into the spam mailbox directly.
Why do you think you need to copy it to the spam/ham directories? Did anyone think to check the wiki?
__________________
Regards


Bill
Reply With Quote
  #8 (permalink)  
Old 02-14-2007, 11:30 AM
Senior Member
 
Posts: 59
Default

Quote:
Originally Posted by phoenix View Post
Why do you think you need to copy it to the spam/ham directories? Did anyone think to check the wiki?
I think there's some confusion here. The discussion has been training SA from an IMAP user's "Spam" folder - without resorting to sending the user to the WebUI.
Reply With Quote
  #9 (permalink)  
Old 02-14-2007, 11:47 AM
Zimbra Consultant & Moderator
 
Posts: 11,508
Default

Well, that just shows what an idiot you can look when you read half a thread. I started at dlbewley's post where he was talking about zmtrainsa and thought you were talking about the same thing.

There isn't a way round using zmtrainsa without passwords, I think you'd be better off voting for the bug dkarp mentioned above but that's your choice. It is rather risky, as has already been mentioned, trying to get a user to send junk/not junk to specific accounts.
__________________
Regards


Bill
Reply With Quote
  #10 (permalink)  
Old 02-14-2007, 12:09 PM
Senior Member
 
Posts: 57
Arrow Vote for feature enhancement request

Please vote for bug 14659 if you think it would be useful to train spamassassin with users arbitrarily named spam folders without supplying their password.

Think IMAP-only users, folders named other than Junk, and freshly migrated systems.

Last edited by dlbewley : 02-14-2007 at 12:10 PM. Reason: s/used/named/
Reply With Quote
Reply


Thread Tools
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0