Abstract:This paper reports the situation of spam and viruses mail in mail system. It analyzes,tests and compares relevant anti-spam system, introduces a general method to deploy an anti-spam system.Combining with the technical indexes and economic benefit analysis,the conclusion is showed that it is valuable to apply an anti-spam system in Internet security.