This walkthrough will detail the installation and configuration of exim on your Ubuntu installation.
Firstly, lets get exim installed:
sudo su # enable root for installation and configuration - enter your password when prompted
apt-get install exim4 # Installs exim
Next, run the configuration
dpkg-reconfigure exim4-config # Runs the configuration program for exim
Here is a quick runthrough of the screens (there is more information on each screen if you require):
The configuration program will then close
* Stopping MTA for restart [ OK ]
* Restarting MTA [ OK ]
Next, we will install mailutils - a useful program that will allow us to send a test mail. Still as root,run:
apt-get install mailutils
Then send a test mail:
mail (email address you would like to email)
cc: (press enter to skip cc:)
Subject: (enter a subject, then press enter)
. (the . ends the message body)
You should recieve the email at your selected address shortly.