Managing sendmail Services in Oracle® Solaris 11.2

Exit Print View

Updated: July 2014

How to Display the Contents of the Mail Queue, /var/spool/mqueue

  • Show how many messages are in the queue and how fast they are being cleared from the queue.

    Type the following:

    # /usr/bin/mailq | more

    This command provides the following information.

    • The queue IDs

    • The size of the message

    • The date that the message entered the queue

    • The message status

    • The sender and the recipients

    Additionally, this command now checks for the authorization attribute, solaris.admin.mail.mailq. If the check is successful, the equivalent of specifying the –bp flag with sendmail is executed. If the check fails, an error message is printed. By default, this authorization attribute is enabled for all users. The authorization attribute can be disabled by modifying the user entry in prof_attr. For more information, refer to the man pages for prof_attr(4) and mailq(1).