Hi Luke,
On 28 June 2014 22:45, Lukas H <
stefanl...@nobaq.net> wrote:
> Hi,
>
> I set up prosody some time ago using
talk.example.com (mimicking Google
> ) and have many people on my list. However, I am still the one user
> on my server, most of the others are Google Chat users.
>
> Now I would like to change the name to
xmpp.example.com. What are the
> implications for that and what is the best procedure to do that?
There are two different levels of "hostname" in XMPP that you might be
talking about - it's important not to get the two confused.
First there is the XMPP host, since you mentioned them in your
example, for Google this is "
gmail.com", "
google.com", or any Google
Apps-enabled domain with Chat enabled. In Prosody it is whatever you
specify as a 'VirtualHost' directive in the config file. The XMPP host
forms part of user addresses, so you would have addresses such as:
us...@example.com,
us...@gmail.com, etc. It is important to note that
"
talk.google.com" is not an XMPP host -
us...@talk.google.com is not an
address that would be accepted by Google's servers.
talk.google.com is however the network hostname of the actual machine
that is hosting Google's XMPP service, that is the one running their
XMPP server software (in reality Google have lots of servers behind
this address, but we can ignore that detail for now).
In the same way that users have email addresses like
us...@example.com
and not
us...@mail.example.com, it is preferred to have XMPP addresses
as
us...@example.com rather than
us...@xmpp.example.com. In both email
and XMPP, you can use DNS records to "redirect" to another network
hostname if you need to. For example you could have DNS records for
"
example.com" that indicate that the email server runs at
"
mail.example.com", and others to say that the XMPP server runs at
"
xmpp.example.com".
Now, to get onto your question... what do you want to change? The XMPP
host or the network host? The XMPP host (this is the one you specified
with a VirtualHost in your Prosody config file) is practically
impossible to change, because even if you changed it, you would have a
totally new XMPP address... there is no way for other servers (such as
Google's) to know that you are the same person - in fact they will
treat you as a completely different person, and you will need to
re-add your contacts and (unfortunately) they will need to
re-authorise you.
If you are just changing your network hostname however, this is much
easier. All you have to do is change your DNS records (say from
'
talk.example.com' to '
xmpp.example.com'). This is completely
transparent to Prosody, your XMPP address won't change, you don't need
to change your config, and you won't need to re-add any of your
contacts. More info on DNS records for XMPP is available at
https://prosody.im/doc/dns
Also you mentioned certificates. They should match your XMPP host, not
your network host. You can test their correctness using
https://xmpp.net/ - and docs are available at
https://prosody.im/doc/certificates
Hopefully you find this info helpful, and not too much (I'm quite
sleepy as I write this, so I hope it makes sense). If you have any
other questions or problems, let us know.
Regards,
Matthew