QuestionQ174

Essential Commands

What is the purpose of the mailq command?

  • A It fetches new emails from a remote server using POP3 or IMAP.
  • B It is a multi-user mailing list manager.
  • C It is a proprietary tool contained only in the qmail MTA.
  • D It queries the mail queue of the local MTA.
  • E It is a command-line based tool for reading and writing emails.
Explanation

The mailq command lists the messages currently sitting in the mail queue of the local Mail Transfer Agent (MTA), showing details such as the queue ID, message size, arrival time, sender, and recipient, along with any delivery errors. It is a common utility supported by MTAs like Sendmail, Postfix, and Exim (on Postfix systems it's an alias for postqueue -p), used for troubleshooting mail delivery issues rather than for retrieving mail from remote servers, managing mailing lists, or composing/reading messages.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!