What changed in ejabberd from 25 to 26
6 releases numbered after 25.10 up to and including 26.09, stable releases only. 25.10 and 26.09 are the newest stable releases of 25 and 26 we track; this page follows them as new ones ship.
- 1 removes or deprecates something
87 changes across 6 releases
- Added the captcha_pow toplevel option, which adds a SHA-256 hashcash challenge as described in XEP-0158 to the CAPTCHA form in mod_register, disabled by default
- mod_invites now includes a startpage where regular users can generate account creation invites using their account credentials.
- Added WebAdmin pages under Virtual Hosts to view, generate, expire and delete invites in mod_invites.
- Added option max_stanza_elements to limit the maximum number of XML elements an individual stanza can contain, defaulting to infinity
- Added options pre_auth_max_stanza_elements (default 32) and pre_auth_max_stanza_size (default 8192) to set separate stanza limits for sessions that have not yet authenticated
- Added predefined configuration keyword DATABASE_PATH that points to the Mnesia spool directory
- Add support for roster pre-approval in mod_roster, requiring a new approved column in the rosterusers SQL table
- Add ability to configure handling of the SASL client flag indicating channel bindings were wanted but not offered
- Add ability for mod_options values to depend on other options
- Add handling of Etag and If-Modified-Since headers to files served by mod_http_upload
- Add support for webchat_url in mod_invites
- Add CSRF token checking to the mod_invites register form
- Add security headers to mod_invites responses
- Set overuse limits in mod_invites
- Database serialization: export data from one database backend to a file with the export_db command and import it into another backend (or another machine) with import_db
- Background export and import operations controlled via ejabberdctl commands export_db, export_db_status, export_db_abort, import_db, import_db_status and import_db_abort
- New mod_invites module for invite-based account registration, letting administrators generate invitation URLs for new users
- Roster invites via mod_invites, allowing users to send links that establish a contact connection without further interaction, and to create an account when account creation is allowed
- Changed the default value of oauth_client_id_check to db.
- Updated mod_conversejs to support ConverseJS 14 and included other minor cosmetic improvements.
- ejabberd now softly rejects compilation with Erlang/OTP lower than 27, which can be bypassed with ./configure --with-min-erlang=13.0.
- Updated the bundled Rebar and Rebar3 binaries to work with Erlang/OTP 26-29.
- Improved the leave_cluster command so that it works even when run on the own node
- sql_database toplevel option now supports the HOST keyword with a sensible default value
- Provided more detailed log messages when using SQLite
- Updated documentation of jwt_key to match the Docs site
- mod_invites now supports --enable-bootstrap=no configure option to bypass download
- mod_invites no longer depends on jquery
- mod_mqtt defines RAM callbacks as optional and uses default_ram_db only when it truly supports RAM storage
- Bumped Erlang/OTP to 28.4.2
- Offered SASL authentication methods in mod_fast_auth are based on available channel bindings
- Only provide the XEP-0431 fulltext field in mod_mam_sql, no longer the old custom withtext field
- Call the store_mam_message hook for messages that user_mucsub_from_muc_archive was filtering out in mod_mam
- Always hide passwords in mod_http_api log entries
- Migrate mod_invites to bootstrap5 and update jquery
- Enable dark mode in mod_invites
- Remove inline scripts from mod_invites
- Bump Erlang/OTP to 28.4.1 in container and installers
- Removes mod_muc_occupantid module and integrates its functionality directly into mod_muc
- Improves handling of mediated group chat invitations in mod_block_stranger
- Better errors in mod_invites
- Accessibility improvements in mod_invites
- Improves handling of requests with invalid url encoded values handled by ejabberd_http
- Improves handling of invalid responses to disco queries in mod_pubsub_serverinfo
- Changes default_ram_db from mnesia to p1db when using p1db cluster_backend in ejabberd Business Edition
- Fixed the generator in fast_xml so that XML encoders emit child elements in the order declared in the codec specification
- Fixed the sasl2_continue declaration order in the xmpp Erlang library to follow the XEP-0388 schema ordering of additional-data, tasks, text
- mod_http_fileserver now passes an integer to ejabberd_hooks:add as expected by make hooks
- mod_invites no longer crashes in get_invite_by_invitee_t for the SQL backend
- Fixed a bug in mod_roster introduced in 26.03
- mod_roster_sql now casts the approved integer as a boolean when exporting Mnesia to SQL
- Fixed a typo in mod_shared_roster_sql that had existed for about 10 years
- Fix MySQL authentication for TLS connections that required an auth plugin switch
- Fix duplicate stanza-id in MUC MAM responses generated from local history
- Fix display of groups in WebAdmin roster page when the value is a list
- Fix some compiler warnings with Erlang/OTP 29
- Stop failing to classify stand-alone chat states
- Ignore whitespace at the end of the host header in ejabberd_http
- Check the syntax of the mod_invites landing_page option at start time
- Fix broken paths in mod_invites when behind a proxy with a prefix
- Don't crash mod_invites on unknown host from the HTTP host header
- Make invite creation transactional in mod_invites
- Fixes issue with adding hats data in presences sent by group chats
- Fixes issue with occupant-id values being reset after restart of ejabberd
- Properly installs mod_invites templates in make install call
- Fixes conversion of MUC room configs from ejabberd older than 21.12
- Fixes autologin in WebAdmin
- Removed session_counter from ejabberd_sm, since get_vh_session_number is no longer present
- Fixed an unauthenticated remote code execution vulnerability affecting versions 25.10 and later when BOSH is enabled on any port, S2S is enabled, and mod_adhoc_api is loaded
- Fixed a denial-of-service attack affecting versions 16.12 and later when BOSH is enabled on any port
- Fixed cross-tenant unauthorized access to MUC, Roster and Shared-Roster
- Fixed a PLAIN auth request flaw that allowed authenticating as one user while opening a session for a different user.
- Fixed mod_caps persistent cache poisoning via legacy version requests, which affected PubSub presence-based delivery notifications.
- Fixed an SQL injection in mod_pubsub handling of paging requests.
- Fixed possible atom exhaustion triggered by REST requests to mod_http_api.
- Fixed ejabberd sending redirect responses for OAuth requests to unvetted URLs when acting as an OAuth provider.
- Restricted using ejabberd as an OAuth provider to clients previously registered with oauth_add_client_password or oauth_add_client_implicit commands.
- Fixed tokens in mod_bosh, captcha, mod_auth_fast, mod_http_upload and mod_invites being generated with non-cryptographically strong random number generators.
- Added XSS prevention headers to files served by mod_http_upload.
- Fixed issues in authentication of SIP requests.
- Added CSRF protection to requests to web_admin.
- Fixed a flaw that allowed skipping captcha verification in mod_register_web.
- Fixed mod_conversejs allowing unescaped values from the URL to be placed in page content.
- Added new listener options to limit the memory used by the XML parser when processing XMPP payloads, mitigating potential denial of service attacks
- Bumped OpenSSL to 3.5.6 in make-binaries
- Improve handling of the SCRAM channel-bindings flag by aborting connections that present it unless -PLUS mechanisms are disabled
- Apply many security fixes to mod_invites, including CSRF token checks, removing inline scripts, adding integrity hashes to scripts and CSS, and removing logging of query parameters including passwords
Original release notes, newest first
The list above is our reading of these notes; the originals from ProcessOne are here, one fold per release.
26.09
Release notes copied from the original ejabberd 26.09 announcement post:
We are pleased to announce the publication of ejabberd 26.09, which includes several security fixes, some improvements and other minor bugfixes. It is strongly encouraged that you update ejabberd as soon as possible.
Contents:
- Security fixes
- Fixed the ordering of some XML child elements
- New option for CAPTCHA POW
- ChangeLog
- Acknowledgments
- Improvements in ejabberd Business Edition
- ejabberd 26.09 download & feedback
Security fixes
This release contains fixes for those security issues:
- Unauthenticated Remote Code Execution on ejabberd (reported by Gia Bui) when:
- ejabberd versions is at least 25.10
- BOSH is enabled on any port
- S2S is enabled
- mod_adhoc_api is loaded
- outbound connectivity from ejabberd on ports epmd (default 4369), s2s (default 5269) and Erlang distribution port (dynamically assigned, typically in the range 49152-65535 unless FIREWALL_WINDOW is set in ejabberdctl.cfg).
- DoS attack on 16.12+ versions if BOSH is enabled on any port.
- Cross-Tenant MUC, Roster and Shared-Roster unauthorized access (reported by Hoang Gia).
Fixed the ordering of some XML child elements
There was a reference-ordering problem in the fast_xml generator, it generated XML encoders that could reorder child elements in a different order from the one declared in the codec specification. From now, the order is the one declared in the codec specification. See details in https://github.com/processone/fast_xml/pull/53
Additionally there was an incorrect sasl2_continue declaration order in the xmpp erlang library: it declared "additional-data, text, tasks". Now it follows the ordering defined in XEP-0388 schema: "additional-data, tasks, text". See details in https://github.com/processone/xmpp/pull/112
New option for CAPTCHA POW
New toplevel option captcha_pow adds a SHA-256 hashcash challenge as described in XEP-0158 in the CAPTCHA form, alongside the image challenge or on its own.
Unlike the image challenge, this does not require setting the option captcha_cmd.
This option is used only by mod_register when registering a new account using In-Band Registration, not in MUC rooms or in mod_register_web. It is disabled by default.
Improved support for vhost-admins
It is well known how to grant administrative privileges to an account: by adding that account to an acl called admin:
acl:
admin:
user: admin1@localhost
The default ejabberd configuration uses this admin ACL in many places:
- the
announceaccess rule used bymod_announce - the
configureaccess rule used bymod_configureand WebAdmin - several
api_permissionsentries used to execute API commands in WebAdmin,mod_adhoc_api,mod_http_api, ... - some
shaper_rules - many options modules, for example
access_adminoption inmod_muc
Consequently, that admin account can administer all of ejabberd: all the global features, all the modules, in all the vhosts... For now let's call it a "global admin".
If you have several vhosts, you can allow specific accounts to administer only specific vhosts. Let's call them "vhost-admins". In this example admin1@localhost can execute commands on all vhosts. Additionally, localhost has a vhost-admin, second has two vhosts-admins, and third has a vhost-admin:
hosts:
- localhost
- second
- third
acl:
admin:
user: admin1@localhost
append_host_config:
localhost:
acl:
aclhostadmin:
- user: hostadmin@localhost
second:
acl:
aclhostadmin:
- user: hostadmin@second
- user: hostadmin@third
third:
acl:
aclhostadmin:
- user: hostadmin@second
api_permissions:
"vhost http access":
from: mod_http_api
who:
access:
allow:
- acl: admin
allow:
- acl: aclhostadmin
what: "*"
Example call of a vhost command by a vhost-admin:
$ curl --basic --user hostadmin@third:somepass -k \
'https://localhost:5443/api/status_num_host?host=second&status=dnd'
7
If a vhost-admin tries to execute an API command directed to a vhost he does not administer, or a global command (that has no host argument, and affects all ejabberd), they are rejected:
$ curl --basic --user hostadmin@third:somepass -k \
'https://localhost:5443/api/status_num_host?host=third&status=dnd'
{"code":32,
"message":"AccessRules: Account does not have the right to perform the operation.",
"status":"error"}
$ curl --basic --user hostadmin@third:somepass -k \
'https://localhost:5443/api/stats?name=registeredusers'
{"code":32,
"message":"AccessRules: Account does not have the right to perform the operation.",
"status":"error"}
ChangeLog
Security fixes
- Unauthenticated Remote Code Execution on ejabberd
- DoS attack on BOSH
- Cross-Tenant MUC, Roster and Shared-Roster unauthorized access
Core
- Add
forcevalue toauth_external_user_exists_checkoption - Add XEP-0158 SHA-256 hashcash CAPTCHA challenge (#4594)
- Add gen_mod:get_module_proc_check()
- Fix to preserve reference order in XML, done in fast_xml and xmpp (#4606)
- Get rid of couple
*_to_atom - Make
ejabberd_cluster:*calloperate only on known nodes - More fixes for arguments in commands for vhost-admin
- Optimize
acl:load_tab() ejabberd_systemd: Prefer matching overlength/1- Updated Portuguese-Brazil and Chinese-Simplified translations
Modules
mod_auth_fast: Make sure that fast tokens can be used only with method that they were created formod_invites: don't apply overuse limit ifmax_invitesisinfinity(#4615)mod_invites: don't crash inget_invite_by_invitee_tifreset_tokenpresent (#4620)mod_invites: now that Conversations is for free we remove Yaxim (#4621)mod_mix: Make access_create rule be applied when creating channelmod_mqtt: Add lower limits for pre-auth packetsmod_muc_room: Fix handling of hats request with missing xdatamod_muc_rtbl: Accept also plain account and domain JIDsmod_muc_rtbl: Fix handling of remote ban servers (#4622)mod_register: After changing password disallow password change on currently authenticated sessions
SQL
- Add
db_serializetomod_privacyandmod_pubsub - Add
rename_columnop toejabbrd_sql_schemaupdate routines - Make
rename_columncompatible with older mysql versions ejabberd_sql_schema: Escape all column/table names- Update
mod_rosterserializer with info about approved field
Administration
- Allow vhost-admin to execute MUC commands for his vhost (#4603)
- Fix method to check vhost-admin permission in Host API (#4619)
- WebAdmin: Fix shared roster page when visited by vhost-admin
- WebAdmin: For vhost-admins, hide useless link to node page
- WebAdmin: Show proper domain in URLs, not the first configured vhost
Installers and Container
make-binaries: Bump Elixir to 1.19.6make-binaries: Bump Erlang/OTP version to 28.5.0.7make-binaries: Bump Expat version to 2.8.5make-binaries: Bump JPEG version to 10make-binaries: Bump OpenSSL 3.6.4make-binaries: Bump PNG version to 1.6.58make-binaries: Bump SQLite version to 3530400make-binaries: Bump WebP version to 1.6.0Dockerfile: Workaround to get image withamd64(#4598)
Full Changelog
https://github.com/processone/ejabberd/compare/26.07...26.09
Acknowledgments
We would like to thank for the security reports provided by:
- Gia Bui from Calif.io
- Hoang Gia
- Nguyễn Huy Hoàng
- Pham Kiet
- On3nvm
the contributions to the source code by:
- rallep71 for the fixes in
fast_xmlandxmppXML child ordering - MrEddX for fixes in mod_muc_rtbl
- Pounceandmiss for improvement in CAPTCHA
- Stefan Strigler for Invites improvements
- Andreas Aaberge Eide for SQL improvements
- Holger Weiß for installers updates
and the translation by:
- Daltux for updating the Portuguese (Brazil) translation
- Sketch6580 for updating the Chinese (Simplified) translation
And also to all the people contributing in the ejabberd chatroom, issue tracker...
Improvements in ejabberd Business Edition
Customers of the ejabberd Business Edition, in addition to all those bugfixes, also get the following changes:
- Improve p1db serialization
- Fix SQLite backend for push
- Recognize gateway_sandbox option inside
mod_applepushservice (to change sandbox connection endpoint)
Changes in SQL schema
MySQL
When using multihost schema:
ALTER TABLE push_gate CHANGE COLUMN user username text NOT NULL;
CREATE INDEX i_push_gate_username_server_host USING BTREE ON `push_gate`(username(191), server_host(191));
Otherwise:
ALTER TABLE push_gate RENAME COLUMN user TO username;
CREATE INDEX i_push_gate_username USING BTREE ON `push_gate`(username(191));
PgSql
When using multihost schema:
ALTER TABLE push_gate RENAME COLUMN "user" TO "username";
CREATE INDEX i_push_gate_token_server_host ON "push_gate" USING btree ("username", "server_host");
Otherwise:
ALTER TABLE push_gate RENAME COLUMN "user" TO "username";
CREATE INDEX i_push_gate_token ON "push_gate" USING btree ("username");
ejabberd 26.09 download & feedback
As usual, the release is tagged in the Git source code repository on GitHub.
The source package and installers are available in ejabberd Downloads page. To check the *.asc signature files, see How to verify ProcessOne downloads integrity.
For convenience, there are alternative download locations like the ejabberd DEB/RPM Packages Repository and the GitHub Release / Tags.
The ecs container image is available in docker.io/ejabberd/ecs and ghcr.io/processone/ecs. The alternative ejabberd container image is available in ghcr.io/processone/ejabberd.
If you consider that you've found a bug, please search or fill a bug report on GitHub Issues.
26.07
Release notes copied from the original ejabberd 26.07 announcement post:
We are publishing this security release ejabberd 26.07, which includes several security fixes, some improvements and other minor bugfixes. It is strongly encouraged that you update ejabberd as soon as possible.
Contents:
- Changes in SQL schemas
- Security fixes
- mod_invites: New pages to create invites and WebAdmin
- mod_conversejs: Support ConverseJS 14
- Erlang/OTP 27.0 as a soft minimum
- Rebar/Rebar3: Update binaries to work with Erlang/OTP 26-29
- ChangeLog
- Acknowledgments
- Improvements in ejabberd Business Edition
- ejabberd 26.07 download & feedback
Changes in SQL schema
If you upgrade ejabberd from a previous release to 26.07, there are no changes in SQL schemas, but there is one for ejabberd Business Edition (see below).
Security fixes
This release contains fixes for those security issues:
- It's possible to craft PLAIN auth request and authenticate as one user, but then open session for different one.
mod_capspersistent cache can be poisoned by using legacy version requests.This cache was only used to determine list of nodes that should trigger notifications in PubSub presence-based delivery.- SQL injection in
mod_pubsubhandling of paging requests. - Possible atom exhaustion that can be triggered by issuing REST requests to
mod_http_api. - It was possible to make ejabberd send redirect response for OAuth requests to unvetted url. This required enabling ejabberd to act as OAuth provider (by adding request handler for
ejabberd_oauthin http listener). As part of this fix we changedoauth_client_id_checkdefault value todb. - using ejabberd as OAuth provider will be only allowed by clients
that were previously registered with
oauth_add_client_passwordoroauth_add_client_implicitcommands. - Tokens generated by
mod_bosh,captcha,mod_auth_fast,mod_http_uploadandmod_invitesused not cryptographically strong random number generators. - Files server by
mod_http_uploaddidn't have XSS prevention headers. - Issues in authentication of SIP requests.
- Request to web_admin were lacking CSRF protection.
- It was possible to skip captcha verification in mod_register_web.
mod_conversejsallowed putting unescaped value from url in page content.
mod_invites: New pages to create invites and WebAdmin
mod_invites now includes a startpage where regular users can use their account credentials to generate new account creation invites.
This is useful for people using XMPP clients that do no support that feature. The URL of that page is the root of mod_invites; you can find a link to that page in the bottom of WebAdmin left menu.
There are also new WebAdmin pages to view the existing invites, generate new invites, expire, delete ... Go and take a look at WebAdmin > "Virtual Hosts" > one of your hosts > "Invites"
mod_conversejs: Support ConverseJS 14
ConverseJS published version 14.0.0 recently, and it requires some changes in the web server. In this sense, mod_conversejs is updated to support ConverseJS 14, and also got other minor cosmetic improvements.
Erlang/OTP 27.0 as a soft minimum
Are you compiling ejabberd with Erlang/OTP 25 or 26? Then please try to update to Erlang/OTP 27, 28, or 29. For example, the ejabberd installers are compiled with Erlang/OTP 28.5.0.4.
ejabberd supports compilation with Erlang/OTP 25 and 26, and those versions are still tested in runtime.yml and weekly.yml, but those Erlang/OTP versions are not actively maintained anymore by Erlang/OTP.
Following the erlang security recommendation to Use Actively Maintained Versions of Erlang/OTP, from now ejabberd softly rejects compilation with Erlang/OTP lower than 27.
What does softly mean? If you really want to compile ejabberd with Erlang/OTP lower than 27 at your own risk, you can bypass that soft requirement by defining this option (Erlang/OTP 25.0 included Erlang Run-Time System 13.0, and that is the number to provide in that option):
./configure --with-min-erlang=13.0
Rebar/Rebar3: Update binaries to work with Erlang/OTP 26-29
ejabberd source code includes Rebar and Rebar3 binaries, in case you don't have installed in your system. But those programs only support four Erlang releases (26 up to 29).
If you want to compile ejabberd with Erlang 25, then you need to grab a compatible Rebar3 (or Rebar) binary: either install one from your operating system, or you can download the old binaries included with ejabberd 26.04 (those still supported Erlang 25):
https://github.com/processone/ejabberd/raw/26.04/rebar
https://github.com/processone/ejabberd/raw/26.04/rebar3
ChangeLog
Security fixes
This release contains fixes for those issues:
- It's possible to craft PLAIN auth request and authenticate as one user, but then open session for different one.
- mod_caps persistent cache can be poisoned by using legacy version requests. This cache was only used to determine list of nodes that should trigger notifications in PubSub presence-based delivery.
- SQL injection in mod_pubsub handling of paging requests.
- Possible atom exhaustion that can be triggered by issuing REST requests to mod_http_api
- It was possible to make ejabberd send redirect response for OAuth requests to unvetted url. This required enabling ejabberd to act as OAuth provider (by adding request handler for ejabberd_oauth in http listener). As part of this fix we changed
oauth_client_id_checkdefault value todb - using ejabberd as OAuth provider will be only allowed by clients
that were previously registered with
oauth_add_client_passwordoroauth_add_client_implicitcommands. - Tokens generated by mod_bosh, captcha, mod_auth_fast, mod_http_upload and mod_invites used not cryptographically strong random number generators.
- Files server by mod_http_upload didn't have XSS prevention headers.
- Issues in authentication of SIP requests.
- Request to web_admin were lacking CSRF protection.
- It was possible to skip captcha verification in mod_register_web.
- mod_conversejs allowed putting unescaped value from url in page content.
Core
- Fixes
delete_old_messages_batchcommand when used on pgsql - Adds
export_db_extwhich allows exporting db content to json files - Use constant time functions when doing password checks
- Optimize
room_unused_*commands when room hibernation is configured - We no longer add flag requesting client certificate for tls connections where certificate authentication is not enabled
Modules
mod_auth_fast: Fixes exception for session that didn't set user agentmod_invites: Add page for creating invites.mod_invites: Fix generation of CSRF tokens.mod_invites: Update to changes in latest XEP-0401mod_http_upload: Attach custom headers from config when serving files.
Full Changelog
https://github.com/processone/ejabberd/compare/26.04...26.07
Acknowledgments
We would like to thank for the security reports provided by:
- arthurscchan
- EkiXu
- kah-ja
- LautaroPetaccio
- Marius Schwarz
- tinyb0y
- X1AOxiang
the contributions to the source code by:
- Stefan Strigler for the new features, improvements and fixes in
mod_invites - Christian Dröge
- Holger Weiß
- Jonathan Davies
- Kirill A. Korinsky
and the translation by:
- Mr. EddX for updating the Bulgarian translation
- Arif Budiman for updating the Indonesian translation
- TamilNeram for updating the Tamil translation
And also to all the people contributing in the ejabberd chatroom, issue tracker...
Improvements in ejabberd Business Edition
Customers of the ejabberd Business Edition, in addition to all those bugfixes, also get the following changes:
Changes in SQL schema
This release modifies the push_customizations table in the SQL database schemas to support the new push notifications mute option (see below). This task is performed automatically by ejabberd by default.
However, if your configuration file has disabled update_sql_schema toplevel option, you must perform the SQL schema update manually yourself. Those instructions are valid for MySQL and PostgreSQL, both default and new schemas:
MySQL
ALTER TABLE push_customizations MODIFY COLUMN mute smallint;
PostgreSQL
ALTER TABLE push_customizations ALTER COLUMN mute TYPE smallint USING mute::int;
Push notifications
- Add a push customization option to allow mentioned users (as described in XEP-0513) to be notified even in muted conversation.
- Make proxy connections in applepushv3 always use http connect
- Report push gate tokens in the results of the
user_push_statecommand - Implement push errors reporting in the results of the
user_push_statecommand. - Make
mod_webpushreject tokens that don't have correct format. - Fix
mod_webpushkey parser. - Add ability to retrieve user nodes from push_gate.
- Handle wildcard certificates now used by Google FCM service.
Commands
Add a new local_health_status command to return information about local node state.
Client certificate authentication
- Add option
require_xmpp_addrthat forces client certs to haveXmppAddr. - New
recognize_email_addroption formod_crl/mod_ocspto addemailAddressfrom cert subject to be used besidexmppAddrfor matching against provided user id.
p1db backend
- Make
mam_p1dbserialization properly serialize MUC archives. - Fix JID encoding in
roster_p1dbserialization. - Fix decoding of
fast_tokensin p1db backend
Clustering
Make join_cluster robust to race conditions on leave_cluster.
Docker
sqlite backend has been fixed in Docker image.
ejabberd 26.07 download & feedback
As usual, the release is tagged in the Git source code repository on GitHub.
The source package and installers are available in ejabberd Downloads page. To check the *.asc signature files, see How to verify ProcessOne downloads integrity.
For convenience, there are alternative download locations like the ejabberd DEB/RPM Packages Repository and the GitHub Release / Tags.
The ecs container image is available in docker.io/ejabberd/ecs and ghcr.io/processone/ecs. The alternative ejabberd container image is available in ghcr.io/processone/ejabberd.
If you consider that you've found a bug, please search or fill a bug report on GitHub Issues.
26.04
Release notes copied from the original ejabberd 26.04 announcement post:
We are publishing this security release ejabberd 26.04, which includes options to limit XML parser, and other minor bugfixes. It is strongly encouraged that you update ejabberd as soon as possible.
Contents:
New limits options for XML parser
This release adds new options that limit max memory used by XML parser used to process XMPP payloads, to prevent potential Denial of Service attack. The default values for pre-auth provide sufficient protection for ejabberd against non-authenticated users on c2s and s2s, so there is no need to change your configuration.
The option max_stanza_elements sets a limit on the maximum number of XML elements that an individual stanza can contain. By default, this option is set to infinity.
The pair of options pre_auth_max_stanza_elements and pre_auth_max_stanza_size define separate limits for sessions that haven't authenticated yet. The session will switch to the limits defined by the options max_stanza_elements and max_stanza_size after the client has successfully authenticated. The default values for these options are: 32 for pre_auth_max_stanza_elements and 8192 for pre_auth_max_stanza_size.
All those options are recognized inside listener sections, and can be applied to ejabberd_c2s and ejabberd_s2s_in listeners.
ChangeLog
Core
- Add new listener options to limit xml parser accepted input
- Improve
leave_clustercommand to work even in own node - New predefined keyword
DATABASE_PATHthat points to the Mnesia spool dir - Support HOST keyword in
sql_databasetoplevel option, set nice default value - Provide more details in log messages when using SQLite
- Update documentation of jwt_key to match the Docs site
- ejabberd_config: New default_ram_db/3 clause that checks module support
- ejabberd_sm: Remove session_counter, used for get_vh_session_number now removed
Modules
mod_http_fileserver: Use integer inejabberd_hooks:addas expected by "make hooks"mod_invites: Add--enable-bootstrap=noto configure options to bypass download (#4558)mod_invites: don't crash inget_invite_by_invitee_tfor sql backend (#4566)mod_invites: quick howto for creating integrity check checksumsmod_invites: remove dependency on jquerymod_mqtt: Define RAM callbacks as optionalmod_mqtt: Usedefault_ram_dbonly if it really supports RAM storagemod_roster: Fix bug introduced in 26.03 in commit d5c1440 (#4564)mod_roster_sql: Castapprovedinteger as boolean when exporting Mnesia to SQLmod_shared_roster_sql: Fix typo introduced 10 years ago in commit 0ea0ba30
Container and Installers
- Bump Erlang/OTP 28.4.2
- make-binaries: Bump OpenSSL to 3.5.6
Full Changelog
https://github.com/processone/ejabberd/compare/26.03...26.04
Acknowledgments
We would like to thank the contributions to the source code, documentation, and translation provided for this release by:
- Stefan Strigler for the improvements in
mod_invites
And also to all the people contributing in the ejabberd chatroom, issue tracker...
ejabberd 26.04 download & feedback
As usual, the release is tagged in the Git source code repository on GitHub.
The source package and installers are available in ejabberd Downloads page. To check the *.asc signature files, see How to verify ProcessOne downloads integrity.
For convenience, there are alternative download locations like the ejabberd DEB/RPM Packages Repository and the GitHub Release / Tags.
The ecs container image is available in docker.io/ejabberd/ecs and ghcr.io/processone/ecs. The alternative ejabberd container image is available in ghcr.io/processone/ejabberd.
If you consider that you've found a bug, please search or fill a bug report on GitHub Issues.
26.03
Release notes copied from the original ejabberd 26.03 announcement post:
We are pleased to announce another bugfix release: ejabberd 26.03. This brings support for roster pre-approval, and more than 100 commits with bugfixes all around, many of them dedicated to the new mod_invites, including also many security fixes.
If you are upgrading from a previous version, there is a change in the SQL schemas, please read below. There are no changes in configuration, API commands or hooks.
Contents:
- Changes in SQL schemas
- SASL channel binding changes
- ChangeLog
- Acknowledgments
- Improvements in ejabberd Business Edition
- ejabberd 26.03 download & feedback
Changes in SQL schema
This release adds a new column to the rosterusers table in the SQL database schemas to support roster pre-approval. This task is performed automatically by ejabberd by default.
However, if your configuration file has disabled update_sql_schema toplevel option, you must perform the SQL schema update manually yourself. Those instructions are valid for MySQL, PostgreSQL and SQLite, both default and new schemas:
ALTER TABLE rosterusers ADD COLUMN approved boolean NOT NULL AFTER subscription;
SASL channel binding changes
This version adds ability to configure handling of client flag "wanted to use channel-bindings but was not offered one". By default ejabberd will abort connections that present this flag, as that could mean that between server and client is rogue MITM proxy that strips exchanged data with informations that are required for this.
This can cause problems for servers that use proxy server that terminated TLS connection (there is MITM proxy, but approved by server admin). To be able to handle this situation, we added code that ignore this flag, if server admin disable channel-binding handling by disabling -PLUS auth mechanisms in config file:
disable_sasl_mechanisms:
- SCRAM-SHA-1-PLUS
- SCRAM-SHA-256-PLUS
- SCRAM-SHA-512-PLUS
We also ignore this flag for SASL2 connections if offered authentication methods filtered by available user passwords did disable all -PLUS mechanisms.
ChangeLog
Core
- Fix mysql authentication for tls connections that required auth plugin switch
- Improve handling of scram "wanted to use channel-bindings but was not offered one" flag
- Add ability for mod_options values to depend on other options
- Don't fail to classify stand-alone chat states
- Fix some warnings compiling with Erlang/OTP 29 (#4527)
ejabberd_ctl: Document how to set empty lists in ejabberdctl and WebAdminejabberd_http: Add handling ofEtagandIf-Modified-Sinceheaders to files served bymod_http_uploadejabberd_http: Ignore whitespaces at end of host header- SQL: Add ability to mark that column can be null in e_sql_schema
- Tests: Add tests for sasl2
- Tests: Make table cleanup in test more robust
Modules
mod_fast_auth: Offered methods are based on available channel bindingsmod_http_api: Always hide password in log entriesmod_mam: Callstore_mam_messagehook for messages thatuser_mucsub_from_muc_archivewas filtering outmod_mam_sql: Only provide the new XEP-0431fulltextfield, not old customwithtextmod_muc_room: Fix duplicate stanza-id in muc mam responses generated from local history (#4544)mod_muc_room: Fix hook name in commit 7732984 (#4526)mod_pubsub_serverinfo: Don't usegen_server:callfor resolving pubsub hostmod_roster: Add support for roster pre-approval (#4512)mod_roster: Fix display of groups in WebAdmin when it's a listmod_roster: in WebAdmin page, first execute SET actions, later GETmod_roster_mnesia: Improve transformation code
mod_invites
- Makefile: Run invites-deps only when files are missing
- Fix path to bootstrap files
- Check at start time the syntax of landing_page option (#4525)
- Send 'Link' http header (#4531)
- Set meta.pre-auth to skip redirect_url if token validated (#4535)
- Many security fixes (#4539)
- Add favicon and change color to match ejabberd branding
- Enable dark mode
- Add support for webchat_url
- Migrate to bootstrap5 and update jquery
- No inline scripts
- Make format csrf token
- Add csrf token to failed post
- Include js/css deps in static dir
- Correct hashes for bootstrap 4.6.2
- Hint at type for landing_page opt
- Many more security fixes (#4538)
- Check CSRF token in register form
- Add integrity hashes to scripts and css
- Comment unused resources
- Add security headers
- Remove debug log of whole query parameters (including pw)
- Don't crash on unknown host from http host header
- Make creating invite transactional
- Set overuse limits (#4540)
- Fix broken path when behind proxy with prefix (#4547)
Container and Installers
- Bump Erlang/OTP 28.4.1
- make-binaries: Bump libexpat to 2.7.5
- make-binaries: Bump zlib to 1.3.2
- make-binaries: Enable missing crypto features (#4542)
Translations
- Update Bulgarian translation
- Update Catalan and Spanish translations
- Update Chinese Simplified translation
- Update Czech translation
- Update French translation
- Update German translation
Acknowledgments
We would like to thank the contributions to the source code, documentation, and translation provided for this release by:
- Stefan Strigler for the roster pre-approval feature, sponsored by NLnet
- Stefan Strigler for the improvements in
mod_invites - Holger Weiß for improvements in binary installers
- Mr. EddX for updating the Bulgarian translation
- Sketch6580 for updating the Chinese (Simplified) translation
- ffunk for updating the Czech translation
- Dyxux for updating the French translation
- Stefan Strigler for updating the German translation
And also to all the people contributing in the ejabberd chatroom, issue tracker...
Improvements in ejabberd Business Edition
Customers of the ejabberd Business Edition, in addition to all those improvements and bugfixes, also get the following changes:
- Add p1db backend for mod_auth_fast
- Fix issue when cleaning MAM messages stored in p1db
- mod_unread fixes
- Web push fixes
Full Changelog
https://github.com/processone/ejabberd/compare/26.02...26.03
ejabberd 26.03 download & feedback
As usual, the release is tagged in the Git source code repository on GitHub.
The source package and installers are available in ejabberd Downloads page. To check the *.asc signature files, see How to verify ProcessOne downloads integrity.
For convenience, there are alternative download locations like the ejabberd DEB/RPM Packages Repository and the GitHub Release / Tags.
The ecs container image is available in docker.io/ejabberd/ecs and ghcr.io/processone/ecs. The alternative ejabberd container image is available in ghcr.io/processone/ejabberd.
If you consider that you've found a bug, please search or fill a bug report on GitHub Issues.
26.02
Release notes copied from the original ejabberd 26.02 announcement post:
Contents:
- ChangeLog
- Acknowledgments
- Improvements in ejabberd Business Edition
- ejabberd 26.02 download & feedback
ChangeLog
- Fixes issue with adding hats data in presences send by group chats (#4516)
- Removes
mod_muc_occupantidmodules, and integrates its functionality directly intomod_muc(#4521) - Fixes issue with reset occupant-id values after restart of ejabberd (#4521)
- Improves handling of mediated group chat invitations in
mod_block_stranger(#4523) - Properly install
mod_invitestemplates inmake installcall (#4514) - Better errors in
mod_invites(#4515) - Accessibility improvements in
mod_invites(#4524) - Improves handling of request with invalid url encoded values in request handled by
ejabberd_http - Improves handling of invalid responses to disco queries in
mod_pubsub_serverinfo - Fixes conversion of MUC room configs from ejabberd older than 21.12
- Fixes to autologin in WebAdmin
If you are upgrading from a previous version, there are no changes in SQL schemas, configuration, API commands or hooks.
Notice that mod_muc now incorporates the feature from mod_muc_occupantid, and that module has been removed. You can remove mod_muc_occupantid in your configuration file as it is unnecessary now, and ejabberd simply ignores it.
Check also the commit log: https://github.com/processone/ejabberd/compare/26.01...26.02
Acknowledgments
We would like to thank the contributions to the source code and translations provided by:
- Stefan Strigler for the improvements in
mod_invites - Mr. EddX for updating the Bulgarian translation
- Sketch6580 for updating the Chinese (Simplified) translation
- ffunk for updating the Czech translation
- Stefan Strigler for updating the German translation
And also to all the people contributing in the ejabberd chatroom, issue tracker...
Improvements in ejabberd Business Edition
Customers of the ejabberd Business Edition, in addition to all those improvements and bugfixes, also get the following change:
- Change
default_ram_dbfrommnesiatop1dbwhen usingp1dbcluster_backend
ejabberd 26.02 download & feedback
As usual, the release is tagged in the Git source code repository on GitHub.
The source package and installers are available in ejabberd Downloads page. To check the *.asc signature files, see How to verify ProcessOne downloads integrity.
For convenience, there are alternative download locations like the ejabberd DEB/RPM Packages Repository and the GitHub Release / Tags.
The ecs container image is available in docker.io/ejabberd/ecs and ghcr.io/processone/ecs. The alternative ejabberd container image is available in ghcr.io/processone/ejabberd.
If you consider that you've found a bug, please search or fill a bug report on GitHub Issues.
26.01
Release notes copied from the original ejabberd 26.01 announcement post:
We are pleased to announce ejabberd 26.01. This release addresses real operational pain points: export your data from one database backend and import it into another, and let your users invite others without opening the gates to spam.
This release is the result of three months of development, implementing those new features, and fixing bugs.
Release Highlights:
If you are upgrading from a previous version, there are no mandatory changes in SQL schemas, configuration, API commands or hooks. However new mod_invites uses a new table in databases, see below.
Other contents:
- SQL table for
mod_invites - New
replaced_connection_timeout - Improved
mod_http_fileserverdocrootoption - Supported XEP Versions
- Erlang, Elixir and Container
- Improved
ERL_DIST_PORT - New
make relivectl - WebAdmin Menu Links
- Acknowledgments
- Improvements in ejabberd Business Edition
- ChangeLog
- ejabberd 26.01 download & feedback
Below is a detailed breakdown of the improvements and enhancements:
Database Serialization
This feature adds new way for migrating data between database backends by exporting data from one backend to a file and importing that into different backend (or possibly to same backend but on different machine).
Migrating data using this can be executed by first exporting all data with export_db command, changing configuration of ejabberd and switching modules to use new database backend, and then importing previously exported data using import_db command.
This mechanism works by calling those new command from ejabberdctl, for exporting data:
ejabberdctl export_db <host name> <path to directory where exported files should be placed>ejabberdctl export_db_abort <host name>ejabberdctl export_db_status <host name>
and for importing:
ejabberdctl import_db <host name> <path to directory with exported data>ejabberdctl import_db_abort <host name>ejabberdclt import_db_status <host name>
Exporting and importing work in background after starting them from ejabberdctl (commands executed by ejabberdctl have time limit for how long they can work, with this setup there should be not issue with export or import getting aborted by that), and current progress of background operation can be tracked by calling corresponding *_db_status command. Operation in progress can be also aborted by executing *_db_abort command.
Roster Invites and Invite-based Account Registration
Until now the canonical method to register an account in ejabberd was to let anybody register accounts using In-Band Registration (IBR) (mod_register) or Web Registration (mod_register_web), and then try to limit abuse with access limitations or CAPTCHAs. Often this process got abused, with the result that account registration had to be disabled and rely on manual registration by administrators.
The new mod_invites implements support for invite-based account registration: administrators can generate invitation URLs, and send them to the desired users (by email or whatever). Then the user that receives an invitation can visit this invitation URL to register a new account.
On top of that, mod_invites lets you create Roster Invites: you can send a link to some other person so they can connect to you in a very user-friendly and intuitive way that doesn't require any further interaction. If account creation is allowed, these links will also allow to setup an account in case the recipient doesn't have one yet.
Relevant links:
- mod_invites documentation
- Great Invitations, the original Prosody blog post that described this feature
- XEP-0379: Pre-Authenticated Roster Subscription
- XEP-0401: Ad-hoc Account Invitation Generation
- XEP-0445: Pre-Authenticated In-Band Registration
- This development was funded by NLnet
Quick setup:
-
If using SQL storage for the modules and have disabled the update_sql_schema toplevel option, then create manually the SQL table, see below.
-
If you plan to use the landing page included with
mod_invites, install JavaScript libraries jQuery version 3.7.1 and Bootstrap version 4.6.2. This example configuration will assume they are installed in/usr/share/javascript. Theejabberdcontainer image already includes those libraries. Some quick examples, in case you need some help:-
Debian and related:
apt install libjs-jquery libjs-bootstrap4 -
AlpineLinux and other operating systems where you can install
npm, for example:apk -U add --no-cache nodejs npm ca-certificates npm init -y \ && npm install --silent jquery@3.7.1 bootstrap@4.6.2 mkdir -p /usr/share/javascript/jquery mkdir -p /usr/share/javascript/bootstrap4/{css,js} cp node_modules/jquery/dist/jquery.min.js /usr/share/javascript/jquery/ cp node_modules/bootstrap/dist/css/bootstrap.min.css /usr/share/javascript/bootstrap4/css/ cp node_modules/bootstrap/dist/js/bootstrap.min.js /usr/share/javascript/bootstrap4/js/ -
Generic method using the included script:
tools/dl_invites_page_deps.sh /usr/share/javascript
-
-
Configure ejabberd to serve the JavaScript libraries in path
/share; serve mod_invites in any path of your selection; and enable mod_invites with some basic options. Remember to setup mod_register to allow registering accounts using mod_invites. For example:listen: - port: 5443 ip: "::" module: ejabberd_http tls: true request_handlers: /invites: mod_invites /share: mod_http_fileserver modules: mod_http_fileserver: docroot: /share: /usr/share/javascript mod_invites: access_create_account: configure landing_page: auto mod_register: allow_modules: - mod_invites -
There are many ways to generate invitations:
- Login with an admin account, then you can execute Ad-Hoc Commands like "Invite User" and "Create Account"
- If mod_adhoc_api is enabled, you can execute equivalent API Commands generate_invite and generate_invite_with_username
- Run those API Commands from the command-line, for example:
ejabberdctl generate_invite localhost
-
All those methods give you an invitation URL that you can send it to the desired user, and looks like
https://localhost:5443/invites/Yrw5nuC1Kpxy9ymbRzmVGzWQ -
The destination user (or yourself) can visit that invitation URL and follow the instructions to register the account and download a compatible client.
If the user has installed already a compatible XMPP client, you don't no need to install JavaScript libraries and setup a landing page. In that case, when generating an invitation you will get only the XMPP URI; when the user opens that URI in a web browser, it will automatically open the XMPP client and the corresponding registration window.
Probably you don't want to expose the port directly, then you need to setup Nginx or Apache to act as a "reverse" proxy and change your landing_page parameter accordingly, for example just https://@HOST@/invites/{{ invite.token }}
Notice that the landing page can be fully translated using the existing ejabberd localization feature.
SQL table for mod_invites
There is a new table invite_token in SQL schemas, used by the new mod_invites. If you want to use this module, there are two methods to update the SQL schema of your existing database:
If using MySQL or PosgreSQL, you can enable the option update_sql_schema and ejabberd will take care to update the SQL schema when needed: add in your ejabberd configuration file the line update_sql_schema: true
Notice that support for MSSQL in mod_invites has not yet been implemented or tested.
If you are using other database, or prefer to update manually the SQL schema:
-
MySQL singlehost schema:
CREATE TABLE invite_token ( token text NOT NULL, username text NOT NULL, invitee text NOT NULL DEFAULT (''), created_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, expires timestamp NOT NULL, type character(1) NOT NULL, account_name text NOT NULL, PRIMARY KEY (token(191)) ) ENGINE=InnoDB CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; CREATE INDEX i_invite_token_username USING BTREE ON invite_token(username(191)); -
MySQL multihost schema:
CREATE TABLE invite_token ( token text NOT NULL, username text NOT NULL, server_host varchar(191) NOT NULL, invitee text NOT NULL DEFAULT '', created_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, expires timestamp NOT NULL, type character(1) NOT NULL, account_name text NOT NULL, PRIMARY KEY (token(191)), ) ENGINE=InnoDB CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; CREATE INDEX i_invite_token_username USING BTREE ON invite_token(username(191)); -
PostgreSQL singlehost schema:
CREATE TABLE invite_token ( token text NOT NULL, username text NOT NULL, invitee text NOT NULL DEFAULT '', created_at timestamp NOT NULL DEFAULT now(), expires timestamp NOT NULL, "type" character(1) NOT NULL, account_name text NOT NULL, PRIMARY KEY (token) ); CREATE INDEX i_invite_token_username ON invite_token USING btree (username); -
PostgreSQL multihost schema:
CREATE TABLE invite_token ( token text NOT NULL, username text NOT NULL, server_host text NOT NULL, invitee text NOT NULL DEFAULT '', created_at timestamp NOT NULL DEFAULT now(), expires timestamp NOT NULL, "type" character(1) NOT NULL, account_name text NOT NULL, PRIMARY KEY (token) ); CREATE INDEX i_invite_token_username_server_host ON invite_token USING btree (username, server_host); -
SQLite singlehost schema:
CREATE TABLE invite_token ( token text NOT NULL, username text NOT NULL, invitee text NOT NULL DEFAULT '', created_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, expires timestamp NOT NULL, type character(1) NOT NULL, account_name text NOT NULL, PRIMARY KEY (token) ); CREATE INDEX i_invite_token_username ON invite_token(username); -
SQLite multihost schema:
CREATE TABLE invite_token ( token text NOT NULL, username text NOT NULL, server_host text NOT NULL, invitee text NOT NULL DEFAULT '', created_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, expires timestamp NOT NULL, type character(1) NOT NULL, account_name text NOT NULL, PRIMARY KEY (token) ); CREATE INDEX i_invite_token_username_server_host ON invite_token(username, server_host);
New replaced_connection_timeout toplevel option
The new replaced_connection_timeout toplevel option enables new session to wait for termination of session that it replaces.
This should mitigate problems where old session presences unavailable sometimes were delivered after new session sent it's presence available.
Improved mod_http_fileserver docroot option
mod_http_fileserver is a module to serve files from the local disk over HTTP, useful if you just want to serve some HTML or binary files that don't need PHP, and don't need to setup or configure a separate full-blown web server.
Now the docroot option may be a map of paths to serve, allowing this module to serve several paths with different directories for different purposes.
For example, let's serve some public content from /var/service/www, also shared JavaScript libraries, and for base URL let's serve from /var/www:
listen:
-
port: 5280
module: ejabberd_http
request_handlers:
/pub/content: mod_http_fileserver
/share: mod_http_fileserver
/: mod_http_fileserver
modules:
mod_http_fileserver:
docroot:
/pub/content: /var/service/www
/share: /usr/share/javascript
/: /var/www
Notice that ejabberd includes many modules that serve web services, that may be useful to save you from setting up a full-blown web server, see ejabberd_http.
Supported XEP versions
ejabberd supports close to 90 XMPP extension protocols (XEPs), either directly implemented in ejabberd source code, in the libraries that implement many of the internal features, or in other ejabberd modules available in other repositories like ejabberd-contrib.
Those XEPs are updated regularly to bring major improvements, minor changes, fixing typos, editorial or cosmetic changes... and this requires a regular review of those XEP updates in the software implementations to keep them up to date, or at least to document what exact version of the protocols are implemented.
In this sense, we have reviewed all the XEP versions that ejabberd and erlang xmpp library were not up-to-date, and have identified which ones are already up-to-date in their DOAP files. Now the pages at XMPP.org describe more accurately the supported protocol versions, see ejabberd at XMPP.org and erlang-xmpp at XMPP.org.
Erlang, Elixir and Container
ejabberd can be compiled with Erlang/OTP from 25.0 up to the latest 28.3.1. Regarding Elixir support, ejabberd supports from Elixir 1.14.0 up to the latest 1.19.5
Right now ejabberd compiles correctly with Erlang/OTP from git development branch and Elixir 1.20.0-RC1, so hopefully compatibility with the upcoming Erlang/OTP 29 and Elixir 1.20 will be easily achievable.
Binary installers and the ejabberd container now include Erlang/OTP 28.3.1 instead of 27.3, and Elixir 1.19.5 instead of 1.18.4.
Speaking of the container images, both ejabberd and ecs bring other minor changes: they expose more ports: 5478 UDP (STUN service), 7777 (SOCKS5 file transfer proxy) and 50000-50099 UDP (TURN service).
The container images in their ejabberd.yml file use new macros PORT_TURN_MIN, PORT_TURN_MAX, and STARTTLS_REQUIRED that you can setup easily without modifying ejabberd.yml, see macros in environment.
Improved ERL_DIST_PORT
ejabberd uses Erlang Distribution in the ejabberdctl shell script and also for building a cluster of ejabberd nodes.
That Erlang Distribution has historically used the epmd program to assign listening ports and discover ports of other nodes to connect. The problems of using epmd are that:
epmdmust be running all the time in order to resolve name queriesepmdlistens in port4369- the ejabberd node listens in a random port number
How to avoid epmd since Erlang/OTP 23.1 and ejabberd 22.10 ? Simply set the ERL_DIST_PORT environment variable in the ejabberdctl.cfg file:
ERL_DIST_PORT=5210
Since now, ejabberdctl passes arguments to Erlang to listen for erlang distribution connections in TCP port 5210, and establish erlang distribution connections to remote ports 5210. That way you know exactly, in advance, what port number to open in the firewall or container.
This ejabberd release introduces some small improvements that facilitate using the ERL_DIST_PORT environment variable:
-
ejabberdctlprints an informative message when it detects that there may be a port number collision, which may happen if you start several ejabberd nodes in the same machine listening in the sameERL_DIST_PORTand sameINET_DIST_INTERFACE. -
When ejabberd is starting, now it prints the address and port number where it listens for erlang distribution:
[info] ejabberd 26.01 is started in the node ejabberd@localhost in 1.90s [info] Elixir 1.19.4 (compiled with Erlang/OTP 28) [info] Erlang/OTP 29 [DEVELOPMENT] [erts-16.2] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [jit:ns] [info] Start accepting TCP connections at 0.0.0.0:5210 for erlang distribution [info] Start accepting TCP connections at [::]:5222 for ejabberd_c2s [info] Start accepting TCP connections at [::]:5269 for ejabberd_s2s_in ... -
A new make relivectl is introduced, which uses
ejabberdctlscript to start ejabberd (not likemake relive), and starts ejabberd immediately without building a release (not likemake dev). -
The ejabberd Documentation site has improved and updated pages about Security, Erlang Distribution, and Clustering.
New make relivectl
make relive was introduced in ejabberd 22.05. It allows to start ejabberd in path _build/relive/ without installing it, by using rebar3 shell and mix run. It automatically compiles code at start and recompiles changed code at runtime. But it doesn't use the ejabberdctl script, and doesn't read ejabberdctl.cfg, this means that depending on what you are testing, it may not be useful and you had to switch to make dev.
A new make target is now introduced: make relivectl. This is similar, as it starts ejabberd without requiring installation, using path _build/relivectl/ to store the configuration, database and log files. The benefit over relive is that relivectl uses ejabberdctl and reads ejabberdctl.cfg. The drawback is that it doesn't recompile code automatically. The benefit over make dev is that relivectl doesn't build an OTP release, so it's faster to start.
Let's summarize all the make targets related to installation to determine their usage differences:
make ... | install | install-rel | prod | dev | relivectl | relive |
|---|---|---|---|---|---|---|
| Writes files in path | / | / | _build/prod/ | _build/dev/ | _build/relivectl/ | _build/relive/ |
| Installs | ✅ | ✅ | manually uncompress *.tar.gz | - | - | - |
| Uninstall with | uninstall⚠️ incomplete | uninstall-rel✅ | manual remove | - | - | - |
| Start tool | ejabberdctl | ejabberdctl | ejabberdctl | ejabberdctl | ejabberdctl | rebar3/mix |
Reads ejabberdctl.cfg | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ |
| Recompiles | - | ✅ | ✅ | ✅ | ❌ | ✅ |
| Starts ejabberd | - | - | - | - | ✅ | ✅ |
| Recompiles at runtime | - | - | - | - | ❌ | ✅ |
| Execution time (s.) | 13 | 40 | 57 | 35 | 4 | 9 |
As seen in the table, make install / uninstall seem unnecessary nowadays, because install-rel / uninstall-rel allow to install and uninstall correctly all the files. Maybe in the future the implementation of make install / uninstall could get replaced with make install-rel / uninstall-rel...
In the same sense, make dev now apparently falls short between make prod (which is absolutely indispensable to build a full OTP release) and make relive/relivectl (useful, featureful, and fast for development and testing purposes).
WebAdmin Menu Links
Do you remember that ejabberd 25.07 introduced a link in WebAdmin to the local Converse.js page in the left menu when the corresponding mod_conversejs is enabled?
Technically speaking, until now the WebAdmin menu included a link to the first request_handler with mod_conversejs that the admin configured in ejabberd.yml. That link included the authentication credentials hashed as URI arguments if using HTTPS. Then process/2 extracted those arguments and passed them as autologin options to Converse.
From now, mod_conversejs automatically adds a request_handler nested in WebAdmin subpath. The WebAdmin menu links to that converse URI; this allows to access the HTTP auth credentials, no need to explicitly pass them. process/2 extracts this HTTP auth and passes autologin options to Converse. Now scram password storage is supported too.
In practice, what does all that mean? Just enable the mod_conversejs module, and WebAdmin will have a private Converse URL for the admin, linked in the WebAdmin menu, with autologin. No need to setup a public request_handler!
For example, let's configure conversejs only for admin usage:
listen:
-
port: 5443
module: ejabberd_http
tls: true
request_handlers:
/admin: ejabberd_web_admin
/ws: ejabberd_http_ws
modules:
mod_conversejs:
conversejs_resources: "/home/conversejs/12.0.0/dist"
Of course, you can setup a public request_handler and tell your users to access the corresponding URL:
listen:
-
port: 5443
module: ejabberd_http
tls: true
request_handlers:
/admin: ejabberd_web_admin
/public/web-client: mod_conversejs
/ws: ejabberd_http_ws
modules:
mod_conversejs:
conversejs_resources: "/home/conversejs/12.0.0/dist"
With that configuration, what is the corresponding URL?
Login to the WebAdmin and look at the left menu: now it displays links to all the configured HTTP services: ejabberd_captcha, ejabberd_oauth, mod_conversejs, mod_http_fileserver, mod_register_web. Also mod_muc_log_http and mod_webpresence from ejabberd-contrib show links in the WebAdmin left menu. Additionally, the menu shows a lock if the page is encrypted HTTPS, and an ! if it is not.
Acknowledgments
We would like to thank the contributions to the source code, documentation, and translation provided for this release by:
- Stefan Strigler for new feature Great Invitations aka
mod_invites - Kirill A. Korinsky and Greg Troxel for
ejabberdctlsupport NetBSD and OpenBSDsu - Christoph Scholz for fix preload_rooms in case of SQL-DB
- Mr. EddX and Kiril Panayotov for updating the Bulgarian translation
- Sketch6580 for updating the Chinese (Simplified) translation
- poVoq, Nautilusx and Stefan Strigler for updating the German translation
- Stefan Strigler for updating the Swedish translation
And also to all the people contributing in the ejabberd chatroom, issue tracker...
Improvements in ejabberd Business Edition
Customers of the ejabberd Business Edition, in addition to all those improvements and bugfixes, also get the following changes:
- New module
mod_push_gatethat can act as target service formod_push, and which can deliver pushes using configured mod_gcm or mod_applepush instances. - New module
mod_push_templatesthat can be used to have different push notifications for message class matching configured data patterns. - New database conversion routines targeting p1db backends
ChangeLog
This is a more complete list of changes in this ejabberd release:
Compile and Start
- Remove dependencies, macros and code for Erlang/OTP older than 25
- Require Elixir 1.14 or higher, that's the lowest we can test automatically
ejabberdctl: Support NetBSD and OpenBSDsu(#4320)ejabberdctl.template: Show meaningful error whenERL_DIST_PORTis in useejabberd_app: Print address and port where listens for erlang node connectionsMakefile.in: Addmake relivectlsimilar torelivebut usingejabberdctl
Databases
- Add db_serialize support in mnesia modules
- Add db serialization to
mod_muc_sql - New database export/import infrastructure
- Add commands for new database export/import
- Apply timestamp pass in
?SQL_INSERTqueries - Update p1_mysql to bring fix for timestamp decoding
- Extend timestamp type handling in sql macros
- Revert changes to conversion of pgsql
inttypes
Installer and Container
make-binaries: Bump Erlang/OTP 28.3.1 and Elixir 1.19.5Dockerfile: Bump Erlang/OTP 28.3.1 and Elixir 1.19.5Dockerfile: Expose also port 7777 for SOCKS5Dockerfile: Configure TURN ports and expose 5478 50000-50099Dockerfile: Try to fix error with recentfreetdsAlpine package- Container: Setup new macro
STARTTLS_REQUIREDto allow easy disabling
MUC
- Add
muc_online_rooms_countAPI command - Set
enable_hatsroom optiontrueby default - Allow vcard queries even when IQ queries are disabled (#4489)
- Announce
stable-idfeature from XEP-0045 1.31, supported since long ago - Fix
preload_roomsin case of SQL database (#4476) - Run new hooks:
registering_nickmucandregistered_nickmuc(#4478) - When deleting account, unregister account's nicks in all MUC hosts (#4478)
mod_muc_log: Crash interminate/2when stopping module (#4486)mod_muc_occupantid: Keep salt per MUC service, not individual roomsmod_muc_room: Rewrite hats code that gets xdata valuesmod_muc_room: Handle hats without definition (#4503)mod_muc_room: When user has no hats, don't store in hats_users
WebAdmin
ejabberd_http: Run newhttp_request_handlers_initfold hookejabberd_http: Add helperget_auto_urls/2that returns all URLs and TLSejabberd_web_admin: Add helper functionsmake_menu_systemejabberd_web_admin: Show menu system only when can view vhostsejabberd_web_admin: Pass Level inwebadmin_menu_system_postandinsidehooksmod_conversejs: Improve link to conversejs in WebAdmin (#4495)- When epmd isn't running show explanation in Clustering WebAdmin page
- Use improved WebAdmin menu system in more modules
- When building WebAdmin menu system,
{URLPATH}in link text is substituted
Web Services
rest: Use separatehttpcprofileejabberd_captcha: Usemod_host_meta:get_auto_url/2ejabberd_http: Support repeated module in request_handlersejabberd_http: Get back handling when BOSH or WS are disabledmod_host_meta: Moveget_urlfunctions frommod_host_metatoejabberd_httpmod_host_meta: Allow callingget_url/2for other modules, not only WebSocketmod_host_meta: Cosmetic rename Module to Handlermod_http_upload: Newcontent_typeoption similar tomod_http_fileserver(#4488)mod_http_upload: Pass ServerHost, not Host which may be"upload.HOST"mod_http_upload: Amend the fix for #4450 to support IDNA correctly (#3519)mod_http_fileserver: Support map of paths indocrootoptionmod_conversejs: Add new Conversejs Paths and ContentTypes (#4511)mod_conversejs: Use ContentType functions frommod_http_fileserver(#4511)- Use
/websocketURL in default configuration likemod_conversejs, it's more meaningful
Core and Modules
- Add
replaced_connection_timeouttoplevel option - Fix nasty SSL warnings (#4475)
ejabberd_commands: Show meaningul error message when problem executing command (#4506)ejabberd_logger: Append "color clean" only in console template, not fileejabberd_oauth: Log error ifoauth_list_tokensexecuted with unsupported DB (#4506)misc: Get back functions and mark them as deprecatedmod_adhoc_api: Show nice command name, as WebAdmin already doesmod_pubsub: Deliver pubsub notifications to remote servers for nodes with presence based deliverymod_scram_update: Don't hard-code iteration count- Bump many XEPs versions that are already supported
- Improve documentation of
install_contrib_modules(#4487)
Full Changelog
https://github.com/processone/ejabberd/compare/25.10...26.01
ejabberd 26.01 download & feedback
As usual, the release is tagged in the Git source code repository on GitHub.
The source package and installers are available in ejabberd Downloads page. To check the *.asc signature files, see How to verify ProcessOne downloads integrity.
For convenience, there are alternative download locations like the ejabberd DEB/RPM Packages Repository and the GitHub Release / Tags.
The ecs container image is available in docker.io/ejabberd/ecs and ghcr.io/processone/ecs. The alternative ejabberd container image is available in ghcr.io/processone/ejabberd.
If you consider that you've found a bug, please search or fill a bug report on GitHub Issues.