exim4 command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
exim4: command not found
or when using sudo you get the following error message
sudo: exim4: command not found
Solutions to exim4: command not found
How To Fix exim4: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu exim4 is provided by exim4-daemon-heavy package.
exim4-daemon-heavy is:
Exim (v4) is a mail transport agent. This package contains the exim4 daemon with extended features. In addition to the features already supported by exim4-daemon-light, exim4-daemon-heavy includes LDAP, sqlite, PostgreSQL and MySQL data lookups, SASL and SPA SMTP authentication, embedded Perl interpreter, and the content scanning extension (formerly known as “exiscan-acl”) for integration of virus scanners and spamassassin.
The Debian exim4 packages have their own web page, http://wiki.debian.org/PkgExim4. There is also a Debian-specific FAQ list. Information about the way the Debian packages are configured can be found in /usr/share/doc/exim4-base/README.Debian.gz, which additionally contains information about the way the Debian binary packages are built. The very extensive upstream documentation is shipped in /usr/share/doc/exim4-base/spec.txt.gz. To repeat the debconf-driven configuration process in a standard setup, invoke dpkg-reconfigure exim4-config. There is a Debian-centered mailing list, [email protected]. Please ask Debian-specific questions there, and only write to the upstream exim-users mailing list if you are sure that your question is not Debian-specific. You can find the subscription web page on http://lists.alioth.debian.org/mailman/listinfo/pkg-exim4-users
To fix this problem, we can install more using the command below.
sudo apt-get -y install exim4-daemon-heavy
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install exim4-daemon-heavy.
sudo apt -y install exim4-daemon-heavy
Or if you have aptitude installed you can use the following command.
sudo aptitude install exim4-daemon-heavy
Summary
In this tutorial we learn how to fix exim4 command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.