Mark, Attached is a file that will do what you need. Rename it to a .bat file and you'll need to change some directory references to your IMail server.
The batch file goes through your users directories looking for the forward.ima file and then prints the contents and the users folder id. The resulting file will allow you to find the forward address that is bouncing. bob On Wednesday, February 13, 2002 10:15 AM, Mark [Support] <[EMAIL PROTECTED]> wrote: > At 11:00 AM 2/13/2002 -0500, you wrote: > >have a former student account who forwarded his account to an >outside ISP.� He has since discontinued his account at the ISP >and now all his messages are bouncing.� I have no idea which >one of the 500 students it is. > >Is there any way to "scan" for the offending account by the forwarding address? > Do a search where you keep the IMail data for forward.ima.� >That will show the directory where the files is, and it will >correspond to the email address. > > Cheers >������������������������Mark > > > Orillia ProNet > 22A Colborne Street West > Orillia, Ontario, L3V 2Y3, Canada > 705-329-3949 >www.orilliapronet.com > <http://www.orilliapronet.com/>[EMAIL PROTECTED] >
@echo off echo. echo This batch looks for the file named forward.ima in each users echo directory. It can be used to determine the accounts that have a echo forward setup. It writes out a file of userids (folders) that have echo the forward.ima file set. Resulting file is named forwards.log echo I currenly have it writing out the new forward.ima entry for the user. echo . rem pause d: cd \imail del GFPSAdmin\forwards.log rem building userlist based on directory only dir /B /AD users>GFPSAdmin\dirlist.txt echo.>GFPSAdmin\forwards.log echo Please wait while the file is copied to all directories ... rem This for loop loops through the dirlist.txt file looking for the filename rem forward.ima in each folder in the file. If it finds it, it writes the rem folder(userid) to the forwards.log file. rem Note that this command must all be on one single line: rem FOR /F "eol= tokens=1,* delims=/" %%i in (GFPSAdmin\dirlist.txt) do if exist .\users\%%i\forward.ima echo %%i [EMAIL PROTECTED]>>GFPSAdmin\forwards.log rem FOR /F "eol= tokens=1,* delims=/" %%i in (GFPSAdmin\dirlist.txt) do if exist .\users\%%i\forward.ima echo %%i,forwards to >> GFPSAdmin\forwards.log FOR /F "eol= tokens=1,* delims=/" %%i in (GFPSAdmin\dirlist.txt) do for %%i in (.\users\%%i\forward.ima) do if exist %%i echo %%i forwards to >> GFPSAdmin\forwards.log |type %%i >> GFPSAdmin\forwards.log|echo. >> GFPSAdmin\forwards.log rem echo Check file GFPSAdmin\forwards.log for details. rem echo.
