Hello,
We have THREE domains (xmpp.domain1,com, xmpp.domain2.com and xmpp.domain3.com). I've configured "ejabberd.yml" with the three HOSTS and their config sections (please see the config section below). The thing is that when I config ONLY a vHost and comment the others, it works because I can register every user to its domain-->database.
I mean, if I execute:
     ejabberdctl register userX xmpp.domainX.com userXpass 
I can see the new userX created in the database X. But this only works when there is only an activated HOST at the same time. If I activate the three vHosts, ejabberd only creates the user in the first database (dbDomain1).
Did I explained myself? Do you know how to activate the three vHosts so that their users are created in their correspondant Database?
Thank you!
hosts:
   - "xmpp.domain1.com"
   - "xmpp.domain2.com"
   - "xmpp.domain3.com"
host_config:
   "xmpp.domain1.com":
      sql_type: pgsql
      sql_server: "localhost"
      sql_database: "dbDomain1"
      sql_username: "dbUser1"
      sql_password:  "dbUser1Pass"
      auth_method: sql
   "xmpp.domain2.com":
      sql_type: pgsql
      sql_server: "localhost"
      sql_database: "dbDomain2"
      sql_username: "dbUser2"
      sql_password:  "dbUser2Pass"
      auth_method: sql
   "xmpp.domain3.com":
      sql_type: pgsql
      sql_server: "localhost"
      sql_database: "dbDomain3"
      sql_username: "dbUser3"
      sql_password:  "dbUser3Pass"
      auth_method: sql
  
Solved! Problem with
Solved! Problem with ejabberd.yml.
Sorry...