All doors lock automatically when the lock side is pressed. They unlock when the unlock side is pressed.
Driver's door

Front passenger's door

To lock all the doors from an open front door, press the lock side of the door lock switch and then close the door.
NOTE
When locking the doors this way, be careful not to leave the key inside the vehicle.
Locking, Unlocking with Transmitter
Auto Lock/Unlock FunctionMazda 6 Owners Manual: Door switch removal/installation
Front
1. Disconnect the negative battery cable.
2. Remove in the order indicated in the table.
3. Install in the reverse order of removal.
Rear
1. Disconnect the negative battery cable.
2. Remove in the order indicated in the table.
3. Install in the reverse order of removal. ...
Mazda 6 Owners Manual: Control valve body installation
On-Vehicle Installation
Caution
Be sure to align the parking rod and the manual valve.
1. Install the accumulator springs and accumulators into the transaxle case.
2. Install the control valve body component.
Tightening torque
7.8-10.8 N·m
{80-110 kgf·cm, 70-95 in·lbf}
Bo ...