📄 Viewing: //scripts/mail_queue_stats
#!/bin/bash
# Show status of the postfix mail queue

for q in maildrop incoming hold active deferred

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

← Back to directory