User Guide

Updating the Content Filtering Database 91
6.2.1. Scheduled launch
Any distribution kit for any Unix-type operating system includes a standard
scheduled
program launch utility called cron. Using this utility you can setup
automated content filtering database update via the Internet.
It is recommended that the database updating be scheduled to start
every hour.
You can register the updater script execution in crontab for the root user or for
the mailflt user on whose behalf the filter works. Make sure in advance that the
mailflt user’s rights include writing to the following folders:
/usr/local/ap-mailfilter/cfdata – the content filtering database folder
/usr/local/ap-mailfilter/conf – The filter configuration folder.
For example, the file with crontab may have the following content:
SHELL=/bin/sh
26 * * * * /usr/local/ap-mailfilter/bin/sfupdates
In order to change the launch settings saved in cron use the following command:
For the root user: % crontab -e
For the mailflt user: $ crontab —u mailflt —e
6.2.2. Launching the content filtering
database update process from the
command line
Launching of the content filtering database update process from the command
line can be performed as follows:
./sfupdates [switch]
where [switch] – is one of the possible switches. A complete list of switches
and their functions is provided in section A.6, page 125.
When the content filtering database updater script is launched without any
command line switches, the new updates will be downloaded from the Internet,
checked for integrity, and the update compiler will start. Then the filter will restart
and will be able to use the updated database.