How you can empty your qmail queue

After a long time updating my blog. well I have many things to share but yes I will do it as soon as i get time.

For this time a small qmail queue deletion script tip as mentioned given.

#!/bin/sh

#  STOP services of Qmail first
/sbin/service qmail stop or qmailctl stop

for i in bounce info intd local mess remote todo; do

find /var/qmail/queue/$i -type f -exec rm {} \;
done
/sbin/service qmail start

However, there are multiple ways to delete the qmail queue, but I prefer this because it worked like a charm!!

Advertisements