====== Exim Cheat Sheet ====== ^ Cheat ^ Code ^ | Show messages on queue | exim -bp | | Display message for id | exim -Mvl id | | Display message header for id |exim -Mvh id | | Display body for id | exim -Mvb id | | Purge message id fro queue | exim -Mrm id | | Check conf syntax | exim -bV | | Test mail delivery path | exim -bt | | Debug delivery process | exim -d -M | | Display queue summary ( - see below) | exim -bp exiqsumm | | Re run queue | exim -qf | | Re run queue and flush frozen messages | exim -qff | | Search queue | exiqgrep | | Search logs | exigrep | | Produce statistics | eximstats /var/log/exim/main.log | # exim -bp | exiqsumm Count Volume Oldest Newest Domain ----- ------ ------ ------ ------ 1 7270 31h 31h att.net 1 44KB 3d 3d helpsavepets.com 1 23KB 46h 46h mail.fmjpadlock.com 28 172KB 4d 13h server1.domain.co.uk 42 297KB 34h 56m yourdomain.co.uk 1 20KB 14h 14h v.v.v.go2fortaleza.com --------------------------------------------------------------- 74 563KB 4d 56m TOTAL Also, see [[http://bradthemad.org/tech/notes/exim_cheatsheet.php| 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 ===== Check messages on the queue ===== # exim -bp | exiqsumm Count Volume Oldest Newest Domain ----- ------ ------ ------ ------ 3 22KB 62h 44h cadugomes.site 1 15KB 18h 18h falingrade.click 1 23KB 40h 40h mail.ipspellistatv.com 1 269KB 41h 41h rainsbrook.co.uk 1 4915 21h 21h un.org --------------------------------------------------------------- 7 334KB 62h 18h TOTAL