exiqgrep: add page (#11565)

* exiqgrep: add page

* exiqgrep: move from `common` to `linux`

* exiqgrep: add display message for bounce count

* exiqgrep: fix formatting

* exiqgrep: update page

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

---------

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
pull/23/head
ovigeek 2023-11-29 14:24:35 +00:00 committed by GitHub
parent 01e85a1e81
commit 9f8e6a1179
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 28 additions and 0 deletions

28
pages/linux/exiqgrep.md Normal file
View File

@ -0,0 +1,28 @@
# exiqgrep
> The `exiqgrep` utility is a Perl script offering possibilities to `grep` in the Exim queue output.
> More information: <https://www.exim.org/exim-html-current/doc/html/spec_html/ch-exim_utilities.html>.
- Match the sender address using a case-insensitive search:
`exiqgrep -f '<{{email@somedomain.com}}>'`
- Match the sender address, and display message IDs only:
`exiqgrep -i -f '<{{email@somedomain.com}}>'`
- Match the recipient address:
`exiqgrep -r '{{email@somedomain.com}}'`
- Remove all messages matching the sender address from the queue:
`exiqgrep -i -f '<{{email@somedomain.com}}>' | xargs exim -Mrm`
- Test for bounced messages:
`exiqgrep -f '^<>$'`
- Display the count of bounced messages:
`exiqgrep -c -f '^<>$'`