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).