Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: mmccarn on September 22, 2006, 03:29:17 PM

Title: Spamassassin / Bayesian Filters / Internal Mail Server
Post by: mmccarn on September 22, 2006, 03:29:17 PM
Is there an easy way to "train" the bayesian filters if I am using an "Internal Mail Server"?

All the discussions I see about training spamassassin seem to be designed for systems using local mail delivery...

I have several sites using SME 7 as a firewall / spam filter in front of Exchange servers, and would like to provide my users with an easy way to indicate SPAM and HAM from within Outlook.

My biggest site has approximately 300 user accounts, so I'm hoping for a solution that doesn't require that I duplicate all of these users on the SME server...
Title: Spamassassin / Bayesian Filters / Internal Mail Server
Post by: mmccarn on September 28, 2006, 02:58:35 PM
[bump]Anyone?[/bump]
Title: Spamassassin / Bayesian Filters / Internal Mail Server
Post by: mmccarn on October 01, 2006, 06:21:23 PM
I found this thread: http://forums.contribs.org/index.php?topic=32158.0, and this one: http://www.sonoracomm.com/index.php?option=com_content&task=view&id=49&Itemid=32 and have now done the following:cd ~
wget http://mirror.contribs.org/smeserver/contribs/michaelw/sme7/smeserver-spamassassin-features-0.0.2-0.noarch.rpm

yum localinstall smeserver-spamassassin-features-0.0.2-0.noarch.rpm

config setprop spamassassin BayesAutoLearnThresholdSpam 12.00
 
sa-learn --sync --dbpath /var/spool/spamd/.spamassassin -u spamd
"chown spamd.spamd /var/spool/spamd/.spamassassin/bayes_*
chmod 750 /var/spool/spamd/.spamassassin/bayes_*
chown spamd.spamd /var/spool/spamd/.spamassassin/bayes.mutex

signal-event post-upgrade
signal-event reboot
[/list]
Notes:sa-learn --dump magic shows that I am, indeed, accumulating bayes tokens.
- On one system I have the "Autolearn" and "Spam reject" thresholds both set to 12 - this system *is* learning spam with these settings.[/list]
Concerns:
Wishlist:
I'd love to have a way to have SME provide a SPAM Quarantine service in a manner similar to that used by "spamshark" and "postini", but this is way, way beyond me!

SPAM Quarantine Server
Title: Spamassassin / Bayesian Filters / Internal Mail Server
Post by: azche24 on October 02, 2006, 06:13:56 AM
Hi,

to me it makes no sense to use the SpamAssassin contrib by michael in a setting like yours. The whole stuff depends on active users, that check their /junkmail folders, and put false positives into hamlearning and spam into junkmailmissed folders.

You can only achieve that with direct access to these folders on the SMEserver. Which to my knowledge is not possible via exchange/outlook.

An autolearn-level of 12.00 does not make sense either, you get all the spam.

If you really want to use bayes filtering in this kind of setup, you should perhaps install assp on your smtp-system. This allows to blacklist, whitelist by mail and trains the wordlists by checking the actual traffic of your users.

Also your users can individually put wrong positives as "notspam" by email by simply sending them to a special account.
Title: Spamassassin / Bayesian Filters / Internal Mail Server
Post by: mmccarn on October 02, 2006, 02:27:35 PM
Thanks; I've been too lazy so far to look into assp, but I guess I should!  It would be reasonably easy to setup at one of my sites...

Michael's contrib just turns on system-wide autolearn; the "LearnAsSpam.pl" script mentioned in Sonoracomm's HowTo that processes the users' SPAM and HAM folders comes from "bread" (Brian Read from abandonmicrosoft.co.uk, I think), and can be found here: http://mirror.contribs.org/smeserver/contribs/bread/mailstats/

My "Spam" score is 5, but my "autolearn" level is 12 - since I have no way for users to indicate a false positive, I'm hoping this will keep my server from "learning" the wrong stuff.

I suppose I could setup "spam" and "notspam" email addresses and figure out how to process them using sa-learn --use-ignores, but that could be harder than learning how to install & use assp...