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}' ```