EXIM - useful commands

Print a listing of the messages in the queue

exim -bp

Print a count of the messages in the queue

exim -bpc

Force another queue run

exim -qf

Force another queue run and attempt to flush the frozen message

exim -qff

Force delivery of one message

exim -M email-id

View the log for the message

exim -Mvl message-id

View the body of the message

exim -Mvb message-id

View the header of the message

exim -Mvh message-id

Remove message from the queue without sending any error message

exim -Mrm message-id

Fail message to bounce the message to the Sender

exim -Mg message-id

Freeze a message

exim -Mf message-id

Thaw a message:

exim -Mt message-id

How many Frozen mails on the queue

exim -bpr | grep frozen | wc -l

Deleteing all Frozen messages

exim -bpr | grep frozen | awk {‘print $3’} | xargs exim -Mrm