{"id":6812,"date":"2017-06-24T10:37:42","date_gmt":"2017-06-24T02:37:42","guid":{"rendered":"http:\/\/rmohan.com\/?p=6812"},"modified":"2017-06-24T10:37:42","modified_gmt":"2017-06-24T02:37:42","slug":"manage-the-qmail-message-queue-using-qmhandle","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=6812","title":{"rendered":"Manage the &#8216;qmail&#8217; message queue using qmHandle"},"content":{"rendered":"<div class=\"row\">\n<div class=\"col-xs-12\">\n<h1 class=\"detail-header\">Manage the &#8216;qmail&#8217; message queue using qmHandle<\/h1>\n<div class=\"post-meta\"><\/div>\n<\/div>\n<\/div>\n<div class=\"posts\">\n<article class=\"detail\">\n<fieldset>\n<legend>Solution<\/legend>\n<\/fieldset>\n<p>qmHandle, a perl script which gives you greater functionality &#8211; allows you to view and manage the &#8216;qmail&#8217; message queue.<\/p>\n<p>It can be install by excuting the following commands<\/p>\n<p>cd \/usr\/bin<\/p>\n<p>wget -O &#8211; &#8220;http:\/\/easynews.dl.sourceforge.net\/sourceforge\/qmhandle\/qmhandle-1.2.0.tar.gz&#8221; | tar xzf<\/p>\n<p>Following commands are useful to manage the queue<\/p>\n<p># List emails by subject wise:<\/p>\n<p>qmHandle -l |awk &#8216;\/Subject\/ {print}&#8217;|sort | more<\/p>\n<p>#qmHandle -tX &#8216;string&#8217; ( delete all messages with matching headers, where string to match and X specifies:<\/p>\n<p>&#8216;f&#8217; : Who the message is from,<\/p>\n<p>&#8216;t&#8217; : Who the message is to; or,<\/p>\n<p>&#8216;s&#8217; : What the message&#8217;s subject is<\/p>\n<p>#qmHandle -M ( delete all msgs in the queue from MAILER-DAEMON@hostname)<\/p>\n<p># Forcefully send emails.<br \/>\nqmHandle -a<\/p>\n<p># List message queues<br \/>\nqmHandle\u00a0\u00a0 -l<\/p>\n<p># delete all messages in the queue<br \/>\nqmHandle\u00a0\u00a0 -D<\/p>\n<p># list local message queue<br \/>\nqmHandle\u00a0\u00a0 -L<\/p>\n<p># list remote message queue<br \/>\nqmHandle\u00a0\u00a0 -R<\/p>\n<p># display message number N<br \/>\nqmHandle\u00a0\u00a0 -mN<\/p>\n<p># delete message number N<br \/>\nqmHandle\u00a0\u00a0 -dN<\/p>\n<p># delete all messages that contain text as Subject<br \/>\nqmHandle\u00a0\u00a0 -Stext<\/p>\n<p># delete all messages that contain text as From email address<br \/>\nqmHandle\u00a0\u00a0 -Ftext<\/p>\n<p># delete all messages that contain text as To email address<br \/>\nqmHandle\u00a0\u00a0 -Ttext<\/p>\n<\/article>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p> Manage the &#8216;qmail&#8217; message queue using qmHandle Solution <\/p>\n<p>qmHandle, a perl script which gives you greater functionality &#8211; allows you to view and manage the &#8216;qmail&#8217; message queue.<\/p>\n<p>It can be install by excuting the following commands<\/p>\n<p>cd \/usr\/bin<\/p>\n<p>wget -O &#8211; &#8220;http:\/\/easynews.dl.sourceforge.net\/sourceforge\/qmhandle\/qmhandle-1.2.0.tar.gz&#8221; | tar xzf<\/p>\n<p>Following commands are useful to manage the queue<\/p>\n<p> [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6812"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6812"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6812\/revisions"}],"predecessor-version":[{"id":6813,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6812\/revisions\/6813"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6812"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6812"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6812"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}