First of all stop the mail server by
service exim stop
then, change directory to /var/spool/exim
cd /var/spool/exim
Now, execute the below command, which will delete all the mails on the mail queue folder.
find input -type f -exec rm -rf {} \;
Now, we also need to run the command for msglog folder too.
find msglog -type f -exec rm -rf {} \;
Once done, start the mailserver exim.
service exim restart
Leave a Reply