{"id":2218,"date":"2014-04-17T06:52:48","date_gmt":"2014-04-17T06:52:48","guid":{"rendered":"https:\/\/www.serverslot.com\/hosting-issues\/?p=2218"},"modified":"2014-04-28T18:42:43","modified_gmt":"2014-04-28T18:42:43","slug":"how-to-remove-a-huge-mail-spam-exim-queue","status":"publish","type":"post","link":"https:\/\/serverslot.com\/hosting-issues\/how-to-remove-a-huge-mail-spam-exim-queue\/","title":{"rendered":"How to remove a huge mail spam exim queue"},"content":{"rendered":"<p>If you server get victimized by spam and you fails in deleting emails from email queue using whm\/cpanel interface then you need to using command line interface to delete that huge email queue in no time.<\/p>\n<p>Simply login to your server as root user using any command line interface like putty.<\/p>\n<p>and after login run this command.<\/p>\n<p>exim -bp | awk &#8216;\/^ *[0-9]+[mhd]\/{print &#8220;exim -Mrm &#8221; $3}&#8217; | bash<\/p>\n<p>You may also use these commands to delete the whole mail queue, if the above command will not work for you.<\/p>\n<p><strong><span style=\"color: #333399;\">exim -bpru|awk {\u2018print $3?}|xargs exim -Mrm<\/span><\/strong><br \/>\n<strong><span style=\"color: #333399;\">exim -bp | grep &lt; | awk \u2018{print $3}\u2019 | xargs exim -Mrm<\/span><\/strong><\/p>\n<pre><\/pre>\n<p>If you wish to delete only frozen emails, use below command<\/p>\n<pre><\/pre>\n<p><strong><span style=\"color: #333399;\">exiqgrep -z -i | xargs exim -Mrm<\/span><\/strong><br \/>\nAnother command to delete server&#8217;s frozen e-mails<\/p>\n<pre><\/pre>\n<p><strong><span style=\"color: #333399;\">exim -bp | awk \u2018$6 == \u201cfrozen\u201d {print $3}\u2019 | xargs exim -Mrm<\/span><\/strong> And before deleting frozen emails, you want to check the number of frozen emails, us below command <strong><span style=\"color: #333399;\">exim -bp | grep frozen | wc -l<\/span><\/strong><\/p>\n<pre><span style=\"color: #333399;\"><em><strong>\u00a0<\/strong><\/em><\/span><\/pre>\n<p>it will delete all the emails from queue and make your server fresh and then your clients would be able to send and receive emails, dont forget to restart exim and other email services, you may even restart them from WHM&gt;Restart Services.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you server get victimized by spam and you fails in deleting emails from email queue using whm\/cpanel interface then you need to using command \u2026 <a href=\"https:\/\/serverslot.com\/hosting-issues\/how-to-remove-a-huge-mail-spam-exim-queue\/\">more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/serverslot.com\/hosting-issues\/wp-json\/wp\/v2\/posts\/2218"}],"collection":[{"href":"https:\/\/serverslot.com\/hosting-issues\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/serverslot.com\/hosting-issues\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/serverslot.com\/hosting-issues\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/serverslot.com\/hosting-issues\/wp-json\/wp\/v2\/comments?post=2218"}],"version-history":[{"count":0,"href":"https:\/\/serverslot.com\/hosting-issues\/wp-json\/wp\/v2\/posts\/2218\/revisions"}],"wp:attachment":[{"href":"https:\/\/serverslot.com\/hosting-issues\/wp-json\/wp\/v2\/media?parent=2218"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/serverslot.com\/hosting-issues\/wp-json\/wp\/v2\/categories?post=2218"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/serverslot.com\/hosting-issues\/wp-json\/wp\/v2\/tags?post=2218"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}