Exim4 service failed to start

Hi!Please give a solution
v-restart-service ‘exim4’ ‘yes’ [Error 20]

exim4.service - LSB: exim Mail Transport Agent
   Loaded: loaded (/etc/init.d/exim4; generated)
   Active: failed (Result: exit-code) since Sun 2022-02-13 11:53:57 MSK; 1h 11min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 27245 ExecStart=/etc/init.d/exim4 start (code=exited, status=1/FAILURE)

Feb 13 11:53:57 mydomain.com systemd[1]: Starting LSB: exim Mail Transport Agent...
Feb 13 11:53:57 mydomain.com exim4[27245]: Starting MTA:2022-02-13 11:53:57 Exim configuration error in line 22 of /var/lib/e
Feb 13 11:53:57 mydomain.com exim4[27245]:   main option "require_files" unknown
Feb 13 11:53:57 mydomain.com exim4[27245]: Invalid new configfile /var/lib/exim4/config.autogenerated.tmp, not installing
Feb 13 11:53:57 mydomain.com exim4[27245]: /var/lib/exim4/config.autogenerated.tmp to /var/lib/exim4/config.autogenerated
Feb 13 11:53:57 mydomain.com systemd[1]: exim4.service: Control process exited, code=exited, status=1/FAILURE
Feb 13 11:53:57 mydomain.com systemd[1]: exim4.service: Failed with result 'exit-code'.
Feb 13 11:53:57 mydomain.com systemd[1]: Failed to start LSB: exim Mail Transport Agent.

Check your Exim config did you make a change

Hi,Eris !Hmm…I did not make changes to the configuration. How to update it right ?

apt update && apt install -y --only-upgrade 'exim4-*'

apt update && apt upgrade -y

Should work fine

If the /etc/exim4/exim4.config.template hasn’t been changed their should be no reason why it should not work any more…

You can download the original:

And replace /etc/exim4/exim4.config.template and restart exim4 again it should work fine

If you run Debian 11 use https://github.com/hestiacp/hestiacp/blob/main/install/deb/exim/exim4.conf.4.94.template instead

1 Like

My file config.template was 240 kb.Eris gave 15 kb :slightly_smiling_face:
Replacing helped,Issue resolved.Thanks a lot Eris

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.