How to connect Ethernet Magnetic/RJ45
Pin 10 connects to chassis, yes.
Pins 4,5,7,8 of the cable side connects to cabling via 8P8C connector. You can't and don't have to do anything about those pins.
Unless you mean pins 4,5,7,8 at the PHY side, in which case you connect them how PHY requires them to be connected.