Type the traditional command, present on Sendmail, Postfix and Exim alike, that lists the messages currently waiting in the local mail queue.

LPIC-1 Exam 102-500, objective 108. Essential system services easy

Draft — not checked yet. This question was written from the published exam objectives and cites the clause it comes from, but nobody has yet read it against that clause and signed for it.

It is kept out of search results and out of mock exams until they have. Read the source below before you take the answer as settled.

Answer

Type the answer.

Accepted answers

Case sensitive — Linux is, and grading LS as ls would teach a falsehood.

Why

mailq prints the outbound queue: each message's queue id, size, arrival time, sender and pending recipients, plus the reason delivery is deferred. It is historically the same program as `sendmail -bp`, and every common MTA ships a compatible version, which is why LPI treats it as MTA-neutral. Postfix additionally offers postqueue -p for the same listing and postsuper for removing or requeueing messages.

Where this comes from

Cited
LPI exam objective 108.3
What it says
Inspect the local mail queue.

Practise this

Reading one question is not practice. The trainer will draw a set from objective 108 and space the ones you get wrong.

Practise LPIC-1 Exam 102-500