Useful exim command
The current version of exim is: Exim version 4.69
How to check the version? hehe, I always tries on exim -v, and get no result. Today, just know that the command to get the version is exim -bV
Result:
root@yumyum [/usr/sbin]# exim -bV
Exim version 4.69 #1 built 10-Jun-2008 11:02:29
Copyright (c) University of Cambridge 2006
Berkeley DB: Sleepycat Software: Berkeley DB 4.3.29: (January 7, 2007)
Support for: crypteq iconv() PAM Perl OpenSSL Content_Scanning Old_Demime Experimental_SPF Experimental_SRS Experimental_DomainKeys Experimental_DKIM
Lookups: lsearch wildlsearch nwildlsearch iplsearch dbm dbmnz
Authenticators: cram_md5 plaintext spa
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir autoreply pipe smtp
Size of off_t: 8
Configuration file is /etc/exim.conf
Some other useful command:
exim -bp: list the content of the mail queue
exim -bpc: (with c): it will display the number of mail in the queue
exim -bt (email account): for testing delivery
Result (for un-router domain):
root@yumyum [~]# exim -bt loh@testfyg.com
loh@testfyg.com is undeliverable: The mail server could not deliver mail to loh@testfyg.com. The account or domain may not exist, they may be blacklisted, or missing the proper dns entries.
exim -d -M <Msd ID>: will deliver a message with debugging turn on
*d stand for debugging; M stand for message ID
exim -Mrm <list of message-ids>:delete the mail in the queue
You can find more from this site.