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

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 04-07-2007, 10:22 AM
Junior Member
 
Posts: 8
Default Spam Training: How to properly train DSPAM?

I can't seem to find anything on how to train DSPAM...

I know how to train spamassassin, but how can we feed the good folders(ham) and junk folders (spam) to dspam to enhance it's scanning ability... unless I'm mistaken, I was under the impression that DSPAM required training as well before becoming an effective tool...
Reply With Quote
  #2 (permalink)  
Old 04-07-2007, 10:45 AM
Moderator
 
Posts: 1,847
Default

DSPAM is disabled by default since 4.5.0 (IIRC), because of performance issues.
Reply With Quote
  #3 (permalink)  
Old 04-07-2007, 11:08 AM
Zimbra Consultant & Moderator
 
Posts: 11,508
Default

As far as training goes it is done every night when the cron jobs run to train DSPAM (look for the zmtrainsa jobs in cron). The training is only a performance issue for larger sites, it's perfectly OK for a home server.
__________________
Regards


Bill
Reply With Quote
  #4 (permalink)  
Old 04-08-2007, 11:39 AM
Junior Member
 
Posts: 8
Default

Ok,

Will double check if DSPAM's pluging for SA is disabled or not, and will let the cron job do its thing

How does one test rules though? Got an install on Ubuntu, but there doesn't seem to be a "spamassassin" to run with "--lint" ... am I missing something, or is the SA completly integrated in amavisd?
Reply With Quote
  #5 (permalink)  
Old 04-09-2007, 10:08 PM
Zimbra-Yahoo Consultant
 
Posts: 5,608
Default

Well one way to test is to sign up for a bunch of junk mail

That's actually how I trained my server. I signed up for as much spam as I could. I trained it all so that my users wouldn't have to.
-john
Reply With Quote
  #6 (permalink)  
Old 05-15-2007, 02:44 PM
Member
 
Posts: 10
Default

Now that's dedication!...
......
........
Now do mine

Quote:
Originally Posted by jholder View Post
Well one way to test is to sign up for a bunch of junk mail

That's actually how I trained my server. I signed up for as much spam as I could. I trained it all so that my users wouldn't have to.
-john
Reply With Quote
  #7 (permalink)  
Old 05-15-2007, 09:50 PM
Zimbra-Yahoo Consultant
 
Posts: 5,608
Default

It ended up working out really well. So well, that I'd recommend it.
I get about 1 or 2 per week that slip by, with more that 700/week in spam.

jh
Reply With Quote
  #8 (permalink)  
Old 05-22-2007, 03:06 PM
Active Member
 
Posts: 25
Default

Quote:
Originally Posted by jholder View Post
It ended up working out really well. So well, that I'd recommend it.
I get about 1 or 2 per week that slip by, with more that 700/week in spam.

jh
To piggy-back on this thread:

Is there anything one needs to do to train the filters? When I get stuff that slips by, I drop it in my "junk" folder (using an IMAP client, not the web client). Will the server automatically scan the junk folders of users, or is it not effective if I'm not using the junk button on the web client?

The past 3 days have been out of control. I'm getting the same 5 spams every 15 mins...almost reminds me of a worm or something... I keep dropping them into the junk folder, but its not getting any better. The server is not tagging them with my spam heading either.

Thanks!
-N
Reply With Quote
  #9 (permalink)  
Old 05-22-2007, 03:11 PM
Zimbra Consultant
 
Posts: 5,814
Default

It is best/easiest to use the junk/not junk button in the zimbra web client.
Near the bottom it mentions the mass junk assigning command.

Quote:
How well the anti-spam filter works depends on recognizing what is considered spam or not considered spam. The SpamAssassin filter can learn what is spam and what is not spam from messages that users specifically mark as Junk from their web client toolbar or Not Junk from the web client Junk folder. A copy of these marked messages is sent to the appropriate spam training mailbox.The Zimbra spam training tool, zmtrainsa, is configured to automatically retrieve these messages and train the spam filter.

The zmtrainsa script is enabled through a cron job to feed mail that has been classified as spam or as non-spam to the SpamAssassin application, allowing SpamAssassin to ‘learn’ what signs are likely to mean spam or ham. The zmtrainsa script empties these mailboxes each day.

By default all users can give feedback in this way. If you do not want users to train the spam filter, you can modify the global configuration attributes, zimbraSpamIsSpamAccount and zimbraSpamIsNotSpamAccount, and remove the spam/ham account addresses from the attributes. To remove, type as:
zmprov mcf ‘’
Restart the Zimbra services, type zmcontrol stop and then zmcontrol start.
When these attributes are modified, messages marked as junk or not junk are not copied to the spam training mailboxes.

Initially, you may want to train the spam filter manually to quickly build a database of spam and non-spam tokens, words, or short character sequences that are commonly found in spam or ham. To do this, you can manually forward messages as message/rfc822 attachments to the spam and non-spam mailboxes. When zmtrainsa runs, these messages are used to teach the spam filter. Make sure you add a large enough sampling of messages to these mailboxes. In order to get accurate scores to determine whether to mark messages as spam at least 200 known spams and 200 known hams must be identified.

The zmtrainsa command can be run manually to forward any folder from any mailbox to the spam training mailboxes. To send a folder to the spam training mailbox, type the command as:
zmtrainsa server user pass spam [foldername]
To send the to the non-spam training mailbox, type:
zmtrainsa server user pass ham [foldername]
__________________
-Mike Morse (MCode151)

ZCS-to-ZCS Migrations & Moves | Admin Tools & Tidbits » ZimbraBlog.com | ZimbraCommunity.com

Last edited by mmorse : 05-22-2007 at 03:50 PM.
Reply With Quote
  #10 (permalink)  
Old 05-22-2007, 03:17 PM
Active Member
 
Posts: 25
Default

mmorse - that was very quick, thanks!
I'd seen that in the WiKi but noticed that when I moved things into the junk older, the button become "not junk"...so I wasn't sure if moving them manually had the same effect as pushing the button.

I'm going to make another Temp Junk folder for use on the desktop then I'll go into the webclient once every few days and mark em all.

Thanks!
-N
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