Put the latest version of ejabberd. Everything is stored in MySQL (MariaDB).
How to make so that when adding a new user from his contact list (roster) machine can see all other registered users?
And that to me is necessary for each user to make the roster.
For example, here is the form for editing the roster for user1: