Hey #xmpp and #jabber experts on Mastodon: my XMPP server is im.interfree.ca, and so my JID is fastfinge@im.interfree.ca. However, I would like to alias my JID to fastfinge@interfree.ca. That way my email, jabber, and fediverse id's are all the same. I control the DNS on the entire domain. How can I do this? A quick search isn't finding me a list of clear and straightforward steps.
@fastfinge As others already pointed out, you can do it with SRV records. As a bit of expectation management, be aware that XMPP is stricter with routing so there isn't really the kind of aliasing you may be familiar with from email. If you already have contacts with that JID then those will stop working if you rename your host.
@fastfinge Depends on what you mean by "interchangeably". The most popular XMPP servers support multiple Virtual Hosts, so you can add both. Accounts will be completely disconnected tho, which is what I meant by "not like email".
@zash Yeah, that's not what I want. I want to use the same username and password to get messages for fastfinge@interfree.ca and fastfinge@im.interfree.ca. I had to run xmpp on a subdomain because my primary domain runs other services.
@zash Thanks for answering, anyway! Hopefully someone, someday, comes up with a XEP for this. Because having to host xmpp on a subdomain is going to be extremely common I think.
@fastfinge You may be missunderstanding @zash I'm afraid. The server host name does not have to match your virtual host. So you are fine hosting domain interfree.ca on im.interfree.ca . What is not possible is redirecting or forwarding existing subscriptions from fastfinge@im.interfree.ca to fastfinge@interfree.ca. Thus you can add two accounts into your clients during transition period if you are okay with that.
@fastfinge You can export your roster and then import it into the new account, however your contact partners will see that as a new contact and will have to accept your contact request again. Am I right @zash ?