Linux Exim Cheat Sheet – Most Used Commands

Linux Exim Cheat sheet

Exim is a mail transfer agent used on Unix-like operating systems. Exim is free software distributed under the terms of the GNU General Public License, and it aims to be a general and flexible mailer with extensive facilities for checking incoming e-mail.

root@linux# exim –bpcDisplay the number of message in a queue
root@linux# exim -bpPrint a list of the messages stuck in the queue
root@linux# exim -bp | exiqsummSimilar as above but will display a summary of how many messages are in the queue, total size etc
root@linux# exim -bPWill print exim configuration
root@linux# exim -q -vStart exim queue run, will attempt to deliver all frozen emails
root@linux# exim -ql -vStart exim queue run for just local emails
root@linux# exim -Mrm <message-id> [ <message-id> ]Remove the specified email from the queue
root@linux# exim -M <message-id> Force delivery of an email
root@linux# exim -bp | awk ‘{print $3}’ | xargs exim -MrmRemove all frozen emails from the queue
root@linux# exiqgrep -i -f user@domain.com | xargs exim -Mf Freeze all queued email from sender user@domain.com

Helpful Logs and Files

  • Main Log: /var/log/exim_main.log
  • Reject Log: /var/log/exim_reject.log
  • Panic Log: /var/log/exim_panic.log

Common Directories

  • Mail Queue Directory: /var/spool/exim
  • Configuration Directory: /etc/exim or /etc/exim4
  • Spool Directory: /var/spool/exim

You may also be interested in:

Rsync Linux command

Exim man page

Exim Cheatsheet, Linux, Unix