There’s a program that I use called K9 which works really well. You have to teach it what’s spam and what’s not, but I think it’s worth the effort. I’ve never had it trash legitimate messages and I now don’t get any spam in my inbox.

http://www.keir.net/k9.html