The configuration of exim4 is quite backwards compatible, although the maintainers of the exim4-config improve the rules from time to time (unfortunately the changelog is common for all exim4 packages).
I think your best choice is to upgrade to the xenial-updates package: the minimal versions of its dependencies are quite old, even from an Ubuntu 14.04 perspective, and it covers all recent vulnerabilities. You might get away with just upgrading the exim4-*
packages.
You just need to:
Add the xenial-updates
repositories to your /etc/apt/sources.list
:
deb http://security.ubuntu.com/ubuntu xenial-updates main
Set the default release to trusty
in /etc/apt/apt.conf
:
APT::Default-Release "trusty";
Pin the exim4*
packages in /etc/apt/preferences
:
Package: exim4*
Pin: release n="xenial"
Priority: 900
Normally upgrade the exim4
package:
apt update
apt install exim4
A normal upgrade process will not overwrite your configuration files, but it is better to make a backup. Afterwards you might want to merge the *.dpkg-dist
files into your configuration.