This how to helps to resolve the exim paniclog on localhost. There are only a couple of very simple steps required. Following this the issue is resolved.
Index
Background
The root cause of this issue is a misconfigured email configuration. This can be either
- Wrong exim configuration
- Wrong email configuration for the software leveraging on email
- Issue with the exim installation or the server itself
In this how to resolve exim paniclog on localhost has non-zero size we do not focus on the identification of the above 3 points, but about the message sent to you. The scenario is based on old messages that cause the error, whilst in the system in this scenario the above 3 points are to be assumed already resolved.
Resolve exim paniclog on localhost has non-zero size
You maybe receive emails like in the below picture. This is caused by one of the root causes listed in the background chapter. However, even you resolved the issues listed in the background you maybe still receive this error. This is because the panic log is not empty.
Now lets resolve the issue. To do so, you enter the following command in the command line:
vi /var/log/exim4/paniclog
This will share with you the panic log. Note, if the panic log of your system is stored in a different location, than of course you need to adjust the path. The good message is, you can see the log path in the first line of the panic email that you received.
In this scenario and after entering the above command, the /var/log/exim4/paniclog looked as the following:
2021-04-11 17:36:36 socket bind() to port 25 for address ::1 failed: Cannot assign requested address: daemon abandoned 2021-04-11 17:53:13 socket bind() to port 25 for address ::1 failed: Cannot assign requested address: daemon abandoned 2021-04-17 13:36:34 socket bind() to port 25 for address ::1 failed: Cannot assign requested address: daemon abandoned 2021-04-18 10:37:42 socket bind() to port 25 for address ::1 failed: Cannot assign requested address: daemon abandoned 2021-04-18 12:20:22 socket bind() to port 25 for address ::1 failed: Cannot assign requested address: daemon abandoned 2021-04-18 12:29:10 socket bind() to port 25 for address ::1 failed: Cannot assign requested address: daemon abandoned 2021-04-18 12:43:08 socket bind() to port 25 for address ::1 failed: Cannot assign requested address: daemon abandoned 2021-04-18 13:21:42 socket bind() to port 25 for address ::1 failed: Cannot assign requested address: daemon abandoned 2021-04-18 14:08:39 socket bind() to port 25 for address ::1 failed: Cannot assign requested address: daemon abandoned 2021-04-18 15:31:51 socket bind() to port 25 for address ::1 failed: Cannot assign requested address: daemon abandoned 2021-04-18 15:57:56 socket bind() to port 25 for address ::1 failed: Cannot assign requested address: daemon abandoned 2021-05-02 19:56:40 socket bind() to port 25 for address ::1 failed: Cannot assign requested address: daemon abandoned 2021-05-05 04:30:43 socket bind() to port 25 for address ::1 failed: Cannot assign requested address: daemon abandoned 2021-05-26 22:37:18 socket bind() to port 25 for address ::1 failed: Cannot assign requested address: daemon abandoned 2021-06-21 20:25:35 socket bind() to port 25 for address ::1 failed: Cannot assign requested address: daemon abandoned 2021-07-02 23:31:42 socket bind() to port 25 for address ::1 failed: Cannot assign requested address: daemon abandoned 2021-07-02 23:55:24 socket bind() to port 25 for address ::1 failed: Cannot assign requested address: daemon abandoned 2021-07-03 00:09:32 socket bind() to port 25 for address ::1 failed: Cannot assign requested address: daemon abandoned 2021-07-03 11:42:22 socket bind() to port 25 for address ::1 failed: Cannot assign requested address: daemon abandoned 2021-08-10 22:36:06 socket bind() to port 25 for address ::1 failed: Cannot assign requested address: daemon abandoned 2021-09-11 12:04:26 socket bind() to port 25 for address ::1 failed: Cannot assign requested address: daemon abandoned 2021-09-12 21:39:28 socket bind() to port 25 for address ::1 failed: Cannot assign requested address: daemon abandoned 2022-01-22 19:04:51 socket bind() to port 25 for address ::1 failed: Cannot assign requested address: daemon abandoned 2022-01-22 19:06:39 socket bind() to port 25 for address ::1 failed: Cannot assign requested address: daemon abandoned
You probably notice that this is exactly the content which is in the print screen of the above email.
To resolve this problem, simply delete the content of the /var/log/exim4/paniclog file or delete the whole file and create a new empty one.
Additional information
More information about exim4 can be found in the Debian man pages.