Question

Colin Jack colin at mainline.co.uk
Sun Sep 10 12:35:22 IST 2006


Easy ... start sendmail in queue flushing mode only ;)

Something like 'sendmail -q5m' would work fine

This will tell sendmail to check the queue every 5 mins but not listen
for incoming connections

Colin
 

> -----Original Message-----
> From: mailscanner-bounces at lists.mailscanner.info 
> [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf 
> Of Julian Field
> Sent: 10 September 2006 10:41
> To: MailScanner discussion
> Subject: Re: Question
> 
> 
> 
> Derek Catanzaro wrote:
> > Greg Borders wrote:
> >>
> >>
> >> Logan Shaw wrote:
> >>> On Tue, 5 Sep 2006, Rob Poe wrote:
> >>>> Is there a way to start MailScanner so that it processes any 
> >>>> messages in it's queue, but does not accept new incoming 
> messages?
> >>>
> >>> Well, it's a queue that sendmail and MailScanner share 
> (sendmail is 
> >>> the producer, MailScanner is the consumer), so it's not really 
> >>> MailScanner that controls whether messages are accepted.
> >>>
> >>> You could kill the incoming sendmail, but I don't recommend it.
> >>
> >> Usage: service MailScanner
> >> {start|stop|status|restart|reload|startin|startout|stopms}
> >>
> >> Couldn't you issue
> >>
> >> service MailScanner stop
> >> service MailScanner startout
> >>
> >> And thus have MS process any messages in queue, and not accept any 
> >> new messages.
> >>
> >> We must keep in mind, MailScanner is the puppet master, 
> and the MTA, 
> >> virus scanners and SA are all puppets!
> >>
> >> Greg. Borders
> >> Sys. Admin.
> >> JLC Co.
> > Back to the original question.  You can have MailScanner process 
> > messages in the queue without accepting new messages.  As 
> Greg Borders 
> > mentioned you have to issue the commands above but one was left out 
> > (check_MailScanner).  So issue the following:
> >
> > service MailScanner stop  (note:  I normally issue a "service 
> > MailScanner status" after this to make sure MS and sendmail in/out 
> > turned off, sometimes I have to do a service MailScanner 
> stop a couple 
> > of times to make sure everything is off)
> If you wait a few seconds, they will die on their own. They 
> do a whole load of clean-up when they are killed, so as not 
> to leave your system in a mess. This is why the "restart" 
> service operation waits for 30 seconds between stopping and 
> restarting.
> 
> --
> Julian Field
> www.MailScanner.info
> Buy the MailScanner book at www.MailScanner.info/store 
> 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
> 
> 
> --
> This message has been scanned for viruses and dangerous 
> content by MailScanner, and is believed to be clean.
> For all your IT requirements visit www.transtec.co.uk
> 
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
> 
> Before posting, read http://wiki.mailscanner.info/posting
> 
> Support MailScanner development - buy the book off the website! 
> 



More information about the MailScanner mailing list