Qmail Commands:
root@linux ~]# /var/qmail/bin/qmail-qstat
messages in queue: 123
messages in queue but not yet preprocessed: 0
You can examine the queue with qmail-qread.
/var/qmail/bin/qmail-qread
From the qread command you get the message’s id . If the id is 12345 .
Now you can find the file holding the email in/var/qmail/queue with “find
“command.
find /var/qmail/queue -iname 12345
Above will output like this :
/var/qmail/queue/remote/22/12345
/var/qmail/queue/mess/22/12345
/var/qmail/queue/info/22/12345
Now open that file and you should be able to get the details.
vi /var/qmail/queue/mess/22/12345
If you wish 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 {} \;