SpamAssassin is one of the top spam filtering engines, and is free to boot.
JoeyKelly's notes are here.