Use exim and exiqsumm to show mail queued by domain

Posted in Email Servers -

There are a number of exim commands to see what's in the mail queue etc; sometimes you need to be able to see what's in the queue by domain, to see where hold ups might be.

exim & exiqsumm

This command gets what's currently in the mail queue and then pipes it through exiqsumm to collate the data into a useful format, instead of outputting every single queued message:

exim -bp | exiqsumm

Either run it as root or using sudo. You may need to pass the full path to the exim and/or exiqsumm commands (e.g. sudo exim -bp | /usr/sbin/exiqsumm).

Output

By domain, the output shows the number of messages, the total kb/mb of mail queued and the oldest and newest messages queued:

Count  Volume  Oldest  Newest  Domain
-----  ------  ------  ------  ------
   11   495KB     14h     14h  gmail.com
   20   900KB     14h     14h  homtail.com
  154  6930KB     14h     14h  yahoo.com

If you are using exim for sending bulk email (email marketing), using this command can help to show if you have any issues sending to particular mail services/servers (e.g. Gmail, Yahoo, Hotmail, etc). Then use the logs / other exim output to work out what the issue is to help fix it.



Related posts:


Comments