RSS

EXIM Commands

11 Jan

Print a count of the messages in the queue:

~~~~~~~~~~~~~~~~~~~~~~~

root@localhost# exim -bpc

~~~~~~~~~~~~~~~~~~~~~~~

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

~~~~~~~~~~~~~~~~~~~~~~~

root@localhost# exim -bp

~~~~~~~~~~~~~~~~~~~~~~~

Print a summary of messages in the queue (count, volume, oldest, newest, domain, and totals):

~~~~~~~~~~~~~~~~~~~~~~~

root@localhost# exim -bp | exiqsumm

~~~~~~~~~~~~~~~~~~~~~~~

Print what Exim is doing right now:

~~~~~~~~~~~~~~~~~~~~~~~

root@localhost# exiwhat

~~~~~~~~~~~~~~~~~~~~~~~

Display all of Exim’s configuration settings:

~~~~~~~~~~~~~~~~~~~~~~~

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

~~~~~~~~~~~~~~~~~~~~~~~

Remove a message from the queue:

~~~~~~~~~~~~~~~~~~~~~~~

root@localhost# exim -Mrm <message-id> [ <message-id> … ]

~~~~~~~~~~~~~~~~~~~~~~~

Freeze a message:

~~~~~~~~~~~~~~~~~~~~~~~

root@localhost# exim -Mf <message-id> [ <message-id> … ]

~~~~~~~~~~~~~~~~~~~~~~~

View a message’s headers:

~~~~~~~~~~~~~~~~~~~~~~~

root@localhost# exim -Mvh <message-id>

~~~~~~~~~~~~~~~~~~~~~~~

View a message’s body:

~~~~~~~~~~~~~~~~~~~~~~~

root@localhost# exim -Mvb <message-id>

~~~~~~~~~~~~~~~~~~~~~~~

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 😉

Advertisements
 
Leave a comment

Posted by on January 11, 2012 in Uncategorized

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

 
%d bloggers like this: