How To Install dspam on CentOS 7

In this tutorial we learn how to install dspam on CentOS 7. dspam is A library and Mail Delivery Agent for Bayesian SPAM filtering

Introduction

In this tutorial we learn how to install dspam on CentOS 7.

What is dspam

The DSPAM agent masquerades as the email server’s local delivery agent and filters/learns spams using an advanced Bayesian statistical approach (based on Baye’s theorem of combined probabilities) which provides an administratively maintenance-free, easy-learning Anti-Spam service custom tailored to each individual user’s behavior. Advanced because on top of standard Bayesian filtering is also incorporated the use of Chained Tokens, de-obfuscation, and other enhancements. DSPAM works great with Sendmail, Exim and Postfix, and should work well with any other MTA that supports an external local delivery agent (qmail, etc.)

We can use yum or dnf to install dspam on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install dspam.

Install dspam on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install dspam using yum by running the following command:

sudo yum -y install dspam

Install dspam on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install dspam using dnf by running the following command:

sudo dnf -y install dspam

How To Uninstall dspam on CentOS 7

To uninstall only the dspam package we can use the following command:

sudo dnf remove dspam

References

Summary

In this tutorial we learn how to install dspam on CentOS 7 using yum and dnf.