Commands for troubleshoot mail issues in exim mail server.

Posted: February 3, 2013 in Exim

To check the number of messages in the queue:
#exim -bpc

To check the listing of the messages in the queue (time queued, size, message id, sender, recipient):
#exim -bp

To check the summary of messages in the queue (count, volume, oldest, newest, domain, and total):
#exim -bp| exiqsumm

To check the current status of Exim:

To search the queue for messages from a specific sender:
#exigrep -f

To search the queue for a specific recipient:
#exigrep -r

To print the message id of the entire queue:
#exiqgrep -i

To remove a message from the queue:
#exim -Mrm <message id>

To Freeze a message:
#exim -Mf <message id>

To forcefully deliver a message:
#exim -M <message id>

To force a message to Freeze and bounce as “Canceled by Admin” :
#exim -Mg <message id>

To remove all frozen mails:
#exigrep -z -i | xargs exim -Mrm

To freeze all queued mail for a given sender:
#exiqgrep -i -f | xargs exim -Mf

To view a message body:
#exim -Mvb <message id>


Leave a Reply

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

You are commenting using your 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