How to allow users to send or receive messages with their roster only?

Hello
I found the topic https://www.ejabberd.im/node/6159 and there is no activity. So i'm sorry but i decided to create a new topic in the hope of getting the answer.

One of popular answer for such question is to use mod_filter (https://www.ejabberd.im/mod_filter), but it's not supported now and new ejabberd versions (15.0+) don't work with it (here is the discussion https://github.com/knobo/mod_filter/issues/2).

Can anybody help with this task?
Thanks in advance

Tkabber has an option that,

Tkabber has an option that, when enabled, accepts only messages from his contacts. In reality, when the user enables that option, Tkabber sends some queries to mod_privacy to set a privacy rule that says something like "if subscription=none, then deny stanza".

Thanks for the reply,

Thanks for the reply, @badlop.
It is client side option, but i need to manage messages from server side.

Syndicate content