Server to Server + AD

I have 2 openfire servers, both are configured to auth via MS Active Directory. Each openfire server to it’s own domain. Domains are not in same forest. When trying to make server2server working - no luck. Nothing happens. I can ping server1 from server2 and vise versa. DNS is OK on both servers. Even telnet from server1 to server2 port 5269 and back is working.

when you say “DNS is ok” you mean all needed SRV records are ok ?

Like:
_xmpp-server._tcp.domain1.com

when I say “DNS is ok” i mean that i can ping one server fro another by FQDN.

can you be more specific?