The mail queue holds messages the server has accepted but not yet delivered. A long queue can mean the server is sending a lot of mail, a receiving server is refusing it, or an account is sending spam.
Log in to WHM as root, open Email, then Mail Queue Manager.
Use the Search box with a Search Type of Begins With, Exact or Partial, and choose a Start Date and End Date if you want to narrow it. Click Run Report. The list shows the time received, the sender, the message ID, the recipient, the size and the status, and how many messages match. Click the magnifying glass on a message to read it.
Tick the messages, then:
Deliver All and Delete All act on every message in the queue, so use them with care. Deleting is final.
Look at the sender on the queued messages. If one account is sending a lot, suspect a hacked mailbox or a website contact form that is being abused. Change the password, scan the account, and then delete the spam from the queue. See My website has been hacked: what to do and Stopping spam sent through your contact forms.