Symptoms
When sending an email, the email is never received, and the following error is logged to /var/log/exim_mainlog, where /path/to/file is an actual file path (example: /etc/exim_example_file).
CONFIG_TEXT: 1k3QXs-0006YO-3D failed to open /path/to/file for linear search: No such file or directory
Cause
This occurs when Exim is configured to perform a linear search (lsearch) for a specific file that does not exist.
Example:
CONFIG_TEXT: @CONFIG@
domainlist exim_example = lsearch;/etc/exim_example_file
Based on the above configuration, if /etc/exim_example_file is missing, exim_example will fail when sending an email, and the following will log to /var/log/exim_mainlog:
CONFIG_TEXT: 1k3QXs-0006YO-3D failed to open /etc/exim_example_file for linear search: No such file or directory
Resolution
This is typically caused by customizations to Exim's configuration. If the linear search (lsearch) is performed due to customization to Exim's configuration, either remove the customization or create the missing file.
You can view details on how to backup and reset the exim configuration here:
- Log in to the server via SSH or WHM's Terminal as the
rootuser -
Create the missing file with the needed content within it:
# nano /path/to/file
Note:
/path/to/fileneeds to be replaced with the path to the actual missing file -
Rebuild the exim configuration:
# /scripts/buildeximconf
-
Restart the exim service:
# /scripts/restartsrv_exim
Comments
0 comments
Article is closed for comments.