Compiler
========
From www.sunfreeware.com, download and install
gcc and gcc-lib
tar
patch
wget
If you can't find them all for Solaris 9,
then look in the Solaris 8 directory.
Download each file and gunzip them.
Then for package "xxx-local"
        pkgadd -d xxx-local
Install everything from each package and say yes to any questions.

Path
====
PATH=/usr/local/bin:/usr/sbin:/usr/sbin
export PATH

MailScanner
===========
Download the latest MailScanner-install-x.xx.x-x.tar.gz and put it
into /tmp:
cd /tmp
tar xzf MailScanner-install-x.xx.x-x.tar.gz

Run the installer script:
cd MailScanner-install-x.xx.x
./install.sh

Sophos
======
The Sophos autoupdater assumes wget is in /usr/bin and yours will
be in /usr/local/bin. So
ln -s /usr/local/bin/wget /usr/bin/wget

Download Solaris version for either SPARC or Intel as appropriate.
You should have a file solaris.intel.tar.Z or solaris.sparc.tar.Z
in the current directory.
tar xzf solaris.intel.tar.Z
/opt/MailScanner/bin/Sophos.install

To test Sophos:
/opt/MailScanner/lib/sophos-wrapper /usr/local/Sophos /tmp

Sophos-SAVI Perl Module
=======================
Read
www.sng.ecs.soton.ac.uk/mailscanner/install/SAVI.shtml
Download the latest version of the module as directed.
tar xzf SAVI-Perl-0.15.tar.gz
cd SAVI-Perl-0.15.tar.gz
Edit Makefile.PL and change the long line to this:
'LIBS' => ['-L/usr/local/Sophos/lib -R/usr/local/Sophos/lib -lsavi'],
See if you already have links in
        /usr/local/Sophos/lib/libsavi.so
        /usr/local/Sophos/lib/libsavi.so.2
        /usr/local/Sophos/lib/libsavi.so.3
If not then create the links as shown in step 6.
perl Makefile.PL
Then remove "-KPIC" and "-xO3 -xdepend" from the Makefile.
make
make test
make install

Virus Scanner Autoupdates
=========================
Create a root cron job to run
        /opt/MailScanner/bin/update_virus_scanners
however frequently you want it to update. I recommend every
hour or two.

MailScanner Configuration
=========================
Edit /opt/MailScanner/etc/MailScanner.conf and replace the line
        Virus Scanners = none
with
        Virus Scanners = sophossavi

Speed Enhancement
=================
You can make MailScanner run faster if you mount
        /var/spool/MailScanner/incoming
using tmpfs. This is perfectly safe and there is no
chance that doing this could cause the loss of mail
if the system is suddenly reset or loses power.
You will need to edit /etc/vfstab to do this so that
it gets mounted properly at boot time.

Startup
=======
You need to edit /etc/init.d/sendmail so that it runs these:
/usr/lib/sendmail -bd -OPrivacyOptions=noetrn \
                      -ODeliveryMode=queueonly \
                      -OQueueDirectory=/var/spool/mqueue.in &
/usr/lib/sendmail -q15m &
/usr/lib/sendmail -Ac -q15m &
/opt/MailScanner/bin/check_mailscanner

Logging
=======
If nothing from MailScanner appears in your /var/log/syslog,
then edit /etc/syslog.conf and edit the line that starts
        mail.debug
so it says
        mail.debug              /var/log/syslog
