How to Install Exim on CentOS 6

The default Centos package didn’t offer Exim. We’ve been using Exim for more than 10 years, love the flexibility of configuration and it can be a very strong MTA to do a lot of good stuff. We can’t find Exim on rpmforge either. Alternatively, we can use Fedora EPEL (Extra Package for Enterprise Linux)

To install Exim on Centos 6.x server, follow the step below;

1. Download EPEL rpm from Federo EPEL mirror,

x64 –
x32 –

(As of 6th Nov, the version is 6-8, if you can’t find the package, can view the mirror site and search for it.

2. Install the RPM, you will get the warning message, and it should be fine.

3. After install EPEL RPM, let’s search for exim package;

4. We choose to install exim-mysql package, due to we use MySQL to store user’s account.

5. By default, CentOS using Postfix as MTA. Follow is how to disable and enable exim on CentOS. First, we stop the service and disable postfix for autostart

6. Next we change the default Postfix MTA to Exim. Press “2” enter to select Exim.

7. Add Exim into auto-start service

8. Let’s fire up Exim service

Now you are done with Exim installation. Let’s verify is the MTA working as expected.

The log should tell you where is your email sending to with exim logging info.

That’s it, enjoy playing with Exim.