{"id":454,"date":"2021-07-23T12:30:14","date_gmt":"2021-07-23T12:30:14","guid":{"rendered":"https:\/\/ssdsunucum.com\/blog\/how-to-manage-your-exim-queue\/"},"modified":"2021-07-23T12:30:14","modified_gmt":"2021-07-23T12:30:14","slug":"how-to-manage-your-exim-queue","status":"publish","type":"post","link":"https:\/\/ssdsunucum.com\/blog\/how-to-manage-your-exim-queue\/","title":{"rendered":"How to Manage Your Exim Queue"},"content":{"rendered":"<\/p>\n<div class=\"col-md-9\">\n<div class=\"flex-column flex-md-row article-header\"><\/div>\n<hr>\n<h2 id=\"overview\">Overview<\/h2>\n<p>This document describes how to manage your Exim queue. These commands can help facilitate how Exim sends and receives mail.<\/p>\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n<p>You <strong>must<\/strong> have <code>root<\/code>-user access to perform these commands. If you do not, contact your hosting provider for help with your Exim queue.<\/p>\n<\/p><\/div>\n<\/div>\n<h2 id=\"exim-commands-to-manage-your-email\">Exim commands to manage your email<\/h2>\n<ul>\n<li>\n<p>To determine the total count of mail in the queue, use the <code>exim -bpc<\/code> command.<\/p>\n<\/li>\n<li>\n<p>To remove a single message from the queue, use the <code>exim -Mrm &lt;MessageID&gt;<\/code> command:<\/p>\n<\/li>\n<li>\n<p>To remove messages from a specific email account in the mail queue, use the following command:\n<\/p>\n<div class=\"highlight\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">    exiqgrep -f user@compromised.tld -i | xargs exim -Mrm\n    <\/code><\/pre>\n<\/div>\n<\/li>\n<li>\n<p>To delete the entire queue, use the following command:\n<\/p>\n<div class=\"highlight\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">    exiqgrep -i | xargs exim -Mrm\n    <\/code><\/pre>\n<\/div>\n<\/li>\n<\/ul>\n<div class=\"callout callout-danger\">\n<div class=\"callout-heading\">Warning:<\/div>\n<div class=\"callout-content\">\n<p>This will remove <strong>all<\/strong> email from the mail queue, which may include emails you want to send or receive. You <strong>cannot<\/strong> recover deleted emails.<\/p>\n<\/p><\/div>\n<\/div>\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n<p>If you receive a message that an email <code>is locked<\/code>, the system is in the process of sending the message.<br \/>\n  For example, one message could be removed and another one could not:\n  <\/p>\n<div class=\"highlight\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">  Message 1JoX25-1168Q4-ME has been removed\n  Message ZB3747-P1rn5-23 is locked<\/code><\/pre>\n<\/div><\/div>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Overview This document describes how to manage your Exim queue. These commands can help facilitate how Exim sends and receives mail. Note: You must have root-user access to perform these commands. If you do not, contact your hosting provider for help with your Exim queue. Exim commands to manage your email To determine the total &hellip;<\/p>\n","protected":false},"author":1,"featured_media":455,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts\/454"}],"collection":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/comments?post=454"}],"version-history":[{"count":0,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts\/454\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/media\/455"}],"wp:attachment":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/media?parent=454"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/categories?post=454"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/tags?post=454"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}