1. Remove the headliner.
2. Disconnect the front drain hose from the sunroof frame.
3. Remove the front drain hose from the clips.
4. Pull the front drain hose into the room side.
5. Remove the front drain hose.

Glass panel adjustment
Front drain hose installationMazda 6 Service Manual: Rear oil seal
REAR OIL SEAL REPLACEMENT
1. Remove the flywheel. (MTX) (See CLUTCH UNIT REMOVAL/INSTALLATION)
2. Remove the drive plate. (ATX) (See DRIVE PLATE REMOVAL/INSTALLATION)
3. Remove in the order indicated in the table.
4. Install in the reverse order of removal.
Rear Oil Seal Installation Note
...
Mazda 6 Service Manual: Air intake actuator inspection
1. Connect battery positive voltage to terminal D or F and ground to terminal
F or D of the air intake actuator.
2. Verify that the air intake actuator operates as shown below.
If not as specified, replace the air intake actuator.
...