<p>Ejabberd's configuration files are written in Erlang syntax, which might be difficult to comprehend. Thankfully, the modifications we need to make are relatively minor and straightforward. The main ejabberd configuration file is located at /etc/ejabberd/ejabberd.cfg. We'll cover each relevant option in turn.</p>
<p>In Erlang, comments begin with the % sign.</p>
<ul>
<li>Setting admin and domain, now we setting <code>www@example.com</code> as admin.</li>
<li>Auth not use internal. </li>
<li>LDAP auth</li>
</ul>
<p>Open /etc/ejabberd/ejabberd.cfg and set correct values:</p>
<p>Now you can access http://192.168.1.10:5280/admin/</p>
<p>Login in the ejabberd web admin, We have seting www@example.com as admin for the ejabberd server</p>
<p>You can not create user in webadmin. If you want to create user, you need first add user in iRedAdmin, then enable the jabber service for the user in phpldapadmin.</p>
<p>If you want to add the second virtual domain, you need first create a new domain in iRedAdmin, then modify /etc/ejabberd/ejabberd.cfg .</p>
<ul>
<li>Open <code>/etc/ejabberd/ejabberd.cfg</code> and set correct values:</li>
<p>You can choose your favor XMPP client, now I use Pidgin for test. Download the newst version of Pidgin and install. The setting is simple.</p>
<h3id="xmpp-federation-and-dns-link">XMPP Federation and DNS Link</h3>
<p>To ensure that your ejabberd instance will federate properly with the rest of the XMPP network, particularly with Google's "GTalk" service (i.e. the "@gmail.com" chat tool,) we must set the SRV records for the domain to point to the server where the ejabberd instance is running. We need three records, which can be created in the DNS Management tool of your choice:</p>
<p>The "target" of the SRV record should point to the publicly routable hostname for that machine (e.g. "mail.example.com"). The priority and weight should both be set to 0.</p>
</ol><pstyle="text-align: center; color: grey;">All documents are available in <ahref="https://bitbucket.org/zhb/iredmail-docs/src">BitBucket repository</a>, and published under <ahref="http://creativecommons.org/licenses/by-nd/3.0/us/"target="_blank">Creative Commons</a> license. If you found something wrong, please do <ahref="http://www.iredmail.org/contact.html">contact us</a> to fix it.<script>