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 –bpc | Display the number of message in a queue |
root@linux# exim -bp | Print a list of the messages stuck in the queue |
root@linux# exim -bp | exiqsumm | Similar as above but will display a summary of how many messages are in the queue, total size etc |
root@linux# exim -bP | Will print exim configuration |
root@linux# exim -q -v | Start exim queue run, will attempt to deliver all frozen emails |
root@linux# exim -ql -v | Start 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 -Mrm | Remove 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: