With the fast development of Internet, e-mail has been becoming the most and fastest economical modern way for communication. But it begins to be the carrier of spam、virus or the malicious program, which seriously threaten the safety of the private and business computer system. So how to solve its security problem properly has become one of important topic. First, it essay discusses the situation and the harm of spam and present spam-filter of spam. Finally, the uses Native Bayes and Bayes Net to establish spam filter and hope it can be better than the current Bayes used.