mailutil command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
mailutil: command not found
or when using sudo you get the following error message
sudo: mailutil: command not found
Solutions to mailutil: command not found
How To Fix mailutil: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu mailutil is provided by uw-mailutils package.
uw-mailutils is:
IMAP (Internet Message Access Protocol) is a method of accessing electronic messages kept on a (possibly shared) mail server.
The UW (University of Washington) IMAP toolkit provides the c-client mail-handling library supporting various network transport methods, file system storage formats, and authentication and authorization methods.
This package contains helper tools for the libc-client library:
- mailutil: utility program which helps manage email mailboxes (both local and IMAP/POP3/NNTP);
- dmail: MDA (Mail Delivery Agent) for use with procmail;
- tmail: MDA for use with the system mailer (such as Sendmail or Postfix).
To fix this problem, we can install more using the command below.
sudo apt-get -y install uw-mailutils
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install uw-mailutils.
sudo apt -y install uw-mailutils
Or if you have aptitude installed you can use the following command.
sudo aptitude install uw-mailutils
Summary
In this tutorial we learn how to fix mailutil command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.