How To Install spampd on Debian 9
Introduction
In this tutorial we learn how to install spampd
on Debian 9.
What is spampd
spampd is:
spampd is an SMTP/LMTP server designed to be hooked into the MTA processing chain (e.g. as a content filter). It is written in Perl and uses the Net::Server framework. It is intended to provide spam filtering at the system level (i.e. ususally for all users). If you rely on per-user configuration or per-user Bayes databases, spampd is not for you.
The major advantage of spampd over plain SpamAssassin (both directly and through spamd) is that it doesn’t need to load all needed perl modules on every invocation or spawn a C programme for every mail it receives. Compared to using spamc/spamd, spampd can usually provide a 25% performance increase with local-only tests.
The advantage of spampd over amavisd-new is that it uses the original SpamAssassin header tags, which are more verbose than the tags which amavisd-new provides. This allows easier filtering in the mail client and easier tuning of SpamAssassin.
There are three methods to install spampd
on Debian 9. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install spampd Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install spampd
using apt-get
by running the following command:
sudo apt-get -y install spampd
Install spampd Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install spampd
using apt
by running the following command:
sudo apt -y install spampd
Install spampd Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install spampd
using aptitude
by running the following command:
sudo aptitude -y install spampd
How To Uninstall spampd on Debian 9
To uninstall only the spampd
package we can use the following command:
sudo apt-get remove spampd
Uninstall spampd And Its Dependencies
To uninstall spampd
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove spampd
Remove spampd Configurations and Data
To remove spampd
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge spampd
Remove spampd configuration, data, and all of its dependencies
We can use the following command to remove spampd
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge spampd
Dependencies
spampd have the following dependencies:
References
Summary
In this tutorial we learn how to install spampd
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.