i wrote a blog post about setting up a compliant ejabberd server. i haven’t really written something like this before so apologies if there are mistakes, i followed the guide myself on a clean server and it seems correct but as we all know ‘works on my machine’ is usually not enough