Friday, June 18, 2010

sendmail, command to flush queue?

SkyHi @ Friday, June 18, 2010
Try "sendmail -q -v"

If you run into a command list too long for rm, try:



# ls /var/spool/mqueue | xargs rm



That will break up the file list into more managable bites for rm.


find /var/spool/mqueue -name "*fn*" -delete

most fastest method =)










http://www.linuxquestions.org/questions/linux-software-2/sendmail-command-to-flush-queue-49694/