A Matrix server can force E2E on all messages passing it?
Synapse, the reference server, can handle rooms, and force encryption on the rooms.
p2p is client side. Riot, as reference client, is the one that takes care of this, and, if I get everything right, it is on by default.