Server 2 Server Connection

I have 2 Openfire servers that I want to connecto to each other over a VPN with Server 2 Server. The servers are on different Active Directory domains. They see each other but I can’t add a user from server 1 to server 2 or from server 2 to server 1. My server 2 Server settings are enabled and anyone is allowed to connect and I have my server connection security set to optional on both servers. Here is the error in the warn log that I get, I changed the names for security:

<presence id=“bq6FX-161” to=“user2@server2” type=“subscribe” from=“user1@server1”/>

org.jivesoftware.openfire.PacketException: Cannot route packet of type IQ or Presence to bare JID:

<presence id=“bq6FX-161” to=“user1@server1” from=“user2@server2” type=“error”>

<error code=“404” type=“cancel”>

<remote-server-not-found xmlns=“urn:ietf:params:xml:ns:xmpp-stanzas”>



I can add users from my test server to my production server, on same AD domain, and vice versa but I can’t get it to work with my remote server. I guess my question is, why am I getting this error and how do I get the servers to connect? Any help with this would be very appreciated.