How To Install amavisd-new on Kali Linux

In this tutorial we learn how to install amavisd-new on Kali Linux. amavisd-new is Interface between MTA and virus scanner/content filters

Introduction

In this tutorial we learn how to install amavisd-new on Kali Linux.

What is amavisd-new

amavisd-new is:

AMaViSd-new is a script that interfaces a mail transport agent (MTA) with zero or more virus scanners, and spamassassin (optional).

It supports all common virus scanners (more than 20 different AVs), with direct talk-to-daemon support for ClamAV, OpenAntiVirus, Trophie, AVG, f-prot, and Sophos AVs.

AMaViSd-new supports all MTAs through its generic SMTP/LMTP filter mode (ideal for postfix and exim). It is faster and safer to use the SMTP/LMTP filter mode than using the AMaViS pipe client. It supports sendmail milter through the amavisd-new-milter package.

There are three methods to install amavisd-new 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 amavisd-new Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install amavisd-new

Install amavisd-new Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install amavisd-new

Install amavisd-new 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 amavisd-new using aptitude by running the following command:

sudo aptitude -y install amavisd-new

How To Uninstall amavisd-new on Kali Linux

To uninstall only the amavisd-new package we can use the following command:

sudo apt-get remove amavisd-new

Uninstall amavisd-new And Its Dependencies

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

sudo apt-get -y autoremove amavisd-new

Remove amavisd-new Configurations and Data

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

sudo apt-get -y purge amavisd-new

Remove amavisd-new configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge amavisd-new

Dependencies

amavisd-new have the following dependencies:

References

Summary

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