Jérôme Sautret | 25 Jun 14:46 2015

[ANN] ejabberd 15.06: Message archive, configuration checker and new packages


ejabberd 15.06 includes over 100 changes since the last release two
months ago. Among those changes it includes several major new

* New features

The focus of this release is archiving and easier configuration.

** Message Archive Management support

Message Archive Management (aka MAM, defined in XEP-313,
http://xmpp.org/extensions/xep-0313.html) is now the de facto standard
for message archiving in XMPP world.

ejabberd now comes with its own full feature message archiving implementation:
– It support both version 0.2 and the more recent version 0.3 of the protocol.
– It support Mnesia internal storage and relational database backend
(aka odbc, but actually use native drivers).

To enable it, simply add mod_mam in ejabberd modules configuration
section, telling it to use your configured relational database.

    dbtype: odbc

Please, also check the sql directory to find about the table to add to
(Continue reading)

Muruga Prabu M | 25 Jun 11:46 2015

PEP Help


1. Broadcast profile picture and status changes to all users who have presence subscription to the publishing contact

2. If a subscribed user is offline when an event is published, it should be received the next time they come online

3. If a subscribed user is online when an event is published, it will be delivered immediately

4. If an event has been received by the subscriber once, the same event shouldn’t be sent to the subscriber

The above functionalities are similar to WhatsApp functionality to notify users about profile picture and status changes.

1. Is the above possible using PEP in ejabberd ? 
2. What ejabberd configuration should I use.
ejabberd mailing list
ejabberd <at> jabber.ru
Muruga Prabu M | 24 Jun 13:18 2015

Problem in PEP

The configuration below is the pubsub configuration that I use


    access_createnode: pubsub_createnode

    ## reduces resource comsumption, but XEP incompliant

    ignore_pep_from_offline: true

    ## XEP compliant, but increases resource comsumption

    ## ignore_pep_from_offline: false

    last_item_cache: false


      - "pep"

      - "hometree"

      - "flat" # pep requires mod_caps


1. Notify users in my roster of profile picture or status changes (similar to WhatsApp)


1. I publish the custom event from the client.

XML stanza sent from client

<iq id='Uhs9z-110' type='set'>



        <publish node='https://temp.com/userinfo'>

            <item id="U6z3olw0JI5UPAU2">









XML stanza received as reply

<iq from='bob <at> temp.com' to='bob <at> temp.com/Smack' id='Uhs9z-110' type='result'>



        <publish node='https://temp.com/userinfo'>

            <item id='U6z3olw0JI5UPAU2'/>




I also received the published event within a message stanza.

The problem is when ever any contact who has a presence subscription to the publishing client comes online, I receive the following message stanza

<message from='bob <at> temp.com' to='bob <at>'>



            <items node='https://temp.com/userinfo'>

                <item id='MP5OuH4hqxcl2Oyl'>









            xmlns='urn:xmpp:delay' from=bob <at> temp.com/Smack' stamp='2015-06-24T10:57:43Z'>



Why am I receiving the same message stanza that I published when ever any of my contacts who has presence subscription to me come online ?

ejabberd mailing list
ejabberd <at> jabber.ru
e7p | 20 Jun 03:53 2015

Backup is not possible using ejabberdctl in version 2.1.11


although I don't know, if the problem may be fixed in newer versions of
ejabberd (2.1.11 is the currently available version in the ubuntu
repository) I may ask, how to resolve the following error:

As I try to migrate an ejabberd to a new host, I wanted to change the
node-host of the jabber node. I followed the instructions from the
documentation chapter "Change Computer Hostname" but got an error when
trying to back up the old node.

# ejabberdctl --node ejabberd <at> phoenix backup /tmp/old.backup
Can't store backup in "/tmp/old.backup" at node ejabberd <at> phoenix:
{"Cannot prepare checkpoint (replica not available)", [pubsub_last_item,
{{1434, 764649, 118530}, ejabberd <at> phoenix}]}

While starting and connecting to the old node works very well, backing
it up leads to this error. Though no backup is generated.

We use LDAP authentication in our configuration and have
mod_shared_roster activated.

What is causing this failure and how could we now generate our backup to
finally change the nodename?

Kind regards,
ricky gutierrez | 18 Jun 22:24 2015

Ejabberd different domains

Hi list , I have a question I want to share with you and to clarify my
ideas, I have in a domain A company with 200 users on my ejabberd, now
ask me to call another branch B I have users with ejabberd and mount
another server and including they can be seen, how could you do this

Ejabberd handles virtual domain, but my boss want each branch have
their own server, but they both look and communicate with each other.

like this:

AliceA ==== Are you ok? ===> BobB

BobB ===== Yes ====> AliceA




ricky gutierrez | 11 Jun 22:09 2015

Fix DOC "multicast"

Hi list , I'm testing with multicast, and I saw that there is an error
in the doc, with the default configuration generates an error

x error on line 693 at position 1: could not find expected ':'
2015-06-11 13:56:12.368 [error]
<0.37.0> <at> ejabberd_config:get_plain_terms_file:211 Cannot load
/opt/ejabberd/conf/ejabberd.yml: Syntax error on line 693 at position
1: could not find expected ':'

default doc

     host: "multicast.example.org"
     access: multicast
     limits, "> [ {local,message,40}, {local,presence,infinite},
{remote,message,150} ]."


limits: "> [ {local,message,40}, {local,presence,infinite},
{remote,message,150} ]."



Jatin | 10 Jun 20:59 2015

connect nodejs as proxy to ejabberd server


I want to connect my nodejs server as a proxy to ejabberd server.  So the mobile clients will register and send chat messages, group chats, notifications etc via my nodejs server.  And then nodejs server would analyze the message and then send it to ejabberd server and ejabberd server would send the message to the recipient.
So, what modules or technologies do you recommend for this?
is it bosh? node-xmpp-bosh? If yes, how? All the examples have one user login (jid) but nodejs is proxyin on behalf of the mobile apps.

Please let me know.

ejabberd mailing list
ejabberd <at> jabber.ru
Mickaël Rémond | 4 Jun 16:56 2015

ejabberd SaaS, now with self-sign up


We just launched ejabberd SaaS service with clearer plan pricing and 


The service is growing nicely and already manage large scale chat 

I hope you will love it :)


Mickaël Rémond
ejabberd mailing list
ejabberd <at> jabber.ru
ricky gutierrez | 2 Jun 19:14 2015

mod_man and version15.04

Hi list , I'm doing some tests and I want to try this module, but when
I load it gives me an error:

2015-06-02 11:06:15.652 [error] <0.36.0> CRASH REPORT Process <0.36.0>
with 0 neighbours exited with reason: no function clause matc
hing lists:map(#Fun<gen_iq_handler.3.72137204>, true) line 1236 in
application_master:init/4 line 133
2015-06-02 11:06:15.655 [info] <0.7.0> Application ejabberd exited
with reason: no function clause matching lists:map(#Fun<gen_iq_ha
ndler.3.72137204>, true) line 1236

line 133 I have nothing and 1236 does not exist within the yml

add the module  this way:

ejabberdctl modules_update_specs

ejabberdctl module_install mod_mam


mod_roster: []
  versioning: true

mod_mam: []

any idea?




anson | 28 May 19:44 2015

disable_sasl_mechanisms option setup

I would like to use just PLAIN mechanism on ejabberd.
Is disable_sasl_mechanisms the right option I need to configure?
And how can I configure it in /etc/ejabberd/ejabberd.cfg ?
The following is my configuration in ejabberd.cfg, but ejabberd can not even
{auth_method, internal}.
{auth_password_format, plain}.
{disable_sasl_mechanisms, [SCRAM-SHA-1,DIGEST-MD5] }.

Please help me out.
BTW, my system is Ubuntu14.04.

View this message in context: http://jabber.996255.n3.nabble.com/disable-sasl-mechanisms-option-setup-tp34948.html
Sent from the ejabberd mailing list archive at Nabble.com.
Vladimir Stafievsky | 27 May 14:30 2015

ejabberd erl crash every 5 minutes

Hi all!
We've 4 nodes cluster of ejabberd 15.02 (otp17). Every ~5 minute we've 
got erl crush dump on logs folder.
There is a link for dump 
Some basic information from there:

Slogan: Kernel pid terminated (application_controller) ({application_start_failure,kernel,{{shutdown,{failed_to_start_child,net_sup,{shutdown,{failed_to_start_child,net_kernel,{'EXIT',nodistribution}}}}},{k
System version: Erlang/OTP 17 [erts-6.1.2] [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:true]

Users online > 100k (>25k per node)
OS FreeBSD 10

Don't have any idea how to fix it.
Thanks in advance



Vladimir Stafievsky