How to remove all messages in an Exim queue (on a cPanel server, for example) from or to a specific user:
- SSH into the server as root
- To delete all from a specific address:
1exiqgrep -i -f user@domain.com | xargs exim -Mrm - To delete all to a specific address:
1exiqgrep -i -t user@domain.com | xargs exim -Mrm
Other useful selection criteria (replace the “-f user@domain” or “-t user@domain” options):
-y Message younger than
-o Message older than
-z Frozen messages only (exclude non-frozen)
-x Non-frozen messages only (exclude frozen)