SQL Blacklist/Whitelist
Julian Field
MailScanner at ecs.soton.ac.uk
Fri Jul 8 12:14:19 IST 2005
On 8 Jul 2005, at 11:51, Kai Schaetzl wrote:
> Julian Field wrote on Fri, 8 Jul 2005 07:02:30 +0100:
>
>
>> Just use the "Restart Every" setting. Setting it to 3600 will cause
>> an hourly reload of configuration information. I wouldn't set it to
>> less than 15 minutes.
>>
>
> Obviously, a reload of only the SQL-based list would do. Can you
> consider
> implementing this? After all we don't want to restart all MailScanner
> processes every hour or less.
You can implement this yourself. Just have a variable in the
CustomConfig.pm that is declared outside of any function. Put in
there the (alarm) time when you want the next SQL reload to happen.
In the Custom Function, check the time to see if you are after the
alarm time. If you are, then reload the SQL data and update the alarm
time to point another hour in the future.
It's about 5 lines of code :-)
--
Julian Field
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the Wiki (http://wiki.mailscanner.info/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
Support MailScanner development - buy the book off the website!
More information about the MailScanner
mailing list