MS Upgrade 4.31.6-1 and new MailScanner.conf
Patrick
patrick at EON.COM.SG
Tue Jun 15 13:58:47 IST 2004
Lester,
Firstly I encountered this when I upgraded my MailScanner, however I did not
use the RPM version.
Secondly, I am a noob in Linux but I will still try to assist you and might
be wrong ( please advise if I am wrong)
When you do this
upgrade_MailScanner_conf MailScanner.conf MailScanner.conf.rpmnew >
MailScanner.new
1. Did you see any feedback informing you about lines being added in?
2. Did you check to see if MailScanner.new had anything inside ? type less
MailScanner.new
if Mailscanner.new is empty then copying it over as MailScanner.conf will
result in an empty file as well.
I believe you could have missed a step somewhere.
Anyway, here is the instructions that I had followed to upgrade mine. I
believe its safe to use it on your setup as well.
/scripts/perlinstaller Net::CIDR # installs stuff that you
don't have but needed
/scripts/perlinstaller Archive::Zip # installs stuff that you
don't have but needed
/scripts/perlinstaller Compress::Zlib # installs stuff that you don't
have but needed
/scripts/perlinstaller Convert::BinHex # installs stuff that you don't
have but needed
wget
http://www.sng.ecs.soton.ac.uk/mailscanner/files/4/tar/MailScanner-install-4.31.6-1.tar.gz
tar -xzf MailScanner-install-*.tar.gz
rm -Rf /usr/mailscanner.new/
rm -Rf /usr/mailscanner.old/
cd MailScanner-install-*/perl-tar
tar -xzf MailScanner-*.tar.gz
mv -f MailScanner-*/ /usr/mailscanner.new
cd /usr/mailscanner/etc/
mv -f MailScanner.conf.new MailScanner.conf.old # MailScanner.conf.new may
not exist, don't worry about it
cd reports/en
mv -f languages.conf.new languages.conf.old # languages.conf.new may not
exist, don't worry about it
cd /usr/mailscanner.new/etc/
mv -f MailScanner.conf MailScanner.conf.new
mv -f virus.scanners.conf virus.scanners.conf.new
cd reports/en
mv -f languages.conf languages.conf.new
cd ../..
cp -Rf /usr/mailscanner/etc/* ./
mv -f virus.scanners.conf.new virus.scanners.conf
cd reports/en/
mv -f languages.conf.new languages.conf
cd ../..
perl -pi -e "s/\/opt\/MailScanner/\/usr\/mailscanner/g"
/usr/mailscanner.new/bin/check_mailscanner
perl -pi -e "s/\/opt\/MailScanner/\/usr\/mailscanner/g"
/usr/mailscanner.new/bin/MailScanner
perl -pi -e "s/\/opt\/MailScanner/\/usr\/mailscanner/g"
/usr/mailscanner.new/lib/MailScanner/SystemDefs.pm
perl -pi -e "s/\/opt\/MailScanner/\/usr\/mailscanner/g"
/usr/mailscanner.new/lib/MailScanner/ConfigDefs.pl
perl -pi -e "s/\/opt\/MailScanner/\/usr\/mailscanner/g"
/usr/mailscanner.new/etc/virus.scanners.conf
perl -pi -e "s/\/opt\/MailScanner/\/usr\/mailscanner/g"
/usr/mailscanner.new/lib/*
perl -pi -e "s/\/opt\/MailScanner/\/usr\/mailscanner/g"
/usr/mailscanner.new/lib/MailScanner/*
perl -pi -e "s/\/opt\/MailScanner/\/usr\/mailscanner/g"
/usr/mailscanner.new/bin/update_virus_scanners
../bin/upgrade_MailScanner_conf MailScanner.conf MailScanner.conf.new >
MailScanner.new
mv -f MailScanner.conf MailScanner.old
mv -f MailScanner.new MailScanner.conf
perl -pi -e "s/\/opt\/MailScanner/\/usr\/mailscanner/g"
/usr/mailscanner.new/etc/MailScanner.conf
At this point you should edit MailScanner.conf and make any modifications
that you want to new settings added by the upgrade.
cd /usr
killall MailScanner
sleep 8 # then wait a few seconds for it to stop
mv -f mailscanner mailscanner.old
mv -f mailscanner.new mailscanner
/usr/mailscanner/bin/check_mailscanner
tail -f /var/log/maillog
Of course you use the above at your own risk, but it worked perfectly for me
on my CPanel RH9 set up.
The instructions were from forum.cpanel.net
Regards
Patrick
-------------------------- MailScanner list ----------------------
To leave, send leave mailscanner to jiscmail at jiscmail.ac.uk
Before posting, please see the Most Asked Questions at
http://www.mailscanner.biz/maq/ and the archives at
http://www.jiscmail.ac.uk/lists/mailscanner.html
More information about the MailScanner
mailing list