I need to setup exim4 on multiple servers however I was wondering if it\'s possible to create a script that will automatically go through the install process and set it up o
You need to create /etc/exim4/update-exim4.conf.conf
with your local values and then install Exim4 non-interactively, as suggested by @Dogsbody:
export DEBIAN_FRONTEND=noninteractive
apt-get install -y exim4-daemon-light
If you already have Exim4 installed, you need to edit the config file and then execute the following, as suggested here:
dpkg-reconfigure -fnoninteractive exim4-config