# Removing specific message(s) from exim mail queue

**URL:** <https://linux-tips.com/t/removing-specific-message-s-from-exim-mail-queue/138>\
**Category:** Services\
**Created:** [August 3, 2015, 12:01pm UTC](https://linux-tips.com/t/removing-specific-message-s-from-exim-mail-queue/138 "2015-08-03T12:01:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![demirten](https://linux-tips.com/user_avatar/linux-tips.com/demirten/32/64_2.png) [@demirten](https://linux-tips.com/u/demirten)\
**Post date:** [August 3, 2015, 12:01pm UTC](https://linux-tips.com/t/removing-specific-message-s-from-exim-mail-queue/138/1 "2015-08-03T12:01:55Z")

</div>

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](mailto: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
```
