Here is a small but handy script which will clear the queued emails from the server.

exim -bpc
exim -bpru | grep frozen | awk {‘print $3’}|xargs exim -Mrm
exim -bpru | grep “<>” | awk {‘print $3’}|xargs exim -Mrm
exim -bpru | grep “nobody” | awk {‘print $3’}|xargs exim -Mrm
exim -bpru|awk {‘print $3’}|xargs exim -Mrm
exiqgrep -o 86400 -i | xargs exim -Mrm
exim -bpc

This script will display the number of queued emails before clearing, then clear them and display the number after clearing them.


Shares
Contact Us On WhatsApp