Additional Exim logging can help an administrator investigate mail routing and delivery problems. On a cPanel server, use WHM to adjust the log_selector setting rather than editing the generated exim.conf file directly.
Enable the required log details
- Log in to WHM as an administrator.
- Open Service Configuration > Exim Configuration Manager.
- Select Advanced Editor and record the existing log_selector value.
- Add only the selectors needed for the investigation, retaining existing options. For example:
+address_rewrite +all_parentsaddress_rewrite records address rewrites, while all_parents includes intermediate addresses in delivery logs. These are additions to the selector value, not a replacement for unrelated existing settings.
- Click Save and check that WHM accepts the configuration.
- Reproduce the delivery problem and inspect /var/log/exim_mainlog.
The arguments selector records command-line arguments and subject records message subjects. Use them only when that information is required, since logs may contain sensitive data. Restrict log access and check available disk space.
Finish the investigation
Restore the previous selector value if the additional logging is no longer needed. Save again and verify that mail still works.