How To Install mxallowd on Debian 9
Introduction
In this tutorial we learn how to install mxallowd
on Debian 9.
What is mxallowd
mxallowd is:
mxallowd is a daemon for linux/netfilter(iptables) which uses nolisting (http://nolisting.org). That means, you define two MX-servers in your nameserver and mxallowd will block the access to any of these mailservers if the client did not try the other one. This blocks non-RFC-compliant mailers, which are often in use by spammers and so-called direct-to-second-mx which is also a technique mainly used by spammers.
There are three methods to install mxallowd
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 mxallowd Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install mxallowd
using apt-get
by running the following command:
sudo apt-get -y install mxallowd
Install mxallowd Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install mxallowd
using apt
by running the following command:
sudo apt -y install mxallowd
Install mxallowd 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 mxallowd
using aptitude
by running the following command:
sudo aptitude -y install mxallowd
How To Uninstall mxallowd on Debian 9
To uninstall only the mxallowd
package we can use the following command:
sudo apt-get remove mxallowd
Uninstall mxallowd And Its Dependencies
To uninstall mxallowd
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove mxallowd
Remove mxallowd Configurations and Data
To remove mxallowd
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge mxallowd
Remove mxallowd configuration, data, and all of its dependencies
We can use the following command to remove mxallowd
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge mxallowd
Dependencies
mxallowd have the following dependencies:
References
Summary
In this tutorial we learn how to install mxallowd
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.