Useful Exim Commands with examples

If you found this post helpful, kindly share it and show your support :)

Exim is a mail transfer agent (MTA) for UNIX and Linux systems, which is responsible for receiving, routing, and delivering e-mail messages.

1) To get the message count in the queue

exim -bpc                                                     OR                                                          exim -bpr | grep "<" | wc -l

2) To list the messages in the queue

exim -bp

3) To get the summary of messages in the queue (count, volume, oldest, newest, domain, and totals)

exim -bp | exiqsumm

4) To view the header part of the message

exim -Mvh <message-id>

5) To view the body of the message

exim -Mvb <message-id>

6) To remove a message from the queue

exim -Mrm <message-id>

7) To force delivery message

exim -M <message-id>

8) To know the number of frozen emails in a queue

exim -bpr | grep frozen | wc -l

9) To delete the frozen mails from the queue

exim -bpr | grep frozen | awk {'print $3'} | xargs exim -Mrm  OR                                                      exiqgrep -z -i | xargs exim -Mrm

10) To see the logs of a message in exim server

exim -Mvl <message-id>

Loading

Mohammed Noufal

I'm Mohammed Noufal, working as Server Admin for the last 10 years.  In my day-to-day life, l had to face different problems related to Web-hosting. On my website Errorlogz.com, you can find solutions for different Web-hosting-related problems. Sometimes, I spent hours searching/googling to find a solution. This inspired me to start a website that gives solutions to different Webhosting problems. This website includes basic Linux and windows commands, and different control panels like cPanel, Plesk, DirectAdmin, Webmin & so on. You can find solutions and or suggestions for different Web-hosting related problems from here. Hence I would like to say Errorlogz is your server protector.  I will be glad if Logdetect can help any one of the Server admins to find a solution to his problem.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *