How To Install exim on AlmaLinux 8

In this tutorial we learn how to install exim in AlmaLinux 8. exim is The exim mail transfer agent

Introduction

In this tutorial we learn how to install exim on AlmaLinux 8.

What is exim

Exim is a message transfer agent (MTA) developed at the University of Cambridge for use on Unix systems connected to the Internet. It is freely available under the terms of the GNU General Public Licence. In style it is similar to Smail 3, but its facilities are more general. There is a great deal of flexibility in the way mail can be routed, and there are extensive facilities for checking incoming mail. Exim can be installed in place of sendmail, although the configuration of exim is quite different to that of sendmail.

We can use yum or dnf to install exim on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install exim.

Install exim on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install exim using dnf by running the following command:

sudo dnf -y install exim

Install exim on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install exim using yum by running the following command:

sudo yum -y install exim

How To Uninstall exim on AlmaLinux 8

To uninstall only the exim package we can use the following command:

sudo dnf remove exim

References

Summary

In this tutorial we learn how to install exim on AlmaLinux 8 using yum and dnf.