LFCS · Question #556
Which of the following commands should be used to print a listing of emails in the system's mail queue?
The correct answer is C. mailq. The mailq command is used to display the contents of the mail queue on a system, listing messages awaiting delivery by the mail transfer agent.
Question
Options
- Asendmail -l
- Blpq
- Cmailq
- Dmlq
How the community answered
(27 responses)- A4% (1)
- C89% (24)
- D7% (2)
Why each option
The `mailq` command is used to display the contents of the mail queue on a system, listing messages awaiting delivery by the mail transfer agent.
`sendmail -l` is not a standard command or option to list the mail queue; `sendmail` itself is a Mail Transfer Agent.
`lpq` is used to examine the spool queue for printing jobs, not email messages.
The `mailq` command is specifically designed to show the current contents of the system's mail queue, providing information about messages that are waiting to be sent, their sender, recipient, size, and status. It is a utility commonly associated with MTAs like Postfix or Sendmail.
`mlq` is not a standard command for displaying the mail queue.
Concept tested: Linux mail queue management
Source: https://man7.org/linux/man-pages/man8/mailq.8.html
Topics
Community Discussion
No community discussion yet for this question.