Help - Search - Members - Calendar
Full Version: HOWTO: Upgrade MailScanner on Parallels Pro 10.3.x
The Planet Forums > Control Panels > Ensim > Ensim HOWTOs
ArtieMcD
MailScanner 4.64.3-2 is out now. This is the latest monthly... err... periodic update to MailScanner.

This procedure has been tested in Parallels Pro 10.3.3 for RHEL5 and works using the out of the box Ensim install. Your results may vary on other configurations.

This procedure will upgrade the version of mailscanner which is deployed by Parallels Pro. Currently Parallels Pro 10.3.3 installs the 4.71 version of MailScanner. The proceedure will also work to reupgrade MailScanner if you installed a previous MailScanner release using an earlier version of these instructions.

We strongly recommend disabling the "Send Notices" and put "All-Viruses" in the Silent Viruses line before enabling MailScanner. For some reason this is still the default behavior of MailScanner and only serves to make the virii/spam problem worse. Misdirected bounces sent in response to spam with forged from email addresses (aka "BlowBack" or "Backscatter") is just as abusive to the innocent recipient as the original spam message. The difference is this time, your server is the guilty party.

Here are the steps to upgrade... It is assumed you already have an installed and working copy of MailScanner and your install already configured sendmail and other needed workarounds to get MailScanner to work with ensim’s or your control panels handling of virtual domains.Refer to threads regarding installing MailScanner if you are performing a new install.

Please make sure you understand your MailScanner configuration and are 100% comfortable with performing this operation before continuing.

wget http://www.mailscanner.info/files/4/rpm/Ma...16-1.rpm.tar.gz

tar xvfz MailScanner-4.74.16-1.rpm.tar.gz

cd MailScanner-4.74.16-1

As root:

Backup your MailScanner startup script:
cp /etc/init.d/MailScanner /etc/init.d/MailScanner.pre.4.74.16-1

./install.sh

If this is your first time upgrading MailScanner using this howto, you need to do the following. Everyone else should just verify thier settings are ok.
vi /etc/MailScanner/virus.scanners.conf
change the line
clamav /usr/lib/MailScanner/clamav-wrapper /usr/local
to
clamav /usr/lib/MailScanner/clamav-wrapper /usr

I also recommend you comment out the generic virus scanner unless you use it. MailScanner constanly tries to update it every hour even though you aren't using it.

Next, if you plan to use clamd on the "Virus Scanner" you need to set in /etc/MailScanner.conf
Incoming Work Group = clamav
Incoming Work Permissions = 0640
and also set the permissions on the /home/virtual/FILESYSTEMTEMPLATE/services/mailscanner/MailScanner.work directory to 0750



That’s pretty much it for the software installation... Now we need to merge your old MailScanner.conf file with the new one and to update any new report files that MailScanner delivered, if you customize them.

The report files can be found at /etc/MailScanner/report/en
Do an ls -ltra to see which are new files that need to be updates.

As for the MailScanner.conf file this can be found at
/etc/MailScanner.

I recommend a manual merge of the MailScanner.conf file and MailScanner.conf.rpmnew so you can get updated comments and documentation components. However if you wish to automate the merge follow these steps (again as root).

It appears the 4.31 and later versions of MailScanner attempts to upgrade the MailScanner.conf file automatically for you. This upgrade went ok on our box, but you should review the changes to make sure your intended changes stuck.

cd /etc/MailScanner
/usr/sbin/upgrade_MailScanner_conf MailScanner.conf MailScanner.conf.rpmnew > MailScanner.conf.new

diff MailScanner.conf MailScanner.conf.new (and verify you are happy with the changes)

mv MailScanner.conf MailScanner.conf.old
mv MailScanner.conf.new MailScanner.conf

If you use f-prot, check to see if the wrapper script is correct.
in
/usr/lib/MailScanner/f-prot-wrapper
Find:
RamDisk=yes # Set this to yes if you are running in ramdisk or tmpfs
and change to
RamDisk=no # Set this to yes if you are running in ramdisk or tmpfs


That should do it. All that’s left is for good measure is to restart MailScanner.

/sbin/service MailScanner restart


Good luck.

We have a howto avaliable for MailWatch if you're interested:
http://forums.theplanet.com/index.php?showtopic=56764
mazza
Hey Thanks for this howto wonderful ..
I am running ensim 10.3 and after upgrade even thou the headers show that its being scanned .exe and bat files are getting through any suggestions you may have on how i can fix this
thanks
mazza
update i used your change for f-prot for the wrapper and I found out I am using randisk so I reverted the changes and now its scanning for .exe and other file types
thanks
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.