My copy of the Sophos anti-virus package is installed under /usr/local/sophos so all references in the following text apply to that location. If you use that location, then my installation script will work for you, and put everything in the right place.
I use a directory structure like this:
If you are going to install it into /usr/local/sophos then this is really simple:
At this point, you should be able to test the operation of Sophos with a command such as
This will attempt to scan the main Sophos directory, but it will demonstrate that Sophos is working properly. It should report the number of viruses it can detect and the list of IDE files it has found.
The /opt/MailScanner/lib/sophos-autoupdate script is best run automatically on a daily basis by cron and the update_virus_scanners program. A suitable crontab entry is
# 23/05/2000 JKF Automatically fetch updates to Sophos just after midnight 13 0 * * * [ -x /opt/MailScanner/bin/update_virus_scanners ] && /opt/MailScanner/bin/update_virus_scanners >/dev/null 2>&1
If you need to find out how to install a crontab entry, type "man crontab".