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:
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:
Then we need to add an alias to the exim client, so we run:
Then add an alias for example:
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:
Then we need to test that exim works, otherwise something went wrong:
- echo "test"\mail-s "$HOSTNAME"email@example.com
This should print our something similar to this:
That is your exim mail server up and running.