<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Clearing the mail queue? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/clearing-the-mail-queue/m-p/4075995#M308261</link>
    <description>You can avoid the for-loop by leveraging awk's built-in loop for the same effect:&lt;BR /&gt;&lt;BR /&gt;# ls -1 /var/spool/mqueue/* | xargs rm</description>
    <pubDate>Wed, 26 Sep 2007 11:10:11 GMT</pubDate>
    <dc:creator>Sandman!</dc:creator>
    <dc:date>2007-09-26T11:10:11Z</dc:date>
    <item>
      <title>Clearing the mail queue?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/clearing-the-mail-queue/m-p/4075987#M308253</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;It has been a while since I had to deal with mail on a UNIX host.  Well, issued a mailq command on my system, and there is a lot of undelivered mail.  How do I clear out the queue, as I don't want these massages to be sent?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!</description>
      <pubDate>Tue, 25 Sep 2007 16:04:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/clearing-the-mail-queue/m-p/4075987#M308253</guid>
      <dc:creator>Patrick Ware_1</dc:creator>
      <dc:date>2007-09-25T16:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: Clearing the mail queue?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/clearing-the-mail-queue/m-p/4075988#M308254</link>
      <description>/var/spool/mqueue has all the mail in the queue.&lt;BR /&gt;&lt;BR /&gt;delete the files in it.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 25 Sep 2007 16:07:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/clearing-the-mail-queue/m-p/4075988#M308254</guid>
      <dc:creator>Tim Nelson</dc:creator>
      <dc:date>2007-09-25T16:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Clearing the mail queue?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/clearing-the-mail-queue/m-p/4075989#M308255</link>
      <description>Here is also old thread about mqueue handling - &lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=853749" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=853749&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You can clean up it periodicaly.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;ivan</description>
      <pubDate>Tue, 25 Sep 2007 17:15:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/clearing-the-mail-queue/m-p/4075989#M308255</guid>
      <dc:creator>Ivan Krastev</dc:creator>
      <dc:date>2007-09-25T17:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: Clearing the mail queue?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/clearing-the-mail-queue/m-p/4075990#M308256</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;If access to the Internet is normal,and DNS resolution is good, most mail will be delivered in seconds.&lt;BR /&gt;&lt;BR /&gt;sendmail -v -q &lt;BR /&gt;&lt;BR /&gt;This will attempt to run the queue and provide verbose output for failures. You should look at some of the failures before manually clearing the mail queue.&lt;BR /&gt;&lt;BR /&gt;You may find spam or something you should research before sending it to the bit bucket.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 25 Sep 2007 17:37:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/clearing-the-mail-queue/m-p/4075990#M308256</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-09-25T17:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Clearing the mail queue?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/clearing-the-mail-queue/m-p/4075991#M308257</link>
      <description>Patrick,&lt;BR /&gt;&lt;BR /&gt;mail-queue in the directory /var/spool/mqueue. In this directory the messages can be refound with help of the Q-ID. Each message consists of two files:&lt;BR /&gt;&lt;BR /&gt;qfNAAnnnn -- Job control file (header infos)&lt;BR /&gt;dfNAAnnnn -- Data file (message body)&lt;BR /&gt;&lt;BR /&gt;If you want to delete a message you just have to get the Q-ID with the command mailq, then you can delete the belonging qf and df file in the directory /var/spool/mqueue.&lt;BR /&gt;&lt;BR /&gt;WK</description>
      <pubDate>Tue, 25 Sep 2007 22:06:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/clearing-the-mail-queue/m-p/4075991#M308257</guid>
      <dc:creator>whiteknight</dc:creator>
      <dc:date>2007-09-25T22:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: Clearing the mail queue?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/clearing-the-mail-queue/m-p/4075992#M308258</link>
      <description>If you use vi on the mqueue files, if you are ambitious you could redirect the mail output by changing the appropriate lines in qfNAAnnnn.&lt;BR /&gt;&lt;BR /&gt;If you don't want them, in vi you could just use:&lt;BR /&gt;:!rm %&lt;BR /&gt;Then ":n" to go to the next.</description>
      <pubDate>Tue, 25 Sep 2007 22:36:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/clearing-the-mail-queue/m-p/4075992#M308258</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-09-25T22:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Clearing the mail queue?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/clearing-the-mail-queue/m-p/4075993#M308259</link>
      <description>Thanks guys!  I ran mailq through an inefficient for loop, and grepped out the lines I didn't want to see, (like e-mail addresses, which are not shown here).&lt;BR /&gt;&lt;BR /&gt;for i in `mailq |grep -v Deferred |grep -v mqueue |grep -v - |awk '{print $1}'`&lt;BR /&gt;do&lt;BR /&gt;rm /var/spool/mqueue/df$i&lt;BR /&gt;rm /var/spool/mqueue/qf$i&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;# mailq&lt;BR /&gt;/var/spool/mqueue is empty&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Sep 2007 08:56:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/clearing-the-mail-queue/m-p/4075993#M308259</guid>
      <dc:creator>Patrick Ware_1</dc:creator>
      <dc:date>2007-09-26T08:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Clearing the mail queue?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/clearing-the-mail-queue/m-p/4075994#M308260</link>
      <description>Here's how I do it on my linux server:&lt;BR /&gt;&lt;BR /&gt;/usr/bin/find /var/spool/mqueue/ -mtime 1 |xargs rm -f {}; &amp;gt; /tmp/cleanmqueue.cron.log 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;For cleanliness, restart sendmail...&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Wed, 26 Sep 2007 09:35:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/clearing-the-mail-queue/m-p/4075994#M308260</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2007-09-26T09:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Clearing the mail queue?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/clearing-the-mail-queue/m-p/4075995#M308261</link>
      <description>You can avoid the for-loop by leveraging awk's built-in loop for the same effect:&lt;BR /&gt;&lt;BR /&gt;# ls -1 /var/spool/mqueue/* | xargs rm</description>
      <pubDate>Wed, 26 Sep 2007 11:10:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/clearing-the-mail-queue/m-p/4075995#M308261</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2007-09-26T11:10:11Z</dc:date>
    </item>
  </channel>
</rss>

