Wednesday, November 16, 2011

exim: remove message from 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 a message from the queue from specific recipient:

# exiqgrep -ir email@domain.com | xargs exim -Mrm
To remove a message from the queue from specific sender:

# exiqgrep -if email@domain.com | xargs exim -Mrm

To count message in queue:

# exim -bpc 
To remove all message in exim mail queue:

 exiqgrep -i | xargs exim -Mrm


No comments: