{"id":3927,"date":"2014-08-05T10:55:32","date_gmt":"2014-08-05T15:55:32","guid":{"rendered":"https:\/\/secure.rosehosting.com\/blog\/?p=3927"},"modified":"2022-12-19T07:19:44","modified_gmt":"2022-12-19T13:19:44","slug":"useful-exim-commands","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/useful-exim-commands\/","title":{"rendered":"Useful Exim Commands"},"content":{"rendered":"
Exim is a popular,\u00a0powerful and easily configurable mail transfer agent (MTA) included on most Linux operating systems.<\/p>\n
If you want to install Exim on a CentOS VPS<\/a>, all you have to do is install the EPEL repository:<\/p>\n then, install Exim via yum:<\/p>\n <\/p>\n Installing Exim on a Debian VPS<\/a> or an Ubuntu VPS<\/a> is quite easy as it is distributed with default system package manager:<\/p>\n <\/p>\n Listed below are some commonly used useful Exim commands.<\/p>\n <\/p>\n Display the version of\u00a0Exim and the location of Exim configuration file:<\/p>\n Display the current configurations of Exim:<\/p>\n Count the number of email messages in the queue, and display the total number of messages to the standard output:<\/p>\n Display the email messages in the queue (time queued, message size, message id, sender and recipient):<\/p>\n Dispaly a summary of email messages in the queue (count, volume, oldest, newest, domain, and totals):<\/p>\n View the log for the email message:<\/p>\n View the body of the email message:<\/p>\n View the header of the email message:<\/p>\n Search the queue for email messages from a specific email address:<\/p>\n Search the queue for email messages to a specific email address:<\/p>\n Freeze all queued mail from a specific sender:<\/p>\n Remove a single email message with <messageID> from the queue:<\/p>\n Delete all frozen email messages:<\/p>\n Try to deliver the email message with <messageID> from email queue:<\/p>\n Delete all email messages in the queue:<\/p>\n Process the entire queue again:<\/p>\n Force another queue run and attempt to flush the frozen messages:<\/p>\n Test how Exim will route to a given email address:<\/p>\n Of course you don’t have to do any of this if you use one of our Linux VPS Hosting<\/a> services, in which case you can simply ask our expert Linux admins to install Exim for you. They are available 24×7 and will take care of your request immediately.<\/p>\n PS<\/span>.<\/strong> If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n <\/p>\n","protected":false},"excerpt":{"rendered":" Exim is a popular,\u00a0powerful and easily configurable mail transfer agent (MTA) included on most Linux operating systems. If you want … <\/p>\nrpm -Uvh http:\/\/fedora-epel.mirror.lstn.net\/6\/x86_64\/epel-release-6-8.noarch.rpm<\/pre>\n
yum install exim\r\n\r\n<\/pre>\n
apt-get update\r\napt-get install exim4<\/pre>\n
exim -bV<\/pre>\n
exim -bP<\/pre>\n
exim -bpc<\/pre>\n
exim -bp<\/pre>\n
exim -bp | exiqsumm<\/pre>\n
exim -Mvl <messageID><\/pre>\n
exim -Mvb <messageID><\/pre>\n
exim -Mvh <messageID><\/pre>\n
exiqgrep -f user@domain.tld<\/pre>\n
exiqgrep -r l user@domain.tld<\/pre>\n
exiqgrep -i -f l user@domain.tld | xargs exim -Mf<\/pre>\n
exim -Mrm <messageID><\/pre>\n
exiqgrep -z -i | xargs exim -Mrm\r\n\r\nor:\r\n\r\nexim -bpr | grep frozen | awk {'print $3'} | xargs exim -Mrm<\/pre>\n
exim -M <messageID><\/pre>\n
exim -bpru|awk {.print $3'}|xargs exim -Mrm<\/pre>\n
exim -qf<\/pre>\n
exim -qff<\/pre>\n
exim -bt user@domain.tld<\/pre>\n