nano /etc/ejabberd/ejabberd.yml
mod_register
register:
all: allow
## all: deny
trusted_network:
all: allow
##loopback: allow
## registration_timeout: 600
registration_timeout: infinity
##
## Local c2s or remote s2s users cannot register accounts
##
access_from: all
## access: register
access: all