Go to main content

Managing sendmail Services in Oracle® Solaris 11.3

Exit Print View

Updated: April 2020
 
 

Displaying the Contents of the Mail Queue, /var/spool/mqueue

You can display the messages that are in the queue by using the following command:

# /usr/bin/mailq | more

This command provides the following information:

  • Queue IDs

  • Size of the message

  • Date that the message entered the queue

  • Message status

  • Sender and the recipients

Additionally, this command checks for the authorization attribute, solaris.admin.mail.mailq. If the attribute is found, the equivalent of specifying the –bp flag with sendmail is executed. If the attribute is not found, 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, see the prof_attr(4) and mailq(1) man pages.