mailexporter command not found

In this troubleshooting guide we learn how to fix mailexporter command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

mailexporter: command not found

or when using sudo you get the following error message

sudo: mailexporter: command not found

Solutions to mailexporter: command not found

How To Fix mailexporter: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu mailexporter is provided by prometheus-mailexporter package.

prometheus-mailexporter is:

This package exports metrics for the prometheus monitoring system about mail server functionality. It can be used for mail delivery systems that are based on Maildir and tests MDA and optionally SMTP functionality.

Gathered metrics include roundtrip times and mail timeouts and exposes those in the prometheus metrics format.

To fix this problem, we can install more using the command below.

sudo apt-get -y install prometheus-mailexporter

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install prometheus-mailexporter.

sudo apt -y install prometheus-mailexporter

Or if you have aptitude installed you can use the following command.

sudo aptitude install prometheus-mailexporter

Summary

In this tutorial we learn how to fix mailexporter command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.