First we want to stop spamassassin and then rebuild the spamassassin journal.

# svc -d /service/spamd
# sa-learn --rebuild

If you skip this step, any data from the journal will be lost when the DB is upgraded.

Now run sa-learn --sync which will cause the db format to be upgraded.

# sa-learn --sync

If you want to see what is going on, you can add the "-D" option.

Test the new database by running some sample mails through SpamAssassin, and/or at least running "sa-learn --dump" to make sure the data looks valid.

Start running spamassassin/spamd again.

# svc -u /service/spamd