You can do it via the Admin UI when you've finished the install or via the CLI:
Code:
zmprov mcf zimbraSpamIsSpamAccount spam@domain.com
zmprov mcf zimbraSpamIsNotSpamAccount ham@domain.com
obviously replace the account names with the ones from the old server.