Also, I’m no expert, but I suspect that the issue may be that there is only one host listed in the /dh/jabber/jabber.xml file
Change hostname below to something other than “localhost”,
i.e., to the hostname or IP address of your Jabber server.
Multiple entries are allowed - each one is for a
separate virtual server. Note that each host entry must
be on one line, the server doesn’t like it otherwise!
Shouldn’t there be a list of all domains hosted on the same server there or something? (Maybe remove the two 'test’s too?)