[How to] Remove all mail queues in exim Directadmin

SSH to Fix

To remove all mail queues:

# exim -bp | awk '/^ *[0-9]+[mhd]/{print "exim -Mrm " $3}' | sh

** Cannot to delete the queue list. it show “No valid message ID’s were passed

# cd /var/spool
# mv exim exim.old
# mkdir -p exim/input
# mkdir -p exim/msglog
# mkdir -p exim/db
# chown -R mail:mail exim
# /sbin/service exim restart

Then delete the old spool:

# rm -rf exim.old

Finish..