|
||||
|
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! 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: 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]
__________________
Jonathan Michaelson cPanel Forum Moderator Need your cPanel servers secured and tuned? cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf http://www.configserver.com Last edited by chirpy; 08-01-2004 at 04:59 PM. |
|
|||
|
Thanks for the How To. I got this to work with a couple modifications. I had to install:
Net::CIDR Archive::Zip Also, this command: Code:
cp -Rf /usr/mailscanner/etc/* ./ Code:
perl -pi -e "s/\/opt\/MailScanner/\/usr\/mailscanner/g" /usr/mailscanner.new/etc/virus.scanners.conf
|
|
||||
|
Hi FWC,
Thank you for that. I've updated the howto with the steps you've mentioned. Oddly my installation already had both the perl compression libraries (RHE3.0 perl 5.8.1).
__________________
Jonathan Michaelson cPanel Forum Moderator Need your cPanel servers secured and tuned? cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf http://www.configserver.com |
|
|||
|
Quote:
|
|
|||
|
Jonathan,
get the following lines in /maillog..... any ideas what's gone wrong?! ;-) Steve MailScanner E-Mail Virus Scanner version 4.28.5 starting... Using locktype = posix Creating hardcoded struct_flock subroutine for linux (Linux-type) New Batch: Scanning 1 messages, 2398 bytes Looked up unknown string unreadablearchive in language translation file /usr/mailscanner/etc/reports/en/languages.conf Virus and Content Scanning: Starting Your virus.scanners.conf file does not have 3 words on each line. See if you have an old one left over by mistake. |
|
||||
|
Looks like you missed out some of this bit:
Code:
cd /usr/mailscanner/etc/ mv MailScanner.conf.new MailScanner.conf.old # MailScanner.conf.new may not exist, don't worry about it cd reports/en mv languages.conf.new languages.conf.old # languages.conf.new may not exist, don't worry about it cd /usr/mailscanner.new/etc/ mv MailScanner.conf MailScanner.conf.new mv virus.scanners.conf virus.scanners.conf.new cd reports/en mv languages.conf languages.conf.new cd ../.. cp -Rf /usr/mailscanner/etc/* ./ mv virus.scanners.conf.new virus.scanners.conf cd reports/en/ mv languages.conf.new languages.conf Let me know if you want more specific instructions.
__________________
Jonathan Michaelson cPanel Forum Moderator Need your cPanel servers secured and tuned? cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf http://www.configserver.com |
|
||||
|
Need to run this:
Code:
perl -pi -e "s/\/opt\/MailScanner/\/usr\/mailscanner/g" /usr/mailscanner/etc/virus.scanners.conf
__________________
Jonathan Michaelson cPanel Forum Moderator Need your cPanel servers secured and tuned? cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf http://www.configserver.com |
|
|||
|
I got the following errors when I tried to start MailScanner after going through the outlined upgrade process:
Starting Mailscanner... /usr/mailscanner/bin/check_mailscanner: line 112: cd: Sr/mailscanner/bin: No such file or directory /usr/mailscanner/bin/check_mailscanner: line 113: MailsScanner: command not found I repeated the process and got the same error. I had installed MailScanner from layer1 about 1 month ago and it was working fine.. Any ideas? |
|
||||
|
It appears that you may have mis-typed the per substitutes or something.
If you edit /usr/mailscanner/check_mailscanner lines 44 to 46 shouls read: process=MailScanner msbindir=/usr/mailscanner/bin config=/usr/mailscanner/etc/MailScanner.conf What do yours?
__________________
Jonathan Michaelson cPanel Forum Moderator Need your cPanel servers secured and tuned? cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf http://www.configserver.com |
|
|||
|
Mine showed:
process=MailScanner msbindir=Sr/mailscanner/bin config=Sr/mailscanner/etc/MailScanner.conf I corrected them as you stated, however it still isn't working I think the problem has something to do with the very first line of the /usr/mailscanner/bin/MailScanner file. What should the first line be? |
|
||||
|
That should read:
#!/usr/bin/perl -I/usr/mailscanner/lib It does sound like the search and replace didn't work right for you. You might find more files with similar problems.
__________________
Jonathan Michaelson cPanel Forum Moderator Need your cPanel servers secured and tuned? cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf http://www.configserver.com |
|
|||
|
Yeah, the first line of mine had Sr/ instead of -I/usr
I fixed that, and started Mailscanner and it seemed to start okay. However, at this point my email system is completely down and has been since I did this MailScanner upgrade. MailScanner is not running but I can't receive any email. I have restarted Exim and Cpop and the restart worked okay, but no email for the last 2 hours! Can you give me any ideas as to what might have messed it up and how to fix it? |
|
|||
|
okay apparently I mistyped when doing the upgrade and the search and replace changed some paths. My fault!
If someone could share the proper paths for the following files so I can correct my mistake I will be grateful: In /usr/mailscanner/etc/virus.scanners.conf the line for clamav I have: clamav /usr/mailscanner/lib/clamav-wrapper /u/usr/local is this correct? |
|
|||
|
Quote:
PHP Code:
__________________
:: Anand :: Authorised cpanel Partner NOC ssh root@ who the hell is root ??? Cpanelappz Support Forums are up now. Register Today http://forums.cpanelappz.com WHM/cPanel API : http://whmapi.cpanelappz.com Cpanel Login Script : www.cpanelappz.com/cpanel-login-script.htm Exiscan+Clam+Exim Auto Installer : www.cpanelappz.com |
![]() |
| Thread Tools | |
| Display Modes | |
|
|