How To Install exim on CentOS 7
Introduction
In this tutorial we learn how to install exim
on CentOS 7.
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 CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install exim.
Install exim on CentOS 7 Using yum
Update yum database with yum
using the following command.
sudo yum makecache
After updating yum database, We can install exim
using yum
by running the following command:
sudo yum -y install exim
Install exim on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
sudo dnf makecache
After updating yum database, We can install exim
using dnf
by running the following command:
sudo dnf -y install exim
How To Uninstall exim on CentOS 7
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 CentOS 7 using yum
and dnf
.