Loading ...
Sorry, an error occurred while loading the content.

Qstat and Postqueue

Expand Messages
  • Sriram Nyshadham
    Hi All, I am new to postfix and am wondering what is the difference between qstat and postqueue contents. When I check my qstat I get only 4000 mails in the
    Message 1 of 4 , Dec 1, 2008
    • 0 Attachment

      Hi All,

       

      I am new to postfix and am wondering what is the difference between qstat and postqueue contents. When I check my qstat

      I get only 4000 mails in the queue. Whereas when I try postqueue, I See around 18000. Please help me.

       

       

      out04# postqueue -p |wc -l

         17852

       

      out04# qstat

                                            active incoming deferred     hold   bounce  corrupt

      Mon Dec  1 09:24:34 2008       40        0     4408        0        0        0

       

      out04# qshape deferred |head -20

                                               T  5 10 20 40 80 160 320 640 1280 1280+

                                      TOTAL 4434  7 13 28 26 59 100 110 282 1176  2633

                                 faresgr.it 2938  1  0  5  6 17  48  31 163  995  1672

                                     kme.no  171  0  0  2  0  0   0   3   4   17   145

                             deeksevans.com  163  1  1  2  2  4   0   0   3    6   144

                               universal.ie  136  0  1  1  4  3   5   5  12   35    70

                         ainfo-services.com   88  0  0  0  0  0   0   0   3   12    73

                                  smw.co.uk   67  0  0  0  0  0   0   0  22    0    45

                               pshman.co.uk   32  0  0  0  0  0   0   0   0    0    32

                             raelectric.com   31  0  0  2  1  3   2   0   7   12     4

                                    bpol.it   27  0  0  0  0  0   6  14   7    0     0

                              localhost.com   26  0  0  0  0  0   0   0   0    8    18

                          marchescare.co.uk   26  0  0  0  1  0   0   0   0    8    17

                                    mail.ru   23  0  0  0  0  0   1   0   0    5    17

                                   test.com   23  0  0  0  0  0   0   4   5    5     9

                             kenmills.co.uk   23  0  3  1  4  3   1   2   1    8     0

                         instant-support.no   23  0  0  0  0  0   0   0   9    0    14

                              testdom.co.uk   21  0  0  0  0  0   0   1   3    0    17

                          fouldslifts.co.uk   16  0  0  0  0  0   4   1   4    3     4

                           gaviolionline.it   15  0  0  0  0  0   0   4   4    4     3

       

       

       

      Thanks,
      Sriram Nyshadham.


      --------------------------------------------------
      Confidentiality And Disclaimer Notice
      Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. ……www.netenrich.com
      -------------------------------------------------
    • Sahil Tandon
      ... Stick to postqueue. Isn t qstat for qmail? -- Sahil Tandon
      Message 2 of 4 , Dec 1, 2008
      • 0 Attachment
        Sriram Nyshadham <sriram.nyshadham@...> wrote:

        > I am new to postfix and am wondering what is the difference between qstat and postqueue contents. When I check my qstat
        > I get only 4000 mails in the queue. Whereas when I try postqueue, I See around 18000. Please help me.

        Stick to postqueue. Isn't qstat for qmail?

        --
        Sahil Tandon <sahil@...>
      • Sriram Nyshadham
        No Sahil, Qstat is also used for Postfix. I just found that postqueue also displays the repeated attempts to connect to any mail server(s) which are not
        Message 3 of 4 , Dec 1, 2008
        • 0 Attachment
          No Sahil,

          Qstat is also used for Postfix. I just found that postqueue also displays the repeated attempts to connect to any mail server(s) which are not accepting mails. That's why the count becomes bigger. I believe qstat gives the right value.


          Thanks,
          Sriram Nyshadham.


          -----Original Message-----
          From: owner-postfix-users@... [mailto:owner-postfix-users@...] On Behalf Of Sahil Tandon
          Sent: Monday, December 01, 2008 5:12 PM
          To: postfix-users@...
          Subject: Re: Qstat and Postqueue

          Sriram Nyshadham <sriram.nyshadham@...> wrote:

          > I am new to postfix and am wondering what is the difference between qstat and postqueue contents. When I check my qstat
          > I get only 4000 mails in the queue. Whereas when I try postqueue, I See around 18000. Please help me.

          Stick to postqueue. Isn't qstat for qmail?

          --
          Sahil Tandon <sahil@...>
          No virus found in this incoming message.
          Checked by AVG - http://www.avg.com
          Version: 8.0.176 / Virus Database: 270.9.12/1821 - Release Date: 11/30/2008 5:53 PM


          --------------------------------------------------
          Confidentiality And Disclaimer Notice
          Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. ......www.netenrich.com
          -------------------------------------------------
        • Noel Jones
          Sriram Nyshadham wrote: [please don t top-post] ... What is Qstat and where did it come from? All the references I find on google indicate it s part of qmail.
          Message 4 of 4 , Dec 1, 2008
          • 0 Attachment
            Sriram Nyshadham wrote:

            [please don't top-post]

            > No Sahil,
            >
            > Qstat is also used for Postfix.

            What is Qstat and where did it come from? All the references
            I find on google indicate it's part of qmail. It's certainly
            not part of postfix. I would always trust an official postfix
            utility before a non-postfix utility, and far before some
            seldom-used tool.

            > I just found that postqueue also displays the repeated attempts to connect to any mail server(s) which are not accepting mails. That's why the count becomes bigger.

            No, but your "wc -l" command will count blank lines and
            multiple recipients. This will give an inflated view of the
            queue, especially if you have some messages with a large
            number of recipients.

            > I believe qstat gives the right value.

            It's possible for both numbers to be right, for some value of
            right. Postqueue is known to be correct and to work as
            documented, the jury is still out on Qstat.

            --
            Noel Jones
          Your message has been successfully submitted and would be delivered to recipients shortly.