stop Openfire and make a text dump of the Mysql database and replace there the domain name. Then import the modified dump and start Openfire. The xmpp.domain and the rosters will then be updated.
Your clients may get a problem if they try to connect using the old server name.