SSH command: Delete frozen, Nobody, Older then 1 day messages

This is how you can delete frozen emails on your server via ssh

#Remove the frozen messages.
exiqgrep -zi|awk {'print $3'}|xargs exim -Mrm

#Remove nobody mails
exim -bpru|grep nobody|awk {'print $3'}|xargs exim -Mrm

#Remove mail older than 1 day
exiqgrep -o 86400 |awk {'print $3'}|xargs exim -Mrm

Author: Chris

Leave a Reply

Your email address will not be published.