When a client logs into openfire, it receives hundreds of presence packets from other clients also connected to openfire. Can this be avoided, i.e. no presence packets are sent between XMPP clients? All XMPP clients that connect to openfire communicate with XMPP components attached to openfire.
I doubt it. Presence is sent by the server. It’s probably because you have a large contact list (roster). For each available contact you receive a presence.
Not for the problem you describe, which can likely be avoided by not sending an initial presence, but for the fantasticatillion other issues you will have with this design approach. If you have, for example, a set of IoT devices, then give them their own bare JID, do not share!