Removing specific message(s) from exim mail queue

Exim comes with an excellent utility called exiqgrep which has lots of grep like functionality on queues. For example to find all messages which has info@xxx.com as recipient:

exiqgrep -r info@xxx.com

If you want to search for from address not recipient, change -r with -f parameters. You can also delete the messages after finding them:

exiqgrep -f info@xxx.com | awk {'print $3'} | xargs -Mrm

 







You must be login first or sign-up for an account to post comments.

Maybe you should look at these also: