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:14] – peter | exim4:managing_the_queue [2020/07/15 09:30] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 4: | Line 4: | ||
Start a queue run: | Start a queue run: | ||
- | root@localhost# | + | |
+ | <code bash> | ||
+ | exim -q -v | ||
+ | </ | ||
Start a queue run for just local deliveries: | Start a queue run for just local deliveries: | ||
- | root@localhost# | + | |
+ | <code bash> | ||
+ | exim -ql -v | ||
+ | </ | ||
+ | |||
Remove a message from the queue: | Remove a message from the queue: | ||
- | root@localhost# | + | |
+ | <code bash> | ||
+ | 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: | ||
- | root@localhost# | + | |
+ | <code bash> | ||
+ | exim -Mf < | ||
+ | </ | ||
+ | |||
Thaw a message: | Thaw a message: | ||
- | root@localhost# | + | |
+ | <code bash> | ||
+ | exim -Mt < | ||
+ | </ | ||
Deliver a message, whether it's frozen or not, whether the retry time has been reached or not: | Deliver a message, whether it's frozen or not, whether the retry time has been reached or not: | ||
- | root@localhost# | + | |
+ | <code bash> | ||
+ | exim -M < | ||
+ | </ | ||
+ | |||
Deliver a message, but only if the retry time has been reached: | Deliver a message, but only if the retry time has been reached: | ||
- | root@localhost# | + | |
+ | <code bash> | ||
+ | exim -Mc < | ||
+ | </ | ||
+ | |||
Force a message to fail and bounce as " | Force a message to fail and bounce as " | ||
- | root@localhost# | + | |
+ | <code bash> | ||
+ | exim -Mg < | ||
+ | </ | ||
+ | |||
Remove all frozen messages: | Remove all frozen messages: | ||
- | root@localhost# | + | |
+ | <code bash> | ||
+ | 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): | ||
- | root@localhost# | + | |
+ | <code bash> | ||
+ | exiqgrep -o 432000 -i | xargs exim -Mrm | ||
+ | </ | ||
+ | |||
Freeze all queued mail from a given sender: | Freeze all queued mail from a given sender: | ||
- | root@localhost# | + | |
+ | <code bash> | ||
+ | exiqgrep -i -f luser@example.tld | xargs exim -Mf | ||
+ | </ | ||
+ | |||
View a message' | View a message' | ||
- | root@localhost# | + | |
+ | <code bash> | ||
+ | exim -Mvh < | ||
+ | </ | ||
+ | |||
View a message' | View a message' | ||
- | root@localhost# | + | |
+ | <code bash> | ||
+ | exim -Mvb < | ||
+ | </ | ||
+ | |||
View a message' | View a message' | ||
- | root@localhost# | + | |
+ | <code bash> | ||
+ | exim -Mvl < | ||
+ | </ | ||
+ | |||
Add a recipient to a message: | Add a recipient to a message: | ||
- | root@localhost# | + | |
+ | <code bash> | ||
+ | exim -Mar < | ||
+ | </ | ||
+ | |||
Edit the sender of a message: | Edit the sender of a message: | ||
- | root@localhost# | + | |
+ | <code bash> | ||
+ | exim -Mes < | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | Remove bounce messages already in the queue: | ||
+ | |||
+ | <code bash> | ||
+ | exipick -f ' | ||
+ | </ | ||
+ | |||
+ | or, equivalently: | ||
+ | |||
+ | <code bash> | ||
+ | exipick ' | ||
+ | </code> | ||
exim4/managing_the_queue.1478250875.txt.gz · Last modified: 2020/07/15 09:30 (external edit)