Neil, Right, wrong, or indifferent here is what I use. I have purposely prefixed spaces " " before any executables (executable. com) in order to hopefully bypass any spam or virus filters. Please give this thoughtful consideration if you make these files and omit the space. All comments and/or suggestions are welcome.
I use the scheduled task (windows scheduler) that fires 4 events. Event 1 I have set to run daily every 4 hours. Event 2 I set to run daily at 1AM and event 3 I have set to run daily at 2AM. Event 4 I have set to run weekly every Sunday at 3AM. Event 1) First it runs the F-Prot for dos virus update via virupdate. bat along with a file called getvsigs.txt. The virupdate. bat file simply runs Microsoft's built in ftp process via the contents of the getvsigs.txt (get virus signatures). In the following example change example. com to your domain name. Notes: The location of these files is assumed to be located in the C:\Progra~1\FSI\F-Prot directory folder. This is for F-Prot For DOS ONLY. Event 2) The scheduler then runs emaildfg. bat. This batch file does some neat stuff. First is shuts down email services so users can't access there email, defragments the contents of the users email files, and finally restarts the email services. Notes: The location of emaildfg. bat and contig. exe is assumed to be located in the c:\imail directory folder. This will DOWN your email services until the file defragmentation is done. Event 3) The defragit. bat scheduled event is then run. Notes: The Autodefrag. exe file is assumed to be located in the C:\WINNT directory folder and too defrag hard drive volume C:. I have not found any slowness/latency of email services provided to end users while the defragmentation of the hard drive is being done. Event 4) At least weekly the scheduler runs the mailback. bat file. It moves the generated Imail registry keys, copies the contents of the Imail folder and sub folders, then copies and moves the generated server registry keys. I do this just in case something goes wrong with the server. We use the built in Imail database and I believe Imail stores all the user information in the registry. I use the built in XCopy command with switches to copy the contents of the Imail folder and subfolders to a specified destination. Notes: The generated imail. reg and EMailSvr. reg files are "moved" to there new location where I have Imail backed up to. You MUST change your "move" command pathing "\\Datastor\BACKUP" to something like "Move G:\Server\Backup" and the registry file names to your own needs. On the XCopy command line don't forget the final back slash "\" prior to a space " " and /e /v /c /y switches (XCopy G:\Server\Backup\ /e /v /c /y). One could use notepad, to make these files, and save them with the appropriate extension. Note: Do not include the @<xxx. bat-txt> @</xxx. bat-txt> tags they are for your reference only and should be omitted. ============= Event 1 =============== @<virupdate. bat> c: cd\Progra~1\FSI\F-Prot ftp -n -s:getvsigs.txt @</virupdate. bat> @<getvsigs.txt> note: remove "omit" the space for the com extension open ftp.f-secure.com user anonymous [EMAIL PROTECTED] com cd anti-virus/updates/f-prot/dos binary hash prompt get macro.def get sign.def get sign2.def close Quit @</getvsigs.txt> ============= Event 2 =============== @<emaildfg. bat> note: remove "omit" the space for the exe extension Cls net stop "IMail SMTP Server" net stop "IMail Queue Manager Service" net stop "IMail POP3 Server" net stop "IMail Web Service" net stop "Imail Web Calendar Service" c:\imail\contig. exe c:\imail\* -v -s net start "IMail SMTP Server" net start "IMail Queue Manager Service" net start "IMail POP3 Server" net start "IMail Web Service" net start "Imail Web Calendar Service" Cls @</emaildfg. bat> ============= Event 3 =============== @<defragit. bat> note: remove "omit" the space for the exe extension C:\WINNT\Autodefrag. exe C: @<defragit. bat> ============= Event 4 =============== @<mailback. bat> note: remove "omit" the space for the reg extensions especially for the hive key regedit /e c:\imail\imail. reg HKEY_LOCAL_MACHINE\Software\Ipswitch\Imail Move c:\imail\imail. reg \\Datastor\BACKUP XCopy c:\imail \\Datastor\BACKUP\ /e /v /c /y cd\ regedit /e EMailSvr. reg Move EMailSvr. reg \\Datastor\BACKUP Exit @</mailback. bat> ============ Other info ============= Sources for free executables used: Contig. exe http://www.sysinternals.com/ntw2k/freeware/contig.shtml Autodefrag. exe http://www.morphasys.com/autodefrag/ I make no representations about the suitability, of the information contained in this email, for your specific usage. This email and its' contents are provided "AS IS" without any warranty of any kind. The entire risk arising out of using this information remains solely with the recipient. In no event shall I be held liable for any direct, indirect, consequential, incidental, special, punitive, or other damages whatsoever (including without limitation, damages for loss of business profits, business interruption, or loss of business information) even if I have been previously advised of such circumstances or damages from its' usage. This email maybe distributed freely. Hope this helps and good luck!, ~Rick > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Neil Olson > Sent: Friday, February 20, 2004 9:35 AM > To: [EMAIL PROTECTED] > Subject: [IMail Forum] Defrag on Win2000 > > > In an attempt to help out performance with iMAil, we are > going to defrag the disk that imail sits on. Question being, > do you allow users to access your server via web interface, > IMAP, POP3 while defrag is running? ___________________________________________________________________ Virus Scanned and Filtered by http://www.FamHost.com E-Mail System. To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/ Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/
