Checking the email queue is the initial step in doing any of the many queue procedures, such as clearing or storing. Here, the post queue -p command will be used to achieve our goal. Read below, to know in detail.
Step:1 First view the number of emails in the Postfix mail queue by this command .
Step:2 To delete all emails in queue use this command .