1) 停止QMAIL
service qmailctl stop
2) mv /var/qmail/queue/lock /var/qmail/
find /var/qmail/queue/ -type f -exec rm {} \;
mv /var/qmail/lock /var/qmail/queue/
3) 重启QMAIL.
service qmailctl start
队列中的邮件包含在以下目录中 /var/qmail/queue/{info,mess,remote,local}/hash/#number
最后再查看一下邮件队列情况【清除以后的队列应该是0】
[root@XKWB5705 lock]# /var/qmail/bin/qmail-qstat
messages in queue: 0
messages in queue but not yet preprocessed: 0