Here is Exim Command Line.
To print a list of the messages in the queue, enter:
To remove a message from the queue, enter:
To remove all messages from the queue, enter:
Print total messages in the queue
Print what Exim is doing currently:
Searching the queue through exiqgrep
Use -f option to find the queue for messages from a specific sender:
Use -r for messages for a specific recipient domain:
Use -i to print just the message-id in the queue:
Print a count of the messages in the queue:
Use -o to print messages older than the specified number of seconds. For example, messages older than 2 day:
Test how exim will route a given address
Display exim configuration file.
Use -y to print messages that are younger than the specified number of seconds.
for example 2 hours
Manage queue
Start a queue run:
Start a queue run for just local deliveries:
Remove all frozen messages:
Remove all messages older than two days (86400 * 2 = 172800 seconds):
Freeze all queued mail from a given sender:
View a message’s headers:
View a message’s body:
View a message’s logs:
Edit the sender of a message: