Basic Exim Commands & Management

The Exim MTA is used by many LAMP setups for mailing needs. cPanel, DirectAdmin and many other panels use it by default. This guide will contain useful Exim tools, configurations and general knowledge.

General Commands

Show mail queue volume (count):

exim -bpc

Show Exim IDs that are in the queue:

exim -bp

Force a delivery of a specific message by ID:

exim -M emailIDhere

Force a queue run:

exim -qf

Force a queue run and flush frozen messages from the queue:

exim -qff

View message log of a specific message by ID:

exim -Mvl messageID

View message body of a specific message by ID:

exim -Mvb messageID

View message header of a specific message by ID:

exim -Mvh messageID

Delete message silently from the queue (no bounce) by message ID:

exim -Mrm messageID

Delete message by bouncing it from the queue by message ID:

exim -Mg messageID