Search Our Database
Linux Tutorial : Exim Mail Cheatsheet
Introduction
Exim is a powerful and flexible message transfer agent (MTA) used for managing email on Unix-like systems. It is widely adopted due to its customizable features and is a popular alternative to other MTAs like Sendmail. This cheatsheet covers commonly used Exim commands to manage email queues, view message logs, and troubleshoot email delivery.
Prerequisites
- Root or administrator access to the Linux system.
- Basic familiarity with Linux commands and Exim’s mail queue management.
Here is a cheat sheet for you to some of the most commonly used commands:-
- Send a specific message
exim -M idexim -M id
exim -M id
- Process the entire mail queue
exim -qfexim -qf
exim -qf
- Flush frozen messages
exim -qffexim -qff
exim -qff
- View message log
exim -Mvl idexim -Mvl id
exim -Mvl id
- View message headers
exim -Mvh idexim -Mvh id
exim -Mvh id
- View message body
exim -Mvb idexim -Mvb id
exim -Mvb id
- Remove message from the queue
exim -Mrm idexim -Mrm id
exim -Mrm id
- Bounce a message
exim -Mg idexim -Mg id
exim -Mg id
- Summary of messages in queue
exim -bp | exiqsummexim -bp | exiqsumm
exim -bp | exiqsumm
- Show what Exim is doing
exiwhatexiwhat
exiwhat
- Show the number of messages in the queue:
exim -bpcexim -bpc
exim -bpc
- List messages in the queue
exim -bpexim -bp
exim -bp
Conclusion
This Exim cheatsheet provides essential commands for managing and troubleshooting your mail server. Regular use of these commands ensures efficient queue management and message tracking. For more in-depth customization or troubleshooting, refer to Exim’s official documentation or contact support.