Show the complete Exim log trace for a message ID
Build a paste-ready command, then review its compatibility and effects before running it.
exigrep <exim-message-id> /var/log/exim4/mainlogComplete required fields to copy the generated command.
read-onlyno known side effects Compatibility
Exim utilitiesexigrep prints all log lines associated with a message when any line matches the supplied pattern.
Operational knowledgereview due 2027-01-19
Requirementsexigrepexigrep must be installed and available on PATH.
Version supportexigrep Current supported releasesVerified for linux using posix, bash, zsh syntax; consult compatibility notes for platform-specific differences.
Expected signals2026-07-23 09:12:04 1uH7aa-0004F2-2L <= alice@example.com H=mx.example.com [203.0.113.18] S=1842Representative successful output; values vary with the selected target and system state.
Known errorsexigrep: command not foundexigrep is missing or is not available on PATH.
Verifyexigrep {{messageId}} {{logFile}}The output matches the expected target and exits without an error.Rollback noteNot required: this command is read-only and does not change system state.
Command breakdown
01exigrepCommandRuns the exigrep stage of this one-liner.
02<exim-message-id>ParameterA value supplied in the Fill parameters section.
03<exim-log-file>ParameterA value supplied in the Fill parameters section.
Example input
exigrep 1uH7aa-0004F2-2L /var/log/exim4/mainlog
Example output
2026-07-23 09:12:04 1uH7aa-0004F2-2L <= alice@example.com H=mx.example.com [203.0.113.18] S=1842
2026-07-23 09:12:06 1uH7aa-0004F2-2L => bob@example.net R=dnslookup T=remote_smtp
2026-07-23 09:12:06 1uH7aa-0004F2-2L Completed
Illustrative output — exact values vary by system and data.
Official sources
Related commands