LX0-104 · Question #37
What is the purpose of the command mailq?
The correct answer is D. It queries the mail queue of the local MTA.. The mailq command is used to display the contents of the mail queue on a local Mail Transfer Agent (MTA). This queue holds messages that are waiting to be sent or have encountered temporary delivery issues.
Question
Options
- AIt fetches new emails from a remote server using POP3 or IMAP.
- BIt is a multi-user mailing list manager.
- CIt is a proprietary tool contained only in the qmail MTA.
- DIt queries the mail queue of the local MTA.
- EIt is a command-line based tool for reading and writing emails.
How the community answered
(24 responses)- B4% (1)
- D92% (22)
- E4% (1)
Why each option
The `mailq` command is used to display the contents of the mail queue on a local Mail Transfer Agent (MTA). This queue holds messages that are waiting to be sent or have encountered temporary delivery issues.
Fetching new emails from a remote server using POP3 or IMAP is typically done by Mail User Agents (MUAs) or specific mail fetcher programs, not `mailq`.
`mailq` is for viewing the mail queue, not for managing mailing lists, which is a separate function handled by list managers like Mailman.
`mailq` is a common command found in many MTAs (like Sendmail, Postfix, Exim), not exclusive to qmail.
The `mailq` command directly interacts with the local Mail Transfer Agent (MTA) to show all messages currently stored in its queue. This allows administrators to monitor pending email deliveries and troubleshoot mail flow issues.
`mailq` displays queue status; it is not a tool for reading or writing individual emails, which is the function of a Mail User Agent.
Concept tested: Mail queue management
Source: https://linux.die.net/man/8/mailq
Topics
Community Discussion
No community discussion yet for this question.