Simple script to monitor Postfix

This script uses qshape to print out the details of deferred emails in Postfix. Useful when monitoring delivery issues.

#!/bin/sh

while :
do
    sudo qshape deferred
    sleep 30
done