I got this error after an update
Setting up exim4-config (4.93-13ubuntu1.6) ...
2022-09-02 12:27:34 Exim configuration error in line 40 of /var/lib/exim4/config.autogenerated.tmp:
main option "acl_smtp_mime" unknown
Invalid new configfile /var/lib/exim4/config.autogenerated.tmp, not installing
/var/lib/exim4/config.autogenerated.tmp to /var/lib/exim4/config.autogenerated
dpkg: error processing package exim4-config (--configure):
installed exim4-config package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
exim4-config
E: Sub-process /usr/bin/dpkg returned an error code (1)
I’m using ubuntu server 20.04 LTS
The problem is because exim4-daemon-light
was installed and changed the exim4.conf.template
So the solution for me was:
1- Download the original exim4.conf.template
( ==> before: make a copy of your current /etc/exim4/exim4.conf.template
<== )
$sudo wget https://raw.githubusercontent.com/hestiacp/hestiacp/main/install/deb/exim/exim4.conf.template -O /etc/exim4/exim4.conf.template
2- Install the exim4-daemon-heavy
package. This will replace exim4-daemon-light
, but exim4 requires exim4-daemon-heavy
instead.
$sudo apt-get install exim4-daemon-heavy
3- Restart the exim4
service
$sudo systemctl restart exim4
4- Check the exim4
service status
$systemctl status exim4
I hope it works for you as well!