i am running openfire under a specific domain on a vps (virtual private server). several domains have the same ip pool but only one domain is choosen to be the one to work with openfire. e.g. example.com.
Now, is it possible to change the domain to e.g. rample.com without setting up openfire again. Can this be done without data loses? What steps do i have to watch out for?
if you want to change the xmpp.domain within the server settings you can do this.
It will affect only this field within the database and cause a lot of trouble as the rosters store "user@example.com" and these values will not be changed. MUC rooms and history depend as far as I know also on the domain. So getting a text dump of the database and changing all “example.com” entries to the new value and importing the data again should be the much better approach.
with the embedded db you have already a text file, you may edit it while openfire is not running. If you change there (openfire.script and openfire.log if it exists) all occurrences of the domain name you should be fine.
If you allow s2s connections the remote servers will of course not be able to update your domain name change within the roster, so there the users will have some trouble in finding their contacts. So the right way would be to send unsubscribe request with the old xmpp.domain and new subscriptions requests with the new xmpp.domain but this will be a very hard job.