Count queued Exim recipients by destination domain
Build a paste-ready command, then review its compatibility and effects before running it.
exim -bp | exiqsumm | sort -nrk 1,1 | head -20read-onlyno known side effects Compatibility
LinuxVerified for Linux using posix, bash, zsh syntax.
Operational knowledgereview due 2027-01-20
Requirementseximexim must be installed and available on PATH.
Version supportexim Current supported releasesVerified for linux using posix, bash, zsh syntax; consult compatibility notes for platform-specific differences.
Expected signalsCount Volume Oldest Newest DomainRepresentative successful output; values vary with the selected target and system state.
Known errorsexim: command not foundexim is missing or is not available on PATH.
Verifyexim -bp | exiqsumm | sort -nrk 1,1 | head -20The 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
01eximCommandRuns the exim stage of this one-liner.
02-bpOptionConfigures exim with the -bp option.
03|PipelinePasses the output on the left to the command on the right.
04exiqsummCommandRuns the exiqsumm stage of this one-liner.
05|PipelinePasses the output on the left to the command on the right.
06sortCommandRuns the sort stage of this one-liner.
07-nrkOptionConfigures sort with the -nrk option.
081,1ArgumentPasses 1,1 to sort.
09|PipelinePasses the output on the left to the command on the right.
10headCommandRuns the head stage of this one-liner.
11-20OptionConfigures head with the -20 option.
Example input
exim -bp | exiqsumm | sort -nrk 1,1 | head -20
Example output
Count Volume Oldest Newest Domain
42 1.2MB 3h 2m example.net
18 640.0KB 1h 4m mail.example.org
Illustrative output — exact values vary by system and data.
Official sources