1. Stop Qmail

/etc/init.d/qmail stop

(Stop qmail before removing)

# /var/qmail/bin/qmail-remove -r -p “ Subject”

(considering that “Subject” was the subject of the email )

2. To completely remove all the mails from queue. Just run the below commands.

find /var/qmail/queue/mess -type f -exec rm {} ;

find /var/qmail/queue/info -type f -exec rm {} ;

find /var/qmail/queue/local -type f -exec rm {} ;

find /var/qmail/queue/intd -type f -exec rm {} ;

find /var/qmail/queue/todo -type f -exec rm {} ;

find /var/qmail/queue/remote -type f -exec rm {} ;