Small blog about system administration.

Exim Remove All messages From the Mail Queue

To print a list of the messages in the queue, enter:


# exim -bp

To remove a message from the queue, enter:

# exim -Mrm {message-id}

To remove all messages from the queue, enter:

# exim -bp | exiqgrep -i | xargs exim -Mrm

To rebuild the queue, enter:

# cd /var/spool
# mv exim exim.old

# mkdir -p exim/input
# mkdir -p exim/msglog
# mkdir -p exim/db
# chown -R mail:mail exim
# service exim restart

No comments :

Post a Comment