Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have ejabberd setup with a few shared rosters ("groups"). I need to be able to send messages to the entire group. I was able to do this with the built-in announce mod by sending a message to This works great but it acts like a server broadcast and does not show which user the message came from.

I imagine I'm not the only one that needs to send out group messages on ejabberd, but I was surprised of the lack of documentation and solutions that I've found on this.

What would be a good way to accomplish this?

share|improve this question

This would be a better question to answer fully at programming, maybe?

I would look at the mod_announce module's source code and see if you can add more URL hooks for doing something like the following for group messages:

I don't know if this will address the need to show who sent the message, as I don't know what information is available to the module at the time of execution. It would make sense to have the originating request accessible to the module, but I've not looked myself.

In addition, this is exactly what MUC was designed for; create a conference and invite only the users you want seeing messages sent to that conference. You can lock it down with extensible properties provided by XMPP to keep it invitation-only and moderated; if using it for an announcement system, this might be desirable.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.