Title: Email Reports using Declude Domlist

Wanted to share this script with the group. This may be useful in determining which of your domains are spammers!
Place this is a bat file and schedule it to run everyday at 11:59 PM for an accurate report.

Please note that your paths may be different and remember to update them accordingly.

This script uses the unix command "sort" you can get these GNU tools for win 32 from http://unxutils.sourceforge.net/

It also uses the domlist.exe available from http://www.declude.com/tools

For Imail 8.x logs, if you are using 7.xx use the log.... instead of sys....
<begin bat file>
@for /f "Tokens=2-4 Delims=/ " %%i in ('date /t') do set logname=E:\Imail\spool\sys%%i%%j.txt

d:\imail\domlist %logname% 5 | "c:\progra~1\unxutils\usr\local\wbin\sort" -k1.40,1.51 -brg >c:\winnt\temp\tempreport.txt

d:\imail\imail1 -u "[EMAIL PROTECTED]" -t [EMAIL PROTECTED] -s "Imail Report from %COMPUTERNAME%" -f c:\winnt\temp\tempreport.txt

<end bat file>

Thanks to Scott w/declude and K.M Syring for the unix ports.

Reply via email to