Shell Trick of the Day: Who's in my Mail Queue?
by
Kevin Hill
—
last modified
Mar 20, 2007 01:46 PM
Want to see whats plugging up your Postfix Queue?
Here's a little trick I came up with a while ago that comes in handy. This will display the number of times an email address shows up as either a sender or recipient in your postfix queue.
postqueue -p | cut -c 42- | grep -v ^\$ | sort | uniq -c | sort -nComes in handy to see if a particular user is breaking your mail server!

