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.
Community Discussion