Peter Marshall wrote:
> This is probably in a doc .. but since oyu suggesed it .. maybe you
> coupld possible point me to the doc :)
> 
> How do I upgrade spamassain .. and can I do it on my production
> mailserver during the day ...  (of course I will probably have to shut
> off the service .. but .. it is not working that great since the start
> of the week anyway).

That depends on how it was installed in the first place.  If you
installed in via CPAN, upgrade it with CPAN.  If you installed from an
rpm, get an updated rpm from the same source.  If you built from
source, grab the tarball and build it again (with the same options).

If you use a different method, you run the risk of ending up with
multiple SA installs which can cause a great deal of confusion.

You can upgrade pretty easily while the system is running.  If you are
using spamd or Amavis, you don't even need to shut it off to do the
upgrade.

I would do this:
- Read up on the configuration syntax changes.  Make sure you know
  what will need to change in your config files.
- Read the installation docs and upgrade all of the required Perl
  modules to the latest versions.
- Install the upgraded SpamAssassin
- Update your local.cf and *.pre files to reflect any configuration
  syntax changes.
- Run "spamassassin --lint" to check your config.
- Pipe a few emails through spamassassin to check that it is working
  properly. (Note: use "spamassassin", not "spamc" for this)
- Once everything is working properly, restart spamd or Amavis so that
  they can run the new code.

If everything goes properly, you system will stay up and running with
the old version until the last step where you restart the services to
activate the upgrade.

-- 
Bowie

Reply via email to