Reloading MS service via email?
MW Mike Weiner (5028)
MWeiner at AG.COM
Wed Mar 24 15:22:54 GMT 2004
I would be interested in seeing the script and how this is implemented - an
email from root telling the system to restart MailScanner would be quite
wicked!!
Thanks in advance
-----Original Message-----
From: MailScanner mailing list [mailto:MAILSCANNER at JISCMAIL.AC.UK] On Behalf
Of Alex Neuman
Sent: Wednesday, March 24, 2004 10:10 AM
To: MAILSCANNER at JISCMAIL.AC.UK
Subject: Re: Reloading MS service via email?
Good point... That would stop a bad rule from breaking your system...
-----Original Message-----
From: MailScanner mailing list [mailto:MAILSCANNER at JISCMAIL.AC.UK] On Behalf
Of Darren Fulton - Concept Technology
Sent: Wednesday, March 24, 2004 1:02 AM
To: MAILSCANNER at JISCMAIL.AC.UK
Subject: Re: Reloading MS service via email?
You may want to make the script that checks for changes and if so, restarts
MailScanner also check to see that MailScanner actually restarted and if
not, removes the new rule and tries to start again. Just an idea.
Best Regards,
Darren Fulton
Alex Neuman wrote:
> True... A cronjob could just check for changes to the file and killall
> -HUP MailScanner if it does (no need to know the pid really, unless
> you used different MailScanner processes with different config
> options).
>
> -----Original Message-----
> *From:* MailScanner mailing list
> [mailto:MAILSCANNER at JISCMAIL.AC.UK] *On Behalf Of *Max Kipness
> *Sent:* Tuesday, March 23, 2004 5:15 PM
> *To:* MAILSCANNER at JISCMAIL.AC.UK
> *Subject:* Re: Reloading MS service via email?
>
> I dont' like this method because if a user is looking to whitelist
> someone quick, they need to wait for an hour. If I was going to go
> this route, I would create a script that reloads MS every 5
> minutes, but only after it reads the white and blacklist
> and verifies that there are additions to the files.
>
> Max
>
>
------------------------------------------------------------------------
> *From:* MailScanner mailing list
> [mailto:MAILSCANNER at JISCMAIL.AC.UK] *On Behalf Of *Alex Neuman
> *Sent:* Tuesday, March 23, 2004 4:10 PM
> *To:* MAILSCANNER at JISCMAIL.AC.UK
> *Subject:* Re: Reloading MS service via email?
>
> Even better idea... thanks!
>
> -----Original Message-----
> *From:* MailScanner mailing list
> [mailto:MAILSCANNER at JISCMAIL.AC.UK] *On Behalf Of *Derek Winkler
> *Sent:* Tuesday, March 23, 2004 4:36 PM
> *To:* MAILSCANNER at JISCMAIL.AC.UK
> *Subject:* Re: Reloading MS service via email?
>
> I just lowered my MailScanner restarts to an hour and took
> users it can take an hour or two to take effect.
>
> See Restart Every in config file.
>
> -----Original Message-----
> *From:* MailScanner mailing list
> [mailto:MAILSCANNER at JISCMAIL.AC.UK]*On Behalf Of *Alex Neuman
> *Sent:* Tuesday, March 23, 2004 4:35 PM
> *To:* MAILSCANNER at JISCMAIL.AC.UK
> *Subject:* Re: Reloading MS service via email?
>
> You could always set up a cronjob to killall -HUP
> MailScanner every other hour, for example. Settings would
> be reloaded, wouldn't they?
>
> -----Original Message-----
> *From:* MailScanner mailing list
> [mailto:MAILSCANNER at JISCMAIL.AC.UK] *On Behalf Of *Max
> Kipness
> *Sent:* Tuesday, March 23, 2004 3:11 PM
> *To:* MAILSCANNER at JISCMAIL.AC.UK
> *Subject:* Reloading MS service via email?
>
> I've got my scripts pretty much ironed out so that a
> user can simply forward a spam message to an email
> address, have the spam email added to the blacklist
> and then sent a confirmation. What I'd like to also do
> is have the script reload the MailScanner service.
> Since this is being done via the user 'mail', can
> anyone give me some tips on the best way to accomplish
> this. So far I'm thinking of using SUDO to allow
> 'mail' to run 'kill' and /etc/init.d/MailScanner? Is
> there a better and/or more secure way?
>
> Thanks,
> Max
>
More information about the MailScanner
mailing list