Exim Command Cheat Sheet

Posted by Andrew McCombe on Fri Feb 13, 2015

I’ve had this Exim command cheat sheet in Evernote for a while and thought it would prove useful to others.

Show the mail in queue for $name:

View message header:

View message body:

Force delivery of message:

View the transact of message:

Force delivery of one message:

Force another queue run:

exim -qf

Force another queue run and attempt to flush the frozen message:

View the log for the message:

View the body of the message:

View the header of the message:

Remove message without sending any error message:

exim -Mrm messageID

Giveup and fail message to bounce the message to the Sender:

How much mail in the queue:

How many Frozen mails in the queue:

Deleting Frozen Messages:

To find out, how many messages are there in the mail queue:

To check the mails in the queue:

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

Print what Exim is doing right now:

Test how exim will route a given address:

Run a pretend SMTP transaction from the command line

As if it were coming from the given IP address. This will display Exim’s checks, ACLs, and filters as they are applied. The message will NOT actually be delivered:


You will need to install the swaks program to do this.