Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

How to upgrade a mail scanner in exim server ?

Discussion in 'E-mail Discussion' started by billau, Jul 31, 2004.

  1. billau

    billau Well-Known Member

    Joined:
    Dec 24, 2003
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Brisbane, Australia
    http://forums.holly-ridge.com/showthread.php?s=&threadid=15 (or)

    Note that upgrading using '/scripts/mailscannerupdate' is USELESS. So you need to do it manually ::

    First, install a few perl modules which may be missing.

    /scripts/perlinstaller Net::CIDR
    /scripts/perlinstaller Archive::Zip
    /scripts/perlinstaller Compress::Zlib



    Next, download the new mailscanner tarball, and decompress:

    wget http://www.sng.ecs.soton.ac.uk/mailscanner/files/4/tar/MailScanner-4.28.5-2.tar.gz
    tar -xzf MailScanner-4.28.5-2.tar.gz



    Now, backup the current configuration files, and copy the new ones:

    cd /usr/mailscanner/etc/
    mv MailScanner.conf.new MailScanner.conf.old
    cd reports/en
    mv languages.conf.new languages.conf.old
    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



    Now, start the install..

    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/etc/MailScanner.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
    ../bin/upgrade_MailScanner_conf MailScanner.conf MailScanner.conf.new > MailScanner.new



    And finally, replace the conf files:

    mv -f MailScanner.conf MailScanner.old
    mv -f MailScanner.new MailScanner.conf



    Now, edit the MailScanner.conf and make any changes you wish to make.

    At the end, you will:

    cd /usr
    killall MailScanner # then wait a few seconds for it to stop
    mv mailscanner mailscanner.old
    mv mailscanner.new mailscanner
    /usr/mailscanner/bin/check_mailscanner



    Now, to ensure everything worked correctly, you should:

    tail -f /var/log/maillog

    And watch for any errors. That's it....
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice