Hi,
I recently upgraded our MailScanner installations to the latest version (MailScanner-4.32.5-1). The following procedure is for use after having used the http://layer1.cpanel.net mailscanner add-on.
You use the following completely at your own risk. Don't come running to me if it breaks everything!
At this point you should edit MailScanner.conf and make any modifications that you want to new settings added by the upgrade.Code:/scripts/perlinstaller Net::CIDR /scripts/perlinstaller Archive::Zip /scripts/perlinstaller Compress::Zlib /scripts/perlinstaller Convert::BinHex wget http://www.sng.ecs.soton.ac.uk/mailscanner/files/4/tar/MailScanner-install-4.32.5-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 ../.. rm -Rf MailScanner-install-* 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 /usr/mailscanner.new/ find ./ -type f | xargs replace "/opt/MailScanner/" "/usr/mailscanner/" -- cd etc/ ../bin/upgrade_MailScanner_conf MailScanner.conf MailScanner.conf.new > MailScanner.new mv -f MailScanner.conf MailScanner.old mv -f MailScanner.new MailScanner.conf
Then:
That last command is to watch the maillog file for any errors. Then test.Code: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
If you have any problems, or would prefer someone with experience to do this for you, we offer a cheap package for this service:
http://www.webumake.com/services/
[updated for latest release of MailScanner 1 August 2004]



LinkBack URL
About LinkBacks
Reply With Quote






