"How To" Guides for UNIX System Administration

Mail Queue Administration

Displaying the Mail Queue

Display the mail queue with this command:

mailq

If there are any pending e-mail messages, this command shows the e-mail addresses of their senders and recipients, and the reasons that the messages were retained in the queue. If the entire reason is not be shown by this command, the complete message can be obtained by reprocessing the messages in the queue.

Processing the Mail Queue

Using root to run the command:

sendmail -q -v > sendmail.log

will process the mail queue and put a log of the mail session in a file.

sendmail errors

Some possible reasons that messages might not be sent successfully are:

451 Message held for human verification before permitting delivery.
The message was not delivered immediately, but placed in a queue where it can be examined by a person, probably to ensure that it is not spam. If not spam, the message will probably be delivered at a later time.

Last updated Wednesday December 27, 2006


Printer-friendly PDF* format:

How To Guides for UNIX System Administration

This Section

You are currently viewing this page in XHTML 1 Style Sheet* format (* see Clicklets for more infomation). This document is also available in XHTML 1*XML*HTML 4*HTML 5 Style Sheet*HTML 5 XML*HTML 5 non-XML* XHTML 2* XHTML Mobile* WML Mobile* and printer-friendly PDF* formats. This is accomplished with Single Source Publishing, a content management system that uses templates in XSLT style sheets provided by XML Styles .com to transform the source content for various content delivery channels. There is also RDF* metadata that describes the content of this document.