How to Clear Email Queue/Spool on SmarterMail
If you receive a notification from Nagios i.e, below are the step to clean up those Emails
SIT-WIN-EMAIL-SHARED:xxxxxx/Smartermail Queue is CRITICAL: SMARTERMAIL QUEUE 700 - CRITICAL
1. Login to Smartermail as admin
2. Go to Spool

3. Before you remove those SPAM emails, make sure that those emails are SPAM. You can view it by double click it.
4. After confirm those emails are SPAM. You can clean up those emails by select all emails and then Delete it

5. If spool emails more than 3000 or more, below are the steps :
– Rename the Spool folder under this C:\SmarterMail to anything else that you can remember, after that restart the SmarterMail service by go to Services ( search Services.msc ) in order to recreate the Spool folder

– Once its done, please use this script to sort out those SPAM emails
This is for .eml
@ECHO OFF
FOR /f "tokens=*" %%a IN ('FINDSTR /i /m "[179.174.14.162]" "C:/OldSpool/SubSpool9/*.eml"') DO (
IF "%ERRORLEVEL%"=="0" MOVE %%a "C:/OldSpool/SPAM/">Nul
)
}
This is for .hdr
@ECHO OFF
FOR /f "tokens=*" %%a IN ('FINDSTR /i /m "[198.50.153.244]" "C:/OldSpool/SubSpool9/*.hdr"') DO (
IF "%ERRORLEVEL%"=="0" MOVE %%a "C:/OldSpool/SPAM/">Nul
)
Once got sort, you would need to put back those emails to Spool.
