<?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: Howto empty a mailq in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/howto-empty-a-mailq/m-p/3191267#M898795</link>
    <description>What I mean is as follow, I want to delete a mail  before it is send out of the mailq.&lt;BR /&gt;&lt;BR /&gt;Arjen</description>
    <pubDate>Fri, 13 Feb 2004 07:37:33 GMT</pubDate>
    <dc:creator>Arjen Verhulst</dc:creator>
    <dc:date>2004-02-13T07:37:33Z</dc:date>
    <item>
      <title>Howto empty a mailq</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/howto-empty-a-mailq/m-p/3191263#M898789</link>
      <description>Help !!&lt;BR /&gt;&lt;BR /&gt;After I have send a mail with sendmail I want empty the mailq. I now there is a command to empty the mailq but i forgot it.&lt;BR /&gt;&lt;BR /&gt;I use the folowing command to create the mail:&lt;BR /&gt;&lt;BR /&gt;echo "hello" |mailx -s "test" adress@domain.nl&lt;BR /&gt;and I use mailq to whatch in the queue.&lt;BR /&gt;&lt;BR /&gt;Is there anyone  how nows to empty the mailq?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;Arjen</description>
      <pubDate>Fri, 13 Feb 2004 04:46:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/howto-empty-a-mailq/m-p/3191263#M898789</guid>
      <dc:creator>Arjen Verhulst</dc:creator>
      <dc:date>2004-02-13T04:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Howto empty a mailq</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/howto-empty-a-mailq/m-p/3191264#M898791</link>
      <description>I think you only need to delete the files in /var/spool/mqueue</description>
      <pubDate>Fri, 13 Feb 2004 04:59:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/howto-empty-a-mailq/m-p/3191264#M898791</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-02-13T04:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Howto empty a mailq</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/howto-empty-a-mailq/m-p/3191265#M898792</link>
      <description>Thanks for the fast reply...&lt;BR /&gt;&lt;BR /&gt;But I now that it is possible to delete the files in /var/spool/mqueue to empty the queue. &lt;BR /&gt;&lt;BR /&gt;So far I can remember there is a line command to delete a single message of the mailq by using the mail id from that message.&lt;BR /&gt;&lt;BR /&gt;Arjen.</description>
      <pubDate>Fri, 13 Feb 2004 05:23:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/howto-empty-a-mailq/m-p/3191265#M898792</guid>
      <dc:creator>Arjen Verhulst</dc:creator>
      <dc:date>2004-02-13T05:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Howto empty a mailq</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/howto-empty-a-mailq/m-p/3191266#M898793</link>
      <description>When you say you want to empty the mailq, I assume you want all items in it to be sent out.&lt;BR /&gt;&lt;BR /&gt;If so, "sendmail -o" should do this, but you really should have sendmail configured to poll and action this queue automatically.&lt;BR /&gt;Typically, sendmail is started at boot time with  "/usr/sbin/sendmail -bd -q30m"&lt;BR /&gt;&lt;BR /&gt;See man sendmail&lt;BR /&gt;&lt;BR /&gt;And see /var/adm/syslog/mail.log for diagnostics.&lt;BR /&gt;&lt;BR /&gt;-- Graham</description>
      <pubDate>Fri, 13 Feb 2004 06:16:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/howto-empty-a-mailq/m-p/3191266#M898793</guid>
      <dc:creator>Graham Cameron_1</dc:creator>
      <dc:date>2004-02-13T06:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Howto empty a mailq</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/howto-empty-a-mailq/m-p/3191267#M898795</link>
      <description>What I mean is as follow, I want to delete a mail  before it is send out of the mailq.&lt;BR /&gt;&lt;BR /&gt;Arjen</description>
      <pubDate>Fri, 13 Feb 2004 07:37:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/howto-empty-a-mailq/m-p/3191267#M898795</guid>
      <dc:creator>Arjen Verhulst</dc:creator>
      <dc:date>2004-02-13T07:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: Howto empty a mailq</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/howto-empty-a-mailq/m-p/3191268#M898796</link>
      <description>In that case, you need to do exactly as Mark suggested earlier.&lt;BR /&gt;&lt;BR /&gt;cd /var/spool/mqueue/&lt;BR /&gt;rm *&lt;BR /&gt;(or rm the specifi one you want)&lt;BR /&gt;&lt;BR /&gt;-- Graham</description>
      <pubDate>Fri, 13 Feb 2004 07:44:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/howto-empty-a-mailq/m-p/3191268#M898796</guid>
      <dc:creator>Graham Cameron_1</dc:creator>
      <dc:date>2004-02-13T07:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Howto empty a mailq</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/howto-empty-a-mailq/m-p/3191269#M898798</link>
      <description>isn't it possible to delete a mail job with a line command ( like an at job "at -r &lt;JOB id=""&gt;" )&lt;BR /&gt;&lt;BR /&gt;Arjen&lt;/JOB&gt;</description>
      <pubDate>Fri, 13 Feb 2004 07:52:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/howto-empty-a-mailq/m-p/3191269#M898798</guid>
      <dc:creator>Arjen Verhulst</dc:creator>
      <dc:date>2004-02-13T07:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: Howto empty a mailq</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/howto-empty-a-mailq/m-p/3191270#M898800</link>
      <description>To force flush the mailq, run this:&lt;BR /&gt;&lt;BR /&gt;sendmail -v -d8.20 -q&lt;BR /&gt;&lt;BR /&gt;mark</description>
      <pubDate>Fri, 13 Feb 2004 08:16:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/howto-empty-a-mailq/m-p/3191270#M898800</guid>
      <dc:creator>Mark Greene_1</dc:creator>
      <dc:date>2004-02-13T08:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Howto empty a mailq</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/howto-empty-a-mailq/m-p/3191271#M898801</link>
      <description>Use mailq to get the mail-id&lt;BR /&gt;Then go to /var/spool/mqueue and delete all files with the specified mail-id on the end:&lt;BR /&gt;rm *&lt;MAIL-ID&gt;&lt;BR /&gt;&lt;BR /&gt;(The mail-id is the first column of output from mailq.)&lt;/MAIL-ID&gt;</description>
      <pubDate>Fri, 13 Feb 2004 08:48:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/howto-empty-a-mailq/m-p/3191271#M898801</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2004-02-13T08:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Howto empty a mailq</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/howto-empty-a-mailq/m-p/3191272#M898803</link>
      <description>The first best way to empty the mail queue (mailq shows it) is to run sendmail -q as root.&lt;BR /&gt;&lt;BR /&gt;This should clear it off if there is a connection issue.&lt;BR /&gt;&lt;BR /&gt;If that does not work and it REALLY needs to be cleared rm -f /var/spool/mqueue/*&lt;BR /&gt;&lt;BR /&gt;The -f supresses warning messages. Once its gone, its gone. No bringing it back to life.  &lt;BR /&gt;&lt;BR /&gt;Understand that sometimes inbound mail being boucned by a spam filter will create mqueue entries.&lt;BR /&gt;&lt;BR /&gt;To trouble test:&lt;BR /&gt;&lt;BR /&gt;sendmail -v -d8.99 -d38.99 someone@someaddress.com&lt;BR /&gt;Type some text&lt;BR /&gt;&lt;ENTER&gt;&lt;BR /&gt;.&lt;BR /&gt;&lt;ENTER&gt;&lt;BR /&gt;&lt;BR /&gt;This might help you figure out why the mail is hanging up.&lt;BR /&gt;&lt;BR /&gt;SEP&lt;/ENTER&gt;&lt;/ENTER&gt;</description>
      <pubDate>Fri, 13 Feb 2004 08:53:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/howto-empty-a-mailq/m-p/3191272#M898803</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-02-13T08:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Howto empty a mailq</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/howto-empty-a-mailq/m-p/3191273#M898805</link>
      <description>Thanks for all these reply's so far.&lt;BR /&gt;&lt;BR /&gt;I haven't not get the right anwser yet,but can try to make a script that empty the files with the right mail-id in /var/spool/mqueue&lt;BR /&gt;&lt;BR /&gt;Arjen</description>
      <pubDate>Fri, 13 Feb 2004 09:12:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/howto-empty-a-mailq/m-p/3191273#M898805</guid>
      <dc:creator>Arjen Verhulst</dc:creator>
      <dc:date>2004-02-13T09:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Howto empty a mailq</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/howto-empty-a-mailq/m-p/3191274#M898806</link>
      <description>I'm afraid the command you're looking for is mailrm. It's a mail I've seen in the past, but isn't available on HP-UX.</description>
      <pubDate>Fri, 13 Feb 2004 09:25:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/howto-empty-a-mailq/m-p/3191274#M898806</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2004-02-13T09:25:13Z</dc:date>
    </item>
  </channel>
</rss>

