How to install exim4 and setup your Gmail account as SMTP Server. Step by step guide on how to install exim4 in your Ubuntu.
If you came across this error trying to install exim4 here’s the solution. E: Could not perform immediate configuration on ‘exim4-daemon-light’. Please see man 5 apt.conf under APT::Immediate-Configure for details. (2)