sudo apt-get install exim4

Configure Exim with the following command:

sudo dpkg-reconfigure exim4-config Press the down-arrow key to select mail sent by smarthost; received via SMTP or fetchmail then press Tab, followed by Enter: