cPanel Exim Reference
Posted by Talal Ahmad on 26 September 2016 06:44 AM

Basic Exim commands

View all messages in the exim queue:

View only undelivered messages in the exim queue:

View the amount of messages in the exim queue:

Viewing information about a message

The -M flag for exim by itself tells exim to attempt to deliver the specified message ID's, however, when used with the flags below, it is a useful tool for viewing information about the message

View the headers of an individual message:

View the body of an individual message:

View both the headers and body of a message:

Test if messages to an address will be delivered locally, or routed remotely:

This is determined by the files /etc/remotedomains and /etc/localdomains. If a domain is present in localdomains, exim will automatically attempt routing the domain to a local mailbox. If it's not in localdomains, then it will check /etc/remotedomains and then attempt delivering to the MX host.

If you want to view log entries related to a transaction, you can use the Exigrep command to do so. It will not only search for the pattern you give it, but it will also return related transactions

Exiqsumm is a rather simple utility that outputs the amount of messages and age of newest and oldest messages per domain in the following format:

To invoke it, you must pipe the output of exim -bp or exim -bpu to it:

Exiqgrep is a standalone utility that allows you to search for specific information from the exim queue without having to use pipes. From its man page, the available flags are:

So in order to check the exim queue for messages originating from, you'd use:

You can also check for messages destined towards a certain recipient:

Or just return a list of Exim ID's:

Eximstats is yet another useful utility, which will gather hourly statistics for you, it's quite handy for tracking which times you have the most mail traffic:

Sample Output:

(0 vote(s))
Not helpful

Comments (0)
Post a new comment
Full Name:
CAPTCHA Verification 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).