Useful Exim Commands from Shell

exim -bpc
counts all email in the mail queue

exim -bp
mailq — The mailq is relevant as it gives your the email IDs.

exim -M emailID
force delivery of one message

exim -qf
Force another queue run

exim -qff
Force another queue run and attempt to flush frozen messages

exim -Mvl messageID
View Log for message

exim -Mvb messageID
View Body for message

exim -Mvh messageID
View Header for message

exim -Mrm messageID
ReMove message (no errors sent)

exim -Mg messageID
Give up and fail message, message bounces to sender


Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/htscanner.so' - /opt/cpanel/ea-php56/root/usr/lib64/php/modules/htscanner.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: Module 'ctype' already loaded in Unknown on line 0

Warning: Module 'curl' already loaded in Unknown on line 0

Warning: Module 'dom' already loaded in Unknown on line 0

Warning: Module 'ftp' already loaded in Unknown on line 0

Warning: Module 'gd' already loaded in Unknown on line 0

Warning: Module 'json' already loaded in Unknown on line 0

Warning: Module 'mbstring' already loaded in Unknown on line 0

Warning: Module 'mysqlnd' already loaded in Unknown on line 0

Warning: Module 'mysql' already loaded in Unknown on line 0

Warning: Module 'mysqli' already loaded in Unknown on line 0

Warning: Module 'PDO' already loaded in Unknown on line 0

Warning: Module 'pdo_mysql' already loaded in Unknown on line 0

Warning: Module 'pdo_sqlite' already loaded in Unknown on line 0

Warning: Module 'Phar' already loaded in Unknown on line 0

Warning: Module 'posix' already loaded in Unknown on line 0

Warning: Module 'SimpleXML' already loaded in Unknown on line 0

Warning: Module 'sqlite3' already loaded in Unknown on line 0

Warning: Module 'tokenizer' already loaded in Unknown on line 0

Warning: Module 'xml' already loaded in Unknown on line 0

Warning: Module 'wddx' already loaded in Unknown on line 0

Warning: Module 'xmlreader' already loaded in Unknown on line 0

Warning: Module 'xmlwriter' already loaded in Unknown on line 0

Warning: Module 'xsl' already loaded in Unknown on line 0