LinuxCommandLibrary

exiqgrep

Perl script offering possibilities to `grep` in the Exim queue output.

TLDR

Match the sender address using a case-insensitive search

$ exiqgrep -f '<[email@somedomain.com]>'
copy


Match the sender address and display message IDs only
$ exiqgrep -i -f '<[email@somedomain.com]>'
copy


Match the recipient address
$ exiqgrep -r '[email@somedomain.com]'
copy


Remove all messages matching the sender address from the queue
$ exiqgrep -i -f '<[email@somedomain.com]>' | xargs exim -Mrm
copy


Test for bounced messages
$ exiqgrep -f '^<>$'
copy


Display the count of bounced messages
$ exiqgrep -c -f '^<>$'
copy

Copied to clipboard