Update Servers/Email/iRedMail/Query SMTP Outgoing Queue.md
All checks were successful
GitOps Automatic Deployment / GitOps Automatic Deployment (push) Successful in 6s
All checks were successful
GitOps Automatic Deployment / GitOps Automatic Deployment (push) Successful in 6s
This commit is contained in:
@@ -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}'
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user