Hi guys, we are trying to set up a federation with 2 Rocket Chat servers in our LAN, we created the SRV and TXT records in our DNSs. Here are the DNS configurations for these domains:
$ dig txt rocketchat-public-key.domain1.com +short "-----BEGIN PUBLIC KEY-----MIIBIjANBgkf[...]" "[...]ritpydbGSJ4PQIDAQAB-----END PUBLIC KEY-----" $ dig srv _rocketchat._https.domain1.com +short 1 1 443 rchat.domain1.com. $ dig txt rocketchat-public-key.domain2.com +short "-----BEGIN PUBLIC KEY-----MIIBIjANBgkq[...]" "O+YZimjrelO1L[...]wnBaS+i0vuP" "QRLAWh[...]GIgcKnbT" "h0ko5ZZV[...]waTgXZoQgN3/u" "[...]DAQAB-----END PUBLIC KEY-----" $ dig srv _rocketchat._https.domain2.com +short 1 1 443 rchat.domain2.com.
We configured the domains as “
domain1.com” and “
domain2.com” respectively in the Federation page.
Also the “Test setup” button show this message: “Your federation setup is working and other servers can find you!”
So, here is issue: Even though we can search and find users from the other domains in the directory, when we try to message them, the message is never received on the other end.
Also, I ran a tcpdump in the
rchat.domain1.com server and tried to message some user from the other domain. For some reason, instead of seeing packages from
rchat.domain2.com, all I saw was rchat opening connections to itself (on TCP/443) to send those messages…
I’ve seen other posts of people having the same federation issues with servers being able to send messages, but not receive. But it was usually some problem with the TXT records not being properly split.
I can’t find what’s wrong with our DNS entries, or if it is something else. Any help is appreciated.
Server Setup Information
- Version of Rocket.Chat Server: 3.4.2
- Operating System: CentOS 8.2.2004
- Deployment Method: tar
- Number of Running Instances: 3, one in each domain
- NodeJS Version: v12.14.0
- MongoDB Version: 4.0.19
- Proxy: apache