Clear Mailcleaner Incomming Que

Table of Contents

If you need to clean out the incoming que from the mail cleaner que try the command below in the SSH.

 

If you want to test first run

/opt/exim4/bin/exiqgrep -C /usr/mailcleaner/etc/exim/exim_stage1.conf domain.tld

If that shows the emails that you want to remove try

/opt/exim4/bin/exiqgrep -C /usr/mailcleaner/etc/exim/exim_stage1.conf -i domain.tld | xargs /opt/exim4/bin/exim -C /usr/mailcleaner/etc/exim/exim_stage1.conf -Mrm