How to check mail queue in linux ?

To check number of mails in queue you can use
exim -bpc

To check mails in mail queue you can use
sendmail -bp

To remove mails from mail queue you can use
exim -bp | awk '/^ *[0-9]+[mhd]/{print "exim -Mrm  " $3}' | bash

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *