Singapore & Australia # 1 for Web Hosting & Domains
SG: +65 6914-7888   AU: 1300-863-436 Asset 1colo Help
Vodien Logo
  1. Home
  2. Knowledge Base
  3. Secure Shell
  4. Basic SSH to check mail queue

Basic SSH to check mail queue

Print a listing of the messages in the queue (time queued, size, message-id,sender, recipient). This guide is to provide a better understand of using basic SSH to check mail queue.

Requirement : to SSH into your server (Please take note the SSH access is only available for VPS and Dedicated Server hosting.)

Basic SSH to check mail queue

To count the number of emails in the current queue of your server

root@localhost#Exim -bpc :

Print a listing of the messages in the queue (time queued, size, message-id,sender, recipient):

root@localhost#Exim -bp :

Use -f to search the queue for messages from a specific sender:

root@localhost# exiqgrep -f [luser]@domain

Use -r to search the queue for messages for a specific recipient/domain:

root@localhost# exiqgrep -r [luser]@domain

Use -o to print messages older than the specified number of seconds. For example, messages older than 1 day:

root@localhost# exiqgrep -o 86400 […]

Use -y to print messages that are younger than the specified number of seconds. For example, messages less than an hour old:

root@localhost# exiqgrep -y 3600 […]

If you have further questions, please do not hesitate to contact our support team.

Basic SSH to check mail queue

(Visited 592 times, 1 visits today)
Updated on October 15, 2020

Was this article helpful?

Related Articles