To get number of messages in queue
server20# exim -bpc

To list messages in queue
# exim -bpr

To delete all mails in queue
# exim -bpu | awk ‘{print $3}’ | xargs exim -Mrm
OR
# for i in $(exim -bpr | awk ‘{print $3}’); do exim -Mrm $i; done
OR
# rm -rf /var/spool/exim/input

Send forcely mail:-
exim -qff

 

Leave a Reply