LFCS · 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 local Mail Transfer Agent's (MTA) outgoing mail queue.
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
(42 responses)- A2% (1)
- B2% (1)
- C7% (3)
- D88% (37)
Why each option
The `mailq` command is used to display the contents of the local Mail Transfer Agent's (MTA) outgoing mail queue.
Commands like `fetchmail` or email clients are used to fetch emails from remote servers, not `mailq`.
Mailing list managers like `Mailman` or `Sympa` handle multi-user mailing lists, not `mailq`.
While qmail has a mail queue, `mailq` is a standard command available with many MTAs (e.g., Sendmail, Postfix), not proprietary to qmail.
`mailq` provides a snapshot of the messages currently in the local MTA's queue, indicating emails that are waiting to be sent or are temporarily undeliverable.
Commands like `mailx` or `mutt` are used for reading and writing emails from the command line, not `mailq`.
Concept tested: Mail Transfer Agent queue inspection
Source: https://manpages.debian.org/testing/mailutils/mailq.1.en.html
Topics
Community Discussion
No community discussion yet for this question.