Update rules settings on the fly
Ugo Bellavance
ugob at CAMO-ROUTE.COM
Thu Apr 8 21:53:15 IST 2004
> -----Message d'origine-----
> De : Michele Neylon :: Blacknight Solutions
> [mailto:michele at BLACKNIGHTSOLUTIONS.COM]
> Envoyé : 8 avril, 2004 16:34
> À : MAILSCANNER at JISCMAIL.AC.UK
> Objet : Update rules settings on the fly
>
>
> Hi all
>
> Just a quick one...
>
> We're playing around with a custom install at the moment
> where the rules
> might be updated/changed every few minutes as users add to
> their whitelists
> and blacklists etc., etc
> My understanding is that to get MS to recognise any new rules
> we need to
> run:
> /etc/rc.d/init.d/MailScanner reload
> However, on a busy system, a lot of connections and
> reconnections to the
> database etc., etc. is probably not advisable.
>
> Is there anyway of getting MS to check for new rules without
> reloading the
> entire application?
Usually, with restart, it kills all the processes and restarts them. With reload, it only sends the processes signals to re-read its config.
However, when I reload MailScanner, I get this in my logs:
Apr 8 16:37:24 mta1 MailScanner[27669]: MailScanner child caught a SIGHUP
Apr 8 16:37:25 mta1 MailScanner[27669]: Config: calling custom end function MailWatchLogging
Apr 8 16:37:25 mta1 MailScanner[27669]: Disconnected from the database
Apr 8 16:37:25 mta1 MailScanner[30448]: MailScanner E-Mail Virus Scanner version 4.28.5 starting...
Apr 8 16:37:25 mta1 MailScanner[30448]: Config: calling custom init function MailWatchLogging
Apr 8 16:37:26 mta1 MailScanner[30448]: Initialising database connection
Apr 8 16:37:26 mta1 MailScanner[30448]: Finished initialising database connection
Apr 8 16:37:45 mta1 MailScanner[30448]: Using locktype = flock
I guess Julian or Steve (mailwatch) would be better than me to explain the consequences.
>
> Michele
>
> Mr. Michele Neylon
> Blacknight Internet Solutions Ltd
> http://www.blacknightsolutions.ie/
> http://www.search.ie/
> Tel. + 353 (0)59 9137101
> Hosting, co-location and domain registration
>
>
> --
> Email scanned by Blacknight for viruses and dangerous content.
> Visit http://www.blacknight.ie for more information
>
More information about the MailScanner
mailing list