Multiple domains and servers

Hello,

We are using openfire in our company for a year and a half.
Our openfire uses external LDAP auth against a Zimbra OpenLDAP server

I have configured it to target one domain specifically, but recently a need for another domain with chat support has arisen.:

My question is:

Is it possible to have two openfire servers where each server handles one domain, and users can chat to one another across multiple domains.

Server1:
domain1.tld
Zimbra LDAP

Server2:

domain2.tld
Zimbra LDAP

user1@domain1.tld can add user2@domain2.tld and chat with him

Thank you in advance.

Check Server to Server option in Admin Console.