---
title: "How to: Manage your EXIM email queue via SSH"
slug: "how-to-manage-your-exim-email-queue-via-ssh"
updated: 2026-07-07T04:01:39Z
published: 2026-07-07T04:01:39Z
canonical: "docs.serversaustralia.com.au/how-to-manage-your-exim-email-queue-via-ssh"
---
> ## Documentation Index
> Fetch the complete documentation index at: https://docs.serversaustralia.com.au/llms.txt
> Use this file to discover all available pages before exploring further.
# How to: Manage your EXIM email queue via SSH
Sometimes it's easier and faster to manage your EXIM mail queue via SSH, rather than through WHM or cPanel. This is especially true when resolving issues with an exceptionally large email queue.
Listed below are the most common commands for managing your EXIM email queue.
Check EXIM Queue Size:
View all emails in the EXIM Queue:
View all emails in the queue **FROM** a specific email address:
exiqgrep -f email@example.com
View all emails in the queue **TO** a specific address:
exiqgrep -r email@example.com
View the **MESSAGE_ID** of all emails from a specific email address:
exiqgrep -f email@example.com -i
Remove a single email from the EXIM Queue:
***The message ID is a unique identifier, which looks like this example: 1ePN2j-000pzx-RB***
Remove all emails from a certain email address from the queue:
exiqgrep -f email@example.com -i|xargs exim -Mrm
Clear all 'Frozen' (undeliverable) emails from the queue:
exiqgrep -zi|xargs exim -Mrm
Clear **ALL** emails from the Queue **(Unsent emails will be lost forever - Be Careful!)**
exiqgrep -i|xargs exim -Mrm