nerdexam
Linux_Foundation

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.

Submitted by kwame.gh· Apr 18, 2026Service Configuration

Question

Which of the following commands should be used to print a listing of emails in the system's mail queue?

Options

  • Asendmail -l
  • Blpq
  • Cmailq
  • Dmlq

How the community answered

(27 responses)
  • A
    4% (1)
  • C
    89% (24)
  • D
    7% (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.

Asendmail -l

`sendmail -l` is not a standard command or option to list the mail queue; `sendmail` itself is a Mail Transfer Agent.

Blpq

`lpq` is used to examine the spool queue for printing jobs, not email messages.

CmailqCorrect

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.

Dmlq

`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

#Mail queue#Email management#System commands

Community Discussion

No community discussion yet for this question.

Full LFCS Practice