Postfix

qshape

A tool for analyzing messages in postfix’s various queues. eg What domain’s they’re going to, and how long they’ve been there

# To list messages all messages by domain
# sudo qshape

                                      T  5 10  20 40  80 160 320  640 1280 1280+
                             TOTAL 1714  4  5 141  4 256  22  56 1218    7     1
                         gmail.com 1714  4  5 141  4 256  22  56 1218    7     1

Links

mailq

Get me a list of messages currently in the active queue (and possibly other queues eg hold)