Exim Cheat Sheet

Cheat Code
Check Mail Queue exim -bp
Check conf syntax exim -bV
Test mail delivery path exim -bt <local or remote email address>
Debug delivery process exim -d -M <exim-message-id>
Display messages on queue exim -bp
Display queue summary exim -bp <pipe> exiqsumm
Search queue exiqgrep
Search logs exigrep
Produce statistics eximstats /var/log/exim/main.log

Also, see Brad's Cheat Sheet

List the mail queue

exiqgrep -i


Clear the entire queue

exiqgrep -i | xargs exim -Mrm

List the mail queue

exiqgrep -i

Force delivery of one message

exim -M emailID

Force queue re-run

exim -qf

Force another queue run and attempt to flush frozen messages

exim -qff

View Log for message

exim -Mvl messageID

View Body for message

exim -Mvb messageID

View Header for message

exim -Mvh messageID

Clear the entire queue, this will delete messages in the queue, not attempt to redeliver.

exiqgrep -i | xargs exim -Mrm

Clear DB of frozen msgs

exim_tidydb -t 10m /var/spool/exim retry
exim_tidydb -t 10m /var/spool/exim wait-tls_smtp

Check routing

exim -bt user@company.com
and with copious debugging enabled:-
exim -d -bt user@company.com

rb/eximcheatsheet.txt · Last modified: 06/08/2019 15:07 by andrew