How To Install policyd-weight on Kali Linux

In this tutorial we learn how to install policyd-weight on Kali Linux. policyd-weight is Perl policy daemon for the Postfix MTA

Introduction

In this tutorial we learn how to install policyd-weight on Kali Linux.

What is policyd-weight

policyd-weight is:

policyd-weight is intended to eliminate forged envelope senders and HELOs (i.e. in bogus mails). It allows you to score DNSBLs (RBL/RHSBL), HELO, MAIL FROM and client IP addresses before any queuing is done. It allows you to REJECT messages which have a score higher than allowed, providing improved blocking of spam and virus mails. policyd-weight caches the most frequent client/sender combinations (SPAM as well as HAM) to reduce the number of DNS queries.

There are three methods to install policyd-weight on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install policyd-weight Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install policyd-weight using apt-get by running the following command:

sudo apt-get -y install policyd-weight

Install policyd-weight Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install policyd-weight using apt by running the following command:

sudo apt -y install policyd-weight

Install policyd-weight Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install policyd-weight using aptitude by running the following command:

sudo aptitude -y install policyd-weight

How To Uninstall policyd-weight on Kali Linux

To uninstall only the policyd-weight package we can use the following command:

sudo apt-get remove policyd-weight

Uninstall policyd-weight And Its Dependencies

To uninstall policyd-weight and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove policyd-weight

Remove policyd-weight Configurations and Data

To remove policyd-weight configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge policyd-weight

Remove policyd-weight configuration, data, and all of its dependencies

We can use the following command to remove policyd-weight configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge policyd-weight

Dependencies

policyd-weight have the following dependencies:

References

Summary

In this tutorial we learn how to install policyd-weight package on Kali Linux using different package management tools: apt, apt-get and aptitude.