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 on exim4 with my hostname?
sudo dpkg-reconfigure exim4-config
Step 1 : Top option (Internet site; mail is sent and received directly using SMTP
Step 2 : hostname (default)
Step 3 : 127.0.0.1 ; ::1 (default)
Step 4 : hostname (default)
Step 5 : hostname
step 6 : hostname
step 7 : No
Step 8 : mbox format in /var/mail/
Step 9 : no
step 10 : root hostname
Any help greatly appreciated. Thanks!