Sarathlal N

Basic commands to manage Exim mail server

The Exim is a light weight & highly configurable message transfer agent (MTA) for Unix or Unix-like operating systems with GNU licence.

When I have to manage web server, I like to use Exim for my applications due to the easiness.

We can easily manage exim via command line.

  • exim -bp - shows messages in queue
  • exim -bpc - shows the no.of messages in queue
  • exim -bP - shows the current configurations of exim
  • exim -bV - shows the version and configuration file of exim
  • exiwhat - Finding out what Exim processes are doing
  • exim -qf - Force another queue run
  • exim -qff - Force another queue run and attempt to flush frozen messages
  • exim -Mvl messageID - View Log for message
  • exim -Mvb messageID - View Body for message
  • exim -Mvh messageID - View Header for message
  • exim -Mrm messageID - Remove message (no errors sent)
  • exim -Mg messageID - Give up and fail message, message bounces to sender
  • exiqgrep -zi - List Mail ID (-z : frozen mails only, -i : display message IDs only)
  • exim -M emailID - Force delivery of one message

Looking for a skilled WordPress/WooCommerce developer? I'm currently available for freelance, contract, or full-time remote opportunities! Let's create something amazing together. Send me a quick message, and I'll respond within 24 hours!

Recent Posts

  1. REST API Methods Explained with Best Practices for Building Clean and Secure APIs
  2. My 28-Day Plan to Master Modern WordPress Development Using AI Tools
  3. Scaling WordPress - How Custom Database Tables Solve the Post Meta Bottleneck
  4. WordPress Transients Explained - A Developer's Guide to Site Performance
  5. Behind the Click - The Hidden Journey of Your Web Requests

Your Questions / Comments

If you found this article interesting, found errors, or just want to discuss about it, please get in touch.