From 1dd3be9259988b061a1592caf987dcab1d76506e Mon Sep 17 00:00:00 2001 From: Nicole Rappe Date: Mon, 29 Dec 2025 20:47:56 -0700 Subject: [PATCH] Update Servers/Email/iRedMail/Query SMTP Outgoing Queue.md --- Servers/Email/iRedMail/Query SMTP Outgoing Queue.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Servers/Email/iRedMail/Query SMTP Outgoing Queue.md b/Servers/Email/iRedMail/Query SMTP Outgoing Queue.md index 75312e2..c12b4a9 100644 --- a/Servers/Email/iRedMail/Query SMTP Outgoing Queue.md +++ b/Servers/Email/iRedMail/Query SMTP Outgoing Queue.md @@ -5,6 +5,10 @@ You may need to troubleshoot the outgoing SMTP email queue / active sessions in You can run the following command to get the complete backlog of all email senders in the queue. This can be useful for tracking the queue's "drainage" over-time. ```sh +# List the total number of queued messages +postqueue -p | egrep -c '^[A-F0-9]' + +# Itemize and count the queued messages based on sender. postqueue -p | awk '/^[A-F0-9]/ {id=$1} /from=<[^>]+>/ && $0 !~ /from=<>/ {print id; exit}' ```