In this article I'm going to go over how you can view a summary of the current Exim mail queue on your VPS (Virtual Private Server) or dedicated server. This will give you a quick glance of what domains have the most mailing activity currently going on.

If you've read one of my previous articles on either how to manage the Exim mail queue via SSH, or managing the Exim mail queue in WHM, then you should know how to view and manage the mail queue on your server. However in this article I'm going to talk about getting a full summary of your Exim mail queue so that you can get a quick rough idea of where the most email activity is being generated from on your server.

In order to follow along with the steps below you'll need to have root access to either your VPS or dedicated server so that you have access to the Exim commands we'll be running.

Viewing current Exim mail queue summary

Using the steps below I'll show you how to view a summary of the messages currently in your Exim mail queue on your server.

  1. Login to your server via SSH as the root user.
  2. Run the following command to view the summary of the current Exim mail queue:

    exim -bp | exiqsumm | egrep -v "\-\-|Volume|^$" | sort -bg | awk '{print "Volume: " $1 " \t Domain: " $5}'

    Code breakdown:

    exim -bp Run the exim command with the -bp flag to show the current Exim mail queue.
    exiqsumm Use the exiqsumm command to summarize the output from the Exim mail queue.
    egrep -v "\-\-|Volume|^$" | sort -bg Use the egrep -v command to not display any lines that include text we have specified. In this case lines that have at least two dashes --, the word Volume, or any lines that are blank identified by a carrot ^ which indicates the beginning of a line, and a dollar symbol $ indicating the end of a line.
    awk '{print "Volume: " $1 " \t Domain: " $5}' Use the awk command to print out the word Volume: followed by the $1st column which is the total number of messages in the queue. Then print Domain: followed by the $5th column of data which is the domain name.

    You should get back something that looks similar to this:

    Volume: 70 Domain: yahoo.com
    Volume: 227 Domain: gmail.com
    Volume: 461 Domain: example.com
    Volume: 1402 Domain: TOTAL

    So in this case we can see that in total we've got 1,402 messages in our Exim mail queue, 461 of those waiting to deliver for our example.com domain, and then 227 waiting to deliver to gmail.com accounts, and 70 to yahoo.com accounts.

You should now be able to login to your server at anytime to check on the current mail activity going on in your Exim mail queue.

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve our Support Center:
Email Address
Optional, but our team may contact you for more information.
Like this Article?

Post a Comment

Name:
Email Address:
Comment:
Are you a bot?
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!