LFCS · Question #451
If you want to print a listing of your computer's mail queues, what command would you use?
The correct answer is C. mailq. The mailq command is used to display a listing of messages currently held in the system's mail queues.
Question
Options
- Asendmail -l
- Blpq
- Cmailq
- Dmlq
How the community answered
(62 responses)- A6% (4)
- B3% (2)
- C89% (55)
- D2% (1)
Why each option
The `mailq` command is used to display a listing of messages currently held in the system's mail queues.
`sendmail -l` is not a standard command or option for listing mail queues; `sendmail` is the Mail Transfer Agent itself.
`lpq` is used to examine the line printer spool queue, not the mail queue.
The `mailq` command is specifically designed to display a listing of all messages currently in the sendmail or Postfix mail queues, providing details like sender, recipient, size, and status. It allows administrators to monitor the flow of email and identify potential delivery issues.
`mlq` is not a recognized command for mail queue management.
Concept tested: Mail queue management and monitoring
Source: https://www.man7.org/linux/man-pages/man8/mailq.8.html
Topics
Community Discussion
No community discussion yet for this question.