Shane Hickey wrote: > Hello all, > I'm running with Amavisd-new, Postfix, Spamassassin, ClamAV and > SquirrelMail (with the amavisnewsql and spam_buttons plugins) on my mail > server. (See versions below). Anyway, recently I put dspam into the mix but > I want to refine how I train it. I'm calling dspam from amavis, so I haven't > done anything in postfix for it, in case that matters. > So, I figured I'd share how I'm training spam today, for all of my > users and I'm looking for comments/criticisms/flame/ideas on how best to do > it. > > 1) I'm doing bayes auto-learning in local.cf with this configuration: > > bayes_auto_learn 1 > bayes_auto_learn_threshold_nonspam 1 > bayes_auto_learn_threshold_spam 14.00 > bayes_auto_expire 1 > bayes_expiry_max_db_size 500000 > > 2) For my webmail users, they can submit spam/ham by using the Squirrelmail > plugin spam_buttons. I configured the submit commands like so: > > $is_spam_shell_command = 'sudo -u amavis /usr/bin/sa-learn --spam'; > $is_not_spam_shell_command = 'sudo -u amavis /usr/bin/sa-learn --ham'; > > > 3) I'm using the squirrelmail plugin amavisnewsql to allow them to manage > their spam settings and also the quarantine and they can release messages and > whitelist senders using that code. > > 4) A friend of mine who is handy with PHP wrote a little page for me to > submit spam messages. I do a view source from my mail client and then paste > the message into a text field on a webpage and it trains bayes and also sends > the spam to spamcop. This is mainly for me, though, and I'm hesitant to > provide this interface to my users, because, even though the guy is a skilled > coder, it was a quick and dirty job. If anyone is interested in the code, > let me know and I'll get his permission to post it. > > So, the long story short is that I don't really have a great way for my users > to submit spam/ham to me besides spam_buttons and I currently don't have > spam_buttons doing anything with dspam. Ideally, I'd like to have a email > aliases like [EMAIL PROTECTED] and [EMAIL PROTECTED] and these would process > the message to: > a) train spamassassin's bayes database > > b) train dspam > > c) possibly send it to spamcop > d) (optional) send it to razor or something else handy if it was a real nasty > spam\ > e) something else cool ;) >
> How is everyone doing that today? > 1- webmail 'buttons'. 2- IMAP folders used with IMAP 3- "resend" FPs and FNs. This requires a "resend" (sometimes called "bounce"...) button on the MUA. you may find plugins/extensions for your MUAs. 4- "forward as attachment". Then your users must understand what this means, and their MUA must forward the original message as a portable attachment (not a mail.dat). Outlook is known to destructively modify messages... 5- "usual forward". Beside the problem described above (message modified), it's not easy to retrieve the original message (quoting, reformatting, only sending one part of among alternate ones, ...). so this only works if the filter has added some "Id". 6- as above, but the filter added an "Id" that helps retrieving the original message. For instance, dspam adds an X-DSPAM-Signature header. 6- additionnal IMAP folders only used for "spam/ham feedback" (users still access mail via POP3, but have an IMAP account to put FPs and FNs on). I didn't test this on outlook to see if the resulting copy is usable. 7- have users copy-paste the source and send it (or paste it on a web form). too much work for users. 8- archive all mail (dbmail is an option), then when an FP or FN is forwarded by some method, try to find the corresponding message. This would use the message-id, the (final) recipient, and possibly other heuristics... 9- use "reporting" plugins in the MUAs. not yet in wide use. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/