There’s no anti-spam mechanism in XMPP protocol so there’s limited options one can do to avoid spam.
Protect registration against automated spam account creation.
- disable in-band registration completely
- and create accounts different way
- or enable captcha during registration
- which may not be enough
There’s currently …