Upgrading MailScanner
Easy Upgrading of MailScanner - RPM version
(For Redhat/Centos - updated from the MailScanner documentation)
1) Make a backup copy of your current MailScanner (Linux):
cp -a /etc/MailScanner /etc/MailScanner.$(date +%Y%m%d)
cp -a /usr/lib/MailScanner /usr/lib/MailScanner.$(date +%Y%m%d)
cp -a /usr/sbin/MailScanner /usr/sbin/MailScanner.$(date +%Y%m%d)
2) Download the latest version and extract
http://mailscanner.info/downloads.html
Check the changelog for upgrade notes and new features:
http://mailscanner.info/ChangeLog
Check the integrity of the downloaded file
untar the archive (tar xzf) X/
cd into the created directory
3) Upgrade MailScanner
run the install script (./install)
inspect the output for errors
manage the .rmpnew files
4) Upgrade the configuration files
upgrade_MailScanner_conf
cd /etc/MailScanner
upgrade_MailScanner_conf MailScanner.conf MailScanner.conf.rpmnew > MailScanner.new
mv -f MailScanner.conf MailScanner.old
mv -f MailScanner.new MailScanner.conf
upgrade_languages_conf
cd /etc/MailScanner/reports/en
upgrade_languages_conf languages.conf languages.conf.rpmnew > languages.new
mv -f languages.conf languages.old
mv -f languages.new languages.conf
Don’t forget to upgrade other components periodically as well (SA, DCC, Pyzor, Razor)
5) Restart MailScanner service
service MailScanner restart
6) Check for errors
Check the maillog for errors:
tail -F /var/log/maillog
Run MailScanner with --lint to make sure there are no configuration errors:
MailScanner --lint
Run SpamAssassin with --lint to make sure there are no config errors there either:
spamassassin --lint
- or -
spamassassin --lint -D
(shows output of --lint)
Run check_mailscanner to make sure MailScanner processes are running:
check_mailscanner
7) Send a test mail
If you're really concerned, and want to make sure everything works, it's a good idea to send a couple test mails from external servers to see if they get through your newly updated MailScanner server.