esl-ejabberd is Erlang Solutions' robust and efficient XMPP server aimed at large installations. It utilizes Erlang/OTP's hallmark features - fault tolerance and suitability for server software working in highly demanding conditions.
Its home at GitHub is http://github.com/esl/ejabberd.
For a quick start just download the pre-built package that suits your platform.
Main differences from the parent project
This project began its life as a fork of ejabberd v.2.1.8 and later underwent some major cleanup, refactorization and optimization.
Major steps performed:
- bringing the project source tree to compliance with OTP project structure recommendations,
autotoolsfor the Erlang community-standard build tool
- removal of obsolete and/or rarely used modules to reduce maintenance burden,
- reduction of runtime memory consumption by refactoring the code to use Erlang's binary data type for string manipulation and storage instead of operating on linked lists of characters,
- functional test coverage of the system according to corresponding RFCs and XEPs,
- introducing fine grained monitoring capability through SNMP.
How to build
To compile ejabberd you need:
- GNU Make,
- Libexpat 1.95 or higher,
- Erlang/OTP R14B03 or higher (though may work with older R14 versions),
- Reltool 0.5.4 or higher,
- OpenSSL 0.9.8 or higher, for STARTTLS, SASL and SSL encryption,
- Zlib 1.2.3 or higher for Stream Compression support (XEP-0138). Optional,
- PAM library. Optional. For Pluggable Authentication Modules (PAM).
Compiling on UNIX-like systems.
To compile ejabberd, go to the main repo directory
$REPOand execute the command (
$stands for the shell prompt):
$ ./rebar compile
To generate ejabberd release:
$ make rel
$ ./rebar generate
These commands will generate a self-contained OTP system image in project's
rel/ejabberdsubdirectory. Contents of that directory look as follows:
rel/ejabberd/bin- startup/administration scripts,
rel/ejabberd/etc- configuration files,
rel/ejabberd/lib- ejabberd binary, header and runtime files,
rel/ejabberd/var- spool directory,
rel/ejabberd/log- log file directory,
rel/ejabberd/releases- release files directory.
To run ejabberd from the project tree after compiling it, change to
There you can use the
ejabberdcommand line administration script to start and stop ejabberd. For example:
$ bin/ejabberd start
will start the server.
You can also run the server in interactive mode:
$ bin/ejabberd live
There's also a tool called
ejabberdctlallowing you to perform some operations on a running instance, e.g.:
$ bin/ejabberdctl status The node ejabberd@localhost is started with status: started ejabberd 2.1.8 is running in that node
Building the development target and running tests.
For development purposes there's a different make target available:
$ make devrel
which will generate a release in
$REPO/dev/ejabberdand prepare it for testing and generating coverage reports.
To run the tests (from project's root directory, i.e.
$ cd test $ make cover_test
The test results will show up in the console and a coverage report will be generated in
esl-ejabberd documentation notice
esl-ejabberd, being a fork of ejabberd, is currently in a phase
of rapid development. Because of that the documentation found in the
subdirectory of the source tree, while mostly relevant, may be inaccurate.
The main reason is that some rarely useful features were removed from the repository or are still waiting to be brought up to the Erlang Solutions standards.
Want to get in touch with us?
In case of any suggestions, questions or any random thoughts on this project, please feel free to contact us by the standard GitHub ways or at email@example.com.