Ubuntu Tutorial

How To Install amavisd-new on Ubuntu

Posted on April 1, 2023  (Last modified on May 20, 2023 )
3 minutes  • 431 words

Introduction

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

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 Ubuntu. 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 first since aptitude is usually not installed by default on Ubuntu. 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 Ubuntu

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 Ubuntu, 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 Ubuntu 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 Ubuntu using different package management tools: apt, apt-get and aptitude.

Follow us

We provides various tutorials about Ubuntu