How To Install mailavenger on Ubuntu 18.04

In this tutorial we learn how to install mailavenger on Ubuntu 18.04. mailavenger is Highly configurable, MTA-independent SMTP filter server

Introduction

In this tutorial we learn how to install mailavenger on Ubuntu 18.04.

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 Ubuntu 18.04. 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 Ubuntu. 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 Ubuntu 18.04

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 Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove mailavenger

Remove mailavenger Configurations and Data

To remove mailavenger configuration and data from Ubuntu 18.04 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

References

Summary

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