{"id":244,"date":"2009-10-23T16:20:47","date_gmt":"2009-10-23T20:20:47","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=244"},"modified":"2013-03-20T08:41:11","modified_gmt":"2013-03-20T12:41:11","slug":"howto-manage-mail-queue-in-qmail-using-qmhandle","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/howto-manage-mail-queue-in-qmail-using-qmhandle","title":{"rendered":"Howto manage Mail queue in qmail using Qmhandle?"},"content":{"rendered":"<p><strong>Qmhandle is a 3rd party application to manage mail queue of Qmail.<\/strong> Though Qmail has it&#8217;s own commands but it&#8217;s worth using Qmhandle.<\/p>\n<p><strong>1)<\/strong> Download the package in a temporary directory:<\/p>\n<blockquote>\n<pre><strong><span style=\"color: #0000ff;\"># cd \/usr\/local\/src<\/span><\/strong><\/pre>\n<\/blockquote>\n<blockquote>\n<pre><strong><span style=\"color: #0000ff;\"># wget http:\/\/sourceforge.net\/projects\/qmhandle\/files\/qmhandle-1.3\/qmhandle-\\\r\n1.3.0\/qmhandle-1.3.0.tar.gz\/download<\/span><\/strong><\/pre>\n<\/blockquote>\n<p><strong>2)<\/strong> Unpack it and goto the directory<\/p>\n<blockquote>\n<pre><strong><span style=\"color: #0000ff;\"># tar -zxf qmhandle-1.3.0.tar.gz\r\n# cd qmhandle-1.3.0<\/span><\/strong><\/pre>\n<\/blockquote>\n<p>You will notice a &#8220;qmHandle&#8221; file inside the directory using which you can manage the Qmail mail queue.<\/p>\n<p><strong>1.<\/strong> To check the number of emails in the queue<\/p>\n<blockquote>\n<pre> <strong><span style=\"color: #0000ff;\"># .\/qmHandle -s<\/span><\/strong><\/pre>\n<\/blockquote>\n<p><strong>2.<\/strong> Force Qmail to process the mail queue<\/p>\n<blockquote>\n<pre><strong><span style=\"color: #0000ff;\"> # .\/qmHandle -a<\/span><\/strong><\/pre>\n<\/blockquote>\n<p><strong>3.<\/strong> List emails with all the details like, Subject, From and To address<\/p>\n<blockquote>\n<pre> # <strong><span style=\"color: #0000ff;\">.\/qmHandle -l<\/span><\/strong><\/pre>\n<\/blockquote>\n<p><strong>4.<\/strong> List emails sorted by Subject, From address etc<\/p>\n<blockquote>\n<pre><strong><span style=\"color: #0000ff;\"> # .\/qmHandle -l | grep Subject | sort\r\n # .\/qmHandle -l | grep From | sort <\/span><\/strong><\/pre>\n<\/blockquote>\n<p><strong>5.<\/strong> Delete all emails having a specific subject, for example &#8216;test&#8217;<\/p>\n<blockquote>\n<pre> <strong><span style=\"color: #0000ff;\"># .\/qmHandle -Stest<\/span><\/strong><\/pre>\n<\/blockquote>\n<p><strong>6.<\/strong> Delete all messages<\/p>\n<blockquote>\n<pre><strong><span style=\"color: #0000ff;\"> # .\/qmHandle -D<\/span><\/strong><\/pre>\n<\/blockquote>\n<p><strong>Note:<\/strong> The 1.3 version of Qmhandle have problems deleting emails, in such a case download an older version i.e. qmhandle-1.2.3 to delete the emails.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Qmhandle is a 3rd party application to manage mail queue of Qmail. Though Qmail has it&#8217;s own commands but it&#8217;s worth using Qmhandle.<br \/>\n1) Download the package in a temporary directory:<\/p>\n<p># cd \/usr\/local\/src<\/p>\n<p># wget http:\/\/sourceforge.net\/projects\/qmhandle\/files\/qmhandle-1.3\/qmhandle-\\<br \/>\n1.3.0\/qmhandle-1.3.0.tar.gz\/download<\/p>\n<p>2) Unpack it and goto the directory<\/p>\n<p># tar -zxf qmhandle-1.3.0.tar.gz<br \/>\n# cd qmhandle-1.3.0<\/p>\n<p>You will notice a &#8220;qmHandle&#8221; file inside the directory using which you can manage the Qmail mail queue.<br \/>\n1. To check the number of emails in the queue<\/p>\n<p> # .\/qmHandle -s<\/p>\n<p>2. Force Qmail to process the mail queue<\/p>\n<p> # .\/qmHandle -a<\/p>\n<p>3. List emails with all [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[1183,1185,289,1184,292,1186],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/244"}],"collection":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/comments?post=244"}],"version-history":[{"count":5,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/244\/revisions"}],"predecessor-version":[{"id":2152,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/244\/revisions\/2152"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=244"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=244"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=244"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}