1 Print a count of the messages in the queue:
~~~~~~~~~~~~~~~~~~~~~~~
root@localhost# exim -bpc
~~~~~~~~~~~~~~~~~~~~~~~
2 Print a listing of the messages in the queue (time queued, size, message-id, sender, recipient):
~~~~~~~~~~~~~~~~~~~~~~~
root@localhost# exim -bp
~~~~~~~~~~~~~~~~~~~~~~~
3 Print a summary of messages in the queue (count, volume, oldest, newest, domain, and totals):
~~~~~~~~~~~~~~~~~~~~~~~
root@localhost# exim -bp | exiqsumm
~~~~~~~~~~~~~~~~~~~~~~~
4 Print what Exim is doing right now:
~~~~~~~~~~~~~~~~~~~~~~~
root@localhost# exiwhat
~~~~~~~~~~~~~~~~~~~~~~~
5 Display all of Exim’s configuration settings:
~~~~~~~~~~~~~~~~~~~~~~~
root@localhost# exim -bP
~~~~~~~~~~~~~~~~~~~~~~~
6 Use -f to search the queue for messages from a specific sender:
~~~~~~~~~~~~~~~~~~~~~~~
root@localhost# exiqgrep -f [luser]@domain
~~~~~~~~~~~~~~~~~~~~~~~
7 Use -r to search the queue for messages for a specific recipient/domain:
~~~~~~~~~~~~~~~~~~~~~~~
root@localhost# exiqgrep -r [luser]@domain
~~~~~~~~~~~~~~~~~~~~~~~
8 Remove a message from the queue:
~~~~~~~~~~~~~~~~~~~~~~~
root@localhost# exim -Mrm <message-id> [ <message-id> ... ]
~~~~~~~~~~~~~~~~~~~~~~~
9 Freeze a message:
~~~~~~~~~~~~~~~~~~~~~~~
root@localhost# exim -Mf <message-id> [ <message-id> ... ]
~~~~~~~~~~~~~~~~~~~~~~~
10 View a message’s headers:
~~~~~~~~~~~~~~~~~~~~~~~
root@localhost# exim -Mvh <message-id>
~~~~~~~~~~~~~~~~~~~~~~~
11 View a message’s body:
~~~~~~~~~~~~~~~~~~~~~~~
root@localhost# exim -Mvb <message-id>
~~~~~~~~~~~~~~~~~~~~~~~
12 To remove the frozen mail fire
~~~~~~~~~~~~~~~~~~~~~~~
exim -bpr | grep frozen | awk {‘print $3′} | xargs exim -Mrm
~~~~~~~~~~~~~~~~~~~~~~~
The above mentioned commands are used to trouble shoot emails on cpanel server.
Hope You Trouble Shoot Well