Edit the Ejabberd configuration file (ejabberd.cfg) with your default text editor, setting the custom parameters in one of these two ways described below:
If you are using the template file (available here), just change the hostnames and IPs:
- change {hosts, [“localhost”]}. to your host Ex.: {hosts, [“estrela”]}.
- change {acl, admin, {user, "", "localhost"}}. to your admin user and host. Ex.: {acl, admin, {user, "abmar", "estrela"}}.
- set the server external IP in the c2s and in the s2s connections, by adding an IP object: Ex.: {ip, {150, 165, 85, 185}}.
If you are not using the template file, do the following changes:
- remove ejabberd_c2s shaper by changing {shaper, c2s_shaper} to {shaper, none}.
- remove registration_timeout by uncommenting the line {registration_timeout, 600}. and changing it to {registration_timeout, infinity}. (That line may not exist in every config file. In this case you should add this line without uncommenting anything).
- open for inbound registration by changing {access, register, [{deny, all}]}. to {access, register, [{allow, all}]}.
- remove max stanza limitter, by changing max_stanza_size to none, both in the c2s and in the s2s connections.
- in the c2s connection, remove the starttls option and add the zlib option in order to allow for compression, as for issue https://support.process-one.net/browse/EJAB-1382.
- remove traffic shapers and max stanza limit, by changing {access, c2s_shaper, [{none, admin}, {normal, all}]}. and {access, s2s_shaper, [{fast, all}]}. to {access, c2s_shaper, [{none, all}]}. and {access, s2s_shaper, [{none, all}]}., respectively.
- remove welcome message by commenting {welcome_message, {"Welcome!" ...} and uncommenting {welcome_message, none}. (Remember to comment all lines from the welcome message).
- comment the ejabberd mods that are not required.