How do I check the postfix queue size?Is Postfix the same thing as Sendmail?Minimum PostFix configuration for sending emails only?Changing the maximum mail size in Postfixpostfix: accepting all email addresses for a domain except for a fewPostfix: holding emails outside the Hold Queue possible?Checking Postfix queue size with NagiosHow to integrate postfix and mimedefangPostfix after-queue filtering for local destinations onlyHow to reinject scanned mail into the queue using sendmailTranslating sendmail “MASQUERADE_AS” to postfix?

Is being an extrovert a necessary condition to be a manager?

pwaS eht tirsf dna tasl setterl fo hace dorw

List of lists elementwise greater/smaller than

Gambler's Fallacy Dice

Presenting 2 results for one variable using a left brace

Do 'destroy' effects count as damage?

Do seaplanes need to get clearance for takeoff?

How can sister protect herself from impulse purchases with a credit card?

Hotel booking: Why is Agoda much cheaper than booking.com?

Separate the element after every 2nd ',' and push into next row in bash

Expand a hexagon

How does the +1 Keen Composite Longbow (+2 Str) work?

Is there a realtime, uncut video of Saturn V ignition through tower clear?

How to safely discharge oneself

Does a windmilling propeller create more drag than a stopped propeller in an engine out scenario?

Parse a C++14 integer literal

How did Jean Parisot de Valette, 49th Grand Master of the Order of Malta, die?

What does it mean for a program to be 32 or 64 bit?

How could Dwarves prevent sand from filling up their settlements

Is there a way to generate a mapping graph like this?

Why is こと used in 「私に何かできること」?

Is presenting a play showing Military characters in a bad light a crime in the US?

Bash - Execute two commands and get exit status 1 if first fails

tikz: 5 squares on a row, roman numbered 1 -> 5



How do I check the postfix queue size?


Is Postfix the same thing as Sendmail?Minimum PostFix configuration for sending emails only?Changing the maximum mail size in Postfixpostfix: accepting all email addresses for a domain except for a fewPostfix: holding emails outside the Hold Queue possible?Checking Postfix queue size with NagiosHow to integrate postfix and mimedefangPostfix after-queue filtering for local destinations onlyHow to reinject scanned mail into the queue using sendmailTranslating sendmail “MASQUERADE_AS” to postfix?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








52















What's the postfix equivalent to sendmail -bp?










share|improve this question




























    52















    What's the postfix equivalent to sendmail -bp?










    share|improve this question
























      52












      52








      52


      18






      What's the postfix equivalent to sendmail -bp?










      share|improve this question














      What's the postfix equivalent to sendmail -bp?







      postfix






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Aug 25 '09 at 0:48









      Gary RichardsonGary Richardson

      1,00731321




      1,00731321




















          8 Answers
          8






          active

          oldest

          votes


















          65














          Or, less typing:



          mailq





          share|improve this answer






























            27















            qshape active


            will show you the number of emails being sent to each domain and how long they have been in the active queue




            qshape deferred


            will show you the same but for the deferred queue






            share|improve this answer






























              26














              postqueue -p





              share|improve this answer






























                15














                Here's what I use, culled from the postfix mailing list. I removed the author's name, in case he doesn't want it here (you can see it at the source). It only displays totals.



                #!/usr/bin/env perl

                # postfix queue/s size
                # author:
                # source: http://tech.groups.yahoo.com/group/postfix-users/message/255133

                use strict;
                use warnings;
                use Symbol;
                sub count
                my ($dir) = @_;
                my $dh = gensym();
                my $c = 0;
                opendir($dh, $dir) or die "$0: opendir: $dir: $!n";
                while (my $f = readdir($dh))
                if ($f =~ m^[A-F0-9]5,$)
                ++$c;
                elsif ($f =~ m^[A-F0-9]$)
                $c += count("$dir/$f");


                closedir($dh) or die "closedir: $dir: $!n";
                return $c;

                my $qdir = `postconf -h queue_directory`;
                chomp($qdir);
                chdir($qdir) or die "$0: chdir: $qdir: $!n";
                printf "Incoming: %dn", count("incoming");
                printf "Active: %dn", count("active");
                printf "Deferred: %dn", count("deferred");
                printf "Bounced: %dn", count("bounce");
                printf "Hold: %dn", count("hold");
                printf "Corrupt: %dn", count("corrupt");


                EDIT: Fixed a typo on line 26.






                share|improve this answer

























                • Great script, and IMHO should be a part of the standard Postfix distribution. Unlike mailq/postqueue returns immediate answer for a queue under duress

                  – Alexander Pogrebnyak
                  Aug 14 '12 at 16:27












                • Just a word of caution on the particular implementation of count function. It will fail in Postfix 2.9+ when enable_long_queue_ids=yes'. I think it should not be too hard to fix it for long queue ids.

                  – Alexander Pogrebnyak
                  Aug 15 '12 at 15:58


















                10














                postqueue -p | tail -n 1



                Last line in the postqueue -p shows how many requests and size:



                -- 317788 Kbytes in 11860 Requests.






                share|improve this answer























                • This command executes quickly since it doesn't waste cycles displaying the individual emails in the queue. If just want the total, run this.

                  – Paul Calabro
                  Nov 16 '17 at 17:35


















                5














                [root@server ~]# time mailq | grep -c '^[0-9A-Z]'



                10



                real 0m1.333s



                user 0m0.003s



                sys 0m0.003s



                (above result indicating that there are 10 email is queue)






                share|improve this answer


















                • 2





                  More concisely: mailq | grep -c '^w'

                  – Antonio Bardazzi
                  Mar 28 '13 at 8:51


















                5














                If you don't have qshape you can install it via the following yum commands:



                yum groupinstall perl development
                yum install postfix-perl-scripts



                qshape prints Postfix queue domain and age distribution information. You can read more about it here:



                http://www.postfix.org/QSHAPE_README.html



                Example output



                % qshape -s hold | head
                T 5 10 20 40 80 160 320 640 1280 1280+
                TOTAL 486 0 0 1 0 0 2 4 20 40 419
                yahoo.com 14 0 0 1 0 0 0 0 1 0 12
                extremepricecuts.net 13 0 0 0 0 0 0 0 2 0 11
                ms35.hinet.net 12 0 0 0 0 0 0 0 0 1 11
                winnersdaily.net 12 0 0 0 0 0 0 0 2 0 10
                hotmail.com 11 0 0 0 0 0 0 0 0 1 10
                worldnet.fr 6 0 0 0 0 0 0 0 0 0 6
                ms41.hinet.net 6 0 0 0 0 0 0 0 0 0 6
                osn.de 5 0 0 0 0 0 1 0 0 0 4





                share|improve this answer
































                  2














                  Here is an example.



                  #!/bin/bash

                  for q in active bounce corrupt defer deferred flush hold incoming maildrop pid private public saved trace

                  do
                  count=$(find /var/spool/postfix/$q ! -type d -print | wc -l)
                  echo $q $count
                  done





                  share|improve this answer

























                    Your Answer








                    StackExchange.ready(function()
                    var channelOptions =
                    tags: "".split(" "),
                    id: "2"
                    ;
                    initTagRenderer("".split(" "), "".split(" "), channelOptions);

                    StackExchange.using("externalEditor", function()
                    // Have to fire editor after snippets, if snippets enabled
                    if (StackExchange.settings.snippets.snippetsEnabled)
                    StackExchange.using("snippets", function()
                    createEditor();
                    );

                    else
                    createEditor();

                    );

                    function createEditor()
                    StackExchange.prepareEditor(
                    heartbeatType: 'answer',
                    autoActivateHeartbeat: false,
                    convertImagesToLinks: true,
                    noModals: true,
                    showLowRepImageUploadWarning: true,
                    reputationToPostImages: 10,
                    bindNavPrevention: true,
                    postfix: "",
                    imageUploader:
                    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                    allowUrls: true
                    ,
                    onDemand: true,
                    discardSelector: ".discard-answer"
                    ,immediatelyShowMarkdownHelp:true
                    );



                    );













                    draft saved

                    draft discarded


















                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f58196%2fhow-do-i-check-the-postfix-queue-size%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown

























                    8 Answers
                    8






                    active

                    oldest

                    votes








                    8 Answers
                    8






                    active

                    oldest

                    votes









                    active

                    oldest

                    votes






                    active

                    oldest

                    votes









                    65














                    Or, less typing:



                    mailq





                    share|improve this answer



























                      65














                      Or, less typing:



                      mailq





                      share|improve this answer

























                        65












                        65








                        65







                        Or, less typing:



                        mailq





                        share|improve this answer













                        Or, less typing:



                        mailq






                        share|improve this answer












                        share|improve this answer



                        share|improve this answer










                        answered Aug 25 '09 at 1:03









                        womblewomble

                        86.3k18147205




                        86.3k18147205























                            27















                            qshape active


                            will show you the number of emails being sent to each domain and how long they have been in the active queue




                            qshape deferred


                            will show you the same but for the deferred queue






                            share|improve this answer



























                              27















                              qshape active


                              will show you the number of emails being sent to each domain and how long they have been in the active queue




                              qshape deferred


                              will show you the same but for the deferred queue






                              share|improve this answer

























                                27












                                27








                                27








                                qshape active


                                will show you the number of emails being sent to each domain and how long they have been in the active queue




                                qshape deferred


                                will show you the same but for the deferred queue






                                share|improve this answer














                                qshape active


                                will show you the number of emails being sent to each domain and how long they have been in the active queue




                                qshape deferred


                                will show you the same but for the deferred queue







                                share|improve this answer












                                share|improve this answer



                                share|improve this answer










                                answered Oct 13 '09 at 13:05









                                Alistair PrestidgeAlistair Prestidge

                                6211518




                                6211518





















                                    26














                                    postqueue -p





                                    share|improve this answer



























                                      26














                                      postqueue -p





                                      share|improve this answer

























                                        26












                                        26








                                        26







                                        postqueue -p





                                        share|improve this answer













                                        postqueue -p






                                        share|improve this answer












                                        share|improve this answer



                                        share|improve this answer










                                        answered Aug 25 '09 at 0:56









                                        Andrejs CainikovsAndrejs Cainikovs

                                        1,51111220




                                        1,51111220





















                                            15














                                            Here's what I use, culled from the postfix mailing list. I removed the author's name, in case he doesn't want it here (you can see it at the source). It only displays totals.



                                            #!/usr/bin/env perl

                                            # postfix queue/s size
                                            # author:
                                            # source: http://tech.groups.yahoo.com/group/postfix-users/message/255133

                                            use strict;
                                            use warnings;
                                            use Symbol;
                                            sub count
                                            my ($dir) = @_;
                                            my $dh = gensym();
                                            my $c = 0;
                                            opendir($dh, $dir) or die "$0: opendir: $dir: $!n";
                                            while (my $f = readdir($dh))
                                            if ($f =~ m^[A-F0-9]5,$)
                                            ++$c;
                                            elsif ($f =~ m^[A-F0-9]$)
                                            $c += count("$dir/$f");


                                            closedir($dh) or die "closedir: $dir: $!n";
                                            return $c;

                                            my $qdir = `postconf -h queue_directory`;
                                            chomp($qdir);
                                            chdir($qdir) or die "$0: chdir: $qdir: $!n";
                                            printf "Incoming: %dn", count("incoming");
                                            printf "Active: %dn", count("active");
                                            printf "Deferred: %dn", count("deferred");
                                            printf "Bounced: %dn", count("bounce");
                                            printf "Hold: %dn", count("hold");
                                            printf "Corrupt: %dn", count("corrupt");


                                            EDIT: Fixed a typo on line 26.






                                            share|improve this answer

























                                            • Great script, and IMHO should be a part of the standard Postfix distribution. Unlike mailq/postqueue returns immediate answer for a queue under duress

                                              – Alexander Pogrebnyak
                                              Aug 14 '12 at 16:27












                                            • Just a word of caution on the particular implementation of count function. It will fail in Postfix 2.9+ when enable_long_queue_ids=yes'. I think it should not be too hard to fix it for long queue ids.

                                              – Alexander Pogrebnyak
                                              Aug 15 '12 at 15:58















                                            15














                                            Here's what I use, culled from the postfix mailing list. I removed the author's name, in case he doesn't want it here (you can see it at the source). It only displays totals.



                                            #!/usr/bin/env perl

                                            # postfix queue/s size
                                            # author:
                                            # source: http://tech.groups.yahoo.com/group/postfix-users/message/255133

                                            use strict;
                                            use warnings;
                                            use Symbol;
                                            sub count
                                            my ($dir) = @_;
                                            my $dh = gensym();
                                            my $c = 0;
                                            opendir($dh, $dir) or die "$0: opendir: $dir: $!n";
                                            while (my $f = readdir($dh))
                                            if ($f =~ m^[A-F0-9]5,$)
                                            ++$c;
                                            elsif ($f =~ m^[A-F0-9]$)
                                            $c += count("$dir/$f");


                                            closedir($dh) or die "closedir: $dir: $!n";
                                            return $c;

                                            my $qdir = `postconf -h queue_directory`;
                                            chomp($qdir);
                                            chdir($qdir) or die "$0: chdir: $qdir: $!n";
                                            printf "Incoming: %dn", count("incoming");
                                            printf "Active: %dn", count("active");
                                            printf "Deferred: %dn", count("deferred");
                                            printf "Bounced: %dn", count("bounce");
                                            printf "Hold: %dn", count("hold");
                                            printf "Corrupt: %dn", count("corrupt");


                                            EDIT: Fixed a typo on line 26.






                                            share|improve this answer

























                                            • Great script, and IMHO should be a part of the standard Postfix distribution. Unlike mailq/postqueue returns immediate answer for a queue under duress

                                              – Alexander Pogrebnyak
                                              Aug 14 '12 at 16:27












                                            • Just a word of caution on the particular implementation of count function. It will fail in Postfix 2.9+ when enable_long_queue_ids=yes'. I think it should not be too hard to fix it for long queue ids.

                                              – Alexander Pogrebnyak
                                              Aug 15 '12 at 15:58













                                            15












                                            15








                                            15







                                            Here's what I use, culled from the postfix mailing list. I removed the author's name, in case he doesn't want it here (you can see it at the source). It only displays totals.



                                            #!/usr/bin/env perl

                                            # postfix queue/s size
                                            # author:
                                            # source: http://tech.groups.yahoo.com/group/postfix-users/message/255133

                                            use strict;
                                            use warnings;
                                            use Symbol;
                                            sub count
                                            my ($dir) = @_;
                                            my $dh = gensym();
                                            my $c = 0;
                                            opendir($dh, $dir) or die "$0: opendir: $dir: $!n";
                                            while (my $f = readdir($dh))
                                            if ($f =~ m^[A-F0-9]5,$)
                                            ++$c;
                                            elsif ($f =~ m^[A-F0-9]$)
                                            $c += count("$dir/$f");


                                            closedir($dh) or die "closedir: $dir: $!n";
                                            return $c;

                                            my $qdir = `postconf -h queue_directory`;
                                            chomp($qdir);
                                            chdir($qdir) or die "$0: chdir: $qdir: $!n";
                                            printf "Incoming: %dn", count("incoming");
                                            printf "Active: %dn", count("active");
                                            printf "Deferred: %dn", count("deferred");
                                            printf "Bounced: %dn", count("bounce");
                                            printf "Hold: %dn", count("hold");
                                            printf "Corrupt: %dn", count("corrupt");


                                            EDIT: Fixed a typo on line 26.






                                            share|improve this answer















                                            Here's what I use, culled from the postfix mailing list. I removed the author's name, in case he doesn't want it here (you can see it at the source). It only displays totals.



                                            #!/usr/bin/env perl

                                            # postfix queue/s size
                                            # author:
                                            # source: http://tech.groups.yahoo.com/group/postfix-users/message/255133

                                            use strict;
                                            use warnings;
                                            use Symbol;
                                            sub count
                                            my ($dir) = @_;
                                            my $dh = gensym();
                                            my $c = 0;
                                            opendir($dh, $dir) or die "$0: opendir: $dir: $!n";
                                            while (my $f = readdir($dh))
                                            if ($f =~ m^[A-F0-9]5,$)
                                            ++$c;
                                            elsif ($f =~ m^[A-F0-9]$)
                                            $c += count("$dir/$f");


                                            closedir($dh) or die "closedir: $dir: $!n";
                                            return $c;

                                            my $qdir = `postconf -h queue_directory`;
                                            chomp($qdir);
                                            chdir($qdir) or die "$0: chdir: $qdir: $!n";
                                            printf "Incoming: %dn", count("incoming");
                                            printf "Active: %dn", count("active");
                                            printf "Deferred: %dn", count("deferred");
                                            printf "Bounced: %dn", count("bounce");
                                            printf "Hold: %dn", count("hold");
                                            printf "Corrupt: %dn", count("corrupt");


                                            EDIT: Fixed a typo on line 26.







                                            share|improve this answer














                                            share|improve this answer



                                            share|improve this answer








                                            edited Aug 1 '12 at 13:05









                                            Community

                                            1




                                            1










                                            answered Nov 10 '11 at 19:42









                                            mikewatersmikewaters

                                            66011225




                                            66011225












                                            • Great script, and IMHO should be a part of the standard Postfix distribution. Unlike mailq/postqueue returns immediate answer for a queue under duress

                                              – Alexander Pogrebnyak
                                              Aug 14 '12 at 16:27












                                            • Just a word of caution on the particular implementation of count function. It will fail in Postfix 2.9+ when enable_long_queue_ids=yes'. I think it should not be too hard to fix it for long queue ids.

                                              – Alexander Pogrebnyak
                                              Aug 15 '12 at 15:58

















                                            • Great script, and IMHO should be a part of the standard Postfix distribution. Unlike mailq/postqueue returns immediate answer for a queue under duress

                                              – Alexander Pogrebnyak
                                              Aug 14 '12 at 16:27












                                            • Just a word of caution on the particular implementation of count function. It will fail in Postfix 2.9+ when enable_long_queue_ids=yes'. I think it should not be too hard to fix it for long queue ids.

                                              – Alexander Pogrebnyak
                                              Aug 15 '12 at 15:58
















                                            Great script, and IMHO should be a part of the standard Postfix distribution. Unlike mailq/postqueue returns immediate answer for a queue under duress

                                            – Alexander Pogrebnyak
                                            Aug 14 '12 at 16:27






                                            Great script, and IMHO should be a part of the standard Postfix distribution. Unlike mailq/postqueue returns immediate answer for a queue under duress

                                            – Alexander Pogrebnyak
                                            Aug 14 '12 at 16:27














                                            Just a word of caution on the particular implementation of count function. It will fail in Postfix 2.9+ when enable_long_queue_ids=yes'. I think it should not be too hard to fix it for long queue ids.

                                            – Alexander Pogrebnyak
                                            Aug 15 '12 at 15:58





                                            Just a word of caution on the particular implementation of count function. It will fail in Postfix 2.9+ when enable_long_queue_ids=yes'. I think it should not be too hard to fix it for long queue ids.

                                            – Alexander Pogrebnyak
                                            Aug 15 '12 at 15:58











                                            10














                                            postqueue -p | tail -n 1



                                            Last line in the postqueue -p shows how many requests and size:



                                            -- 317788 Kbytes in 11860 Requests.






                                            share|improve this answer























                                            • This command executes quickly since it doesn't waste cycles displaying the individual emails in the queue. If just want the total, run this.

                                              – Paul Calabro
                                              Nov 16 '17 at 17:35















                                            10














                                            postqueue -p | tail -n 1



                                            Last line in the postqueue -p shows how many requests and size:



                                            -- 317788 Kbytes in 11860 Requests.






                                            share|improve this answer























                                            • This command executes quickly since it doesn't waste cycles displaying the individual emails in the queue. If just want the total, run this.

                                              – Paul Calabro
                                              Nov 16 '17 at 17:35













                                            10












                                            10








                                            10







                                            postqueue -p | tail -n 1



                                            Last line in the postqueue -p shows how many requests and size:



                                            -- 317788 Kbytes in 11860 Requests.






                                            share|improve this answer













                                            postqueue -p | tail -n 1



                                            Last line in the postqueue -p shows how many requests and size:



                                            -- 317788 Kbytes in 11860 Requests.







                                            share|improve this answer












                                            share|improve this answer



                                            share|improve this answer










                                            answered Sep 30 '15 at 8:43









                                            99 Problems - Syntax ain't one99 Problems - Syntax ain't one

                                            20124




                                            20124












                                            • This command executes quickly since it doesn't waste cycles displaying the individual emails in the queue. If just want the total, run this.

                                              – Paul Calabro
                                              Nov 16 '17 at 17:35

















                                            • This command executes quickly since it doesn't waste cycles displaying the individual emails in the queue. If just want the total, run this.

                                              – Paul Calabro
                                              Nov 16 '17 at 17:35
















                                            This command executes quickly since it doesn't waste cycles displaying the individual emails in the queue. If just want the total, run this.

                                            – Paul Calabro
                                            Nov 16 '17 at 17:35





                                            This command executes quickly since it doesn't waste cycles displaying the individual emails in the queue. If just want the total, run this.

                                            – Paul Calabro
                                            Nov 16 '17 at 17:35











                                            5














                                            [root@server ~]# time mailq | grep -c '^[0-9A-Z]'



                                            10



                                            real 0m1.333s



                                            user 0m0.003s



                                            sys 0m0.003s



                                            (above result indicating that there are 10 email is queue)






                                            share|improve this answer


















                                            • 2





                                              More concisely: mailq | grep -c '^w'

                                              – Antonio Bardazzi
                                              Mar 28 '13 at 8:51















                                            5














                                            [root@server ~]# time mailq | grep -c '^[0-9A-Z]'



                                            10



                                            real 0m1.333s



                                            user 0m0.003s



                                            sys 0m0.003s



                                            (above result indicating that there are 10 email is queue)






                                            share|improve this answer


















                                            • 2





                                              More concisely: mailq | grep -c '^w'

                                              – Antonio Bardazzi
                                              Mar 28 '13 at 8:51













                                            5












                                            5








                                            5







                                            [root@server ~]# time mailq | grep -c '^[0-9A-Z]'



                                            10



                                            real 0m1.333s



                                            user 0m0.003s



                                            sys 0m0.003s



                                            (above result indicating that there are 10 email is queue)






                                            share|improve this answer













                                            [root@server ~]# time mailq | grep -c '^[0-9A-Z]'



                                            10



                                            real 0m1.333s



                                            user 0m0.003s



                                            sys 0m0.003s



                                            (above result indicating that there are 10 email is queue)







                                            share|improve this answer












                                            share|improve this answer



                                            share|improve this answer










                                            answered Jan 21 '13 at 7:08









                                            Business Website DesignBusiness Website Design

                                            5111




                                            5111







                                            • 2





                                              More concisely: mailq | grep -c '^w'

                                              – Antonio Bardazzi
                                              Mar 28 '13 at 8:51












                                            • 2





                                              More concisely: mailq | grep -c '^w'

                                              – Antonio Bardazzi
                                              Mar 28 '13 at 8:51







                                            2




                                            2





                                            More concisely: mailq | grep -c '^w'

                                            – Antonio Bardazzi
                                            Mar 28 '13 at 8:51





                                            More concisely: mailq | grep -c '^w'

                                            – Antonio Bardazzi
                                            Mar 28 '13 at 8:51











                                            5














                                            If you don't have qshape you can install it via the following yum commands:



                                            yum groupinstall perl development
                                            yum install postfix-perl-scripts



                                            qshape prints Postfix queue domain and age distribution information. You can read more about it here:



                                            http://www.postfix.org/QSHAPE_README.html



                                            Example output



                                            % qshape -s hold | head
                                            T 5 10 20 40 80 160 320 640 1280 1280+
                                            TOTAL 486 0 0 1 0 0 2 4 20 40 419
                                            yahoo.com 14 0 0 1 0 0 0 0 1 0 12
                                            extremepricecuts.net 13 0 0 0 0 0 0 0 2 0 11
                                            ms35.hinet.net 12 0 0 0 0 0 0 0 0 1 11
                                            winnersdaily.net 12 0 0 0 0 0 0 0 2 0 10
                                            hotmail.com 11 0 0 0 0 0 0 0 0 1 10
                                            worldnet.fr 6 0 0 0 0 0 0 0 0 0 6
                                            ms41.hinet.net 6 0 0 0 0 0 0 0 0 0 6
                                            osn.de 5 0 0 0 0 0 1 0 0 0 4





                                            share|improve this answer





























                                              5














                                              If you don't have qshape you can install it via the following yum commands:



                                              yum groupinstall perl development
                                              yum install postfix-perl-scripts



                                              qshape prints Postfix queue domain and age distribution information. You can read more about it here:



                                              http://www.postfix.org/QSHAPE_README.html



                                              Example output



                                              % qshape -s hold | head
                                              T 5 10 20 40 80 160 320 640 1280 1280+
                                              TOTAL 486 0 0 1 0 0 2 4 20 40 419
                                              yahoo.com 14 0 0 1 0 0 0 0 1 0 12
                                              extremepricecuts.net 13 0 0 0 0 0 0 0 2 0 11
                                              ms35.hinet.net 12 0 0 0 0 0 0 0 0 1 11
                                              winnersdaily.net 12 0 0 0 0 0 0 0 2 0 10
                                              hotmail.com 11 0 0 0 0 0 0 0 0 1 10
                                              worldnet.fr 6 0 0 0 0 0 0 0 0 0 6
                                              ms41.hinet.net 6 0 0 0 0 0 0 0 0 0 6
                                              osn.de 5 0 0 0 0 0 1 0 0 0 4





                                              share|improve this answer



























                                                5












                                                5








                                                5







                                                If you don't have qshape you can install it via the following yum commands:



                                                yum groupinstall perl development
                                                yum install postfix-perl-scripts



                                                qshape prints Postfix queue domain and age distribution information. You can read more about it here:



                                                http://www.postfix.org/QSHAPE_README.html



                                                Example output



                                                % qshape -s hold | head
                                                T 5 10 20 40 80 160 320 640 1280 1280+
                                                TOTAL 486 0 0 1 0 0 2 4 20 40 419
                                                yahoo.com 14 0 0 1 0 0 0 0 1 0 12
                                                extremepricecuts.net 13 0 0 0 0 0 0 0 2 0 11
                                                ms35.hinet.net 12 0 0 0 0 0 0 0 0 1 11
                                                winnersdaily.net 12 0 0 0 0 0 0 0 2 0 10
                                                hotmail.com 11 0 0 0 0 0 0 0 0 1 10
                                                worldnet.fr 6 0 0 0 0 0 0 0 0 0 6
                                                ms41.hinet.net 6 0 0 0 0 0 0 0 0 0 6
                                                osn.de 5 0 0 0 0 0 1 0 0 0 4





                                                share|improve this answer















                                                If you don't have qshape you can install it via the following yum commands:



                                                yum groupinstall perl development
                                                yum install postfix-perl-scripts



                                                qshape prints Postfix queue domain and age distribution information. You can read more about it here:



                                                http://www.postfix.org/QSHAPE_README.html



                                                Example output



                                                % qshape -s hold | head
                                                T 5 10 20 40 80 160 320 640 1280 1280+
                                                TOTAL 486 0 0 1 0 0 2 4 20 40 419
                                                yahoo.com 14 0 0 1 0 0 0 0 1 0 12
                                                extremepricecuts.net 13 0 0 0 0 0 0 0 2 0 11
                                                ms35.hinet.net 12 0 0 0 0 0 0 0 0 1 11
                                                winnersdaily.net 12 0 0 0 0 0 0 0 2 0 10
                                                hotmail.com 11 0 0 0 0 0 0 0 0 1 10
                                                worldnet.fr 6 0 0 0 0 0 0 0 0 0 6
                                                ms41.hinet.net 6 0 0 0 0 0 0 0 0 0 6
                                                osn.de 5 0 0 0 0 0 1 0 0 0 4






                                                share|improve this answer














                                                share|improve this answer



                                                share|improve this answer








                                                edited Apr 6 '13 at 14:59









                                                slm

                                                5,136124460




                                                5,136124460










                                                answered Apr 6 '13 at 14:15









                                                Brock HensleyBrock Hensley

                                                519411




                                                519411





















                                                    2














                                                    Here is an example.



                                                    #!/bin/bash

                                                    for q in active bounce corrupt defer deferred flush hold incoming maildrop pid private public saved trace

                                                    do
                                                    count=$(find /var/spool/postfix/$q ! -type d -print | wc -l)
                                                    echo $q $count
                                                    done





                                                    share|improve this answer





























                                                      2














                                                      Here is an example.



                                                      #!/bin/bash

                                                      for q in active bounce corrupt defer deferred flush hold incoming maildrop pid private public saved trace

                                                      do
                                                      count=$(find /var/spool/postfix/$q ! -type d -print | wc -l)
                                                      echo $q $count
                                                      done





                                                      share|improve this answer



























                                                        2












                                                        2








                                                        2







                                                        Here is an example.



                                                        #!/bin/bash

                                                        for q in active bounce corrupt defer deferred flush hold incoming maildrop pid private public saved trace

                                                        do
                                                        count=$(find /var/spool/postfix/$q ! -type d -print | wc -l)
                                                        echo $q $count
                                                        done





                                                        share|improve this answer















                                                        Here is an example.



                                                        #!/bin/bash

                                                        for q in active bounce corrupt defer deferred flush hold incoming maildrop pid private public saved trace

                                                        do
                                                        count=$(find /var/spool/postfix/$q ! -type d -print | wc -l)
                                                        echo $q $count
                                                        done






                                                        share|improve this answer














                                                        share|improve this answer



                                                        share|improve this answer








                                                        edited May 7 at 17:09









                                                        Akhil Jalagam

                                                        33




                                                        33










                                                        answered Feb 24 '14 at 2:57









                                                        Doug_CowieDoug_Cowie

                                                        211




                                                        211



























                                                            draft saved

                                                            draft discarded
















































                                                            Thanks for contributing an answer to Server Fault!


                                                            • Please be sure to answer the question. Provide details and share your research!

                                                            But avoid


                                                            • Asking for help, clarification, or responding to other answers.

                                                            • Making statements based on opinion; back them up with references or personal experience.

                                                            To learn more, see our tips on writing great answers.




                                                            draft saved


                                                            draft discarded














                                                            StackExchange.ready(
                                                            function ()
                                                            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f58196%2fhow-do-i-check-the-postfix-queue-size%23new-answer', 'question_page');

                                                            );

                                                            Post as a guest















                                                            Required, but never shown





















































                                                            Required, but never shown














                                                            Required, but never shown












                                                            Required, but never shown







                                                            Required, but never shown

































                                                            Required, but never shown














                                                            Required, but never shown












                                                            Required, but never shown







                                                            Required, but never shown







                                                            Popular posts from this blog

                                                            Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

                                                            Bruxelas-Capital Índice Historia | Composición | Situación lingüística | Clima | Cidades irmandadas | Notas | Véxase tamén | Menú de navegacióneO uso das linguas en Bruxelas e a situación do neerlandés"Rexión de Bruxelas Capital"o orixinalSitio da rexiónPáxina de Bruselas no sitio da Oficina de Promoción Turística de Valonia e BruxelasMapa Interactivo da Rexión de Bruxelas-CapitaleeWorldCat332144929079854441105155190212ID28008674080552-90000 0001 0666 3698n94104302ID540940339365017018237

                                                            What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company