Hi,
I am re-posting a previous question as (1) the title was misleading and (2) the actual problem description was hidden somewhere deep down in a comment.
I am having trouble with server-to-server communication when using our domain name as xmpp.domain (instead of the hostname of the Openfire server):
I have two Jabber clients (both Spark), two servers and two accounts (one on each server).
On client C1, I am logged in as user U1 on server S1.
On client C2, I am logged in as user U2 on server U2.
On server S1, the XMPP domain is set to mydomain.com (instead of S1.mydomain.com). However, our DNS server is configured properly sothat this should work (see below).
Now as user U2, I try to add the user U1 to my roster. User U1 gets a popup which asks whether he wants to allow this. User U1 co
nfirms this.
However, now user U2 does not get a popup in return (that asks him if he wants to allow being added by U1). The status of the newly created roster entry is still “pending”.
On server U1 I get the following error messages in the log files:
2007.11.08 15:43:33 Failed to route packet to JID: U2@S2.mydomain.com packet:
<presence id=“He8iy-232” to="U2@S2.mydomain.com" type=“subscribe” from="U1@mydomain.com/spark"/>
2007.11.08 15:43:33 Failed to route packet to JID: U2@S2.mydomain.com packet:
<presence id=“He8iy-233” to="U2@S2.mydomain.com" type=“subscribed” from="U1@mydomain.com/spark"/>
2007.11.08 15:43:33 Failed to route packet to JID: U2@S2.mydomain.com packet:
<presence id=“He8iy-156” from="U1@mydomain.com/spark" to="U2@S2.mydomain.com">
<status>Available</status>
<priority>1</priority>
</presence>
I then changed the XMPP domain on server S1 to S1.mydomain.com.
Now everthing worked fine: As soon as user U1 allows being added to the roster, the user U2 also gets a popup message asking if h
e wants to allow being added to the other user’s roster.
So this seems to be a problem with my XMPP domain.
However, I would have expected that S2 (who has to do the lookup and find out that U1@mydomain.com is actually located on S1) shows some errors - at least if it is a DNS problem.
I do not think it is a firewalling problem: The firewall ports are configured correctly (I can connect to 5222 and 5269). Also, i
t works as soon as I change the XMPP domain.
I think I have configured DNS correctly: I have added the IN SRV entries (_jabber, _xmpp-server, _xmpp-client) to our nameservers. Querying the nameservers works fine:
$ dig @nameserver jabber.tcp.mydomain.com any +short
0 0 5269 S1.mydomain.com.
$ dig @nameserver xmpp-server.tcp.mydomain.com any +short
0 0 5269 S1.mydomain.com.
$ dig @nameserver xmpp-client.tcp.mydomain.com any +short
0 0 5222 S1.mydomain.com.
Any idea what the problem is here?
Thanks,
Michael