How To Install mailavenger on Debian 10

Learn how to install mailavenger on Debian 10 with this tutorial. mailavenger is Highly configurable, MTA-independent SMTP filter server

Introduction

In this tutorial we learn how to install mailavenger on Debian 10.

What is mailavenger

mailavenger is:

Mail Avenger is a highly configurable, MTA-independent Spam filtering solution at SMTP’ing time.

The criteria Mail Avenger uses to handle filtering is based on a “how is it being send?” fashion, instead of the classical “what are you sending?” model, in which the body or mail itself is analysed looking for SPAM patterns, keywords, bad words or applying Bayesian filters, like SpamAssassin, DSPAM or SpamBayes does.

A distinguishing feature of Mail Avenger is that it allows you to reject spam during SMTP time, before even spooling messages in your local mail queue. This carries interesting features like identifying most clients OS (using TCP SYN fingerprints), acquiring client’s network information, embed cryptographically secure expiration times in temporary mail addresses to validate mail before receiving the message body, between others.

This is a partial list of features:

  • Mail-bomb protection
  • TCP filtering
  • Network-level traffic analysis
  • SMTP-level traffic analysis
  • SMTP callbacks
  • Per-user and per-user-extension mail scripts
  • Per-user mail relay checks
  • Virtual domain mapping
  • Alias to user mapping
  • RBL support
  • SPF
  • SPF language queries
  • Asynchronous DNS queries
  • “Bodytest” support
  • SMTP STARTTLS support

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

Install mailavenger Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install mailavenger

Install mailavenger Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install mailavenger using apt by running the following command:

sudo apt -y install mailavenger

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

sudo aptitude -y install mailavenger

How To Uninstall mailavenger on Debian 10

To uninstall only the mailavenger package we can use the following command:

sudo apt-get remove mailavenger

Uninstall mailavenger And Its Dependencies

To uninstall mailavenger and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove mailavenger

Remove mailavenger Configurations and Data

To remove mailavenger configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge mailavenger

Remove mailavenger configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge mailavenger

Dependencies

mailavenger have the following dependencies:

References

Summary

In this tutorial we learn how to install mailavenger package on Debian 10 using different package management tools: apt, apt-get and aptitude.