I have an AWS instance (Ubuntu 18.04) on which I am deploying ejabberd xmpp server (v.19.09.1). I took the following steps.
- I disabled Ubuntu firewall (ufw) within the AWS instance since I already have the required security group in place. I enabled the following tcp ports in the inbound section of the AWS security group: 4369, 5222, 5223, 5269, and 5280 (all ejabberd ports). In the outbound section, I enabled all tcp ports from 0-65535.
- I also installed both Apache httpd and Redis servers on the same instance, and I also added the relevant ports (80, 443, 6379) to the inbound section. I am able to access these servers remotely (Web page for Apache2 and redis-cli in the case of Redis).
- I also configured ejabberd.yml file for my subdomain (im.mydomain.org), and I also set the domain's A record (im.mydomain.org) to point to the AWS instance's ip address. I also specified the admin users.
- I used ejabberdctl utility to add users successfully.
- I am also able to access the web interface at https://:5280/admin/server/im.mydomain.org/users/ No problems there.
Despite all this, I am unable to log in (email@example.com) to ejabberd using an xmpp client. (I use Pandion.) I also tried logging in with other clients like Pidgin, but no go. I just get the message "Disconnected from the server" or "unable to login."
Quite frustrated because ejabberd inexplicably will not allow users to log in via an xmpp client. Any help will be greatly appreciated.