- About mailq : To print the mail queue
- It comes from “postfix-2.6.6” & “sendmail-8.14.4” packages.
- Configuration Files:
- Path: /usr/bin/mailq
Examples:
1. To see the mails in queue
$ mailq |
2. To show the mail submission queue specified
$ mailq -Ac |
3. To show the “lost” items in the mail queue instead of the normal queue items
$ mailq -qL |
4. To show the quarantined items in the mail queue instead of the normal queue items
$ mailq -qQ |
5. To Limit processed jobs to those containing substr as a substring
$ mailq -q[!]I substr |
6. To Limit processed jobs to quarantined jobs containing substr as a substring
$ mailq -q[!]Q substr |
7. To Limit processed jobs to those containing substr as a substring of one of the recipients
$ mailq -q[!]R substr |
8. To limit processed jobs to those containing substr as a substring
$ mailq -q[!]S substr |
9. To Print verbose information
$ mailq -v |
Related Commands: sendmail