Reputation: 3661
xmpp.domain.com
[email protected]
(neither than [email protected])xmpp.domain.com
on jabber clients while using username like [email protected]
Of course it might be, the way I think is not correct. If you have suggestion about it please comment me.
Created Debian 8 server
Executed
apt-get update && apt-get dist-upgrade
apt-get -y install ejabberd
dpkg-reconfigure ejabberd
xmpp.domain.com.
admin
and two times passwordPlaced ssl pem key for domain.com
in /etc/ejabberd/ejabberd.pem
Added all DNS records like
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
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
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