1. Measure the gap and height between the liftgate and the body.
2. If not as specified, loosen the liftgate hinge installation bolts or the liftgate striker installation screws, and reposition the liftgate.

Clearance
a: 3.0-7.0 mm {0.12-0.28 in}
b: -1.0-3.4 mm {-0.04-013 in}
c: 2.8-5.2 mm {0.11-0.24 in}
d: -1.2-1.2 mm {0.05-0.05 in}
e: 2.8-5.8 mm {0.11-0.22 in}
f:4.0-8.0 mm {0.16-0.31 in}
3. Tighten the bolts or screws.
Liftgate disassembly/assemblyMazda 6 Service Manual: No.6 windshield fogged
When performing an asterisked (*) troubleshooting inspection, shake the
wiring harness and connectors while doing the inspection to discover whether
poor contact points are the cause of any intermittent malfunctions. If there
is a problem, check to make sure connectors, terminals and wir ...
Mazda 6 Service Manual: Parking brake (lever type) adjustment
1. Start the engine and depress the brake pedal several times.
2. Stop the engine.
3. Remove the ashtray behind the center console.
4. Turn the adjusting nut as shown in the figure.
5. After adjustment, inspect the following points:
(1) Turn the ignition switch to ON, pull the parking brak ...