graceful shutdown

Julian Field mailscanner at ecs.soton.ac.uk
Sat Dec 13 17:43:25 GMT 2003


At 17:26 13/12/2003, you wrote:
> > -----Original Message-----
> > From: MailScanner mailing list [mailto:MAILSCANNER at JISCMAIL.AC.UK] On
> > Behalf Of Robin M.
> > Sent: Saturday, December 13, 2003 10:24 AM
> > To: MAILSCANNER at JISCMAIL.AC.UK
> > Subject: graceful shutdown
> >
> > If I do
> > kill `/usr/sbin/check_mailscanner`
> > will this cause a problem with mail that it is currently working on ?
>
>This will not work. Mail will still be received but since MailScanner is not
>running, this mail will just pile up in the incoming mail queue. It will not
>be processed, delivered or relayed.

In the MailScanner.conf file, there is a definition "PID file" which is the
name of the file that holds the main PID. Kill that process and give it 10
to 15 seconds to shut down tidily, at the end of which there should be no
MailScanner processes running.

However, as Steve says, the incoming and outgoing sendmails will still be
running, so your system is still accepting mail but doing nothing with it.
So it will just collect in the mqueue.in and will not be delivered.

If you want to stop MailScanner and start your original mail configuration
so that mail is still delivered, but not scanned, then
         service MailScanner stop
         sleep 15
         service sendmail start
         mv /var/spool/mqueue.in/* /var/spool/mqueue

--
Julian Field
www.MailScanner.info
Professional Support Services at www.MailScanner.biz
MailScanner thanks transtec Computers for their support
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654



More information about the MailScanner mailing list