Deny messages from non-roster users in Openfire
问题 How do I only allow contacts who are on my roster list to send me messages? Is there any XEP responsible to do that? Or will I need to do this client-side? 回答1: Yes, OpenFire supports XEP-0016: Privacy Lists (see this question), which can be used to block stanzas according to various criteria. You can't explicitly block stanzas for contacts not in your roster, but you can block by subscription status none , which can more or less accomplish the same goal. You could send something like this: