ejabberd - Comments for "Creating a public domain problem" https://www.ejabberd.im/node/2979 en I am almost lost; problem in DNS or Jabber client? https://www.ejabberd.im/node/2979#comment-52267 <div class="quote-msg"> <div class="quote-author"><em>Anonymous</em> wrote:</div> <p>does ERLANG_NODE in ejabberdctl.cfg affect in any way? (I have ejabberd@localhost in there, but if I change for <noindex><a href="mailto:ejabberd@mycompany.com" rel="nofollow" >ejabberd@mycompany.com</a></noindex> it does not work at all).</p></div> <p>Does not affect to your problem. ERLANG_NODE is used for the database, ejabberdctl command line tool and clustering.</p> <div class="quote-msg"> <div class="quote-author"><em>Anonymous</em> wrote:</div> <p>If I try to connect to "mycompany.com" putting server="mycompany.com" and port=5222, it does not work, and no log anywhere.</p> <p>If I try to connect to "mycompany.com" putting server="local" and port=5222, it also works.</p> <p>If I do a telnet to "mycompany.com 5222" it enters into jabber server of my machine, so it works, and it is registered in logs.</p></div> <p>Oh, it's strange. As you said, the Jabber client doesn't even attempt to connect to ejabberd in the first case. Maybe it attempts to connect somewhere else? In the second it attempts (and succeeds). In the third case telnet attempts and succeeds.</p> <p>It may be some DNS problem or in the Jabber client. You could try with other Jabber clients (Psi, Gajim, Tkabber). If that fails, try in other machine.</p> Sat, 26 Apr 2008 15:19:37 +0000 mfoss comment 52267 at https://www.ejabberd.im I try to resume what https://www.ejabberd.im/node/2979#comment-52245 <p>I try to resume what happens:</p> <p>I have a jabber server with two domains: "local"(it is equals than my machine name in LAN) and "mycompany.com"</p> <p>If I try to connect to "local", putting on my jabber client server="local" and port =5222, it works as expected.</p> <p>If I try to connect to "mycompany.com" putting server="mycompany.com" and port=5222, it does not work, and no log anywhere.</p> <p>If I try to connect to "mycompany.com" putting server="local" and port=5222, it also works.</p> <p>If I do a telnet to "mycompany.com 5222" it enters into jabber server of my machine, so it works, and it is registered in logs.</p> <p>So, what it can be? does ERLANG_NODE in ejabberdctl.cfg affect in any way? (I have ejabberd@localhost in there, but if I change for <noindex><a href="mailto:ejabberd@mycompany.com" rel="nofollow" >ejabberd@mycompany.com</a></noindex> it does not work at all).</p> <p>I am turning crazy with this problem... :-S</p> Wed, 23 Apr 2008 07:38:16 +0000 Anonymous comment 52245 at https://www.ejabberd.im When you try to connect with https://www.ejabberd.im/node/2979#comment-52229 <p>When you try to connect with a Jabber client, does the ejabberd log file show the connection attempt? Does it show any other message? Check ejabberd.log and sasl.log</p> <p>Remember to setup in your Jabber client to connect to the server: mycompany.com</p> Tue, 22 Apr 2008 10:37:04 +0000 mfoss comment 52229 at https://www.ejabberd.im Thanks for your response https://www.ejabberd.im/node/2979#comment-52217 <p>Thanks for your response badlop. I have try to do telnets to my domain, at port 5222, and my ejabberd log file registers those attempts, so maybe it is all because of my ejabberd configuration, but I do not know why.</p> <p>If I try to access to an existing account from a client, I obtain a socket error telling me server has refused the connection.</p> <p>As I said, I have "{hosts, ["localdomain","mycompany.com"]}." at ejabberd.cfg, and<br /> "ERLANG_NODE=ejabberd@localhost" at ejabberdctl.cfg files. Any comment will be welcome.</p> <p>Thanks in advance</p> Mon, 21 Apr 2008 08:12:35 +0000 Anonymous comment 52217 at https://www.ejabberd.im If you want your Jabber https://www.ejabberd.im/node/2979#comment-52207 <p>If you want your Jabber server to be 'mycompany.com', then you put in ejabberd.cfg<br /> {hosts, ["mycompany.com"]}.</p> <p>Then you must configure DNS properly. To try that, start ejabberd and try in some client computer to connect: telnet mycompany.com 5222</p> <p>For example:</p> <div class="codeblock"><code>$ telnet jabber.org 5222<br />Trying 208.245.212.98...<br />Connected to jabber.org.<br />Escape character is &#039;^]&#039;.<br />eooooo<br />&lt;?xml version=&#039;1.0&#039;?&gt;&lt;stream:stream xmlns=&#039;jabber:client&#039; xmlns:stream=&#039;http://etherx.jabber.org/streams&#039; id=&#039;none&#039; from=&#039;jabber.org&#039; version=&#039;1.0&#039;&gt;&lt;stream:error&gt;&lt;xml-not-well-formed xmlns=&#039;urn:ietf:params:xml:ns:xmpp-streams&#039;/&gt;&lt;/stream:error&gt;&lt;/stream:stream&gt;Connection closed by foreign host.</code></div> <p>You should see in the ejabberd log files that connection attempt. If you can't connect, and ejabberd log files don't indicate the connection attempt, the problem may be DNS or a firewall.</p> <p>Once you can connect with telnet, you can proceed to test with a Jabber client.</p> Sun, 20 Apr 2008 17:35:28 +0000 mfoss comment 52207 at https://www.ejabberd.im