This allows to upgrade from the old database schema to the new one that works for multiple virtual hosts: https://blog.process-one.net/ejabberd-18-03/ ejabberdctl update_sql
kosmos-ejabberd
Sets up ejabberd with vhosts for kosmos.org (public server) and 5apps.com (private server).