mailstats command not found

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

Introduction

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

mailstats: command not found

or when using sudo you get the following error message

sudo: mailstats: command not found

Solutions to mailstats: command not found

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

In Ubuntu mailstats is provided by sendmail-bin package.

sendmail-bin is:

Sendmail is an alternative Mail Transport Agent (MTA) for Debian. It is suitable for handling sophisticated mail configurations, although this means that its configuration can also be complex.

Fortunately, simple things can be done easily, and complex things are possible, even if not easily understood ;) Sendmail is the ONLY MTA with a Turing complete language to control ALL aspects of delivery!

Sendmail provides Security and SPAM/UCE/UBE protection via several means.

Sendmail includes no Mail User Agents (MUA), you’ll have to pick from the plethora of available MUAs (mutt, vm, etc.)

This package supports REGEX, DB, LDAP, DNS maps, and has enabled TCPWrappers, IPv6, LockFile, SMTP AUTH(SASL), STARTTLS(SSL).

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

sudo apt-get -y install sendmail-bin

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

You can also use apt command to install sendmail-bin.

sudo apt -y install sendmail-bin

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

sudo aptitude install sendmail-bin

Summary

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