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.