Alex-
Your script will fail if either SMTPD32 or QUEUEMGR is already stopped when
it runs. This happens because a failure of any step in a .bat file stops
execution of the rest of the file.
Each command should be in a separate .bat file, and your main .bat file
should call each file in turn. This works because any result from a called
file - even a failure - will cause the batch to execute the next command.
So a RECYCLE.BAT file should consist of...
call stop_smtpd32.bat
call stop_queuemgr.bat
call start_smtpd32.bat
call start_queuemgr.bat
...and each called file should contain only the NET STOP or NET START
command for the service.
Note that I stop both services and then start them in a sequence that is
based on my understanding of the logical relationship betweeen the services.
Stopping SMTP stops input to the queue, which can then be stopped. I start
SMTP first so that when the queue is restarted SMTP is ready to handle
requests from the queue.
-Dave Doherty
Skywaves, Inc.
----- Original Message -----
From: "Alejandro Valenzuela" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, February 07, 2006 7:47 PM
Subject: RE: [IMail Forum] seems to shut down at Midnight
A little *.bat program with this comands in it, helped me a lot.
----------------------
net stop SMTPD32
net start SMTPD32
Net Stop QUEUEMGR
Net Start QUEUEMGR
---------------------------
Run it every night or every morning, scheduled, and you will see
everything
goes better..
I been running that since we started using imail..
Alex
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert
Sent: Tuesday, February 07, 2006 8:22 AM
To: [email protected]
Subject: Re: [IMail Forum] seems to shut down at Midnight
Sorry, haven't seen anything like it.
// Robert
Ann Ruggiero wrote:
So no one has seen this type of thing?
------------------------------------------------------------------------
*From:* [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] *On Behalf Of *Ann Ruggiero
*Sent:* Monday, February 06, 2006 9:14 AM
*To:* [email protected]
*Subject:* [IMail Forum] seems to shut down at Midnight
Seems that the Imail services are shutting down at midnight when the
new log begins. We see no activity after the new log starts, though
if you go into the services, everything is shown to be running.
Anyone else seen this strange behavior? We end up restarting the box,
so the services will all start again.
Oh yeah, Imail 2006, have not installed the update yet.
Thanks,
Ann
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/
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/
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/