LinuxCommandLibrary

exiqgrep

Exim mail queue search utility

TLDR

Match sender address (case-insensitive)

$ exiqgrep -f '<[email@example.com]>'
copy
Match sender and display message IDs only
$ exiqgrep -i -f '<[email@example.com]>'
copy
Match recipient address
$ exiqgrep -r '[email@example.com]'
copy
Remove all messages matching sender
$ exiqgrep -i -f '<[email@example.com]>' | xargs exim -Mrm
copy
Test for bounced messages
$ exiqgrep -f '^<>$'
copy
Display count of bounced messages
$ exiqgrep -c -f '^<>$'
copy

SYNOPSIS

exiqgrep [options] [pattern]

DESCRIPTION

exiqgrep is a Perl script for searching the Exim mail queue. It filters queue output by sender, recipient, age, and other criteria.
Useful for managing mail queues and identifying problematic messages.

PARAMETERS

-f pattern

Match sender address
-r pattern
Match recipient address
-i
Display message IDs only
-c
Display count only
-o seconds
Match messages older than
-y seconds
Match messages younger than
-z
Match frozen messages only

CAVEATS

Exim mail server specific. Patterns use Perl regular expressions. Requires appropriate permissions to access mail queue.

SEE ALSO

exim(8), exim_dumpdb(8)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community