3
Spool Search and delete
Idea shared by Houtan Maleki - 7/8/2018 at 12:48 PM
Proposed
From time to time, a users password gets compromised and thousands of authenticate outgoing spam get stuck in the spool. Search and check all and delete is not an efficient way of dealing with this. I use a bat file in the spool directory (shown below) to deal with these, but it would be great if one could search and delete from web admin interface 
 
@echo off
set token=comromiseduser@localdomain.com
@echo delete files containing %token%
SET /P AREYOUSURE=Are you sure (Y/[N])?
IF /I "%AREYOUSURE%" NEQ "Y" GOTO END
FOR /L %%i IN (0,1,9) DO (
  @echo %%i
  cd SubSpool%%i
  for /f "eol=: delims=" %%F in ('findstr /m %token% *.*') do del "%%F"
  cd ..
)
:END
endlocal

1 Reply

Reply to Thread
0
Thanks for sharing your script Houtan! I wanted to chime in and tell you about a free program my company offers called Declude. It comes with a feature called Hijack which prevents mass amounts of spam from making it to your spool and leaving your server in the event of a compromised account. If you are interested, you can download it here: http://mailsbestfriend.com/downloads/ Please let me know if you have any questions about it if you plan to use it. Thanks again!
Linda Pagillo Mail's Best Friend Email: linda.pagillo@mailsbestfriend.com Web: www.mailsbestfriend.com Authorized SmarterTools Reseller Authorized Message Sniffer Reseller

Reply to Thread