exim4:searching_the_queue
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
exim4:searching_the_queue [2016/11/03 16:38] – created peter | exim4:searching_the_queue [2020/07/15 09:30] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 3: | Line 3: | ||
Searching the queue with **exiqgrep**. | Searching the queue with **exiqgrep**. | ||
- | Exim includes a utility that is quite nice for grepping through the queue, called | + | Exim includes a utility that is quite nice for grepping through the queue, called |
+ | |||
+ | First, various flags that control what messages are matched. | ||
- | First, various flags that control what messages are matched. These can be combined to come up with a very particular search. | ||
Use -f to search the queue for messages from a specific sender: | Use -f to search the queue for messages from a specific sender: | ||
- | root@localhost# | + | |
+ | <code bash> | ||
+ | exiqgrep -f [luser]@domain | ||
+ | </ | ||
+ | |||
Use -r to search the queue for messages for a specific recipient/ | Use -r to search the queue for messages for a specific recipient/ | ||
+ | |||
+ | <code bash> | ||
root@localhost# | root@localhost# | ||
+ | </ | ||
+ | |||
+ | |||
Use -o to print messages older than the specified number of seconds. For example, messages older than 1 day: | Use -o to print messages older than the specified number of seconds. For example, messages older than 1 day: | ||
+ | |||
+ | <code bash> | ||
root@localhost# | root@localhost# | ||
+ | </ | ||
+ | |||
+ | |||
Use -y to print messages that are younger than the specified number of seconds. For example, messages less than an hour old: | Use -y to print messages that are younger than the specified number of seconds. For example, messages less than an hour old: | ||
+ | |||
+ | <code bash> | ||
root@localhost# | root@localhost# | ||
+ | </ | ||
+ | |||
+ | |||
Use -s to match the size of a message with a regex. For example, 700-799 bytes: | Use -s to match the size of a message with a regex. For example, 700-799 bytes: | ||
+ | |||
+ | <code bash> | ||
root@localhost# | root@localhost# | ||
+ | </ | ||
+ | |||
+ | |||
Use -z to match only frozen messages, or -x to match only unfrozen messages. | Use -z to match only frozen messages, or -x to match only unfrozen messages. | ||
There are also a few flags that control the display of the output. | There are also a few flags that control the display of the output. | ||
Use -i to print just the message-id as a result of one of the above two searches: | Use -i to print just the message-id as a result of one of the above two searches: | ||
+ | |||
+ | <code bash> | ||
root@localhost# | root@localhost# | ||
+ | </ | ||
+ | |||
+ | |||
Use -c to print a count of messages matching one of the above searches: | Use -c to print a count of messages matching one of the above searches: | ||
+ | |||
+ | <code bash> | ||
root@localhost# | root@localhost# | ||
+ | </ | ||
+ | |||
+ | |||
Print just the message-id of the entire queue: | Print just the message-id of the entire queue: | ||
+ | |||
+ | <code bash> | ||
root@localhost# | root@localhost# | ||
+ | </ | ||
Line 29: | Line 69: | ||
http:// | http:// | ||
+ |
exim4/searching_the_queue.1478191097.txt.gz · Last modified: 2020/07/15 09:30 (external edit)