2023-11-29 14:24:35 +00:00
|
|
|
# exiqgrep
|
|
|
|
|
2023-11-30 09:27:59 +01:00
|
|
|
> Perl script offering possibilities to `grep` in the Exim queue output.
|
2023-11-29 14:24:35 +00:00
|
|
|
> 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:
|
|
|
|
|
2025-05-11 13:56:41 +03:00
|
|
|
`exiqgrep -f '<{{email@example.com}}>'`
|
2023-11-29 14:24:35 +00:00
|
|
|
|
2023-11-30 09:27:59 +01:00
|
|
|
- Match the sender address and display message IDs only:
|
2023-11-29 14:24:35 +00:00
|
|
|
|
2025-05-11 13:56:41 +03:00
|
|
|
`exiqgrep -i -f '<{{email@example.com}}>'`
|
2023-11-29 14:24:35 +00:00
|
|
|
|
2025-06-28 12:47:25 +03:00
|
|
|
- Match the [r]ecipient address:
|
2023-11-29 14:24:35 +00:00
|
|
|
|
2025-05-11 13:56:41 +03:00
|
|
|
`exiqgrep -r '{{email@example.com}}'`
|
2023-11-29 14:24:35 +00:00
|
|
|
|
|
|
|
- Remove all messages matching the sender address from the queue:
|
|
|
|
|
2025-05-11 13:56:41 +03:00
|
|
|
`exiqgrep -i -f '<{{email@example.com}}>' | xargs exim -Mrm`
|
2023-11-29 14:24:35 +00:00
|
|
|
|
|
|
|
- Test for bounced messages:
|
|
|
|
|
|
|
|
`exiqgrep -f '^<>$'`
|
|
|
|
|
2025-06-28 12:47:25 +03:00
|
|
|
- Display the [c]ount of bounced messages:
|
2023-11-29 14:24:35 +00:00
|
|
|
|
|
|
|
`exiqgrep -c -f '^<>$'`
|