heron
heron

Reputation: 3661

Ejabberd configuration issue

What I want to achieve is:

Of course it might be, the way I think is not correct. If you have suggestion about it please comment me.

What I've done is:

Created Debian 8 server

Executed

apt-get update && apt-get dist-upgrade
apt-get -y install ejabberd
dpkg-reconfigure ejabberd

Placed ssl pem key for domain.com in /etc/ejabberd/ejabberd.pem

Added all DNS records like

enter image description here

Then service ejabberd restart

Now when I try to register a new user like

ejabberdctl register admin domain.com 12345

It gives me an error message like, it's not allowed to register such username. But it allows when I enter

ejabberdctl register admin xmpp.domain.com 12345

The problem is...

So basically I can't use username [email protected] while using server xmpp.domain.com. What am I missing? any suggestions?

Also I'm a bit confused about SSL config and pem file. My SSL certificate currently supports www.domain.com and domain.com. Do I have to buy ssl cert for xmpp.domain.com also?

Upvotes: 0

Views: 191

Answers (1)

xnyhps
xnyhps

Reputation: 3316

In the dpkg-reconfigure step, you should have used domain.com instead of xmpp.domain.com. ejabberd only needs to know the domain it should use for JIDs, it doesn't need to know the domain it is actually running on.

Your SRV records and SSL certificate are correct: if you want to use [email protected], you have to have a certificate for domain.com.

Upvotes: 2

Related Questions