Open sourcing the spam filter will only help spammers. It is unlikely that it would work on an individual server with small amount of traffic.
Instead of trying to make a perfect spam filter we should abandon outdated inreliable mail transfer protocol.