HowTos/MailScanner
Scalix Wiki -> How-Tos -> MailScanner
MailScanner How-to
Well i'm use mailscanner to clean all my mail and integrate the spamassassin and anti-virus to the scalix
First Step Obtain MailScanner From this link [1]
Download and extract the file
tar -xvzf filename.tar.gz
Second Step change to the directory of where the files was extract
cd MailScanner-"Version"
After that start the installation for that you need to have installed in you linux distribution
g++
rpmbuild
perl
spamassassin installed for be used
Antivirus AVG
that mean when you install you linux os include all the developer tools ok continue with the installation
Installation
run the script ./install.sh
with this script start the installation of MailScanner When finish you need to make some changes to the services
chkconfig sendmail off chkconfig MailScanner on
well until here we have installed in our scalix server the mailscanner but we need to configure to adapt the configuration to our criteria
the configuration is in /etc/MailScanner.conf
change all you need you need to put you organization name and another data
Anti-virus Well exist a lot antivirus but i use avg free edition you can download a copy of avg from [2] and install it
well and now we need to modify some the configuration file of the antivirus file in MailScanner is in /etc/MailScanner/virus.scanners.conf
- This is a list of the names of the virus scanning engines, along with the
- filename of the command or script to run to invoke each one.
- Three fields:
- 1. Name of virus scanner as known by MailScanner. Do not change this.
- 2. Location of -wrapper script. You should not need to change this.
- 3. Installation directory of virus scanner. This does not usually include
- any "bin" directory in the path to the scanner program itself.
- You can test a -wrapper script with a command like this:
- /usr/lib/MailScanner/f-secure-wrapper /opt/f-secure/fsav /tmp
- That command will attempt to scan /tmp using F-Secure. If it works you
- should see some sensible output. If it fails, you will probably just see
- an error message such as "Command not found" or similar.
- avg /usr/lib/MailScanner/avg-wrapper /opt/grisoft/avg7 <---AVG Path
we need to change the path in where is our avg installed from /usr/local to /opt/grisoft/avg7
and with this change we make the antivirus be include with the mailscanner and need to restart the service
service MailScanner restart or ./etc/init.d/MailScanner restart
And with this we have a better protection for our mail server scalix