Exim Commands

Basic information

Print a count of the messages in the queue:
root@localhost# exim -bpc 

Print a listing of the messages in the queue (time queued, size, message-id, sender, recipient):
root@localhost# exim -bp

Print a summary of messages in the queue (count, volume, oldest, newest, domain, and totals):
root@localhost# exim -bp | exiqsumm

Print what Exim is doing right now:
root@localhost# exiwhat

Test how exim will route a given address:
root@localhost# exim -bt alias@localdomain.com user@thishost.com <-- alias@localdomain.com router = localuser, transport = local_delivery  

root@localhost# exim -bt user@thishost.com user@thishost.com router = localuser, transport = local_delivery root@localhost# exim -bt user@remotehost.com router = lookuphost, transport = remote_smtp host mail.remotehost.com [1.2.3.4] MX=0 

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.
root@localhost# exim -bh 192.168.11.22

Display all of Exim's configuration settings:
root@localhost# exim -bP 

Managing the queue

The main exim binary (/usr/sbin/exim) is used with various flags to make things happen to messages in the queue.

Start a queue run:
root@localhost# exim -q -v

Start a queue run for just local deliveries:
root@localhost# exim -ql -v

Remove a message from the queue:
root@localhost# exim -Mrm <message-id> [ <message-id> ... ]


View message log of a specific message by ID:
root@localhost# exim -Mvl messageID

View message body of a specific message by ID:


root@localhost# exim -Mvb messageID

View message header of a specific message by ID:

root@localhost# exim -Mvh messageID






Comments (1)

On 18 September 2021 at 06:05 , Divyanshu Rajput said...

Amazing!
Such a nice informative post. I am really glad I found your blog. Thanks for sharing this informative post. Dubai Dedicated Server Hosting