Exim is a message transfer agent (MTA) developed at the University of Cambridge for use on Unix systems connected to the Internet. It is freely available under the terms of the GNU General Public Licence. In style it is similar to Smail 3, but its facilities are more general. There is a great deal of flexibility in the way mail can be routed, and there are extensive facilities for checking incoming mail. Exim can be installed in place of Sendmail, although the configuration of Exim is quite different.
Here is a cheatsheet for you to some of the more commonly used commands.
- exim -M id #Try to send the message with id id
- exim -qf #Tell exim to process the entire queue again
- exim -qff #same as qf, but it will flush the frozen messages
- exim -Mvl id #view the message log for message id
- exim -Mvh id #view message id’s headers
- exim -Mvb id #view message id’s body
- exim -Mrm id #remove message id from the queue
- exim -Mg id #fail and send a bounce to the sender
- exim -bp | exiqsumm #Print summary of the messages in the queue
- exiwhat #show what exim is doing right now
- exim -bpc #show number of messages in the queue
- exim -bp #print list of messages in the queue