{"id":25832,"date":"2020-12-21T02:10:59","date_gmt":"2020-12-20T18:10:59","guid":{"rendered":"https:\/\/web.mwwsb.com.my\/pjci\/?post_type=kb&#038;p=25832"},"modified":"2022-09-08T20:15:43","modified_gmt":"2022-09-08T12:15:43","slug":"how-to-clean-exim-mail","status":"publish","type":"kb","link":"https:\/\/www.casbay.com\/guide\/kb\/how-to-clean-exim-mail","title":{"rendered":"HOW TO: Clean Exim Mail"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"25832\" class=\"elementor elementor-25832\" data-elementor-post-type=\"kb\">\n\t\t\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-47abb18 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"47abb18\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1c015e6\" data-id=\"1c015e6\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-751182d elementor-widget elementor-widget-heading\" data-id=\"751182d\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">How to clean the Exim Mail Server Queue? <\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-79e6331 elementor-widget elementor-widget-image\" data-id=\"79e6331\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" src=\"https:\/\/casbay.com\/guide\/wp-content\/uploads\/2021\/02\/Exim-server-under-attack.jpg\" title=\"\" alt=\"\" loading=\"lazy\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-f126b10 elementor-widget elementor-widget-text-editor\" data-id=\"f126b10\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>To flush the Exim queue, log in to the server using <a href=\"https:\/\/www.putty.org\/\" rel=\"noopener\">PuTTY<\/a> and switch to the root user.<\/p><p>After that, type in the following command:<\/p><p><strong>$ exim -qff<\/strong><\/p><p>or<\/p><p><strong>$ exim -qff -d9 (For more details)<\/strong><\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-223a29d elementor-widget elementor-widget-heading\" data-id=\"223a29d\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-medium\">Not Sure How to Show the Exim Mail Queue?\u00a0<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-646940d elementor-widget elementor-widget-text-editor\" data-id=\"646940d\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>The Exim mail server has a number of command-line options including being able to see what\u2019s currently in the mail queue.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-f64f77c elementor-widget elementor-widget-text-editor\" data-id=\"f64f77c\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>Below shows the command to use in order to view the Exim mail queue.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e956f42 elementor-widget elementor-widget-heading\" data-id=\"e956f42\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Command to view the queue:<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-97e2d92 elementor-widget elementor-widget-text-editor\" data-id=\"97e2d92\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>Please issue this command<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-929f1f2 elementor-widget elementor-widget-text-editor\" data-id=\"929f1f2\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<pre class=\"brush: bash\">mailq<\/pre>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-8fa7aeb elementor-widget elementor-widget-text-editor\" data-id=\"8fa7aeb\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>Or<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-bc29504 elementor-widget elementor-widget-text-editor\" data-id=\"bc29504\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<pre class=\"brush: bash\">exim -bp<\/pre>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-fabe8ae elementor-widget elementor-widget-text-editor\" data-id=\"fabe8ae\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>If exim is in \/usr\/sbin and \/usr\/sbin is not in your path, you\u2019ll need to prefix the command with the full path like so:<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e253c84 elementor-widget elementor-widget-text-editor\" data-id=\"e253c84\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<pre class=\"brush: bash\">\/usr\/sbin\/exim -bp<\/pre>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-aa60718 elementor-widget elementor-widget-heading\" data-id=\"aa60718\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Example output:<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a9efd7a elementor-widget elementor-widget-text-editor\" data-id=\"a9efd7a\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>The output from the above commands will look like this:<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a59aa7c elementor-widget elementor-widget-text-editor\" data-id=\"a59aa7c\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>3d 1.2K 1Ka6u5-00032Z-Eb &lt;sender@example.com&gt; receiver@example.com<\/p><p>66h 1.2K 1KaRH0-0007QZ-B5 &lt;sender@example.com&gt; receiver@example.com<\/p><p>9h 22K 1KbLHr-0004ev-An &lt;sender@example.com&gt; receiver@example.com<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-697f847 elementor-widget elementor-widget-text-editor\" data-id=\"697f847\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>In the above example, &#8220;sender@example.com&#8221; is the email address the email that the user sends from while &#8220;receiver@example.com&#8221; is the address the users send to. Often, these would be real email addresses.<\/p><p>For the 3d, 66h, and 9h values, they indicate how long the email message has been in the queue: 3 days, 66 hours, and 9 hours respectively. Moreover, the x.xK values are the message size.<\/p><p>Besides, the 1Ka6u5-00032Z-Eb, etc is the message id and is also the filename of the message on disk. You will find it in \/var\/spool\/exim\/msglog and \/var\/spool\/exim\/input. However, the directories may vary depending on the Linux\/Unix distribution and\/or compiled in settings.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1a2962d elementor-widget elementor-widget-heading\" data-id=\"1a2962d\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Finding the files with the find command<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7fd275c elementor-widget elementor-widget-text-editor\" data-id=\"7fd275c\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<header class=\"entry-header\"><\/header><div class=\"entry-content\"><p>Here is the find command which you can use to locate all the relevant files:<\/p><pre class=\"brush: bash\">find \/var\/spool\/exim -name \"1Ka6u5-00032Z-Eb*\"\n<\/pre><p>It will then display something like this after you issued the command:<\/p><pre class=\"brush: bash\">\/var\/spool\/exim\/msglog\/1Ka6u5-00032Z-Eb\n\/var\/spool\/exim\/input\/1Ka6u5-00032Z-Eb-D\n\/var\/spool\/exim\/input\/1Ka6u5-00032Z-Eb-H\n<\/pre><p>\u00a0<\/p><\/div>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-b87e930 elementor-widget elementor-widget-text-editor\" data-id=\"b87e930\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>Looks like you have learned about how to check and clean the Exim email queue. For more relevant articles regarding the topic of Email, you can visit <em><a href=\"https:\/\/www.casbay.com\/guide\/kbtopic\/email\/\">Knowledge Base<\/a><\/em> anytime.<\/p><p>Happy learning!<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>How to clean the Exim Mail Server Queue? To flush the Exim queue, log in to the server using PuTTY and switch to the root user. After that, type in the following command: $ exim -qff or $ exim -qff -d9 (For more details) Not Sure How to Show the Exim Mail Queue?\u00a0 The Exim [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"no-sidebar","site-content-layout":"page-builder","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"disabled","ast-breadcrumbs-content":"","ast-featured-img":"disabled","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"default","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}}},"kbtopic":[49],"kbtag":[106],"mkb_version":[],"_links":{"self":[{"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kb\/25832"}],"collection":[{"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/comments?post=25832"}],"version-history":[{"count":13,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kb\/25832\/revisions"}],"predecessor-version":[{"id":36993,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kb\/25832\/revisions\/36993"}],"wp:attachment":[{"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/media?parent=25832"}],"wp:term":[{"taxonomy":"kbtopic","embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kbtopic?post=25832"},{"taxonomy":"kbtag","embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kbtag?post=25832"},{"taxonomy":"mkb_version","embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/mkb_version?post=25832"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}