To see the statistics of the queue:
/usr/local/psa/admin/bin/mailqueuemng -s
Messages in local queue: 0
Messages in remote queue: 0
Messages in todo queue: 0
Messages total: 0
Messages found: 0
Timestamp: 1215870834
–
From this you can see the status of qmails local,remote and to do list.
1 If you wish to do a delivery of the queued messages now run the following command
/usr/local/psa/admin/bin/mailqueuemng -a
2 To list remote message queue:
/usr/local/psa/admin/bin/mailqueuemng -R
3 list local message queue:
/usr/local/psa/admin/bin/mailqueuemng -L
4 To delete messages with a particular pattern in the subject line
/usr/local/psa/admin/bin/mailqueuemng -S”text”
eg: /usr/local/psa/admin/bin/mailqueuemng -S”failure notice”
will delete all delivery failed messages
5 To delete all messages in the queue (Use with caution – possible data loss )
/usr/local/psa/admin/bin/mailqueuemng -D