


It provides in-memory and disk-based storage and can be easily replicated across Ejaberd nodes. The default database settings use an inbuilt database server known as Mnesia. The following is the list of all supported database systems: Ejabberd supports all leading relational database systems, including SQLite. Next, under the DATABASE SETUP section, you can set Ejabberd to use an external database system. Simply uncomment the respective settings from Anonymous login support: You can also enable anonymous login support, where clients can open an XMPP connection without a username and password. If you are planning to use a different authentication mechanism, make sure that you comment out internal authentication. The following is the list of all supported options:ĭefault internal authentication works well enough and we will proceed with it. By default, Ejabberd uses internal authentication but it can be set to use external scripts, system-level authentication, external databases, or even a centralized LDAP service. Under the AUTHENTICATION section, you can configure the authentication mechanism to be used. This section also enables web socket connections with the ejabberd_http_ws module. These settings specify the connection throttling and access control settings used for the client to server connections respectively.Īt the end of the LISTENING PORTS section, there is a configuration for BOSH (port 5280) connections, as well as the web admin panel. You can change it to your own signed certificate.Īlso note the shaper and access settings. The default settings point to a certificate created by the Ejabberd installation process. The same section contains the parameter named certfile, which specifies the SSL certificate file to be used while creating client connections. Three of them are enabled by default and serve a client to server connection (5222), server to server connection (5269), and HTTP module for admin console and http_bind service (5280). The LISTENING PORTS section contains different port configurations, each serving a separate service. The following is the configuration snippet listing port 5222: I will use the default port configuration. Search for the LISTENING PORTS section in ejabberd.yml and change the respective ports. Next, you may want to change the default ports for XMPP connections. You can choose to keep the default host entry or remove it: The default setting uses the server hostname as a host for the XMPP service.Īdd a fully qualified domain name under the hosts section. This is located under the SERVED HOSTNAMES section in the configuration file. Let us start by setting the domain for our XMPP service. It contains configuration settings in the YML format.

On the Ubuntu server, it should be /opt/ejabberd-version/conf.įollow these steps to configure the Ejabberd installation: You will need access to a root account or an account with sudo privileges.Įjabberd configuration files are located under the conf directory in the Ejabberd installation. Make sure that you have installed the Ejabberd server. This recipe covers the basic configuration of the Ejabberd server. Ejabberd provides a central configuration file through which we can easily configure our XMPP installation. This works when we are testing our setup, but when we need a production server, we need to make a number of changes to the default installation. We can install Ejabberd and start using it as soon as installation completes. Thank you.Ejabberd comes with various default settings that make it easy to get started. Now your server is ready to register multiple users from different devices so quickly. Configure ejabberd.yml like:Īfter adding these rules in ejabberd.yml file save it and run Ejabberd server and for checking purpose of these rules are really add or not so you can check it on Ejabberd server console, access_rules in raw file will looks like: [, To allow multiple user registration on Ejabberd server, we need to configure file ejabberd.yml in Ejabberd latest versions.

Allow multiple user registration from different devices so quickly on Ejabberd server. Since the Documentation for ejabberd is new, you may need to create initial versions of those related topics. It should also mention any large subjects within ejabberd, and link out to the related topics. This section provides an overview of what ejabberd is, and why a developer might want to use it.
