{"id":471,"date":"2018-12-31T10:52:40","date_gmt":"2018-12-31T10:52:40","guid":{"rendered":"http:\/\/linuxresellerwebhosting.in\/blog\/?p=471"},"modified":"2019-02-19T10:15:52","modified_gmt":"2019-02-19T10:15:52","slug":"useful-exim-commands","status":"publish","type":"post","link":"https:\/\/linuxresellerwebhosting.in\/blog\/useful-exim-commands\/","title":{"rendered":"Useful Exim Commands"},"content":{"rendered":"\n<p>In UNIX system, the message transfer agent used (MTA) is Exim. Under the<br>\n terms of GNU General Public License, the Exim is freely available. Exim<br>\n is used for locating the spam activity on the servers. Using the Exim <br>\ncommand, we can route the mail and facilities for checking incoming <br>\nmail. Configuration of Exim is little bit different.<\/p>\n\n\n\n<p>1) Print a count of the messages in the queue: <br>\n   root@localhost# exim -bpc<\/p>\n\n\n\n<p>2) Print a listing of the messages in the queue (time queued, size, message-id, sender, recipient): <br>\n   root@localhost#  exim -bp<\/p>\n\n\n\n<p>3) Print a summary of messages in the queue (count, volume, oldest, newest, domain, and totals):<br>\n   root@localhost#  exim -bp | exiqsum<\/p>\n\n\n\n<p>4) Print what Exim is doing right now:<br>\n   root@localhost#  exiwhat<\/p>\n\n\n\n<p>5) Test how exim will route a given address:<br>\n   root@localhost# exim -bt alias@localdomain.com<br>\n   user@thishost.com<br>\n    &lt;&#8211; alias@localdomain.com<br>\n   router = localuser, transport = local_delivery<br>\n   root@localhost# exim -bt user@thishost.com<br>\n   user@thishost.com<br>\n   router = localuser, transport = local_delivery<br>\n   root@localhost# exim -bt user@remotehost.com<br>\n   router = lookuphost, transport = remote_smtp<br>\n   host mail.remotehost.com [1.2.3.4] MX=0<\/p>\n\n\n\n<p>6) Display all of Exim&#8217;s configuration settings:<br>\n   root@localhost# exim -bP<\/p>\n\n\n\n<p>7) Use -f to search the queue for messages from a specific sender:<br>\n   root@localhost# exiqgrep -f [luser]@domain<\/p>\n\n\n\n<p>8) Use -r to search the queue for messages for a specific recipient\/domain:<br>\n   root@localhost# exiqgrep -r [luser]@domain<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In UNIX system, the message transfer agent used (MTA) is Exim. Under the terms of GNU General Public License, the<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"colormag_page_container_layout":"default_layout","colormag_page_sidebar_layout":"default_layout","footnotes":""},"categories":[1],"tags":[],"class_list":["post-471","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/linuxresellerwebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/471","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxresellerwebhosting.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxresellerwebhosting.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxresellerwebhosting.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxresellerwebhosting.in\/blog\/wp-json\/wp\/v2\/comments?post=471"}],"version-history":[{"count":4,"href":"https:\/\/linuxresellerwebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/471\/revisions"}],"predecessor-version":[{"id":479,"href":"https:\/\/linuxresellerwebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/471\/revisions\/479"}],"wp:attachment":[{"href":"https:\/\/linuxresellerwebhosting.in\/blog\/wp-json\/wp\/v2\/media?parent=471"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxresellerwebhosting.in\/blog\/wp-json\/wp\/v2\/categories?post=471"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxresellerwebhosting.in\/blog\/wp-json\/wp\/v2\/tags?post=471"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}