S2s does not work on debian xmpp server. I can not understand what was the matter, I tried prosody - nothing happened, now ejabberd, the same problem. Locally, everything works on the domain, but adding contacts from other servers does not authorize. Work certificate from letsencrypt. There are two SRV records in the DNS records:
_xmpp-server._tcp.mydomain.ru. 86400 IN SRV 5 0 5269 mydomain.ru. _xmpp-client._tcp.mydomain.ru. 86400 IN SRV 5 0 5222 mydomain.ru. They are successfully displayed by the https://kingant.net/check_xmpp_dns service. In ejabberd logs, this is what:
2016-09-18 09:03:52.542 [info] <0.445.0>@ejabberd_s2s:new_connection:456 New s2s connection started <0.474.0> 2016-09-18 09:03:52.595 [info] <0.474.0>@ejabberd_s2s_out:log_s2s_out:1315 Trying to open s2s connection: mydomain.ru -> gmail.com with TLS=true 2016-09-18 09:04:11.414 [error] <0.474.0>@ejabberd_s2s_out:srv_lookup:1215 The DNS servers [{{127,0,0,1},53},{{46,28,201,21},53},{{46,28,201,22},53}] timed out on request for "gmail.com" IN SRV. You should check your DNS configuration. 2016-09-18 09:04:50.198 [info] <0.474.0>@ejabberd_s2s_out:open_socket:271 s2s connection: mydomain.ru -> gmail.com (remote server not found) 2016-09-18 09:04:55.180 [info] <0.474.0>@ejabberd_s2s_out:handle_info:990 Reconnect delay expired: Will now retry to connect to gmail.com when needed. This is an example of connecting to an xmpp account on gmail.com, with other servers the same.
With prosody it was similar. As for the DNS - it seems that all the necessary records are made. Tell me, please, what could be the matter.