Ok first off we need to install exim with the following command:
  • yum install exim && yum install system-switch-mail

After this run the command:
  • system-switch-mail

This will bring up a nice graphical box asking you if you want to use sendmail or exim, select exim.
After that we want to check that exim is automatically configured:
  • chkconfig exim on

Then we need to add an alias to the exim client, so we run:
  • vi /etc/aliases

Then add an alias for example:
  • root:me@example.com

From there we need to make sure that it is saved so press "esc"add a colon and type "wq" for write and quit.
After this we need to restart exim so:
  • service exim restart

Then we need to test that exim works, otherwise something went wrong:
  • echo "test"\mail-s "$HOSTNAME"me@example.com

This should print our something similar to this:

That is your exim mail server up and running.