Fix Exim error-exim dead but subsys locked

Problem Statement


php mail scripts were not working in Linux VPS.

Error Message

exim dead but subsys locked

Resolution

The first thing we verified was whether exim service is working or not by issuing following command in SSH.

service exim status


We noticed that Exim service was dead and throwing following error.

exim dead but subsys locked 


We attempt to start the Exim service by issuing the following command

service exim start


We received following error while we try to start it.

Starting exim: 2016-01-13 12:55:12 Cannot open main log file "/var/log/exim_mainlog": No such file or directory: euid=0 egid=0
2016-01-13 12:55:12 cwd=/ 5 args: /usr/sbin/exim -bd -q1h -oP /var/spool/exim/exim-daemon.pid
2016-01-13 12:55:12 Cannot open main log file "/var/log/exim_mainlog": No such file or directory: euid=0 egid=0
exim: could not open panic log - aborting: see message(s) above


This error tells that necessary error log files to start Exim services were missing so we created following files manually.

/var/log/exim_mainlog
/var/log/exim_rejectlog
/var/log/exim_paniclog
/var/log/maillog
/var/log/messages

We attempted to start the Exim service and we received following error again.

exim dead but subsys locked


Upon research, we came to know that, there are mainly two reasons for the occurrence of this error.

  1. The presence of /etc/eximdisable file. To verify the existence of this file, we navigated to /etc/ directory and made sure that this file is not there.
  2. The server has necessary disk space available to start the Exim service. To verify it, we issued the following command.

    df -h 
    We noticed that customers VM was using 97% of total disk space. We asked our customers to remove unwanted data and release some disk space. Customer released some disk space and Exim service was started immediately. As soon as Exim service started, all queued emails were released.

  • 0 Users Found This Useful

Was this answer helpful?

Related Articles

How to deploy Mean.js application to Linux VPS?

Upload Mean.js Files via SFTP In FileZilla Once your mean.js webcontent is ready, you need to...

The action Install for product MySQL Server 5.7.19 failed.

You may face this error while installing MySQL 5.7 or upgrading MySQL 5.6 to 5.7. Here, is the...

How to install IonCube Loader on CentOS 7 Manually?

Ioncube is a PHP module which protects the PHP application's source code from being viewed from...

How to install NodeJS on Centos with cPanel?

NodeJS is an open-source and cross-platform server environment. It is a JavaScript runtime built...

bash: netstat: command not found.

You may face the below error on your Linux OS if you haven’t installed the netstat command...