nerdexam
CompTIA

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.

Essential System Services

Question

What is the purpose of the command mailq?

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)
  • B
    4% (1)
  • D
    92% (22)
  • E
    4% (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.

AIt fetches new emails from a remote server using POP3 or IMAP.

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`.

BIt is a multi-user mailing list manager.

`mailq` is for viewing the mail queue, not for managing mailing lists, which is a separate function handled by list managers like Mailman.

CIt is a proprietary tool contained only in the qmail MTA.

`mailq` is a common command found in many MTAs (like Sendmail, Postfix, Exim), not exclusive to qmail.

DIt queries the mail queue of the local MTA.Correct

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.

EIt is a command-line based tool for reading and writing emails.

`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

#mailq#mail queue#MTA#email management

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice