exim4:managing_the_queue
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
exim4:managing_the_queue [2016/11/04 09:20] – peter | exim4:managing_the_queue [2020/07/15 09:30] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 14: | Line 14: | ||
exim -ql -v | exim -ql -v | ||
</ | </ | ||
+ | |||
Remove a message from the queue: | Remove a message from the queue: | ||
Line 20: | Line 21: | ||
exim -Mrm < | exim -Mrm < | ||
</ | </ | ||
+ | |||
+ | |||
+ | |||
+ | Delete all queued messages containing a certain string in the body: | ||
+ | |||
+ | <code bash> | ||
+ | grep -lr 'a certain string' | ||
+ | sed -e ' | ||
+ | </ | ||
+ | |||
+ | **NOTE**: | ||
+ | |||
+ | If you have to feed many, many message-ids (such as the output of an **exiqgrep -i** command that returns a lot of matches) to an exim command, you may exhaust the limit of your shell' | ||
+ | |||
+ | <code bash> | ||
+ | exiqgrep -i -f '< | ||
+ | </ | ||
+ | |||
+ | |||
Freeze a message: | Freeze a message: | ||
Line 60: | Line 80: | ||
exiqgrep -z -i | xargs exim -Mrm | exiqgrep -z -i | xargs exim -Mrm | ||
</ | </ | ||
+ | |||
Remove all messages older than five days (86400 * 5 = 432000 seconds): | Remove all messages older than five days (86400 * 5 = 432000 seconds): | ||
Line 80: | Line 101: | ||
exim -Mvh < | exim -Mvh < | ||
</ | </ | ||
+ | |||
View a message' | View a message' | ||
<code bash> | <code bash> | ||
- | root@localhost# | + | exim -Mvb < |
</ | </ | ||
+ | |||
View a message' | View a message' | ||
<code bash> | <code bash> | ||
- | root@localhost# | + | exim -Mvl < |
</ | </ | ||
Line 97: | Line 120: | ||
<code bash> | <code bash> | ||
- | root@localhost# | + | exim -Mar < |
</ | </ | ||
Line 104: | Line 127: | ||
<code bash> | <code bash> | ||
- | root@localhost# | + | exim -Mes < |
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | Remove bounce messages already in the queue: | ||
+ | |||
+ | <code bash> | ||
+ | exipick -f ' | ||
+ | </ | ||
+ | |||
+ | or, equivalently: | ||
+ | |||
+ | <code bash> | ||
+ | exipick ' | ||
</ | </ | ||
exim4/managing_the_queue.1478251224.txt.gz · Last modified: 2020/07/15 09:30 (external edit)